Improvements to TCL9 support. Fixes to the Makefiles so that the "install"
[sqlite.git] / configure
blob0ddfa67aa620fb5022406545f4c78e714758ab5b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.47.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if 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
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_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.
43 if 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 --'
47 elif (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'
50 else
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if 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=';'
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
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
100 IFS=$as_save_IFS
103 esac
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.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
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.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $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
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if 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
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -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
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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
227 done;;
228 esac
229 as_found=false
230 done
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
234 fi; }
235 IFS=$as_save_IFS
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.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $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
257 exit 255
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 bug-autoconf@gnu.org 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."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
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/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
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"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
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.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
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.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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.
408 as_fn_error ()
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_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/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
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 '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
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; }
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
500 ECHO_C= ECHO_N= ECHO_T=
501 case `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;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (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'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 esac
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
588 _LT_EOF
589 exit 0
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
596 if 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
606 done
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
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'
618 # So, first we look for a working echo in the user's PATH.
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
630 done
631 IFS="$lt_save_ifs"
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
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=:
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
679 prev="$cmd"
680 done
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
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.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 test -n "$DJDIR" || exec 7<&0 </dev/null
707 exec 6>&1
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.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715 # Initializations.
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
726 # Identity of this package.
727 PACKAGE_NAME='sqlite'
728 PACKAGE_TARNAME='sqlite'
729 PACKAGE_VERSION='3.47.0'
730 PACKAGE_STRING='sqlite 3.47.0'
731 PACKAGE_BUGREPORT=''
732 PACKAGE_URL=''
734 # Factoring default headers for most tests.
735 ac_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"
770 ac_subst_vars='LTLIBOBJS
771 LIBOBJS
772 BUILD_CFLAGS
773 AMALGAMATION_LINE_MACROS
774 USE_GCOV
775 OPT_FEATURE_FLAGS
776 HAVE_ZLIB
777 USE_AMALGAMATION
778 TARGET_DEBUG
779 TARGET_HAVE_LINENOISE
780 TARGET_HAVE_EDITLINE
781 TARGET_HAVE_READLINE
782 TARGET_READLINE_INC
783 TARGET_READLINE_LIBS
784 TARGET_EXEEXT
785 SQLITE_OS_WIN
786 SQLITE_OS_UNIX
787 BUILD_EXEEXT
788 TEMP_STORE
789 ALLOWRELEASE
790 SQLITE_THREADSAFE
791 BUILD_CC
792 HAVE_WASI_SDK
793 RELEASE
794 VERSION
795 program_prefix
796 TSTRNNR_OPTS
797 TCLLIBDIR
798 HAVE_TCL
799 TCL_STUB_LIB_SPEC
800 TCL_LIB_SPEC
801 TCL_INCLUDE_SPEC
802 TCLSH_CMD
803 INSTALL_DATA
804 INSTALL_SCRIPT
805 INSTALL_PROGRAM
807 OTOOL64
808 OTOOL
809 LIPO
810 NMEDIT
811 DSYMUTIL
812 lt_ECHO
813 RANLIB
814 STRIP
816 OBJDUMP
817 LN_S
819 ac_ct_DUMPBIN
820 DUMPBIN
822 FGREP
823 EGREP
824 GREP
826 OBJEXT
827 EXEEXT
828 ac_ct_CC
829 CPPFLAGS
830 LDFLAGS
831 CFLAGS
833 host_os
834 host_vendor
835 host_cpu
836 host
837 build_os
838 build_vendor
839 build_cpu
840 build
841 LIBTOOL
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files=''
881 ac_user_opts='
882 enable_option_checking
883 enable_shared
884 enable_static
885 with_pic
886 enable_fast_install
887 with_gnu_ld
888 enable_libtool_lock
889 enable_largefile
890 with_tclsh
891 with_tcl
892 enable_tcl
893 enable_test_status
894 with_wasi_sdk
895 enable_threadsafe
896 enable_releasemode
897 enable_tempstore
898 enable_editline
899 enable_readline
900 with_readline_lib
901 with_readline_inc
902 with_linenoise
903 enable_debug
904 enable_amalgamation
905 enable_load_extension
906 enable_math
907 enable_json
908 enable_all
909 enable_memsys5
910 enable_memsys3
911 enable_fts3
912 enable_fts4
913 enable_fts5
914 enable_update_limit
915 enable_geopoly
916 enable_rtree
917 enable_session
918 enable_gcov
920 ac_precious_vars='build_alias
921 host_alias
922 target_alias
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
929 TCLLIBDIR'
932 # Initialize some variables set by options.
933 ac_init_help=
934 ac_init_version=false
935 ac_unrecognized_opts=
936 ac_unrecognized_sep=
937 # The variables have the same names as the options, with
938 # dashes changed to underlines.
939 cache_file=/dev/null
940 exec_prefix=NONE
941 no_create=
942 no_recursion=
943 prefix=NONE
944 program_prefix=NONE
945 program_suffix=NONE
946 program_transform_name=s,x,x,
947 silent=
948 site=
949 srcdir=
950 verbose=
951 x_includes=NONE
952 x_libraries=NONE
954 # Installation directory options.
955 # These are left unexpanded so users can "make install exec_prefix=/foo"
956 # and all the variables that are supposed to be based on exec_prefix
957 # by default will actually change.
958 # Use braces instead of parens because sh, perl, etc. also accept them.
959 # (The list follows the same order as the GNU Coding Standards.)
960 bindir='${exec_prefix}/bin'
961 sbindir='${exec_prefix}/sbin'
962 libexecdir='${exec_prefix}/libexec'
963 datarootdir='${prefix}/share'
964 datadir='${datarootdir}'
965 sysconfdir='${prefix}/etc'
966 sharedstatedir='${prefix}/com'
967 localstatedir='${prefix}/var'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
980 ac_prev=
981 ac_dashdash=
982 for ac_option
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
987 ac_prev=
988 continue
991 case $ac_option in
992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *=) ac_optarg= ;;
994 *) ac_optarg=yes ;;
995 esac
997 # Accept the important Cygnus configure options, so we can diagnose typos.
999 case $ac_dashdash$ac_option in
1001 ac_dashdash=yes ;;
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
1061 -enable-* | --enable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=\$ac_optarg ;;
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
1084 exec_prefix=$ac_optarg ;;
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
1097 -host | --host | --hos | --ho)
1098 ac_prev=host_alias ;;
1099 -host=* | --host=* | --hos=* | --ho=*)
1100 host_alias=$ac_optarg ;;
1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
1113 includedir=$ac_optarg ;;
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118 infodir=$ac_optarg ;;
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123 libdir=$ac_optarg ;;
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
1130 libexecdir=$ac_optarg ;;
1132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1137 -localstatedir | --localstatedir | --localstatedi | --localstated \
1138 | --localstate | --localstat | --localsta | --localst | --locals)
1139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142 localstatedir=$ac_optarg ;;
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147 mandir=$ac_optarg ;;
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154 | --no-cr | --no-c | -n)
1155 no_create=yes ;;
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168 oldincludedir=$ac_optarg ;;
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173 prefix=$ac_optarg ;;
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180 program_prefix=$ac_optarg ;;
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187 program_suffix=$ac_optarg ;;
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
1204 program_transform_name=$ac_optarg ;;
1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
1224 sbindir=$ac_optarg ;;
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
1235 sharedstatedir=$ac_optarg ;;
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
1240 site=$ac_optarg ;;
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1265 -with-* | --with-*)
1266 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 as_fn_error $? "invalid package name: $ac_useropt"
1270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1274 "with_$ac_useropt"
1275 "*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=\$ac_optarg ;;
1281 -without-* | --without-*)
1282 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1283 # Reject names that are not valid shell variable names.
1284 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1285 as_fn_error $? "invalid package name: $ac_useropt"
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1290 "with_$ac_useropt"
1291 "*) ;;
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1294 esac
1295 eval with_$ac_useropt=no ;;
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1315 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1316 Try \`$0 --help' for more information"
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 case $ac_envvar in #(
1323 '' | [0-9]* | *[!_$as_cr_alnum]* )
1324 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1325 esac
1326 eval $ac_envvar=\$ac_optarg
1327 export $ac_envvar ;;
1330 # FIXME: should be removed in autoconf 3.0.
1331 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337 esac
1338 done
1340 if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 as_fn_error $? "missing argument to $ac_option"
1345 if test -n "$ac_unrecognized_opts"; then
1346 case $enable_option_checking in
1347 no) ;;
1348 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1349 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 esac
1353 # Check all directory arguments for consistency.
1354 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1355 datadir sysconfdir sharedstatedir localstatedir includedir \
1356 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1357 libdir localedir mandir
1359 eval ac_val=\$$ac_var
1360 # Remove trailing slashes.
1361 case $ac_val in
1362 */ )
1363 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1364 eval $ac_var=\$ac_val;;
1365 esac
1366 # Be sure to have absolute directory names.
1367 case $ac_val in
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1370 esac
1371 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1372 done
1374 # There might be people who depend on the old broken behavior: `$host'
1375 # used to hold the argument of --host etc.
1376 # FIXME: To remove some day.
1377 build=$build_alias
1378 host=$host_alias
1379 target=$target_alias
1381 # FIXME: To remove some day.
1382 if test "x$host_alias" != x; then
1383 if test "x$build_alias" = x; then
1384 cross_compiling=maybe
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393 test "$silent" = yes && exec 6>/dev/null
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 as_fn_error $? "working directory cannot be determined"
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 as_fn_error $? "pwd does not report name of working directory"
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$as_myself" : 'X\(//\)[^/]' \| \
1411 X"$as_myself" : 'X\(//\)$' \| \
1412 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415 s//\1/
1418 /^X\(\/\/\)[^/].*/{
1419 s//\1/
1422 /^X\(\/\/\)$/{
1423 s//\1/
1426 /^X\(\/\).*/{
1427 s//\1/
1430 s/.*/./; q'`
1431 srcdir=$ac_confdir
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1433 srcdir=..
1435 else
1436 ac_srcdir_defaulted=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1443 ac_abs_confdir=`(
1444 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1445 pwd)`
1446 # When building in place, set srcdir=.
1447 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 srcdir=.
1450 # Remove unnecessary trailing slashes from srcdir.
1451 # Double slashes in file names in object file debugging info
1452 # mess up M-x gdb in Emacs.
1453 case $srcdir in
1454 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1455 esac
1456 for ac_var in $ac_precious_vars; do
1457 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_env_${ac_var}_value=\$${ac_var}
1459 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 done
1464 # Report the --help message.
1466 if test "$ac_init_help" = "long"; then
1467 # Omit some internal or obsolete options to make the list less imposing.
1468 # This message is too long to be a string in the A/UX 3.1 sh.
1469 cat <<_ACEOF
1470 \`configure' configures sqlite 3.47.0 to adapt to many kinds of systems.
1472 Usage: $0 [OPTION]... [VAR=VALUE]...
1474 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1475 VAR=VALUE. See below for descriptions of some of the useful variables.
1477 Defaults for the options are specified in brackets.
1479 Configuration:
1480 -h, --help display this help and exit
1481 --help=short display options specific to this package
1482 --help=recursive display the short help of all the included packages
1483 -V, --version display version information and exit
1484 -q, --quiet, --silent do not print \`checking ...' messages
1485 --cache-file=FILE cache test results in FILE [disabled]
1486 -C, --config-cache alias for \`--cache-file=config.cache'
1487 -n, --no-create do not create output files
1488 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1490 Installation directories:
1491 --prefix=PREFIX install architecture-independent files in PREFIX
1492 [$ac_default_prefix]
1493 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 [PREFIX]
1496 By default, \`make install' will install all the files in
1497 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1498 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1499 for instance \`--prefix=\$HOME'.
1501 For better control, use the options below.
1503 Fine tuning of the installation directories:
1504 --bindir=DIR user executables [EPREFIX/bin]
1505 --sbindir=DIR system admin executables [EPREFIX/sbin]
1506 --libexecdir=DIR program executables [EPREFIX/libexec]
1507 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1508 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1509 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1510 --libdir=DIR object code libraries [EPREFIX/lib]
1511 --includedir=DIR C header files [PREFIX/include]
1512 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1513 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1514 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1515 --infodir=DIR info documentation [DATAROOTDIR/info]
1516 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1517 --mandir=DIR man documentation [DATAROOTDIR/man]
1518 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1519 --htmldir=DIR html documentation [DOCDIR]
1520 --dvidir=DIR dvi documentation [DOCDIR]
1521 --pdfdir=DIR pdf documentation [DOCDIR]
1522 --psdir=DIR ps documentation [DOCDIR]
1523 _ACEOF
1525 cat <<\_ACEOF
1527 System types:
1528 --build=BUILD configure for building on BUILD [guessed]
1529 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1530 _ACEOF
1533 if test -n "$ac_init_help"; then
1534 case $ac_init_help in
1535 short | recursive ) echo "Configuration of sqlite 3.47.0:";;
1536 esac
1537 cat <<\_ACEOF
1539 Optional Features:
1540 --disable-option-checking ignore unrecognized --enable/--with options
1541 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1542 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1543 --enable-shared[=PKGS] build shared libraries [default=yes]
1544 --enable-static[=PKGS] build static libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1548 --disable-largefile omit support for large files
1549 --disable-tcl omit building accessory programs that require
1550 TCL-dev
1551 --enable-test-status Full-screen status of tests
1552 --disable-threadsafe Disable mutexing
1553 --enable-releasemode Support libtool link to release mode
1554 --enable-tempstore Use an in-ram database for temporary tables
1555 (never,no,yes,always)
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 --disable-json Disable JSON functions
1565 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
1566 --enable-memsys5 Enable MEMSYS5
1567 --enable-memsys3 Enable MEMSYS3
1568 --enable-fts3 Enable the FTS3 extension
1569 --enable-fts4 Enable the FTS4 extension
1570 --enable-fts5 Enable the FTS5 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
1577 Optional 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-tclsh=PATHNAME full pathname of a tclsh to use
1584 --with-tcl=DIR directory containing (tclConfig.sh)
1585 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1586 cross-compile to WASM.
1587 --with-readline-lib specify readline library
1588 --with-readline-inc specify readline include paths
1589 --with-linenoise=DIR source directory for linenoise library
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CPP C preprocessor
1600 TCLLIBDIR Where to install tcl plugin
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1606 _ACEOF
1607 ac_status=$?
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
1616 ac_builddir=.
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1634 case $srcdir in
1635 .) # We are building in place.
1636 ac_srcdir=.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 sqlite configure 3.47.0
1669 generated by GNU Autoconf 2.69
1671 Copyright (C) 2012 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_c_try_compile
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_link ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=1
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_link
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_c_try_cpp LINENO
1798 # ----------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_cpp
1834 # ac_fn_c_try_run LINENO
1835 # ----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837 # that executables *can* be run.
1838 ac_fn_c_try_run ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852 { { case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_try") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; }; }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: program exited with status $ac_status" >&5
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=$ac_status
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_run
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1898 #ifdef __STDC__
1899 # include <limits.h>
1900 #else
1901 # include <assert.h>
1902 #endif
1904 #undef $2
1906 /* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909 #ifdef __cplusplus
1910 extern "C"
1911 #endif
1912 char $2 ();
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined __stub_$2 || defined __stub___$2
1917 choke me
1918 #endif
1921 main ()
1923 return $2 ();
1925 return 0;
1927 _ACEOF
1928 if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1933 rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 } # ac_fn_c_check_func
1943 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1944 # -------------------------------------------
1945 # Tests whether TYPE exists after having included INCLUDES, setting cache
1946 # variable VAR accordingly.
1947 ac_fn_c_check_type ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 eval "$3=no"
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 if (sizeof ($2))
1963 return 0;
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 main ()
1975 if (sizeof (($2)))
1976 return 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1983 else
1984 eval "$3=yes"
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_type
1997 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000 # the include files in INCLUDES and setting the cache variable VAR
2001 # accordingly.
2002 ac_fn_c_check_header_mongrel ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if eval \${$3+:} false; then :
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 else
2015 # Is the header compilable?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017 $as_echo_n "checking $2 usability... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_header_compiler=yes
2025 else
2026 ac_header_compiler=no
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030 $as_echo "$ac_header_compiler" >&6; }
2032 # Is the header present?
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034 $as_echo_n "checking $2 presence... " >&6; }
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_cpp "$LINENO"; then :
2040 ac_header_preproc=yes
2041 else
2042 ac_header_preproc=no
2044 rm -f conftest.err conftest.i conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046 $as_echo "$ac_header_preproc" >&6; }
2048 # So? What about this header?
2049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050 yes:no: )
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 no:yes:* )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2060 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2064 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 esac
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 eval "$3=\$ac_header_compiler"
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_header_mongrel
2083 cat >config.log <<_ACEOF
2084 This file contains any messages produced by compilers while
2085 running configure, to aid debugging if configure makes a mistake.
2087 It was created by sqlite $as_me 3.47.0, which was
2088 generated by GNU Autoconf 2.69. Invocation command line was
2090 $ $0 $@
2092 _ACEOF
2093 exec 5>>config.log
2095 cat <<_ASUNAME
2096 ## --------- ##
2097 ## Platform. ##
2098 ## --------- ##
2100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2117 _ASUNAME
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 $as_echo "PATH: $as_dir"
2125 done
2126 IFS=$as_save_IFS
2128 } >&5
2130 cat >&5 <<_ACEOF
2133 ## ----------- ##
2134 ## Core tests. ##
2135 ## ----------- ##
2137 _ACEOF
2140 # Keep a trace of the command line.
2141 # Strip out --no-create and --no-recursion so they do not pile up.
2142 # Strip out --silent because we don't want to record it for future runs.
2143 # Also quote any args containing shell meta-characters.
2144 # Make two passes to allow for proper duplicate-argument suppression.
2145 ac_configure_args=
2146 ac_configure_args0=
2147 ac_configure_args1=
2148 ac_must_keep_next=false
2149 for ac_pass in 1 2
2151 for ac_arg
2153 case $ac_arg in
2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2156 | -silent | --silent | --silen | --sile | --sil)
2157 continue ;;
2158 *\'*)
2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 esac
2161 case $ac_pass in
2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164 as_fn_append ac_configure_args1 " '$ac_arg'"
2165 if test $ac_must_keep_next = true; then
2166 ac_must_keep_next=false # Got value, back to normal.
2167 else
2168 case $ac_arg in
2169 *=* | --config-cache | -C | -disable-* | --disable-* \
2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2172 | -with-* | --with-* | -without-* | --without-* | --x)
2173 case "$ac_configure_args0 " in
2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2175 esac
2177 -* ) ac_must_keep_next=true ;;
2178 esac
2180 as_fn_append ac_configure_args " '$ac_arg'"
2182 esac
2183 done
2184 done
2185 { ac_configure_args0=; unset ac_configure_args0;}
2186 { ac_configure_args1=; unset ac_configure_args1;}
2188 # When interrupted or exit'd, cleanup temporary files, and complete
2189 # config.log. We remove comments because anyway the quotes in there
2190 # would cause problems or look ugly.
2191 # WARNING: Use '\'' to represent an apostrophe within the trap.
2192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2193 trap 'exit_status=$?
2194 # Save into config.log some information that might help in debugging.
2196 echo
2198 $as_echo "## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##"
2201 echo
2202 # The following way of writing the cache mishandles newlines in values,
2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in #(
2207 *${as_nl}*)
2208 case $ac_var in #(
2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2211 esac
2212 case $ac_var in #(
2213 _ | IFS | as_nl) ;; #(
2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2215 *) { eval $ac_var=; unset $ac_var;} ;;
2216 esac ;;
2217 esac
2218 done
2219 (set) 2>&1 |
2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2221 *${as_nl}ac_space=\ *)
2222 sed -n \
2223 "s/'\''/'\''\\\\'\'''\''/g;
2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2225 ;; #(
2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2229 esac |
2230 sort
2232 echo
2234 $as_echo "## ----------------- ##
2235 ## Output variables. ##
2236 ## ----------------- ##"
2237 echo
2238 for ac_var in $ac_subst_vars
2240 eval ac_val=\$$ac_var
2241 case $ac_val in
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243 esac
2244 $as_echo "$ac_var='\''$ac_val'\''"
2245 done | sort
2246 echo
2248 if test -n "$ac_subst_files"; then
2249 $as_echo "## ------------------- ##
2250 ## File substitutions. ##
2251 ## ------------------- ##"
2252 echo
2253 for ac_var in $ac_subst_files
2255 eval ac_val=\$$ac_var
2256 case $ac_val in
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258 esac
2259 $as_echo "$ac_var='\''$ac_val'\''"
2260 done | sort
2261 echo
2264 if test -s confdefs.h; then
2265 $as_echo "## ----------- ##
2266 ## confdefs.h. ##
2267 ## ----------- ##"
2268 echo
2269 cat confdefs.h
2270 echo
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2275 } >&5
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 exit $exit_status
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 done
2283 ac_signal=0
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2294 _ACEOF
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298 _ACEOF
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2302 _ACEOF
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2314 _ACEOF
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2319 ac_site_file1=NONE
2320 ac_site_file2=NONE
2321 if test -n "$CONFIG_SITE"; then
2322 # We do not want a PATH search for config.site.
2323 case $CONFIG_SITE in #((
2324 -*) ac_site_file1=./$CONFIG_SITE;;
2325 */*) ac_site_file1=$CONFIG_SITE;;
2326 *) ac_site_file1=./$CONFIG_SITE;;
2327 esac
2328 elif test "x$prefix" != xNONE; then
2329 ac_site_file1=$prefix/share/config.site
2330 ac_site_file2=$prefix/etc/config.site
2331 else
2332 ac_site_file1=$ac_default_prefix/share/config.site
2333 ac_site_file2=$ac_default_prefix/etc/config.site
2335 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337 test "x$ac_site_file" = xNONE && continue
2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341 sed 's/^/| /' "$ac_site_file" >&5
2342 . "$ac_site_file" \
2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 as_fn_error $? "failed to load site script $ac_site_file
2346 See \`config.log' for more details" "$LINENO" 5; }
2348 done
2350 if test -r "$cache_file"; then
2351 # Some versions of bash will fail to source /dev/null (special files
2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355 $as_echo "$as_me: loading cache $cache_file" >&6;}
2356 case $cache_file in
2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2358 *) . "./$cache_file";;
2359 esac
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363 $as_echo "$as_me: creating cache $cache_file" >&6;}
2364 >$cache_file
2367 # Check that the precious variables saved in the cache have kept the same
2368 # value.
2369 ac_cache_corrupted=false
2370 for ac_var in $ac_precious_vars; do
2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372 eval ac_new_set=\$ac_env_${ac_var}_set
2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374 eval ac_new_val=\$ac_env_${ac_var}_value
2375 case $ac_old_set,$ac_new_set in
2376 set,)
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2380 ,set)
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2382 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2384 ,);;
2386 if test "x$ac_old_val" != "x$ac_new_val"; then
2387 # differences in whitespace do not lead to failure.
2388 ac_old_val_w=`echo x $ac_old_val`
2389 ac_new_val_w=`echo x $ac_new_val`
2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2393 ac_cache_corrupted=:
2394 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2396 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397 eval $ac_var=\$ac_old_val
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2403 fi;;
2404 esac
2405 # Pass precious variables to config.status.
2406 if test "$ac_new_set" = set; then
2407 case $ac_new_val in
2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 *) ac_arg=$ac_var=$ac_new_val ;;
2410 esac
2411 case " $ac_configure_args " in
2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 esac
2416 done
2417 if $ac_cache_corrupted; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424 ## -------------------- ##
2425 ## Main body of script. ##
2426 ## -------------------- ##
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2437 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2438 as_fn_error $? "configure script is out of date:
2439 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2440 top level VERSION file = $sqlite_version_sanity_check
2441 please regen with autoconf" "$LINENO" 5
2444 #########
2445 # Programs needed
2447 case `pwd` in
2448 *\ * | *\ *)
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2451 esac
2455 macro_version='2.2.6'
2456 macro_revision='1.3012'
2470 ltmain="$ac_aux_dir/ltmain.sh"
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2506 $as_echo_n "checking build system type... " >&6; }
2507 if ${ac_cv_build+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2520 $as_echo "$ac_cv_build" >&6; }
2521 case $ac_cv_build in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2524 esac
2525 build=$ac_cv_build
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_build
2528 shift
2529 build_cpu=$1
2530 build_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 build_os=$*
2535 IFS=$ac_save_IFS
2536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2540 $as_echo_n "checking host system type... " >&6; }
2541 if ${ac_cv_host+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test "x$host_alias" = x; then
2545 ac_cv_host=$ac_cv_build
2546 else
2547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2553 $as_echo "$ac_cv_host" >&6; }
2554 case $ac_cv_host in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2557 esac
2558 host=$ac_cv_host
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_host
2561 shift
2562 host_cpu=$1
2563 host_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 host_os=$*
2568 IFS=$ac_save_IFS
2569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 CC=$ac_cv_prog_CC
2606 if test -n "$CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2608 $as_echo "$CC" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2616 if test -z "$ac_cv_prog_CC"; then
2617 ac_ct_CC=$CC
2618 # Extract the first word of "gcc", so it can be a program name with args.
2619 set dummy gcc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_ac_ct_CC="gcc"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2639 done
2640 done
2641 IFS=$as_save_IFS
2645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646 if test -n "$ac_ct_CC"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2648 $as_echo "$ac_ct_CC" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2654 if test "x$ac_ct_CC" = x; then
2655 CC=""
2656 else
2657 case $cross_compiling:$ac_tool_warned in
2658 yes:)
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2661 ac_tool_warned=yes ;;
2662 esac
2663 CC=$ac_ct_CC
2665 else
2666 CC="$ac_cv_prog_CC"
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}cc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_CC="${ac_tool_prefix}cc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2694 IFS=$as_save_IFS
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 $as_echo "$CC" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_CC+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 ac_prog_rejected=no
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2733 ac_cv_prog_CC="cc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2739 IFS=$as_save_IFS
2741 if test $ac_prog_rejected = yes; then
2742 # We found a bogon in the path, so make sure we never use it.
2743 set dummy $ac_cv_prog_CC
2744 shift
2745 if test $# != 0; then
2746 # We chose a different compiler from the bogus one.
2747 # However, it has the same basename, so the bogon will be chosen
2748 # first if we set CC to just the basename; use the full file name.
2749 shift
2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl.exe
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_CC+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2791 done
2792 done
2793 IFS=$as_save_IFS
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2807 test -n "$CC" && break
2808 done
2810 if test -z "$CC"; then
2811 ac_ct_CC=$CC
2812 for ac_prog in cl.exe
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_CC="$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2837 IFS=$as_save_IFS
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844 $as_echo "$ac_ct_CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2851 test -n "$ac_ct_CC" && break
2852 done
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863 CC=$ac_ct_CC
2870 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 as_fn_error $? "no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details" "$LINENO" 5; }
2875 # Provide some information about the compiler.
2876 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2877 set X $ac_compile
2878 ac_compiler=$2
2879 for ac_option in --version -v -V -qversion; do
2880 { { ac_try="$ac_compiler $ac_option >&5"
2881 case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2888 ac_status=$?
2889 if test -s conftest.err; then
2890 sed '10a\
2891 ... rest of stderr output deleted ...
2892 10q' conftest.err >conftest.er1
2893 cat conftest.er1 >&5
2895 rm -f conftest.er1 conftest.err
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; }
2898 done
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2904 main ()
2908 return 0;
2910 _ACEOF
2911 ac_clean_files_save=$ac_clean_files
2912 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2913 # Try to create an executable without -o first, disregard a.out.
2914 # It will help us diagnose broken compilers, and finding out an intuition
2915 # of exeext.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2917 $as_echo_n "checking whether the C compiler works... " >&6; }
2918 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920 # The possible output files:
2921 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923 ac_rmfiles=
2924 for ac_file in $ac_files
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2929 esac
2930 done
2931 rm -f $ac_rmfiles
2933 if { { ac_try="$ac_link_default"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_link_default") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; then :
2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2947 # so that the user can short-circuit this test for compilers unknown to
2948 # Autoconf.
2949 for ac_file in $ac_files ''
2951 test -f "$ac_file" || continue
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955 [ab].out )
2956 # We found the default executable, but exeext='' is most
2957 # certainly right.
2958 break;;
2959 *.* )
2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 then :; else
2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964 # We set ac_cv_exeext here because the later test for it is not
2965 # safe: cross compilers may not add the suffix if given an `-o'
2966 # argument, so we may need to know it at that point already.
2967 # Even if this section looks crufty: it has the advantage of
2968 # actually working.
2969 break;;
2971 break;;
2972 esac
2973 done
2974 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976 else
2977 ac_file=''
2979 if test -z "$ac_file"; then :
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 $as_echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error 77 "C compiler cannot create executables
2988 See \`config.log' for more details" "$LINENO" 5; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991 $as_echo "yes" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2994 $as_echo_n "checking for C compiler default output file name... " >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2996 $as_echo "$ac_file" >&6; }
2997 ac_exeext=$ac_cv_exeext
2999 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3000 ac_clean_files=$ac_clean_files_save
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3002 $as_echo_n "checking for suffix of executables... " >&6; }
3003 if { { ac_try="$ac_link"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_link") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }; then :
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 # `rm'.
3018 for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 break;;
3024 * ) break;;
3025 esac
3026 done
3027 else
3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details" "$LINENO" 5; }
3033 rm -f conftest conftest$ac_cv_exeext
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3035 $as_echo "$ac_cv_exeext" >&6; }
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3039 ac_exeext=$EXEEXT
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042 #include <stdio.h>
3044 main ()
3046 FILE *f = fopen ("conftest.out", "w");
3047 return ferror (f) || fclose (f) != 0;
3050 return 0;
3052 _ACEOF
3053 ac_clean_files="$ac_clean_files conftest.out"
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3057 $as_echo_n "checking whether we are cross compiling... " >&6; }
3058 if test "$cross_compiling" != yes; then
3059 { { ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 if { ac_try='./conftest$ac_cv_exeext'
3071 { { case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; }; then
3081 cross_compiling=no
3082 else
3083 if test "$cross_compiling" = maybe; then
3084 cross_compiling=yes
3085 else
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details" "$LINENO" 5; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3095 $as_echo "$cross_compiling" >&6; }
3097 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3098 ac_clean_files=$ac_clean_files_save
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3100 $as_echo_n "checking for suffix of object files... " >&6; }
3101 if ${ac_cv_objext+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.o conftest.obj
3116 if { { ac_try="$ac_compile"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_compile") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
3127 for ac_file in conftest.o conftest.obj conftest.*; do
3128 test -f "$ac_file" || continue;
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3132 break;;
3133 esac
3134 done
3135 else
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error $? "cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details" "$LINENO" 5; }
3144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3147 $as_echo "$ac_cv_objext" >&6; }
3148 OBJEXT=$ac_cv_objext
3149 ac_objext=$OBJEXT
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3152 if ${ac_cv_c_compiler_gnu+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3159 main ()
3161 #ifndef __GNUC__
3162 choke me
3163 #endif
3166 return 0;
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170 ac_compiler_gnu=yes
3171 else
3172 ac_compiler_gnu=no
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3179 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3180 if test $ac_compiler_gnu = yes; then
3181 GCC=yes
3182 else
3183 GCC=
3185 ac_test_CFLAGS=${CFLAGS+set}
3186 ac_save_CFLAGS=$CFLAGS
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3188 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3189 if ${ac_cv_prog_cc_g+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 ac_save_c_werror_flag=$ac_c_werror_flag
3193 ac_c_werror_flag=yes
3194 ac_cv_prog_cc_g=no
3195 CFLAGS="-g"
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208 ac_cv_prog_cc_g=yes
3209 else
3210 CFLAGS=""
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 if ac_fn_c_try_compile "$LINENO"; then :
3224 else
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3226 CFLAGS="-g"
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 if ac_fn_c_try_compile "$LINENO"; then :
3239 ac_cv_prog_cc_g=yes
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3249 $as_echo "$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
3255 else
3256 CFLAGS="-g"
3258 else
3259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
3261 else
3262 CFLAGS=
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3266 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3267 if ${ac_cv_prog_cc_c89+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 ac_cv_prog_cc_c89=no
3271 ac_save_CC=$CC
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdarg.h>
3275 #include <stdio.h>
3276 struct stat;
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3281 char **p;
3282 int i;
3284 return p[i];
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307 #define FOO(x) 'x'
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3317 main ()
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3321 return 0;
3323 _ACEOF
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 CC="$ac_save_CC $ac_arg"
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_c89=$ac_arg
3331 rm -f core conftest.err conftest.$ac_objext
3332 test "x$ac_cv_prog_cc_c89" != "xno" && break
3333 done
3334 rm -f conftest.$ac_ext
3335 CC=$ac_save_CC
3338 # AC_CACHE_VAL
3339 case "x$ac_cv_prog_cc_c89" in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3342 $as_echo "none needed" >&6; } ;;
3343 xno)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3345 $as_echo "unsupported" >&6; } ;;
3347 CC="$CC $ac_cv_prog_cc_c89"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3350 esac
3351 if test "x$ac_cv_prog_cc_c89" != xno; then :
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3362 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3363 if ${ac_cv_path_SED+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3367 for ac_i in 1 2 3 4 5 6 7; do
3368 ac_script="$ac_script$as_nl$ac_script"
3369 done
3370 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3371 { ac_script=; unset ac_script;}
3372 if test -z "$SED"; then
3373 ac_path_SED_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in sed gsed; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3383 as_fn_executable_p "$ac_path_SED" || continue
3384 # Check for GNU ac_path_SED and select it if it is found.
3385 # Check for GNU $ac_path_SED
3386 case `"$ac_path_SED" --version 2>&1` in
3387 *GNU*)
3388 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3390 ac_count=0
3391 $as_echo_n 0123456789 >"conftest.in"
3392 while :
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
3397 $as_echo '' >> "conftest.nl"
3398 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 as_fn_arith $ac_count + 1 && ac_count=$as_val
3401 if test $ac_count -gt ${ac_path_SED_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_SED="$ac_path_SED"
3404 ac_path_SED_max=$ac_count
3406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3408 done
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410 esac
3412 $ac_path_SED_found && break 3
3413 done
3414 done
3415 done
3416 IFS=$as_save_IFS
3417 if test -z "$ac_cv_path_SED"; then
3418 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3420 else
3421 ac_cv_path_SED=$SED
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3426 $as_echo "$ac_cv_path_SED" >&6; }
3427 SED="$ac_cv_path_SED"
3428 rm -f conftest.sed
3430 test -z "$SED" && SED=sed
3431 Xsed="$SED -e 1s/^X//"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3444 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3445 if ${ac_cv_path_GREP+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -z "$GREP"; then
3449 ac_path_GREP_found=false
3450 # Loop through the user's path and test for each of PROGNAME-LIST
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_prog in grep ggrep; do
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3459 as_fn_executable_p "$ac_path_GREP" || continue
3460 # Check for GNU ac_path_GREP and select it if it is found.
3461 # Check for GNU $ac_path_GREP
3462 case `"$ac_path_GREP" --version 2>&1` in
3463 *GNU*)
3464 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3466 ac_count=0
3467 $as_echo_n 0123456789 >"conftest.in"
3468 while :
3470 cat "conftest.in" "conftest.in" >"conftest.tmp"
3471 mv "conftest.tmp" "conftest.in"
3472 cp "conftest.in" "conftest.nl"
3473 $as_echo 'GREP' >> "conftest.nl"
3474 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3476 as_fn_arith $ac_count + 1 && ac_count=$as_val
3477 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3478 # Best one so far, save it but keep looking for a better one
3479 ac_cv_path_GREP="$ac_path_GREP"
3480 ac_path_GREP_max=$ac_count
3482 # 10*(2^10) chars as input seems more than enough
3483 test $ac_count -gt 10 && break
3484 done
3485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3486 esac
3488 $ac_path_GREP_found && break 3
3489 done
3490 done
3491 done
3492 IFS=$as_save_IFS
3493 if test -z "$ac_cv_path_GREP"; then
3494 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3496 else
3497 ac_cv_path_GREP=$GREP
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3502 $as_echo "$ac_cv_path_GREP" >&6; }
3503 GREP="$ac_cv_path_GREP"
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3507 $as_echo_n "checking for egrep... " >&6; }
3508 if ${ac_cv_path_EGREP+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3512 then ac_cv_path_EGREP="$GREP -E"
3513 else
3514 if test -z "$EGREP"; then
3515 ac_path_EGREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in egrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3525 as_fn_executable_p "$ac_path_EGREP" || continue
3526 # Check for GNU ac_path_EGREP and select it if it is found.
3527 # Check for GNU $ac_path_EGREP
3528 case `"$ac_path_EGREP" --version 2>&1` in
3529 *GNU*)
3530 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'EGREP' >> "conftest.nl"
3540 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_EGREP="$ac_path_EGREP"
3546 ac_path_EGREP_max=$ac_count
3548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552 esac
3554 $ac_path_EGREP_found && break 3
3555 done
3556 done
3557 done
3558 IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_EGREP"; then
3560 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3562 else
3563 ac_cv_path_EGREP=$EGREP
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3569 $as_echo "$ac_cv_path_EGREP" >&6; }
3570 EGREP="$ac_cv_path_EGREP"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3574 $as_echo_n "checking for fgrep... " >&6; }
3575 if ${ac_cv_path_FGREP+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3579 then ac_cv_path_FGREP="$GREP -F"
3580 else
3581 if test -z "$FGREP"; then
3582 ac_path_FGREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in fgrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3592 as_fn_executable_p "$ac_path_FGREP" || continue
3593 # Check for GNU ac_path_FGREP and select it if it is found.
3594 # Check for GNU $ac_path_FGREP
3595 case `"$ac_path_FGREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3599 ac_count=0
3600 $as_echo_n 0123456789 >"conftest.in"
3601 while :
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 $as_echo 'FGREP' >> "conftest.nl"
3607 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 as_fn_arith $ac_count + 1 && ac_count=$as_val
3610 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_FGREP="$ac_path_FGREP"
3613 ac_path_FGREP_max=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3621 $ac_path_FGREP_found && break 3
3622 done
3623 done
3624 done
3625 IFS=$as_save_IFS
3626 if test -z "$ac_cv_path_FGREP"; then
3627 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3629 else
3630 ac_cv_path_FGREP=$FGREP
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3636 $as_echo "$ac_cv_path_FGREP" >&6; }
3637 FGREP="$ac_cv_path_FGREP"
3640 test -z "$GREP" && GREP=grep
3660 # Check whether --with-gnu-ld was given.
3661 if test "${with_gnu_ld+set}" = set; then :
3662 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3663 else
3664 with_gnu_ld=no
3667 ac_prog=ld
3668 if test "$GCC" = yes; then
3669 # Check if gcc -print-prog-name=ld gives a path.
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3671 $as_echo_n "checking for ld used by $CC... " >&6; }
3672 case $host in
3673 *-*-mingw*)
3674 # gcc leaves a trailing carriage return which upsets mingw
3675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3678 esac
3679 case $ac_prog in
3680 # Accept absolute paths.
3681 [\\/]* | ?:[\\/]*)
3682 re_direlt='/[^/][^/]*/\.\./'
3683 # Canonicalize the pathname of ld
3684 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3685 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3686 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3687 done
3688 test -z "$LD" && LD="$ac_prog"
3691 # If it fails, then pretend we aren't using GCC.
3692 ac_prog=ld
3695 # If it is relative, then search for the first ld in PATH.
3696 with_gnu_ld=unknown
3698 esac
3699 elif test "$with_gnu_ld" = yes; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3701 $as_echo_n "checking for GNU ld... " >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3704 $as_echo_n "checking for non-GNU ld... " >&6; }
3706 if ${lt_cv_path_LD+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -z "$LD"; then
3710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3711 for ac_dir in $PATH; do
3712 IFS="$lt_save_ifs"
3713 test -z "$ac_dir" && ac_dir=.
3714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3715 lt_cv_path_LD="$ac_dir/$ac_prog"
3716 # Check to see if the program is GNU ld. I'd rather use --version,
3717 # but apparently some variants of GNU ld only accept -v.
3718 # Break only if it was the GNU/non-GNU ld that we prefer.
3719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3720 *GNU* | *'with BFD'*)
3721 test "$with_gnu_ld" != no && break
3724 test "$with_gnu_ld" != yes && break
3726 esac
3728 done
3729 IFS="$lt_save_ifs"
3730 else
3731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3735 LD="$lt_cv_path_LD"
3736 if test -n "$LD"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3738 $as_echo "$LD" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3743 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3746 if ${lt_cv_prog_gnu_ld+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3750 case `$LD -v 2>&1 </dev/null` in
3751 *GNU* | *'with BFD'*)
3752 lt_cv_prog_gnu_ld=yes
3755 lt_cv_prog_gnu_ld=no
3757 esac
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3760 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3761 with_gnu_ld=$lt_cv_prog_gnu_ld
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3772 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3773 if ${lt_cv_path_NM+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$NM"; then
3777 # Let the user override the test.
3778 lt_cv_path_NM="$NM"
3779 else
3780 lt_nm_to_check="${ac_tool_prefix}nm"
3781 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3782 lt_nm_to_check="$lt_nm_to_check nm"
3784 for lt_tmp_nm in $lt_nm_to_check; do
3785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3786 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3787 IFS="$lt_save_ifs"
3788 test -z "$ac_dir" && ac_dir=.
3789 tmp_nm="$ac_dir/$lt_tmp_nm"
3790 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3791 # Check to see if the nm accepts a BSD-compat flag.
3792 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3793 # nm: unknown option "B" ignored
3794 # Tru64's nm complains that /dev/null is an invalid object file
3795 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3796 */dev/null* | *'Invalid file or object type'*)
3797 lt_cv_path_NM="$tmp_nm -B"
3798 break
3801 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3802 */dev/null*)
3803 lt_cv_path_NM="$tmp_nm -p"
3804 break
3807 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3808 continue # so that we can try to find one that supports BSD flags
3810 esac
3812 esac
3814 done
3815 IFS="$lt_save_ifs"
3816 done
3817 : ${lt_cv_path_NM=no}
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3821 $as_echo "$lt_cv_path_NM" >&6; }
3822 if test "$lt_cv_path_NM" != "no"; then
3823 NM="$lt_cv_path_NM"
3824 else
3825 # Didn't find any BSD compatible name lister, look for dumpbin.
3826 if test -n "$ac_tool_prefix"; then
3827 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_DUMPBIN+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$DUMPBIN"; then
3837 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3850 done
3851 done
3852 IFS=$as_save_IFS
3856 DUMPBIN=$ac_cv_prog_DUMPBIN
3857 if test -n "$DUMPBIN"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3859 $as_echo "$DUMPBIN" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3866 test -n "$DUMPBIN" && break
3867 done
3869 if test -z "$DUMPBIN"; then
3870 ac_ct_DUMPBIN=$DUMPBIN
3871 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$ac_ct_DUMPBIN"; then
3881 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3894 done
3895 done
3896 IFS=$as_save_IFS
3900 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3901 if test -n "$ac_ct_DUMPBIN"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3903 $as_echo "$ac_ct_DUMPBIN" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3910 test -n "$ac_ct_DUMPBIN" && break
3911 done
3913 if test "x$ac_ct_DUMPBIN" = x; then
3914 DUMPBIN=":"
3915 else
3916 case $cross_compiling:$ac_tool_warned in
3917 yes:)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3921 esac
3922 DUMPBIN=$ac_ct_DUMPBIN
3927 if test "$DUMPBIN" != ":"; then
3928 NM="$DUMPBIN"
3931 test -z "$NM" && NM=nm
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3939 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3940 if ${lt_cv_nm_interface+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 lt_cv_nm_interface="BSD nm"
3944 echo "int some_variable = 0;" > conftest.$ac_ext
3945 (eval echo "\"\$as_me:3945: $ac_compile\"" >&5)
3946 (eval "$ac_compile" 2>conftest.err)
3947 cat conftest.err >&5
3948 (eval echo "\"\$as_me:3948: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3949 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3950 cat conftest.err >&5
3951 (eval echo "\"\$as_me:3951: output\"" >&5)
3952 cat conftest.out >&5
3953 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3954 lt_cv_nm_interface="MS dumpbin"
3956 rm -f conftest*
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3959 $as_echo "$lt_cv_nm_interface" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3962 $as_echo_n "checking whether ln -s works... " >&6; }
3963 LN_S=$as_ln_s
3964 if test "$LN_S" = "ln -s"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3969 $as_echo "no, using $LN_S" >&6; }
3972 # find the maximum length of command line arguments
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3974 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3975 if ${lt_cv_sys_max_cmd_len+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3979 teststring="ABCD"
3981 case $build_os in
3982 msdosdjgpp*)
3983 # On DJGPP, this test can blow up pretty badly due to problems in libc
3984 # (any single argument exceeding 2000 bytes causes a buffer overrun
3985 # during glob expansion). Even if it were fixed, the result of this
3986 # check would be larger than it should be.
3987 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3990 gnu*)
3991 # Under GNU Hurd, this test is not required because there is
3992 # no limit to the length of command line arguments.
3993 # Libtool will interpret -1 as no limit whatsoever
3994 lt_cv_sys_max_cmd_len=-1;
3997 cygwin* | mingw* | cegcc*)
3998 # On Win9x/ME, this test blows up -- it succeeds, but takes
3999 # about 5 minutes as the teststring grows exponentially.
4000 # Worse, since 9x/ME are not pre-emptively multitasking,
4001 # you end up with a "frozen" computer, even though with patience
4002 # the test eventually succeeds (with a max line length of 256k).
4003 # Instead, let's just punt: use the minimum linelength reported by
4004 # all of the supported platforms: 8192 (on NT/2K/XP).
4005 lt_cv_sys_max_cmd_len=8192;
4008 amigaos*)
4009 # On AmigaOS with pdksh, this test takes hours, literally.
4010 # So we just punt and use a minimum line length of 8192.
4011 lt_cv_sys_max_cmd_len=8192;
4014 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4015 # This has been around since 386BSD, at least. Likely further.
4016 if test -x /sbin/sysctl; then
4017 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4018 elif test -x /usr/sbin/sysctl; then
4019 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4020 else
4021 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4023 # And add a safety zone
4024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4028 interix*)
4029 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4030 lt_cv_sys_max_cmd_len=196608
4033 osf*)
4034 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4035 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4036 # nice to cause kernel panics so lets avoid the loop below.
4037 # First set a reasonable default.
4038 lt_cv_sys_max_cmd_len=16384
4040 if test -x /sbin/sysconfig; then
4041 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4042 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4043 esac
4046 sco3.2v5*)
4047 lt_cv_sys_max_cmd_len=102400
4049 sysv5* | sco5v6* | sysv4.2uw2*)
4050 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4051 if test -n "$kargmax"; then
4052 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4053 else
4054 lt_cv_sys_max_cmd_len=32768
4058 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4059 if test -n "$lt_cv_sys_max_cmd_len"; then
4060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4062 else
4063 # Make teststring a little bigger before we do anything with it.
4064 # a 1K string should be a reasonable start.
4065 for i in 1 2 3 4 5 6 7 8 ; do
4066 teststring=$teststring$teststring
4067 done
4068 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4069 # If test is not a shell built-in, we'll probably end up computing a
4070 # maximum length that is only half of the actual maximum length, but
4071 # we can't tell.
4072 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4073 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4074 test $i != 17 # 1/2 MB should be enough
4076 i=`expr $i + 1`
4077 teststring=$teststring$teststring
4078 done
4079 # Only check the string length outside the loop.
4080 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4081 teststring=
4082 # Add a significant safety factor because C++ compilers can tack on
4083 # massive amounts of additional arguments before passing them to the
4084 # linker. It appears as though 1/2 is a usable value.
4085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4088 esac
4092 if test -n $lt_cv_sys_max_cmd_len ; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4094 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4095 else
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4097 $as_echo "none" >&6; }
4099 max_cmd_len=$lt_cv_sys_max_cmd_len
4106 : ${CP="cp -f"}
4107 : ${MV="mv -f"}
4108 : ${RM="rm -f"}
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4111 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4112 # Try some XSI features
4113 xsi_shell=no
4114 ( _lt_dummy="a/b/c"
4115 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4116 = c,a/b,, \
4117 && eval 'test $(( 1 + 1 )) -eq 2 \
4118 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4119 && xsi_shell=yes
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4121 $as_echo "$xsi_shell" >&6; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4125 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4126 lt_shell_append=no
4127 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4128 >/dev/null 2>&1 \
4129 && lt_shell_append=yes
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4131 $as_echo "$lt_shell_append" >&6; }
4134 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4135 lt_unset=unset
4136 else
4137 lt_unset=false
4144 # test EBCDIC or ASCII
4145 case `echo X|tr X '\101'` in
4146 A) # ASCII based system
4147 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4148 lt_SP2NL='tr \040 \012'
4149 lt_NL2SP='tr \015\012 \040\040'
4151 *) # EBCDIC based system
4152 lt_SP2NL='tr \100 \n'
4153 lt_NL2SP='tr \r\n \100\100'
4155 esac
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4166 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4167 if ${lt_cv_ld_reload_flag+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 lt_cv_ld_reload_flag='-r'
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4173 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4174 reload_flag=$lt_cv_ld_reload_flag
4175 case $reload_flag in
4176 "" | " "*) ;;
4177 *) reload_flag=" $reload_flag" ;;
4178 esac
4179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4180 case $host_os in
4181 darwin*)
4182 if test "$GCC" = yes; then
4183 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4184 else
4185 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4188 esac
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_OBJDUMP+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$OBJDUMP"; then
4207 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 OBJDUMP=$ac_cv_prog_OBJDUMP
4227 if test -n "$OBJDUMP"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4229 $as_echo "$OBJDUMP" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4237 if test -z "$ac_cv_prog_OBJDUMP"; then
4238 ac_ct_OBJDUMP=$OBJDUMP
4239 # Extract the first word of "objdump", so it can be a program name with args.
4240 set dummy objdump; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$ac_ct_OBJDUMP"; then
4247 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4267 if test -n "$ac_ct_OBJDUMP"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4269 $as_echo "$ac_ct_OBJDUMP" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4275 if test "x$ac_ct_OBJDUMP" = x; then
4276 OBJDUMP="false"
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 OBJDUMP=$ac_ct_OBJDUMP
4286 else
4287 OBJDUMP="$ac_cv_prog_OBJDUMP"
4290 test -z "$OBJDUMP" && OBJDUMP=objdump
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4301 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4302 if ${lt_cv_deplibs_check_method+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 lt_cv_file_magic_cmd='$MAGIC_CMD'
4306 lt_cv_file_magic_test_file=
4307 lt_cv_deplibs_check_method='unknown'
4308 # Need to set the preceding variable on all platforms that support
4309 # interlibrary dependencies.
4310 # 'none' -- dependencies not supported.
4311 # `unknown' -- same as none, but documents that we really don't know.
4312 # 'pass_all' -- all dependencies passed with no checks.
4313 # 'test_compile' -- check by making test program.
4314 # 'file_magic [[regex]]' -- check by looking for files in library path
4315 # which responds to the $file_magic_cmd with a given extended regex.
4316 # If you have `file' or equivalent on your system and you're not sure
4317 # whether `pass_all' will *always* work, you probably want this one.
4319 case $host_os in
4320 aix[4-9]*)
4321 lt_cv_deplibs_check_method=pass_all
4324 beos*)
4325 lt_cv_deplibs_check_method=pass_all
4328 bsdi[45]*)
4329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4330 lt_cv_file_magic_cmd='/usr/bin/file -L'
4331 lt_cv_file_magic_test_file=/shlib/libc.so
4334 cygwin*)
4335 # func_win32_libid is a shell function defined in ltmain.sh
4336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4337 lt_cv_file_magic_cmd='func_win32_libid'
4340 mingw* | pw32*)
4341 # Base MSYS/MinGW do not provide the 'file' command needed by
4342 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4343 # unless we find 'file', for example because we are cross-compiling.
4344 if ( file / ) >/dev/null 2>&1; then
4345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4346 lt_cv_file_magic_cmd='func_win32_libid'
4347 else
4348 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4349 lt_cv_file_magic_cmd='$OBJDUMP -f'
4353 cegcc)
4354 # use the weaker test based on 'objdump'. See mingw*.
4355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4356 lt_cv_file_magic_cmd='$OBJDUMP -f'
4359 darwin* | rhapsody*)
4360 lt_cv_deplibs_check_method=pass_all
4363 freebsd* | dragonfly*)
4364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4365 case $host_cpu in
4366 i*86 )
4367 # Not sure whether the presence of OpenBSD here was a mistake.
4368 # Let's accept both of them until this is cleared up.
4369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4370 lt_cv_file_magic_cmd=/usr/bin/file
4371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4373 esac
4374 else
4375 lt_cv_deplibs_check_method=pass_all
4379 gnu*)
4380 lt_cv_deplibs_check_method=pass_all
4383 hpux10.20* | hpux11*)
4384 lt_cv_file_magic_cmd=/usr/bin/file
4385 case $host_cpu in
4386 ia64*)
4387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4390 hppa*64*)
4391 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]'
4392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4398 esac
4401 interix[3-9]*)
4402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4406 irix5* | irix6* | nonstopux*)
4407 case $LD in
4408 *-32|*"-32 ") libmagic=32-bit;;
4409 *-n32|*"-n32 ") libmagic=N32;;
4410 *-64|*"-64 ") libmagic=64-bit;;
4411 *) libmagic=never-match;;
4412 esac
4413 lt_cv_deplibs_check_method=pass_all
4416 # This must be Linux ELF.
4417 linux* | k*bsd*-gnu)
4418 lt_cv_deplibs_check_method=pass_all
4421 netbsd*)
4422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4424 else
4425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4429 newos6*)
4430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4431 lt_cv_file_magic_cmd=/usr/bin/file
4432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4435 *nto* | *qnx*)
4436 lt_cv_deplibs_check_method=pass_all
4439 openbsd*)
4440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4442 else
4443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4447 osf3* | osf4* | osf5*)
4448 lt_cv_deplibs_check_method=pass_all
4451 rdos*)
4452 lt_cv_deplibs_check_method=pass_all
4455 solaris*)
4456 lt_cv_deplibs_check_method=pass_all
4459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4460 lt_cv_deplibs_check_method=pass_all
4463 sysv4 | sysv4.3*)
4464 case $host_vendor in
4465 motorola)
4466 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]'
4467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4469 ncr)
4470 lt_cv_deplibs_check_method=pass_all
4472 sequent)
4473 lt_cv_file_magic_cmd='/bin/file'
4474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4476 sni)
4477 lt_cv_file_magic_cmd='/bin/file'
4478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4479 lt_cv_file_magic_test_file=/lib/libc.so
4481 siemens)
4482 lt_cv_deplibs_check_method=pass_all
4485 lt_cv_deplibs_check_method=pass_all
4487 esac
4490 tpf*)
4491 lt_cv_deplibs_check_method=pass_all
4493 esac
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4497 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4498 file_magic_cmd=$lt_cv_file_magic_cmd
4499 deplibs_check_method=$lt_cv_deplibs_check_method
4500 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4513 if test -n "$ac_tool_prefix"; then
4514 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4515 set dummy ${ac_tool_prefix}ar; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_prog_AR+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$AR"; then
4522 ac_cv_prog_AR="$AR" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_AR="${ac_tool_prefix}ar"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 AR=$ac_cv_prog_AR
4542 if test -n "$AR"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4544 $as_echo "$AR" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4552 if test -z "$ac_cv_prog_AR"; then
4553 ac_ct_AR=$AR
4554 # Extract the first word of "ar", so it can be a program name with args.
4555 set dummy ar; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$ac_ct_AR"; then
4562 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_AR="ar"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4582 if test -n "$ac_ct_AR"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4584 $as_echo "$ac_ct_AR" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4590 if test "x$ac_ct_AR" = x; then
4591 AR="false"
4592 else
4593 case $cross_compiling:$ac_tool_warned in
4594 yes:)
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4597 ac_tool_warned=yes ;;
4598 esac
4599 AR=$ac_ct_AR
4601 else
4602 AR="$ac_cv_prog_AR"
4605 test -z "$AR" && AR=ar
4606 test -z "$AR_FLAGS" && AR_FLAGS=cru
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}strip; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_STRIP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$STRIP"; then
4627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 STRIP=$ac_cv_prog_STRIP
4647 if test -n "$STRIP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4649 $as_echo "$STRIP" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_STRIP"; then
4658 ac_ct_STRIP=$STRIP
4659 # Extract the first word of "strip", so it can be a program name with args.
4660 set dummy strip; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_STRIP"; then
4667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_STRIP="strip"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4687 if test -n "$ac_ct_STRIP"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4689 $as_echo "$ac_ct_STRIP" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_STRIP" = x; then
4696 STRIP=":"
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 STRIP=$ac_ct_STRIP
4706 else
4707 STRIP="$ac_cv_prog_STRIP"
4710 test -z "$STRIP" && STRIP=:
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_RANLIB+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$RANLIB"; then
4726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 RANLIB=$ac_cv_prog_RANLIB
4746 if test -n "$RANLIB"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4748 $as_echo "$RANLIB" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4756 if test -z "$ac_cv_prog_RANLIB"; then
4757 ac_ct_RANLIB=$RANLIB
4758 # Extract the first word of "ranlib", so it can be a program name with args.
4759 set dummy ranlib; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$ac_ct_RANLIB"; then
4766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_ac_ct_RANLIB="ranlib"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4781 IFS=$as_save_IFS
4785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4786 if test -n "$ac_ct_RANLIB"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4788 $as_echo "$ac_ct_RANLIB" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4794 if test "x$ac_ct_RANLIB" = x; then
4795 RANLIB=":"
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798 yes:)
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 RANLIB=$ac_ct_RANLIB
4805 else
4806 RANLIB="$ac_cv_prog_RANLIB"
4809 test -z "$RANLIB" && RANLIB=:
4816 # Determine commands to create old-style static archives.
4817 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4818 old_postinstall_cmds='chmod 644 $oldlib'
4819 old_postuninstall_cmds=
4821 if test -n "$RANLIB"; then
4822 case $host_os in
4823 openbsd*)
4824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4829 esac
4830 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4866 # If no C compiler was specified, use CC.
4867 LTCC=${LTCC-"$CC"}
4869 # If no C compiler flags were specified, use CFLAGS.
4870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4872 # Allow CC to be a program name with arguments.
4873 compiler=$CC
4876 # Check for command to grab the raw symbol name followed by C symbol from nm.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4878 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4879 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4883 # These are sane defaults that work on at least a few old systems.
4884 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4886 # Character class describing NM global symbol codes.
4887 symcode='[BCDEGRST]'
4889 # Regexp to match symbols that can be accessed directly from C.
4890 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4892 # Define system-specific variables.
4893 case $host_os in
4894 aix*)
4895 symcode='[BCDT]'
4897 cygwin* | mingw* | pw32* | cegcc*)
4898 symcode='[ABCDGISTW]'
4900 hpux*)
4901 if test "$host_cpu" = ia64; then
4902 symcode='[ABCDEGRST]'
4905 irix* | nonstopux*)
4906 symcode='[BCDEGRST]'
4908 osf*)
4909 symcode='[BCDEGQRST]'
4911 solaris*)
4912 symcode='[BDRT]'
4914 sco3.2v5*)
4915 symcode='[DT]'
4917 sysv4.2uw2*)
4918 symcode='[DT]'
4920 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4921 symcode='[ABDT]'
4923 sysv4)
4924 symcode='[DFNSTU]'
4926 esac
4928 # If we're using GNU nm, then use its standard symbol codes.
4929 case `$NM -V 2>&1` in
4930 *GNU* | *'with BFD'*)
4931 symcode='[ABCDGIRSTW]' ;;
4932 esac
4934 # Transform an extracted symbol line into a proper C declaration.
4935 # Some systems (esp. on ia64) link data and code symbols differently,
4936 # so use this general approach.
4937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4939 # Transform an extracted symbol line into symbol name and symbol address
4940 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4941 lt_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'"
4943 # Handle CRLF in mingw tool chain
4944 opt_cr=
4945 case $build_os in
4946 mingw*)
4947 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4949 esac
4951 # Try without a prefix underscore, then with it.
4952 for ac_symprfx in "" "_"; do
4954 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4955 symxfrm="\\1 $ac_symprfx\\2 \\2"
4957 # Write the raw and C identifiers.
4958 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4959 # Fake it for dumpbin and say T for any non-static function
4960 # and D for any global variable.
4961 # Also find C++ and __fastcall symbols from MSVC++,
4962 # which start with @ or ?.
4963 lt_cv_sys_global_symbol_pipe="$AWK '"\
4964 " {last_section=section; section=\$ 3};"\
4965 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4966 " \$ 0!~/External *\|/{next};"\
4967 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4968 " {if(hide[section]) next};"\
4969 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4970 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4971 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4972 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4973 " ' prfx=^$ac_symprfx"
4974 else
4975 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4978 # Check to see that the pipe works correctly.
4979 pipe_works=no
4981 rm -f conftest*
4982 cat > conftest.$ac_ext <<_LT_EOF
4983 #ifdef __cplusplus
4984 extern "C" {
4985 #endif
4986 char nm_test_var;
4987 void nm_test_func(void);
4988 void nm_test_func(void){}
4989 #ifdef __cplusplus
4991 #endif
4992 int main(){nm_test_var='a';nm_test_func();return(0);}
4993 _LT_EOF
4995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4996 (eval $ac_compile) 2>&5
4997 ac_status=$?
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }; then
5000 # Now try to grab the symbols.
5001 nlist=conftest.nm
5002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5003 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5004 ac_status=$?
5005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5006 test $ac_status = 0; } && test -s "$nlist"; then
5007 # Try sorting and uniquifying the output.
5008 if sort "$nlist" | uniq > "$nlist"T; then
5009 mv -f "$nlist"T "$nlist"
5010 else
5011 rm -f "$nlist"T
5014 # Make sure that we snagged all the symbols we need.
5015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5017 cat <<_LT_EOF > conftest.$ac_ext
5018 #ifdef __cplusplus
5019 extern "C" {
5020 #endif
5022 _LT_EOF
5023 # Now generate the symbol file.
5024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5026 cat <<_LT_EOF >> conftest.$ac_ext
5028 /* The mapping between symbol names and symbols. */
5029 const struct {
5030 const char *name;
5031 void *address;
5033 lt__PROGRAM__LTX_preloaded_symbols[] =
5035 { "@PROGRAM@", (void *) 0 },
5036 _LT_EOF
5037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5038 cat <<\_LT_EOF >> conftest.$ac_ext
5039 {0, (void *) 0}
5042 /* This works around a problem in FreeBSD linker */
5043 #ifdef FREEBSD_WORKAROUND
5044 static const void *lt_preloaded_setup() {
5045 return lt__PROGRAM__LTX_preloaded_symbols;
5047 #endif
5049 #ifdef __cplusplus
5051 #endif
5052 _LT_EOF
5053 # Now try linking the two files.
5054 mv conftest.$ac_objext conftstm.$ac_objext
5055 lt_save_LIBS="$LIBS"
5056 lt_save_CFLAGS="$CFLAGS"
5057 LIBS="conftstm.$ac_objext"
5058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5060 (eval $ac_link) 2>&5
5061 ac_status=$?
5062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5063 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5064 pipe_works=yes
5066 LIBS="$lt_save_LIBS"
5067 CFLAGS="$lt_save_CFLAGS"
5068 else
5069 echo "cannot find nm_test_func in $nlist" >&5
5071 else
5072 echo "cannot find nm_test_var in $nlist" >&5
5074 else
5075 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5077 else
5078 echo "$progname: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5081 rm -rf conftest* conftst*
5083 # Do not use the global_symbol_pipe unless it works.
5084 if test "$pipe_works" = yes; then
5085 break
5086 else
5087 lt_cv_sys_global_symbol_pipe=
5089 done
5093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5094 lt_cv_sys_global_symbol_to_cdecl=
5096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5098 $as_echo "failed" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5101 $as_echo "ok" >&6; }
5126 # Check whether --enable-libtool-lock was given.
5127 if test "${enable_libtool_lock+set}" = set; then :
5128 enableval=$enable_libtool_lock;
5131 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5133 # Some flags need to be propagated to the compiler or linker for good
5134 # libtool support.
5135 case $host in
5136 ia64-*-hpux*)
5137 # Find out which ABI we are using.
5138 echo 'int i;' > conftest.$ac_ext
5139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5140 (eval $ac_compile) 2>&5
5141 ac_status=$?
5142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143 test $ac_status = 0; }; then
5144 case `/usr/bin/file conftest.$ac_objext` in
5145 *ELF-32*)
5146 HPUX_IA64_MODE="32"
5148 *ELF-64*)
5149 HPUX_IA64_MODE="64"
5151 esac
5153 rm -rf conftest*
5155 *-*-irix6*)
5156 # Find out which ABI we are using.
5157 echo '#line 5157 "configure"' > conftest.$ac_ext
5158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5159 (eval $ac_compile) 2>&5
5160 ac_status=$?
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }; then
5163 if test "$lt_cv_prog_gnu_ld" = yes; then
5164 case `/usr/bin/file conftest.$ac_objext` in
5165 *32-bit*)
5166 LD="${LD-ld} -melf32bsmip"
5168 *N32*)
5169 LD="${LD-ld} -melf32bmipn32"
5171 *64-bit*)
5172 LD="${LD-ld} -melf64bmip"
5174 esac
5175 else
5176 case `/usr/bin/file conftest.$ac_objext` in
5177 *32-bit*)
5178 LD="${LD-ld} -32"
5180 *N32*)
5181 LD="${LD-ld} -n32"
5183 *64-bit*)
5184 LD="${LD-ld} -64"
5186 esac
5189 rm -rf conftest*
5192 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5193 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5194 # Find out which ABI we are using.
5195 echo 'int i;' > conftest.$ac_ext
5196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5197 (eval $ac_compile) 2>&5
5198 ac_status=$?
5199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5200 test $ac_status = 0; }; then
5201 case `/usr/bin/file conftest.o` in
5202 *32-bit*)
5203 case $host in
5204 x86_64-*kfreebsd*-gnu)
5205 LD="${LD-ld} -m elf_i386_fbsd"
5207 x86_64-*linux*)
5208 LD="${LD-ld} -m elf_i386"
5210 ppc64-*linux*|powerpc64-*linux*)
5211 LD="${LD-ld} -m elf32ppclinux"
5213 s390x-*linux*)
5214 LD="${LD-ld} -m elf_s390"
5216 sparc64-*linux*)
5217 LD="${LD-ld} -m elf32_sparc"
5219 esac
5221 *64-bit*)
5222 case $host in
5223 x86_64-*kfreebsd*-gnu)
5224 LD="${LD-ld} -m elf_x86_64_fbsd"
5226 x86_64-*linux*)
5227 LD="${LD-ld} -m elf_x86_64"
5229 ppc*-*linux*|powerpc*-*linux*)
5230 LD="${LD-ld} -m elf64ppc"
5232 s390*-*linux*|s390*-*tpf*)
5233 LD="${LD-ld} -m elf64_s390"
5235 sparc*-*linux*)
5236 LD="${LD-ld} -m elf64_sparc"
5238 esac
5240 esac
5242 rm -rf conftest*
5245 *-*-sco3.2v5*)
5246 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5247 SAVE_CFLAGS="$CFLAGS"
5248 CFLAGS="$CFLAGS -belf"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5250 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5251 if ${lt_cv_cc_needs_belf+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5264 main ()
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272 lt_cv_cc_needs_belf=yes
5273 else
5274 lt_cv_cc_needs_belf=no
5276 rm -f core conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 ac_ext=c
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5286 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5289 CFLAGS="$SAVE_CFLAGS"
5292 sparc*-*solaris*)
5293 # Find out which ABI we are using.
5294 echo 'int i;' > conftest.$ac_ext
5295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5296 (eval $ac_compile) 2>&5
5297 ac_status=$?
5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299 test $ac_status = 0; }; then
5300 case `/usr/bin/file conftest.o` in
5301 *64-bit*)
5302 case $lt_cv_prog_gnu_ld in
5303 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5305 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5306 LD="${LD-ld} -64"
5309 esac
5311 esac
5313 rm -rf conftest*
5315 esac
5317 need_locks="$enable_libtool_lock"
5320 case $host_os in
5321 rhapsody* | darwin*)
5322 if test -n "$ac_tool_prefix"; then
5323 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$DSYMUTIL"; then
5331 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5351 if test -n "$DSYMUTIL"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5353 $as_echo "$DSYMUTIL" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5361 if test -z "$ac_cv_prog_DSYMUTIL"; then
5362 ac_ct_DSYMUTIL=$DSYMUTIL
5363 # Extract the first word of "dsymutil", so it can be a program name with args.
5364 set dummy dsymutil; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$ac_ct_DSYMUTIL"; then
5371 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5386 IFS=$as_save_IFS
5390 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5391 if test -n "$ac_ct_DSYMUTIL"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5393 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5399 if test "x$ac_ct_DSYMUTIL" = x; then
5400 DSYMUTIL=":"
5401 else
5402 case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408 DSYMUTIL=$ac_ct_DSYMUTIL
5410 else
5411 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5414 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5416 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_NMEDIT+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$NMEDIT"; then
5423 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 NMEDIT=$ac_cv_prog_NMEDIT
5443 if test -n "$NMEDIT"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5445 $as_echo "$NMEDIT" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5453 if test -z "$ac_cv_prog_NMEDIT"; then
5454 ac_ct_NMEDIT=$NMEDIT
5455 # Extract the first word of "nmedit", so it can be a program name with args.
5456 set dummy nmedit; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$ac_ct_NMEDIT"; then
5463 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5478 IFS=$as_save_IFS
5482 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5483 if test -n "$ac_ct_NMEDIT"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5485 $as_echo "$ac_ct_NMEDIT" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5491 if test "x$ac_ct_NMEDIT" = x; then
5492 NMEDIT=":"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500 NMEDIT=$ac_ct_NMEDIT
5502 else
5503 NMEDIT="$ac_cv_prog_NMEDIT"
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_LIPO+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$LIPO"; then
5515 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5528 done
5529 done
5530 IFS=$as_save_IFS
5534 LIPO=$ac_cv_prog_LIPO
5535 if test -n "$LIPO"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5537 $as_echo "$LIPO" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5545 if test -z "$ac_cv_prog_LIPO"; then
5546 ac_ct_LIPO=$LIPO
5547 # Extract the first word of "lipo", so it can be a program name with args.
5548 set dummy lipo; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_LIPO"; then
5555 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_LIPO="lipo"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5570 IFS=$as_save_IFS
5574 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5575 if test -n "$ac_ct_LIPO"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5577 $as_echo "$ac_ct_LIPO" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5583 if test "x$ac_ct_LIPO" = x; then
5584 LIPO=":"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 LIPO=$ac_ct_LIPO
5594 else
5595 LIPO="$ac_cv_prog_LIPO"
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}otool; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_OTOOL+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$OTOOL"; then
5607 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5622 IFS=$as_save_IFS
5626 OTOOL=$ac_cv_prog_OTOOL
5627 if test -n "$OTOOL"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5629 $as_echo "$OTOOL" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_OTOOL"; then
5638 ac_ct_OTOOL=$OTOOL
5639 # Extract the first word of "otool", so it can be a program name with args.
5640 set dummy otool; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$ac_ct_OTOOL"; then
5647 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_OTOOL="otool"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5660 done
5661 done
5662 IFS=$as_save_IFS
5666 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5667 if test -n "$ac_ct_OTOOL"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5669 $as_echo "$ac_ct_OTOOL" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_OTOOL" = x; then
5676 OTOOL=":"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 OTOOL=$ac_ct_OTOOL
5686 else
5687 OTOOL="$ac_cv_prog_OTOOL"
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_OTOOL64+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$OTOOL64"; then
5699 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 OTOOL64=$ac_cv_prog_OTOOL64
5719 if test -n "$OTOOL64"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5721 $as_echo "$OTOOL64" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5729 if test -z "$ac_cv_prog_OTOOL64"; then
5730 ac_ct_OTOOL64=$OTOOL64
5731 # Extract the first word of "otool64", so it can be a program name with args.
5732 set dummy otool64; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if test -n "$ac_ct_OTOOL64"; then
5739 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_ac_ct_OTOOL64="otool64"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5752 done
5753 done
5754 IFS=$as_save_IFS
5758 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5759 if test -n "$ac_ct_OTOOL64"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5761 $as_echo "$ac_ct_OTOOL64" >&6; }
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5767 if test "x$ac_ct_OTOOL64" = x; then
5768 OTOOL64=":"
5769 else
5770 case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776 OTOOL64=$ac_ct_OTOOL64
5778 else
5779 OTOOL64="$ac_cv_prog_OTOOL64"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5809 $as_echo_n "checking for -single_module linker flag... " >&6; }
5810 if ${lt_cv_apple_cc_single_mod+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 lt_cv_apple_cc_single_mod=no
5814 if test -z "${LT_MULTI_MODULE}"; then
5815 # By default we will add the -single_module flag. You can override
5816 # by either setting the environment variable LT_MULTI_MODULE
5817 # non-empty at configure time, or by adding -multi_module to the
5818 # link flags.
5819 rm -rf libconftest.dylib*
5820 echo "int foo(void){return 1;}" > conftest.c
5821 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5822 -dynamiclib -Wl,-single_module conftest.c" >&5
5823 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5824 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5825 _lt_result=$?
5826 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5827 lt_cv_apple_cc_single_mod=yes
5828 else
5829 cat conftest.err >&5
5831 rm -rf libconftest.dylib*
5832 rm -f conftest.*
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5836 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5838 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5839 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 lt_cv_ld_exported_symbols_list=no
5843 save_LDFLAGS=$LDFLAGS
5844 echo "_main" > conftest.sym
5845 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5850 main ()
5854 return 0;
5856 _ACEOF
5857 if ac_fn_c_try_link "$LINENO"; then :
5858 lt_cv_ld_exported_symbols_list=yes
5859 else
5860 lt_cv_ld_exported_symbols_list=no
5862 rm -f core conftest.err conftest.$ac_objext \
5863 conftest$ac_exeext conftest.$ac_ext
5864 LDFLAGS="$save_LDFLAGS"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5868 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5869 case $host_os in
5870 rhapsody* | darwin1.[012])
5871 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5872 darwin1.*)
5873 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5874 darwin*) # darwin 5.x on
5875 # if running on 10.5 or later, the deployment target defaults
5876 # to the OS version, if on x86, and 10.4, the deployment
5877 # target defaults to 10.4. Don't you love it?
5878 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5879 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5880 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5881 10.[012]*)
5882 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5883 10.*)
5884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5885 esac
5887 esac
5888 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5889 _lt_dar_single_mod='$single_module'
5891 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5892 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5893 else
5894 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5896 if test "$DSYMUTIL" != ":"; then
5897 _lt_dsymutil='~$DSYMUTIL $lib || :'
5898 else
5899 _lt_dsymutil=
5902 esac
5904 ac_ext=c
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5910 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5911 # On Suns, sometimes $CPP names a directory.
5912 if test -n "$CPP" && test -d "$CPP"; then
5913 CPP=
5915 if test -z "$CPP"; then
5916 if ${ac_cv_prog_CPP+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 # Double quotes because CPP needs to be expanded
5920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5922 ac_preproc_ok=false
5923 for ac_c_preproc_warn_flag in '' yes
5925 # Use a header file that comes with gcc, so configuring glibc
5926 # with a fresh cross-compiler works.
5927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928 # <limits.h> exists even on freestanding compilers.
5929 # On the NeXT, cc -E runs the code through the compiler's parser,
5930 # not just through cpp. "Syntax error" is here to catch this case.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #ifdef __STDC__
5934 # include <limits.h>
5935 #else
5936 # include <assert.h>
5937 #endif
5938 Syntax error
5939 _ACEOF
5940 if ac_fn_c_try_cpp "$LINENO"; then :
5942 else
5943 # Broken: fails on valid input.
5944 continue
5946 rm -f conftest.err conftest.i conftest.$ac_ext
5948 # OK, works on sane cases. Now check whether nonexistent headers
5949 # can be detected and how.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if ac_fn_c_try_cpp "$LINENO"; then :
5955 # Broken: success on invalid input.
5956 continue
5957 else
5958 # Passes both tests.
5959 ac_preproc_ok=:
5960 break
5962 rm -f conftest.err conftest.i conftest.$ac_ext
5964 done
5965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5966 rm -f conftest.i conftest.err conftest.$ac_ext
5967 if $ac_preproc_ok; then :
5968 break
5971 done
5972 ac_cv_prog_CPP=$CPP
5975 CPP=$ac_cv_prog_CPP
5976 else
5977 ac_cv_prog_CPP=$CPP
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5980 $as_echo "$CPP" >&6; }
5981 ac_preproc_ok=false
5982 for ac_c_preproc_warn_flag in '' yes
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997 Syntax error
5998 _ACEOF
5999 if ac_fn_c_try_cpp "$LINENO"; then :
6001 else
6002 # Broken: fails on valid input.
6003 continue
6005 rm -f conftest.err conftest.i conftest.$ac_ext
6007 # OK, works on sane cases. Now check whether nonexistent headers
6008 # can be detected and how.
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <ac_nonexistent.h>
6012 _ACEOF
6013 if ac_fn_c_try_cpp "$LINENO"; then :
6014 # Broken: success on invalid input.
6015 continue
6016 else
6017 # Passes both tests.
6018 ac_preproc_ok=:
6019 break
6021 rm -f conftest.err conftest.i conftest.$ac_ext
6023 done
6024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025 rm -f conftest.i conftest.err conftest.$ac_ext
6026 if $ac_preproc_ok; then :
6028 else
6029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6032 See \`config.log' for more details" "$LINENO" 5; }
6035 ac_ext=c
6036 ac_cpp='$CPP $CPPFLAGS'
6037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6043 $as_echo_n "checking for ANSI C header files... " >&6; }
6044 if ${ac_cv_header_stdc+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #include <stdlib.h>
6050 #include <stdarg.h>
6051 #include <string.h>
6052 #include <float.h>
6055 main ()
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 ac_cv_header_stdc=yes
6064 else
6065 ac_cv_header_stdc=no
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 if test $ac_cv_header_stdc = yes; then
6070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <string.h>
6075 _ACEOF
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "memchr" >/dev/null 2>&1; then :
6079 else
6080 ac_cv_header_stdc=no
6082 rm -f conftest*
6086 if test $ac_cv_header_stdc = yes; then
6087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 #include <stdlib.h>
6092 _ACEOF
6093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "free" >/dev/null 2>&1; then :
6096 else
6097 ac_cv_header_stdc=no
6099 rm -f conftest*
6103 if test $ac_cv_header_stdc = yes; then
6104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6105 if test "$cross_compiling" = yes; then :
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <ctype.h>
6111 #include <stdlib.h>
6112 #if ((' ' & 0x0FF) == 0x020)
6113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6115 #else
6116 # define ISLOWER(c) \
6117 (('a' <= (c) && (c) <= 'i') \
6118 || ('j' <= (c) && (c) <= 'r') \
6119 || ('s' <= (c) && (c) <= 'z'))
6120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6121 #endif
6123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6125 main ()
6127 int i;
6128 for (i = 0; i < 256; i++)
6129 if (XOR (islower (i), ISLOWER (i))
6130 || toupper (i) != TOUPPER (i))
6131 return 2;
6132 return 0;
6134 _ACEOF
6135 if ac_fn_c_try_run "$LINENO"; then :
6137 else
6138 ac_cv_header_stdc=no
6140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6141 conftest.$ac_objext conftest.beam conftest.$ac_ext
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6147 $as_echo "$ac_cv_header_stdc" >&6; }
6148 if test $ac_cv_header_stdc = yes; then
6150 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6155 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6156 inttypes.h stdint.h unistd.h
6157 do :
6158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6159 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6161 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6168 done
6171 for ac_header in dlfcn.h
6172 do :
6173 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6175 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6176 cat >>confdefs.h <<_ACEOF
6177 #define HAVE_DLFCN_H 1
6178 _ACEOF
6182 done
6186 # Set options
6190 enable_dlopen=no
6193 enable_win32_dll=no
6196 # Check whether --enable-shared was given.
6197 if test "${enable_shared+set}" = set; then :
6198 enableval=$enable_shared; p=${PACKAGE-default}
6199 case $enableval in
6200 yes) enable_shared=yes ;;
6201 no) enable_shared=no ;;
6203 enable_shared=no
6204 # Look at the argument we got. We use all the common list separators.
6205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6206 for pkg in $enableval; do
6207 IFS="$lt_save_ifs"
6208 if test "X$pkg" = "X$p"; then
6209 enable_shared=yes
6211 done
6212 IFS="$lt_save_ifs"
6214 esac
6215 else
6216 enable_shared=yes
6227 # Check whether --enable-static was given.
6228 if test "${enable_static+set}" = set; then :
6229 enableval=$enable_static; p=${PACKAGE-default}
6230 case $enableval in
6231 yes) enable_static=yes ;;
6232 no) enable_static=no ;;
6234 enable_static=no
6235 # Look at the argument we got. We use all the common list separators.
6236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6237 for pkg in $enableval; do
6238 IFS="$lt_save_ifs"
6239 if test "X$pkg" = "X$p"; then
6240 enable_static=yes
6242 done
6243 IFS="$lt_save_ifs"
6245 esac
6246 else
6247 enable_static=yes
6259 # Check whether --with-pic was given.
6260 if test "${with_pic+set}" = set; then :
6261 withval=$with_pic; pic_mode="$withval"
6262 else
6263 pic_mode=default
6267 test -z "$pic_mode" && pic_mode=default
6275 # Check whether --enable-fast-install was given.
6276 if test "${enable_fast_install+set}" = set; then :
6277 enableval=$enable_fast_install; p=${PACKAGE-default}
6278 case $enableval in
6279 yes) enable_fast_install=yes ;;
6280 no) enable_fast_install=no ;;
6282 enable_fast_install=no
6283 # Look at the argument we got. We use all the common list separators.
6284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6285 for pkg in $enableval; do
6286 IFS="$lt_save_ifs"
6287 if test "X$pkg" = "X$p"; then
6288 enable_fast_install=yes
6290 done
6291 IFS="$lt_save_ifs"
6293 esac
6294 else
6295 enable_fast_install=yes
6308 # This can be used to rebuild libtool when needed
6309 LIBTOOL_DEPS="$ltmain"
6311 # Always use our own libtool.
6312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6338 test -z "$LN_S" && LN_S="ln -s"
6353 if test -n "${ZSH_VERSION+set}" ; then
6354 setopt NO_GLOB_SUBST
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6358 $as_echo_n "checking for objdir... " >&6; }
6359 if ${lt_cv_objdir+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 rm -f .libs 2>/dev/null
6363 mkdir .libs 2>/dev/null
6364 if test -d .libs; then
6365 lt_cv_objdir=.libs
6366 else
6367 # MS-DOS does not allow filenames that begin with a dot.
6368 lt_cv_objdir=_libs
6370 rmdir .libs 2>/dev/null
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6373 $as_echo "$lt_cv_objdir" >&6; }
6374 objdir=$lt_cv_objdir
6380 cat >>confdefs.h <<_ACEOF
6381 #define LT_OBJDIR "$lt_cv_objdir/"
6382 _ACEOF
6400 case $host_os in
6401 aix3*)
6402 # AIX sometimes has problems with the GCC collect2 program. For some
6403 # reason, if we set the COLLECT_NAMES environment variable, the problems
6404 # vanish in a puff of smoke.
6405 if test "X${COLLECT_NAMES+set}" != Xset; then
6406 COLLECT_NAMES=
6407 export COLLECT_NAMES
6410 esac
6412 # Sed substitution that helps us do robust quoting. It backslashifies
6413 # metacharacters that are still active within double-quoted strings.
6414 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6416 # Same as above, but do not quote variable references.
6417 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6419 # Sed substitution to delay expansion of an escaped shell variable in a
6420 # double_quote_subst'ed string.
6421 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6423 # Sed substitution to delay expansion of an escaped single quote.
6424 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6426 # Sed substitution to avoid accidental globbing in evaled expressions
6427 no_glob_subst='s/\*/\\\*/g'
6429 # Global variables:
6430 ofile=libtool
6431 can_build_shared=yes
6433 # All known linkers require a `.a' archive for static linking (except MSVC,
6434 # which needs '.lib').
6435 libext=a
6437 with_gnu_ld="$lt_cv_prog_gnu_ld"
6439 old_CC="$CC"
6440 old_CFLAGS="$CFLAGS"
6442 # Set sane defaults for various variables
6443 test -z "$CC" && CC=cc
6444 test -z "$LTCC" && LTCC=$CC
6445 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6446 test -z "$LD" && LD=ld
6447 test -z "$ac_objext" && ac_objext=o
6449 for cc_temp in $compiler""; do
6450 case $cc_temp in
6451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6453 \-*) ;;
6454 *) break;;
6455 esac
6456 done
6457 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6460 # Only perform the check for file, if the check method requires it
6461 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6462 case $deplibs_check_method in
6463 file_magic*)
6464 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6466 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6467 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 case $MAGIC_CMD in
6471 [\\/*] | ?:[\\/]*)
6472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6475 lt_save_MAGIC_CMD="$MAGIC_CMD"
6476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6478 for ac_dir in $ac_dummy; do
6479 IFS="$lt_save_ifs"
6480 test -z "$ac_dir" && ac_dir=.
6481 if test -f $ac_dir/${ac_tool_prefix}file; then
6482 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6483 if test -n "$file_magic_test_file"; then
6484 case $deplibs_check_method in
6485 "file_magic "*)
6486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6489 $EGREP "$file_magic_regex" > /dev/null; then
6491 else
6492 cat <<_LT_EOF 1>&2
6494 *** Warning: the command libtool uses to detect shared libraries,
6495 *** $file_magic_cmd, produces output that libtool cannot recognize.
6496 *** The result is that libtool may fail to recognize shared libraries
6497 *** as such. This will affect the creation of libtool libraries that
6498 *** depend on shared libraries, but programs linked with such libtool
6499 *** libraries will work regardless of this problem. Nevertheless, you
6500 *** may want to report the problem to your system manager and/or to
6501 *** bug-libtool@gnu.org
6503 _LT_EOF
6504 fi ;;
6505 esac
6507 break
6509 done
6510 IFS="$lt_save_ifs"
6511 MAGIC_CMD="$lt_save_MAGIC_CMD"
6513 esac
6516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6517 if test -n "$MAGIC_CMD"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6519 $as_echo "$MAGIC_CMD" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6529 if test -z "$lt_cv_path_MAGIC_CMD"; then
6530 if test -n "$ac_tool_prefix"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6532 $as_echo_n "checking for file... " >&6; }
6533 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 case $MAGIC_CMD in
6537 [\\/*] | ?:[\\/]*)
6538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6541 lt_save_MAGIC_CMD="$MAGIC_CMD"
6542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6544 for ac_dir in $ac_dummy; do
6545 IFS="$lt_save_ifs"
6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f $ac_dir/file; then
6548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6549 if test -n "$file_magic_test_file"; then
6550 case $deplibs_check_method in
6551 "file_magic "*)
6552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6555 $EGREP "$file_magic_regex" > /dev/null; then
6557 else
6558 cat <<_LT_EOF 1>&2
6560 *** Warning: the command libtool uses to detect shared libraries,
6561 *** $file_magic_cmd, produces output that libtool cannot recognize.
6562 *** The result is that libtool may fail to recognize shared libraries
6563 *** as such. This will affect the creation of libtool libraries that
6564 *** depend on shared libraries, but programs linked with such libtool
6565 *** libraries will work regardless of this problem. Nevertheless, you
6566 *** may want to report the problem to your system manager and/or to
6567 *** bug-libtool@gnu.org
6569 _LT_EOF
6570 fi ;;
6571 esac
6573 break
6575 done
6576 IFS="$lt_save_ifs"
6577 MAGIC_CMD="$lt_save_MAGIC_CMD"
6579 esac
6582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6583 if test -n "$MAGIC_CMD"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6585 $as_echo "$MAGIC_CMD" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6592 else
6593 MAGIC_CMD=:
6599 esac
6601 # Use C for the default configuration in the libtool script
6603 lt_save_CC="$CC"
6604 ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611 # Source file extension for C test sources.
6612 ac_ext=c
6614 # Object file extension for compiled C test sources.
6615 objext=o
6616 objext=$objext
6618 # Code to be used in simple compile tests
6619 lt_simple_compile_test_code="int some_variable = 0;"
6621 # Code to be used in simple link tests
6622 lt_simple_link_test_code='int main(){return(0);}'
6630 # If no C compiler was specified, use CC.
6631 LTCC=${LTCC-"$CC"}
6633 # If no C compiler flags were specified, use CFLAGS.
6634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6636 # Allow CC to be a program name with arguments.
6637 compiler=$CC
6639 # Save the default compiler, since it gets overwritten when the other
6640 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6641 compiler_DEFAULT=$CC
6643 # save warnings/boilerplate of simple test code
6644 ac_outfile=conftest.$ac_objext
6645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6647 _lt_compiler_boilerplate=`cat conftest.err`
6648 $RM conftest*
6650 ac_outfile=conftest.$ac_objext
6651 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6653 _lt_linker_boilerplate=`cat conftest.err`
6654 $RM -r conftest*
6657 if test -n "$compiler"; then
6659 lt_prog_compiler_no_builtin_flag=
6661 if test "$GCC" = yes; then
6662 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6665 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6666 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 lt_cv_prog_compiler_rtti_exceptions=no
6670 ac_outfile=conftest.$ac_objext
6671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6672 lt_compiler_flag="-fno-rtti -fno-exceptions"
6673 # Insert the option either (1) after the last *FLAGS variable, or
6674 # (2) before a word containing "conftest.", or (3) at the end.
6675 # Note that $ac_compile itself does not contain backslashes and begins
6676 # with a dollar sign (not a hyphen), so the echo should work correctly.
6677 # The option is referenced via a variable to avoid confusing sed.
6678 lt_compile=`echo "$ac_compile" | $SED \
6679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6681 -e 's:$: $lt_compiler_flag:'`
6682 (eval echo "\"\$as_me:6682: $lt_compile\"" >&5)
6683 (eval "$lt_compile" 2>conftest.err)
6684 ac_status=$?
6685 cat conftest.err >&5
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 if (exit $ac_status) && test -s "$ac_outfile"; then
6688 # The compiler can only warn and ignore the option if not recognized
6689 # So say no if there are warnings other than the usual output.
6690 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6692 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6693 lt_cv_prog_compiler_rtti_exceptions=yes
6696 $RM conftest*
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6700 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6702 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6703 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6704 else
6715 lt_prog_compiler_wl=
6716 lt_prog_compiler_pic=
6717 lt_prog_compiler_static=
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6720 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6722 if test "$GCC" = yes; then
6723 lt_prog_compiler_wl='-Wl,'
6724 lt_prog_compiler_static='-static'
6726 case $host_os in
6727 aix*)
6728 # All AIX code is PIC.
6729 if test "$host_cpu" = ia64; then
6730 # AIX 5 now supports IA64 processor
6731 lt_prog_compiler_static='-Bstatic'
6735 amigaos*)
6736 case $host_cpu in
6737 powerpc)
6738 # see comment about AmigaOS4 .so support
6739 lt_prog_compiler_pic='-fPIC'
6741 m68k)
6742 # FIXME: we need at least 68020 code to build shared libraries, but
6743 # adding the `-m68020' flag to GCC prevents building anything better,
6744 # like `-m68040'.
6745 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6747 esac
6750 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6751 # PIC is the default for these OSes.
6754 mingw* | cygwin* | pw32* | os2* | cegcc*)
6755 # This hack is so that the source file can tell whether it is being
6756 # built for inclusion in a dll (and should export symbols for example).
6757 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6758 # (--disable-auto-import) libraries
6759 lt_prog_compiler_pic='-DDLL_EXPORT'
6762 darwin* | rhapsody*)
6763 # PIC is the default on this platform
6764 # Common symbols not allowed in MH_DYLIB files
6765 lt_prog_compiler_pic='-fno-common'
6768 hpux*)
6769 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6770 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6771 # sets the default TLS model and affects inlining.
6772 case $host_cpu in
6773 hppa*64*)
6774 # +Z the default
6777 lt_prog_compiler_pic='-fPIC'
6779 esac
6782 interix[3-9]*)
6783 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6784 # Instead, we relocate shared libraries at runtime.
6787 msdosdjgpp*)
6788 # Just because we use GCC doesn't mean we suddenly get shared libraries
6789 # on systems that don't support them.
6790 lt_prog_compiler_can_build_shared=no
6791 enable_shared=no
6794 *nto* | *qnx*)
6795 # QNX uses GNU C++, but need to define -shared option too, otherwise
6796 # it will coredump.
6797 lt_prog_compiler_pic='-fPIC -shared'
6800 sysv4*MP*)
6801 if test -d /usr/nec; then
6802 lt_prog_compiler_pic=-Kconform_pic
6807 lt_prog_compiler_pic='-fPIC'
6809 esac
6810 else
6811 # PORTME Check for flag to pass linker flags through the system compiler.
6812 case $host_os in
6813 aix*)
6814 lt_prog_compiler_wl='-Wl,'
6815 if test "$host_cpu" = ia64; then
6816 # AIX 5 now supports IA64 processor
6817 lt_prog_compiler_static='-Bstatic'
6818 else
6819 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6823 mingw* | cygwin* | pw32* | os2* | cegcc*)
6824 # This hack is so that the source file can tell whether it is being
6825 # built for inclusion in a dll (and should export symbols for example).
6826 lt_prog_compiler_pic='-DDLL_EXPORT'
6829 hpux9* | hpux10* | hpux11*)
6830 lt_prog_compiler_wl='-Wl,'
6831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6832 # not for PA HP-UX.
6833 case $host_cpu in
6834 hppa*64*|ia64*)
6835 # +Z the default
6838 lt_prog_compiler_pic='+Z'
6840 esac
6841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6842 lt_prog_compiler_static='${wl}-a ${wl}archive'
6845 irix5* | irix6* | nonstopux*)
6846 lt_prog_compiler_wl='-Wl,'
6847 # PIC (with -KPIC) is the default.
6848 lt_prog_compiler_static='-non_shared'
6851 linux* | k*bsd*-gnu)
6852 case $cc_basename in
6853 # old Intel for x86_64 which still supported -KPIC.
6854 ecc*)
6855 lt_prog_compiler_wl='-Wl,'
6856 lt_prog_compiler_pic='-KPIC'
6857 lt_prog_compiler_static='-static'
6859 # icc used to be incompatible with GCC.
6860 # ICC 10 doesn't accept -KPIC any more.
6861 icc* | ifort*)
6862 lt_prog_compiler_wl='-Wl,'
6863 lt_prog_compiler_pic='-fPIC'
6864 lt_prog_compiler_static='-static'
6866 # Lahey Fortran 8.1.
6867 lf95*)
6868 lt_prog_compiler_wl='-Wl,'
6869 lt_prog_compiler_pic='--shared'
6870 lt_prog_compiler_static='--static'
6872 pgcc* | pgf77* | pgf90* | pgf95*)
6873 # Portland Group compilers (*not* the Pentium gcc compiler,
6874 # which looks to be a dead project)
6875 lt_prog_compiler_wl='-Wl,'
6876 lt_prog_compiler_pic='-fpic'
6877 lt_prog_compiler_static='-Bstatic'
6879 ccc*)
6880 lt_prog_compiler_wl='-Wl,'
6881 # All Alpha code is PIC.
6882 lt_prog_compiler_static='-non_shared'
6884 xl*)
6885 # IBM XL C 8.0/Fortran 10.1 on PPC
6886 lt_prog_compiler_wl='-Wl,'
6887 lt_prog_compiler_pic='-qpic'
6888 lt_prog_compiler_static='-qstaticlink'
6891 case `$CC -V 2>&1 | sed 5q` in
6892 *Sun\ C*)
6893 # Sun C 5.9
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6896 lt_prog_compiler_wl='-Wl,'
6898 *Sun\ F*)
6899 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
6902 lt_prog_compiler_wl=''
6904 esac
6906 esac
6909 newsos6)
6910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
6914 *nto* | *qnx*)
6915 # QNX uses GNU C++, but need to define -shared option too, otherwise
6916 # it will coredump.
6917 lt_prog_compiler_pic='-fPIC -shared'
6920 osf3* | osf4* | osf5*)
6921 lt_prog_compiler_wl='-Wl,'
6922 # All OSF/1 code is PIC.
6923 lt_prog_compiler_static='-non_shared'
6926 rdos*)
6927 lt_prog_compiler_static='-non_shared'
6930 solaris*)
6931 lt_prog_compiler_pic='-KPIC'
6932 lt_prog_compiler_static='-Bstatic'
6933 case $cc_basename in
6934 f77* | f90* | f95*)
6935 lt_prog_compiler_wl='-Qoption ld ';;
6937 lt_prog_compiler_wl='-Wl,';;
6938 esac
6941 sunos4*)
6942 lt_prog_compiler_wl='-Qoption ld '
6943 lt_prog_compiler_pic='-PIC'
6944 lt_prog_compiler_static='-Bstatic'
6947 sysv4 | sysv4.2uw2* | sysv4.3*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6953 sysv4*MP*)
6954 if test -d /usr/nec ;then
6955 lt_prog_compiler_pic='-Kconform_pic'
6956 lt_prog_compiler_static='-Bstatic'
6960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-Bstatic'
6966 unicos*)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_can_build_shared=no
6971 uts4*)
6972 lt_prog_compiler_pic='-pic'
6973 lt_prog_compiler_static='-Bstatic'
6977 lt_prog_compiler_can_build_shared=no
6979 esac
6982 case $host_os in
6983 # For platforms which do not support PIC, -DPIC is meaningless:
6984 *djgpp*)
6985 lt_prog_compiler_pic=
6988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6990 esac
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6992 $as_echo "$lt_prog_compiler_pic" >&6; }
7000 # Check to make sure the PIC flag actually works.
7002 if test -n "$lt_prog_compiler_pic"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7004 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7005 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 lt_cv_prog_compiler_pic_works=no
7009 ac_outfile=conftest.$ac_objext
7010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7012 # Insert the option either (1) after the last *FLAGS variable, or
7013 # (2) before a word containing "conftest.", or (3) at the end.
7014 # Note that $ac_compile itself does not contain backslashes and begins
7015 # with a dollar sign (not a hyphen), so the echo should work correctly.
7016 # The option is referenced via a variable to avoid confusing sed.
7017 lt_compile=`echo "$ac_compile" | $SED \
7018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7020 -e 's:$: $lt_compiler_flag:'`
7021 (eval echo "\"\$as_me:7021: $lt_compile\"" >&5)
7022 (eval "$lt_compile" 2>conftest.err)
7023 ac_status=$?
7024 cat conftest.err >&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 if (exit $ac_status) && test -s "$ac_outfile"; then
7027 # The compiler can only warn and ignore the option if not recognized
7028 # So say no if there are warnings other than the usual output.
7029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7032 lt_cv_prog_compiler_pic_works=yes
7035 $RM conftest*
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7039 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7041 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7042 case $lt_prog_compiler_pic in
7043 "" | " "*) ;;
7044 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7045 esac
7046 else
7047 lt_prog_compiler_pic=
7048 lt_prog_compiler_can_build_shared=no
7059 # Check to make sure the static flag actually works.
7061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7064 if ${lt_cv_prog_compiler_static_works+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 lt_cv_prog_compiler_static_works=no
7068 save_LDFLAGS="$LDFLAGS"
7069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7072 # The linker can only warn and ignore the option if not recognized
7073 # So say no if there are warnings
7074 if test -s conftest.err; then
7075 # Append any errors to the config.log.
7076 cat conftest.err 1>&5
7077 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079 if diff conftest.exp conftest.er2 >/dev/null; then
7080 lt_cv_prog_compiler_static_works=yes
7082 else
7083 lt_cv_prog_compiler_static_works=yes
7086 $RM -r conftest*
7087 LDFLAGS="$save_LDFLAGS"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7091 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7093 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7095 else
7096 lt_prog_compiler_static=
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7107 if ${lt_cv_prog_compiler_c_o+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 lt_cv_prog_compiler_c_o=no
7111 $RM -r conftest 2>/dev/null
7112 mkdir conftest
7113 cd conftest
7114 mkdir out
7115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7117 lt_compiler_flag="-o out/conftest2.$ac_objext"
7118 # Insert the option either (1) after the last *FLAGS variable, or
7119 # (2) before a word containing "conftest.", or (3) at the end.
7120 # Note that $ac_compile itself does not contain backslashes and begins
7121 # with a dollar sign (not a hyphen), so the echo should work correctly.
7122 lt_compile=`echo "$ac_compile" | $SED \
7123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7125 -e 's:$: $lt_compiler_flag:'`
7126 (eval echo "\"\$as_me:7126: $lt_compile\"" >&5)
7127 (eval "$lt_compile" 2>out/conftest.err)
7128 ac_status=$?
7129 cat out/conftest.err >&5
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7132 then
7133 # The compiler can only warn and ignore the option if not recognized
7134 # So say no if there are warnings
7135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7138 lt_cv_prog_compiler_c_o=yes
7141 chmod u+w . 2>&5
7142 $RM conftest*
7143 # SGI C++ compiler will create directory out/ii_files/ for
7144 # template instantiation
7145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7146 $RM out/* && rmdir out
7147 cd ..
7148 $RM -r conftest
7149 $RM conftest*
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7162 if ${lt_cv_prog_compiler_c_o+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 lt_cv_prog_compiler_c_o=no
7166 $RM -r conftest 2>/dev/null
7167 mkdir conftest
7168 cd conftest
7169 mkdir out
7170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7172 lt_compiler_flag="-o out/conftest2.$ac_objext"
7173 # Insert the option either (1) after the last *FLAGS variable, or
7174 # (2) before a word containing "conftest.", or (3) at the end.
7175 # Note that $ac_compile itself does not contain backslashes and begins
7176 # with a dollar sign (not a hyphen), so the echo should work correctly.
7177 lt_compile=`echo "$ac_compile" | $SED \
7178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7180 -e 's:$: $lt_compiler_flag:'`
7181 (eval echo "\"\$as_me:7181: $lt_compile\"" >&5)
7182 (eval "$lt_compile" 2>out/conftest.err)
7183 ac_status=$?
7184 cat out/conftest.err >&5
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7187 then
7188 # The compiler can only warn and ignore the option if not recognized
7189 # So say no if there are warnings
7190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7193 lt_cv_prog_compiler_c_o=yes
7196 chmod u+w . 2>&5
7197 $RM conftest*
7198 # SGI C++ compiler will create directory out/ii_files/ for
7199 # template instantiation
7200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7201 $RM out/* && rmdir out
7202 cd ..
7203 $RM -r conftest
7204 $RM conftest*
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7213 hard_links="nottested"
7214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7215 # do not overwrite the value of need_locks provided by the user
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7217 $as_echo_n "checking if we can lock with hard links... " >&6; }
7218 hard_links=yes
7219 $RM conftest*
7220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7221 touch conftest.a
7222 ln conftest.a conftest.b 2>&5 || hard_links=no
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7225 $as_echo "$hard_links" >&6; }
7226 if test "$hard_links" = no; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7229 need_locks=warn
7231 else
7232 need_locks=no
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7243 runpath_var=
7244 allow_undefined_flag=
7245 always_export_symbols=no
7246 archive_cmds=
7247 archive_expsym_cmds=
7248 compiler_needs_object=no
7249 enable_shared_with_static_runtimes=no
7250 export_dynamic_flag_spec=
7251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7252 hardcode_automatic=no
7253 hardcode_direct=no
7254 hardcode_direct_absolute=no
7255 hardcode_libdir_flag_spec=
7256 hardcode_libdir_flag_spec_ld=
7257 hardcode_libdir_separator=
7258 hardcode_minus_L=no
7259 hardcode_shlibpath_var=unsupported
7260 inherit_rpath=no
7261 link_all_deplibs=unknown
7262 module_cmds=
7263 module_expsym_cmds=
7264 old_archive_from_new_cmds=
7265 old_archive_from_expsyms_cmds=
7266 thread_safe_flag_spec=
7267 whole_archive_flag_spec=
7268 # include_expsyms should be a list of space-separated symbols to be *always*
7269 # included in the symbol list
7270 include_expsyms=
7271 # exclude_expsyms can be an extended regexp of symbols to exclude
7272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7274 # as well as any symbol that contains `d'.
7275 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7277 # platforms (ab)use it in PIC code, but their linkers get confused if
7278 # the symbol is explicitly referenced. Since portable code cannot
7279 # rely on this symbol name, it's probably fine to never include it in
7280 # preloaded symbol tables.
7281 # Exclude shared library initialization/finalization symbols.
7282 extract_expsyms_cmds=
7284 case $host_os in
7285 cygwin* | mingw* | pw32* | cegcc*)
7286 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7287 # When not using gcc, we currently assume that we are using
7288 # Microsoft Visual C++.
7289 if test "$GCC" != yes; then
7290 with_gnu_ld=no
7293 interix*)
7294 # we just hope/assume this is gcc and not c89 (= MSVC++)
7295 with_gnu_ld=yes
7297 openbsd*)
7298 with_gnu_ld=no
7300 esac
7302 ld_shlibs=yes
7303 if test "$with_gnu_ld" = yes; then
7304 # If archive_cmds runs LD, not CC, wlarc should be empty
7305 wlarc='${wl}'
7307 # Set some defaults for GNU ld with shared library support. These
7308 # are reset later if shared libraries are not supported. Putting them
7309 # here allows them to be overridden if necessary.
7310 runpath_var=LD_RUN_PATH
7311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7312 export_dynamic_flag_spec='${wl}--export-dynamic'
7313 # ancient GNU ld didn't support --whole-archive et. al.
7314 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7316 else
7317 whole_archive_flag_spec=
7319 supports_anon_versioning=no
7320 case `$LD -v 2>&1` in
7321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7324 *\ 2.11.*) ;; # other 2.11 versions
7325 *) supports_anon_versioning=yes ;;
7326 esac
7328 # See if GNU ld supports shared libraries.
7329 case $host_os in
7330 aix[3-9]*)
7331 # On AIX/PPC, the GNU linker is very broken
7332 if test "$host_cpu" != ia64; then
7333 ld_shlibs=no
7334 cat <<_LT_EOF 1>&2
7336 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7337 *** to be unable to reliably create shared libraries on AIX.
7338 *** Therefore, libtool is disabling shared libraries support. If you
7339 *** really care for shared libraries, you may want to modify your PATH
7340 *** so that a non-GNU linker is found, and then restart.
7342 _LT_EOF
7346 amigaos*)
7347 case $host_cpu in
7348 powerpc)
7349 # see comment about AmigaOS4 .so support
7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 archive_expsym_cmds=''
7353 m68k)
7354 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)'
7355 hardcode_libdir_flag_spec='-L$libdir'
7356 hardcode_minus_L=yes
7358 esac
7361 beos*)
7362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7363 allow_undefined_flag=unsupported
7364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7365 # support --undefined. This deserves some investigation. FIXME
7366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7367 else
7368 ld_shlibs=no
7372 cygwin* | mingw* | pw32* | cegcc*)
7373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7374 # as there is no search path for DLLs.
7375 hardcode_libdir_flag_spec='-L$libdir'
7376 allow_undefined_flag=unsupported
7377 always_export_symbols=no
7378 enable_shared_with_static_runtimes=yes
7379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7381 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7383 # If the export-symbols file already is a .def file (1st line
7384 # is EXPORTS), use it as is; otherwise, prepend...
7385 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7386 cp $export_symbols $output_objdir/$soname.def;
7387 else
7388 echo EXPORTS > $output_objdir/$soname.def;
7389 cat $export_symbols >> $output_objdir/$soname.def;
7391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7392 else
7393 ld_shlibs=no
7397 interix[3-9]*)
7398 hardcode_direct=no
7399 hardcode_shlibpath_var=no
7400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7401 export_dynamic_flag_spec='${wl}-E'
7402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7403 # Instead, shared libraries are loaded at an image base (0x10000000 by
7404 # default) and relocated if they conflict, which is a slow very memory
7405 # consuming and fragmenting process. To avoid this, we pick a random,
7406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7409 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'
7412 gnu* | linux* | tpf* | k*bsd*-gnu)
7413 tmp_diet=no
7414 if test "$host_os" = linux-dietlibc; then
7415 case $cc_basename in
7416 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7417 esac
7419 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7420 && test "$tmp_diet" = no
7421 then
7422 tmp_addflag=
7423 tmp_sharedflag='-shared'
7424 case $cc_basename,$host_cpu in
7425 pgcc*) # Portland Group C compiler
7426 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'
7427 tmp_addflag=' $pic_flag'
7429 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7430 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'
7431 tmp_addflag=' $pic_flag -Mnomain' ;;
7432 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7433 tmp_addflag=' -i_dynamic' ;;
7434 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7435 tmp_addflag=' -i_dynamic -nofor_main' ;;
7436 ifc* | ifort*) # Intel Fortran compiler
7437 tmp_addflag=' -nofor_main' ;;
7438 lf95*) # Lahey Fortran 8.1
7439 whole_archive_flag_spec=
7440 tmp_sharedflag='--shared' ;;
7441 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7442 tmp_sharedflag='-qmkshrobj'
7443 tmp_addflag= ;;
7444 esac
7445 case `$CC -V 2>&1 | sed 5q` in
7446 *Sun\ C*) # Sun C 5.9
7447 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'
7448 compiler_needs_object=yes
7449 tmp_sharedflag='-G' ;;
7450 *Sun\ F*) # Sun Fortran 8.3
7451 tmp_sharedflag='-G' ;;
7452 esac
7453 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7455 if test "x$supports_anon_versioning" = xyes; then
7456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7458 echo "local: *; };" >> $output_objdir/$libname.ver~
7459 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7462 case $cc_basename in
7463 xlf*)
7464 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7465 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7466 hardcode_libdir_flag_spec=
7467 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7468 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7469 if test "x$supports_anon_versioning" = xyes; then
7470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7472 echo "local: *; };" >> $output_objdir/$libname.ver~
7473 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7476 esac
7477 else
7478 ld_shlibs=no
7482 netbsd*)
7483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7484 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7485 wlarc=
7486 else
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7492 solaris*)
7493 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7494 ld_shlibs=no
7495 cat <<_LT_EOF 1>&2
7497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7498 *** create shared libraries on Solaris systems. Therefore, libtool
7499 *** is disabling shared libraries support. We urge you to upgrade GNU
7500 *** binutils to release 2.9.1 or newer. Another option is to modify
7501 *** your PATH or compiler configuration so that the native linker is
7502 *** used, and then restart.
7504 _LT_EOF
7505 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7508 else
7509 ld_shlibs=no
7513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7514 case `$LD -v 2>&1` in
7515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7516 ld_shlibs=no
7517 cat <<_LT_EOF 1>&2
7519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7520 *** reliably create shared libraries on SCO systems. Therefore, libtool
7521 *** is disabling shared libraries support. We urge you to upgrade GNU
7522 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7523 *** your PATH or compiler configuration so that the native linker is
7524 *** used, and then restart.
7526 _LT_EOF
7529 # For security reasons, it is highly recommended that you always
7530 # use absolute paths for naming shared libraries, and exclude the
7531 # DT_RUNPATH tag from executables and libraries. But doing so
7532 # requires that you compile everything twice, which is a pain.
7533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7537 else
7538 ld_shlibs=no
7541 esac
7544 sunos4*)
7545 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7546 wlarc=
7547 hardcode_direct=yes
7548 hardcode_shlibpath_var=no
7552 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7555 else
7556 ld_shlibs=no
7559 esac
7561 if test "$ld_shlibs" = no; then
7562 runpath_var=
7563 hardcode_libdir_flag_spec=
7564 export_dynamic_flag_spec=
7565 whole_archive_flag_spec=
7567 else
7568 # PORTME fill in a description of your system's linker (not GNU ld)
7569 case $host_os in
7570 aix3*)
7571 allow_undefined_flag=unsupported
7572 always_export_symbols=yes
7573 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'
7574 # Note: this linker hardcodes the directories in LIBPATH if there
7575 # are no directories specified by -L.
7576 hardcode_minus_L=yes
7577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7578 # Neither direct hardcoding nor static linking is supported with a
7579 # broken collect2.
7580 hardcode_direct=unsupported
7584 aix[4-9]*)
7585 if test "$host_cpu" = ia64; then
7586 # On IA64, the linker does run time linking by default, so we don't
7587 # have to do anything special.
7588 aix_use_runtimelinking=no
7589 exp_sym_flag='-Bexport'
7590 no_entry_flag=""
7591 else
7592 # If we're using GNU nm, then we don't want the "-C" option.
7593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7594 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7595 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'
7596 else
7597 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'
7599 aix_use_runtimelinking=no
7601 # Test if we are trying to use run time linking or normal
7602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7603 # need to do runtime linking.
7604 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7605 for ld_flag in $LDFLAGS; do
7606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7607 aix_use_runtimelinking=yes
7608 break
7610 done
7612 esac
7614 exp_sym_flag='-bexport'
7615 no_entry_flag='-bnoentry'
7618 # When large executables or shared objects are built, AIX ld can
7619 # have problems creating the table of contents. If linking a library
7620 # or program results in "error TOC overflow" add -mminimal-toc to
7621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7624 archive_cmds=''
7625 hardcode_direct=yes
7626 hardcode_direct_absolute=yes
7627 hardcode_libdir_separator=':'
7628 link_all_deplibs=yes
7629 file_list_spec='${wl}-f,'
7631 if test "$GCC" = yes; then
7632 case $host_os in aix4.[012]|aix4.[012].*)
7633 # We only want to do this on AIX 4.2 and lower, the check
7634 # below for broken collect2 doesn't work under 4.3+
7635 collect2name=`${CC} -print-prog-name=collect2`
7636 if test -f "$collect2name" &&
7637 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7638 then
7639 # We have reworked collect2
7641 else
7642 # We have old collect2
7643 hardcode_direct=unsupported
7644 # It fails to find uninstalled libraries when the uninstalled
7645 # path is not listed in the libpath. Setting hardcode_minus_L
7646 # to unsupported forces relinking
7647 hardcode_minus_L=yes
7648 hardcode_libdir_flag_spec='-L$libdir'
7649 hardcode_libdir_separator=
7652 esac
7653 shared_flag='-shared'
7654 if test "$aix_use_runtimelinking" = yes; then
7655 shared_flag="$shared_flag "'${wl}-G'
7657 else
7658 # not using gcc
7659 if test "$host_cpu" = ia64; then
7660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7661 # chokes on -Wl,-G. The following line is correct:
7662 shared_flag='-G'
7663 else
7664 if test "$aix_use_runtimelinking" = yes; then
7665 shared_flag='${wl}-G'
7666 else
7667 shared_flag='${wl}-bM:SRE'
7672 export_dynamic_flag_spec='${wl}-bexpall'
7673 # It seems that -bexpall does not export symbols beginning with
7674 # underscore (_), so it is better to generate a list of symbols to export.
7675 always_export_symbols=yes
7676 if test "$aix_use_runtimelinking" = yes; then
7677 # Warning - without using the other runtime loading flags (-brtl),
7678 # -berok will link without error, but may produce a broken library.
7679 allow_undefined_flag='-berok'
7680 # Determine the default libpath from the value encoded in an
7681 # empty executable.
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7686 main ()
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_link "$LINENO"; then :
7695 lt_aix_libpath_sed='
7696 /Import File Strings/,/^$/ {
7697 /^0/ {
7698 s/^0 *\(.*\)$/\1/
7702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7703 # Check for a 64-bit object if we didn't find anything.
7704 if test -z "$aix_libpath"; then
7705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7713 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"
7714 else
7715 if test "$host_cpu" = ia64; then
7716 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7717 allow_undefined_flag="-z nodefs"
7718 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"
7719 else
7720 # Determine the default libpath from the value encoded in an
7721 # empty executable.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7726 main ()
7730 return 0;
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7735 lt_aix_libpath_sed='
7736 /Import File Strings/,/^$/ {
7737 /^0/ {
7738 s/^0 *\(.*\)$/\1/
7742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7743 # Check for a 64-bit object if we didn't find anything.
7744 if test -z "$aix_libpath"; then
7745 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7748 rm -f core conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7752 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7753 # Warning - without using the other run time loading flags,
7754 # -berok will link without error, but may produce a broken library.
7755 no_undefined_flag=' ${wl}-bernotok'
7756 allow_undefined_flag=' ${wl}-berok'
7757 # Exported symbols can be pulled into shared objects from archives
7758 whole_archive_flag_spec='$convenience'
7759 archive_cmds_need_lc=yes
7760 # This is similar to how AIX traditionally builds its shared libraries.
7761 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'
7766 amigaos*)
7767 case $host_cpu in
7768 powerpc)
7769 # see comment about AmigaOS4 .so support
7770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7771 archive_expsym_cmds=''
7773 m68k)
7774 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)'
7775 hardcode_libdir_flag_spec='-L$libdir'
7776 hardcode_minus_L=yes
7778 esac
7781 bsdi[45]*)
7782 export_dynamic_flag_spec=-rdynamic
7785 cygwin* | mingw* | pw32* | cegcc*)
7786 # When not using gcc, we currently assume that we are using
7787 # Microsoft Visual C++.
7788 # hardcode_libdir_flag_spec is actually meaningless, as there is
7789 # no search path for DLLs.
7790 hardcode_libdir_flag_spec=' '
7791 allow_undefined_flag=unsupported
7792 # Tell ltmain to make .lib files, not .a files.
7793 libext=lib
7794 # Tell ltmain to make .dll files, not .so files.
7795 shrext_cmds=".dll"
7796 # FIXME: Setting linknames here is a bad hack.
7797 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7798 # The linker will automatically build a .lib file if we build a DLL.
7799 old_archive_from_new_cmds='true'
7800 # FIXME: Should let the user specify the lib program.
7801 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7802 fix_srcfile_path='`cygpath -w "$srcfile"`'
7803 enable_shared_with_static_runtimes=yes
7806 darwin* | rhapsody*)
7809 archive_cmds_need_lc=no
7810 hardcode_direct=no
7811 hardcode_automatic=yes
7812 hardcode_shlibpath_var=unsupported
7813 whole_archive_flag_spec=''
7814 link_all_deplibs=yes
7815 allow_undefined_flag="$_lt_dar_allow_undefined"
7816 case $cc_basename in
7817 ifort*) _lt_dar_can_shared=yes ;;
7818 *) _lt_dar_can_shared=$GCC ;;
7819 esac
7820 if test "$_lt_dar_can_shared" = "yes"; then
7821 output_verbose_link_cmd=echo
7822 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7823 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7824 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}"
7825 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}"
7827 else
7828 ld_shlibs=no
7833 dgux*)
7834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7835 hardcode_libdir_flag_spec='-L$libdir'
7836 hardcode_shlibpath_var=no
7839 freebsd1*)
7840 ld_shlibs=no
7843 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7844 # support. Future versions do this automatically, but an explicit c++rt0.o
7845 # does not break anything, and helps significantly (at the cost of a little
7846 # extra space).
7847 freebsd2.2*)
7848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7849 hardcode_libdir_flag_spec='-R$libdir'
7850 hardcode_direct=yes
7851 hardcode_shlibpath_var=no
7854 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7855 freebsd2*)
7856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7857 hardcode_direct=yes
7858 hardcode_minus_L=yes
7859 hardcode_shlibpath_var=no
7862 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7863 freebsd* | dragonfly*)
7864 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7865 hardcode_libdir_flag_spec='-R$libdir'
7866 hardcode_direct=yes
7867 hardcode_shlibpath_var=no
7870 hpux9*)
7871 if test "$GCC" = yes; then
7872 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'
7873 else
7874 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'
7876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7877 hardcode_libdir_separator=:
7878 hardcode_direct=yes
7880 # hardcode_minus_L: Not really in the search PATH,
7881 # but as the default location of the library.
7882 hardcode_minus_L=yes
7883 export_dynamic_flag_spec='${wl}-E'
7886 hpux10*)
7887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7888 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7889 else
7890 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7892 if test "$with_gnu_ld" = no; then
7893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894 hardcode_libdir_flag_spec_ld='+b $libdir'
7895 hardcode_libdir_separator=:
7896 hardcode_direct=yes
7897 hardcode_direct_absolute=yes
7898 export_dynamic_flag_spec='${wl}-E'
7899 # hardcode_minus_L: Not really in the search PATH,
7900 # but as the default location of the library.
7901 hardcode_minus_L=yes
7905 hpux11*)
7906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7907 case $host_cpu in
7908 hppa*64*)
7909 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7911 ia64*)
7912 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7917 esac
7918 else
7919 case $host_cpu in
7920 hppa*64*)
7921 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7923 ia64*)
7924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7929 esac
7931 if test "$with_gnu_ld" = no; then
7932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator=:
7935 case $host_cpu in
7936 hppa*64*|ia64*)
7937 hardcode_direct=no
7938 hardcode_shlibpath_var=no
7941 hardcode_direct=yes
7942 hardcode_direct_absolute=yes
7943 export_dynamic_flag_spec='${wl}-E'
7945 # hardcode_minus_L: Not really in the search PATH,
7946 # but as the default location of the library.
7947 hardcode_minus_L=yes
7949 esac
7953 irix5* | irix6* | nonstopux*)
7954 if test "$GCC" = yes; then
7955 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'
7956 # Try to use the -exported_symbol ld option, if it does not
7957 # work, assume that -exports_file does not work either and
7958 # implicitly export all symbols.
7959 save_LDFLAGS="$LDFLAGS"
7960 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int foo(void) {}
7964 _ACEOF
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 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'
7969 rm -f core conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
7971 LDFLAGS="$save_LDFLAGS"
7972 else
7973 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'
7974 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'
7976 archive_cmds_need_lc='no'
7977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7978 hardcode_libdir_separator=:
7979 inherit_rpath=yes
7980 link_all_deplibs=yes
7983 netbsd*)
7984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7986 else
7987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7989 hardcode_libdir_flag_spec='-R$libdir'
7990 hardcode_direct=yes
7991 hardcode_shlibpath_var=no
7994 newsos6)
7995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7996 hardcode_direct=yes
7997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7998 hardcode_libdir_separator=:
7999 hardcode_shlibpath_var=no
8002 *nto* | *qnx*)
8005 openbsd*)
8006 if test -f /usr/libexec/ld.so; then
8007 hardcode_direct=yes
8008 hardcode_shlibpath_var=no
8009 hardcode_direct_absolute=yes
8010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8012 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8014 export_dynamic_flag_spec='${wl}-E'
8015 else
8016 case $host_os in
8017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8019 hardcode_libdir_flag_spec='-R$libdir'
8022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8025 esac
8027 else
8028 ld_shlibs=no
8032 os2*)
8033 hardcode_libdir_flag_spec='-L$libdir'
8034 hardcode_minus_L=yes
8035 allow_undefined_flag=unsupported
8036 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'
8037 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8040 osf3*)
8041 if test "$GCC" = yes; then
8042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8043 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'
8044 else
8045 allow_undefined_flag=' -expect_unresolved \*'
8046 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'
8048 archive_cmds_need_lc='no'
8049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8050 hardcode_libdir_separator=:
8053 osf4* | osf5*) # as osf3* with the addition of -msym flag
8054 if test "$GCC" = yes; then
8055 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8056 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'
8057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8058 else
8059 allow_undefined_flag=' -expect_unresolved \*'
8060 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'
8061 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~
8062 $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'
8064 # Both c and cxx compiler support -rpath directly
8065 hardcode_libdir_flag_spec='-rpath $libdir'
8067 archive_cmds_need_lc='no'
8068 hardcode_libdir_separator=:
8071 solaris*)
8072 no_undefined_flag=' -z defs'
8073 if test "$GCC" = yes; then
8074 wlarc='${wl}'
8075 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8077 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8078 else
8079 case `$CC -V 2>&1` in
8080 *"Compilers 5.0"*)
8081 wlarc=''
8082 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8087 wlarc='${wl}'
8088 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8090 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8092 esac
8094 hardcode_libdir_flag_spec='-R$libdir'
8095 hardcode_shlibpath_var=no
8096 case $host_os in
8097 solaris2.[0-5] | solaris2.[0-5].*) ;;
8099 # The compiler driver will combine and reorder linker options,
8100 # but understands `-z linker_flag'. GCC discards it without `$wl',
8101 # but is careful enough not to reorder.
8102 # Supported since Solaris 2.6 (maybe 2.5.1?)
8103 if test "$GCC" = yes; then
8104 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8105 else
8106 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8109 esac
8110 link_all_deplibs=yes
8113 sunos4*)
8114 if test "x$host_vendor" = xsequent; then
8115 # Use $CC to link under sequent, because it throws in some extra .o
8116 # files that make .init and .fini sections work.
8117 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8118 else
8119 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8121 hardcode_libdir_flag_spec='-L$libdir'
8122 hardcode_direct=yes
8123 hardcode_minus_L=yes
8124 hardcode_shlibpath_var=no
8127 sysv4)
8128 case $host_vendor in
8129 sni)
8130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 hardcode_direct=yes # is this really true???
8133 siemens)
8134 ## LD is ld it makes a PLAMLIB
8135 ## CC just makes a GrossModule.
8136 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8137 reload_cmds='$CC -r -o $output$reload_objs'
8138 hardcode_direct=no
8140 motorola)
8141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8142 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8144 esac
8145 runpath_var='LD_RUN_PATH'
8146 hardcode_shlibpath_var=no
8149 sysv4.3*)
8150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_shlibpath_var=no
8152 export_dynamic_flag_spec='-Bexport'
8155 sysv4*MP*)
8156 if test -d /usr/nec; then
8157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158 hardcode_shlibpath_var=no
8159 runpath_var=LD_RUN_PATH
8160 hardcode_runpath_var=yes
8161 ld_shlibs=yes
8165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8166 no_undefined_flag='${wl}-z,text'
8167 archive_cmds_need_lc=no
8168 hardcode_shlibpath_var=no
8169 runpath_var='LD_RUN_PATH'
8171 if test "$GCC" = yes; then
8172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8174 else
8175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 sysv5* | sco3.2v5* | sco5v6*)
8181 # Note: We can NOT use -z defs as we might desire, because we do not
8182 # link with -lc, and that would cause any symbols used from libc to
8183 # always be unresolved, which means just about no library would
8184 # ever link correctly. If we're not using GNU ld we use -z text
8185 # though, which does catch some bad symbols but isn't as heavy-handed
8186 # as -z defs.
8187 no_undefined_flag='${wl}-z,text'
8188 allow_undefined_flag='${wl}-z,nodefs'
8189 archive_cmds_need_lc=no
8190 hardcode_shlibpath_var=no
8191 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8192 hardcode_libdir_separator=':'
8193 link_all_deplibs=yes
8194 export_dynamic_flag_spec='${wl}-Bexport'
8195 runpath_var='LD_RUN_PATH'
8197 if test "$GCC" = yes; then
8198 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8199 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8200 else
8201 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8202 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8206 uts4*)
8207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 hardcode_shlibpath_var=no
8213 ld_shlibs=no
8215 esac
8217 if test x$host_vendor = xsni; then
8218 case $host in
8219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8220 export_dynamic_flag_spec='${wl}-Blargedynsym'
8222 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8227 $as_echo "$ld_shlibs" >&6; }
8228 test "$ld_shlibs" = no && can_build_shared=no
8230 with_gnu_ld=$with_gnu_ld
8247 # Do we need to explicitly link libc?
8249 case "x$archive_cmds_need_lc" in
8250 x|xyes)
8251 # Assume -lc should be added
8252 archive_cmds_need_lc=yes
8254 if test "$enable_shared" = yes && test "$GCC" = yes; then
8255 case $archive_cmds in
8256 *'~'*)
8257 # FIXME: we may have to deal with multi-command sequences.
8259 '$CC '*)
8260 # Test whether the compiler implicitly links with -lc since on some
8261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8262 # to ld, don't add -lc before -lgcc.
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8264 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8265 $RM conftest*
8266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8269 (eval $ac_compile) 2>&5
8270 ac_status=$?
8271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; } 2>conftest.err; then
8273 soname=conftest
8274 lib=conftest
8275 libobjs=conftest.$ac_objext
8276 deplibs=
8277 wl=$lt_prog_compiler_wl
8278 pic_flag=$lt_prog_compiler_pic
8279 compiler_flags=-v
8280 linker_flags=-v
8281 verstring=
8282 output_objdir=.
8283 libname=conftest
8284 lt_save_allow_undefined_flag=$allow_undefined_flag
8285 allow_undefined_flag=
8286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8287 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; }
8291 then
8292 archive_cmds_need_lc=no
8293 else
8294 archive_cmds_need_lc=yes
8296 allow_undefined_flag=$lt_save_allow_undefined_flag
8297 else
8298 cat conftest.err 1>&5
8300 $RM conftest*
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8302 $as_echo "$archive_cmds_need_lc" >&6; }
8304 esac
8307 esac
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8468 if test "$GCC" = yes; then
8469 case $host_os in
8470 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8471 *) lt_awk_arg="/^libraries:/" ;;
8472 esac
8473 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8474 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8475 # if the path contains ";" then we assume it to be the separator
8476 # otherwise default to the standard path separator (i.e. ":") - it is
8477 # assumed that no part of a normal pathname contains ";" but that should
8478 # okay in the real world where ";" in dirpaths is itself problematic.
8479 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8480 else
8481 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8483 # Ok, now we have the path, separated by spaces, we can step through it
8484 # and add multilib dir if necessary.
8485 lt_tmp_lt_search_path_spec=
8486 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8487 for lt_sys_path in $lt_search_path_spec; do
8488 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8490 else
8491 test -d "$lt_sys_path" && \
8492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8494 done
8495 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8496 BEGIN {RS=" "; FS="/|\n";} {
8497 lt_foo="";
8498 lt_count=0;
8499 for (lt_i = NF; lt_i > 0; lt_i--) {
8500 if ($lt_i != "" && $lt_i != ".") {
8501 if ($lt_i == "..") {
8502 lt_count++;
8503 } else {
8504 if (lt_count == 0) {
8505 lt_foo="/" $lt_i lt_foo;
8506 } else {
8507 lt_count--;
8512 if (lt_foo != "") { lt_freq[lt_foo]++; }
8513 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8515 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8516 else
8517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8519 library_names_spec=
8520 libname_spec='lib$name'
8521 soname_spec=
8522 shrext_cmds=".so"
8523 postinstall_cmds=
8524 postuninstall_cmds=
8525 finish_cmds=
8526 finish_eval=
8527 shlibpath_var=
8528 shlibpath_overrides_runpath=unknown
8529 version_type=none
8530 dynamic_linker="$host_os ld.so"
8531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8532 need_lib_prefix=unknown
8533 hardcode_into_libs=no
8535 # when you set need_version to no, make sure it does not cause -set_version
8536 # flags to be left without arguments
8537 need_version=unknown
8539 case $host_os in
8540 aix3*)
8541 version_type=linux
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8543 shlibpath_var=LIBPATH
8545 # AIX 3 has no versioning support, so we append a major version to the name.
8546 soname_spec='${libname}${release}${shared_ext}$major'
8549 aix[4-9]*)
8550 version_type=linux
8551 need_lib_prefix=no
8552 need_version=no
8553 hardcode_into_libs=yes
8554 if test "$host_cpu" = ia64; then
8555 # AIX 5 supports IA64
8556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 else
8559 # With GCC up to 2.95.x, collect2 would create an import file
8560 # for dependence libraries. The import file would start with
8561 # the line `#! .'. This would cause the generated library to
8562 # depend on `.', always an invalid library. This was fixed in
8563 # development snapshots of GCC prior to 3.0.
8564 case $host_os in
8565 aix4 | aix4.[01] | aix4.[01].*)
8566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8567 echo ' yes '
8568 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8570 else
8571 can_build_shared=no
8574 esac
8575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8576 # soname into executable. Probably we can add versioning support to
8577 # collect2, so additional links can be useful in future.
8578 if test "$aix_use_runtimelinking" = yes; then
8579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8580 # instead of lib<name>.a to let people know that these are not
8581 # typical AIX shared libraries.
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8583 else
8584 # We preserve .a as extension for shared libraries through AIX4.2
8585 # and later when we are not doing run time linking.
8586 library_names_spec='${libname}${release}.a $libname.a'
8587 soname_spec='${libname}${release}${shared_ext}$major'
8589 shlibpath_var=LIBPATH
8593 amigaos*)
8594 case $host_cpu in
8595 powerpc)
8596 # Since July 2007 AmigaOS4 officially supports .so libraries.
8597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600 m68k)
8601 library_names_spec='$libname.ixlibrary $libname.a'
8602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8603 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'
8605 esac
8608 beos*)
8609 library_names_spec='${libname}${shared_ext}'
8610 dynamic_linker="$host_os ld.so"
8611 shlibpath_var=LIBRARY_PATH
8614 bsdi[45]*)
8615 version_type=linux
8616 need_version=no
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8619 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8622 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8623 # the default ld.so.conf also contains /usr/contrib/lib and
8624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8625 # libtool to hard-code these into programs
8628 cygwin* | mingw* | pw32* | cegcc*)
8629 version_type=windows
8630 shrext_cmds=".dll"
8631 need_version=no
8632 need_lib_prefix=no
8634 case $GCC,$host_os in
8635 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8636 library_names_spec='$libname.dll.a'
8637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8638 postinstall_cmds='base_file=`basename \${file}`~
8639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8640 dldir=$destdir/`dirname \$dlpath`~
8641 test -d \$dldir || mkdir -p \$dldir~
8642 $install_prog $dir/$dlname \$dldir/$dlname~
8643 chmod a+x \$dldir/$dlname~
8644 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8645 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8648 dlpath=$dir/\$dldll~
8649 $RM \$dlpath'
8650 shlibpath_overrides_runpath=yes
8652 case $host_os in
8653 cygwin*)
8654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8656 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8658 mingw* | cegcc*)
8659 # MinGW DLLs use traditional 'lib' prefix
8660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8661 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8662 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8663 # It is most probably a Windows format PATH printed by
8664 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8665 # path with ; separators, and with drive letters. We can handle the
8666 # drive letters (cygwin fileutils understands them), so leave them,
8667 # especially as we might pass files found there to a mingw objdump,
8668 # which wouldn't understand a cygwinified path. Ahh.
8669 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 else
8671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8674 pw32*)
8675 # pw32 DLLs use 'pw' prefix rather than 'lib'
8676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8678 esac
8682 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8684 esac
8685 dynamic_linker='Win32 ld.exe'
8686 # FIXME: first we should search . and the directory the executable is in
8687 shlibpath_var=PATH
8690 darwin* | rhapsody*)
8691 dynamic_linker="$host_os dyld"
8692 version_type=darwin
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8696 soname_spec='${libname}${release}${major}$shared_ext'
8697 shlibpath_overrides_runpath=yes
8698 shlibpath_var=DYLD_LIBRARY_PATH
8699 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8701 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8705 dgux*)
8706 version_type=linux
8707 need_lib_prefix=no
8708 need_version=no
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 shlibpath_var=LD_LIBRARY_PATH
8714 freebsd1*)
8715 dynamic_linker=no
8718 freebsd* | dragonfly*)
8719 # DragonFly does not have aout. When/if they implement a new
8720 # versioning mechanism, adjust this.
8721 if test -x /usr/bin/objformat; then
8722 objformat=`/usr/bin/objformat`
8723 else
8724 case $host_os in
8725 freebsd[123]*) objformat=aout ;;
8726 *) objformat=elf ;;
8727 esac
8729 # Handle Gentoo/FreeBSD as it was Linux
8730 case $host_vendor in
8731 gentoo)
8732 version_type=linux ;;
8734 version_type=freebsd-$objformat ;;
8735 esac
8737 case $version_type in
8738 freebsd-elf*)
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8740 need_version=no
8741 need_lib_prefix=no
8743 freebsd-*)
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8745 need_version=yes
8747 linux)
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 need_lib_prefix=no
8751 need_version=no
8753 esac
8754 shlibpath_var=LD_LIBRARY_PATH
8755 case $host_os in
8756 freebsd2*)
8757 shlibpath_overrides_runpath=yes
8759 freebsd3.[01]* | freebsdelf3.[01]*)
8760 shlibpath_overrides_runpath=yes
8761 hardcode_into_libs=yes
8763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8765 shlibpath_overrides_runpath=no
8766 hardcode_into_libs=yes
8768 *) # from 4.6 on, and DragonFly
8769 shlibpath_overrides_runpath=yes
8770 hardcode_into_libs=yes
8772 esac
8775 gnu*)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 hardcode_into_libs=yes
8785 hpux9* | hpux10* | hpux11*)
8786 # Give a soname corresponding to the major version so that dld.sl refuses to
8787 # link against other versions.
8788 version_type=sunos
8789 need_lib_prefix=no
8790 need_version=no
8791 case $host_cpu in
8792 ia64*)
8793 shrext_cmds='.so'
8794 hardcode_into_libs=yes
8795 dynamic_linker="$host_os dld.so"
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 if test "X$HPUX_IA64_MODE" = X32; then
8801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8802 else
8803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 hppa*64*)
8808 shrext_cmds='.sl'
8809 hardcode_into_libs=yes
8810 dynamic_linker="$host_os dld.sl"
8811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8819 shrext_cmds='.sl'
8820 dynamic_linker="$host_os dld.sl"
8821 shlibpath_var=SHLIB_PATH
8822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8826 esac
8827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8828 postinstall_cmds='chmod 555 $lib'
8831 interix[3-9]*)
8832 version_type=linux
8833 need_lib_prefix=no
8834 need_version=no
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=no
8840 hardcode_into_libs=yes
8843 irix5* | irix6* | nonstopux*)
8844 case $host_os in
8845 nonstopux*) version_type=nonstopux ;;
8847 if test "$lt_cv_prog_gnu_ld" = yes; then
8848 version_type=linux
8849 else
8850 version_type=irix
8851 fi ;;
8852 esac
8853 need_lib_prefix=no
8854 need_version=no
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8857 case $host_os in
8858 irix5* | nonstopux*)
8859 libsuff= shlibsuff=
8862 case $LD in # libtool.m4 will add one of these switches to LD
8863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8864 libsuff= shlibsuff= libmagic=32-bit;;
8865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8866 libsuff=32 shlibsuff=N32 libmagic=N32;;
8867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8869 *) libsuff= shlibsuff= libmagic=never-match;;
8870 esac
8872 esac
8873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8874 shlibpath_overrides_runpath=no
8875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8877 hardcode_into_libs=yes
8880 # No shared lib support for Linux oldld, aout, or coff.
8881 linux*oldld* | linux*aout* | linux*coff*)
8882 dynamic_linker=no
8885 # This must be Linux ELF.
8886 linux* | k*bsd*-gnu)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 shlibpath_overrides_runpath=no
8895 # Some binutils ld are patched to set DT_RUNPATH
8896 save_LDFLAGS=$LDFLAGS
8897 save_libdir=$libdir
8898 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8899 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8904 main ()
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8913 shlibpath_overrides_runpath=yes
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LDFLAGS=$save_LDFLAGS
8919 libdir=$save_libdir
8921 # This implies no fast_install, which is unacceptable.
8922 # Some rework will be needed to allow for fast_install
8923 # before this can be enabled.
8924 hardcode_into_libs=yes
8926 # Append ld.so.conf contents to the search path
8927 if test -f /etc/ld.so.conf; then
8928 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' ' '`
8929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8932 # We used to test for /lib/ld.so.1 and disable shared libraries on
8933 # powerpc, because MkLinux only supported shared libraries with the
8934 # GNU dynamic linker. Since this was broken with cross compilers,
8935 # most powerpc-linux boxes support dynamic linking these days and
8936 # people can always --disable-shared, the test was removed, and we
8937 # assume the GNU/Linux dynamic linker is in use.
8938 dynamic_linker='GNU/Linux ld.so'
8941 netbsd*)
8942 version_type=sunos
8943 need_lib_prefix=no
8944 need_version=no
8945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8948 dynamic_linker='NetBSD (a.out) ld.so'
8949 else
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 dynamic_linker='NetBSD ld.elf_so'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=yes
8956 hardcode_into_libs=yes
8959 newsos6)
8960 version_type=linux
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8966 *nto* | *qnx*)
8967 version_type=qnx
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=no
8974 hardcode_into_libs=yes
8975 dynamic_linker='ldqnx.so'
8978 openbsd*)
8979 version_type=sunos
8980 sys_lib_dlsearch_path_spec="/usr/lib"
8981 need_lib_prefix=no
8982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8983 case $host_os in
8984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8985 *) need_version=no ;;
8986 esac
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8991 case $host_os in
8992 openbsd2.[89] | openbsd2.[89].*)
8993 shlibpath_overrides_runpath=no
8996 shlibpath_overrides_runpath=yes
8998 esac
8999 else
9000 shlibpath_overrides_runpath=yes
9004 os2*)
9005 libname_spec='$name'
9006 shrext_cmds=".dll"
9007 need_lib_prefix=no
9008 library_names_spec='$libname${shared_ext} $libname.a'
9009 dynamic_linker='OS/2 ld.exe'
9010 shlibpath_var=LIBPATH
9013 osf3* | osf4* | osf5*)
9014 version_type=osf
9015 need_lib_prefix=no
9016 need_version=no
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9024 rdos*)
9025 dynamic_linker=no
9028 solaris*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9036 hardcode_into_libs=yes
9037 # ldd complains unless libraries are executable
9038 postinstall_cmds='chmod +x $lib'
9041 sunos4*)
9042 version_type=sunos
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=yes
9047 if test "$with_gnu_ld" = yes; then
9048 need_lib_prefix=no
9050 need_version=yes
9053 sysv4 | sysv4.3*)
9054 version_type=linux
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 case $host_vendor in
9059 sni)
9060 shlibpath_overrides_runpath=no
9061 need_lib_prefix=no
9062 runpath_var=LD_RUN_PATH
9064 siemens)
9065 need_lib_prefix=no
9067 motorola)
9068 need_lib_prefix=no
9069 need_version=no
9070 shlibpath_overrides_runpath=no
9071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9073 esac
9076 sysv4*MP*)
9077 if test -d /usr/nec ;then
9078 version_type=linux
9079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9080 soname_spec='$libname${shared_ext}.$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9086 version_type=freebsd-elf
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=yes
9093 hardcode_into_libs=yes
9094 if test "$with_gnu_ld" = yes; then
9095 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9096 else
9097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9098 case $host_os in
9099 sco3.2v5*)
9100 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9102 esac
9104 sys_lib_dlsearch_path_spec='/usr/lib'
9107 tpf*)
9108 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=no
9115 hardcode_into_libs=yes
9118 uts4*)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9126 dynamic_linker=no
9128 esac
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9130 $as_echo "$dynamic_linker" >&6; }
9131 test "$dynamic_linker" = no && can_build_shared=no
9133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9134 if test "$GCC" = yes; then
9135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9138 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9139 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9141 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9142 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9232 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9233 hardcode_action=
9234 if test -n "$hardcode_libdir_flag_spec" ||
9235 test -n "$runpath_var" ||
9236 test "X$hardcode_automatic" = "Xyes" ; then
9238 # We can hardcode non-existent directories.
9239 if test "$hardcode_direct" != no &&
9240 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9241 # have to relink, otherwise we might link with an installed library
9242 # when we should be linking with a yet-to-be-installed one
9243 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9244 test "$hardcode_minus_L" != no; then
9245 # Linking always hardcodes the temporary library directory.
9246 hardcode_action=relink
9247 else
9248 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9249 hardcode_action=immediate
9251 else
9252 # We cannot hardcode anything, or else we can only hardcode existing
9253 # directories.
9254 hardcode_action=unsupported
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9257 $as_echo "$hardcode_action" >&6; }
9259 if test "$hardcode_action" = relink ||
9260 test "$inherit_rpath" = yes; then
9261 # Fast installation is not supported
9262 enable_fast_install=no
9263 elif test "$shlibpath_overrides_runpath" = yes ||
9264 test "$enable_shared" = no; then
9265 # Fast installation is not necessary
9266 enable_fast_install=needless
9274 if test "x$enable_dlopen" != xyes; then
9275 enable_dlopen=unknown
9276 enable_dlopen_self=unknown
9277 enable_dlopen_self_static=unknown
9278 else
9279 lt_cv_dlopen=no
9280 lt_cv_dlopen_libs=
9282 case $host_os in
9283 beos*)
9284 lt_cv_dlopen="load_add_on"
9285 lt_cv_dlopen_libs=
9286 lt_cv_dlopen_self=yes
9289 mingw* | pw32* | cegcc*)
9290 lt_cv_dlopen="LoadLibrary"
9291 lt_cv_dlopen_libs=
9294 cygwin*)
9295 lt_cv_dlopen="dlopen"
9296 lt_cv_dlopen_libs=
9299 darwin*)
9300 # if libdl is installed we need to link against it
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9302 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9303 if ${ac_cv_lib_dl_dlopen+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 ac_check_lib_save_LIBS=$LIBS
9307 LIBS="-ldl $LIBS"
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9311 /* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 char dlopen ();
9319 main ()
9321 return dlopen ();
9323 return 0;
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"; then :
9327 ac_cv_lib_dl_dlopen=yes
9328 else
9329 ac_cv_lib_dl_dlopen=no
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9336 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9337 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9339 else
9341 lt_cv_dlopen="dyld"
9342 lt_cv_dlopen_libs=
9343 lt_cv_dlopen_self=yes
9350 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9351 if test "x$ac_cv_func_shl_load" = xyes; then :
9352 lt_cv_dlopen="shl_load"
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9355 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9356 if ${ac_cv_lib_dld_shl_load+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 ac_check_lib_save_LIBS=$LIBS
9360 LIBS="-ldld $LIBS"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 /* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 char shl_load ();
9372 main ()
9374 return shl_load ();
9376 return 0;
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"; then :
9380 ac_cv_lib_dld_shl_load=yes
9381 else
9382 ac_cv_lib_dld_shl_load=no
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 LIBS=$ac_check_lib_save_LIBS
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9389 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9390 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9392 else
9393 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9394 if test "x$ac_cv_func_dlopen" = xyes; then :
9395 lt_cv_dlopen="dlopen"
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9398 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9399 if ${ac_cv_lib_dl_dlopen+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-ldl $LIBS"
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char dlopen ();
9415 main ()
9417 return dlopen ();
9419 return 0;
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423 ac_cv_lib_dl_dlopen=yes
9424 else
9425 ac_cv_lib_dl_dlopen=no
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9433 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9437 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9438 if ${ac_cv_lib_svld_dlopen+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 ac_check_lib_save_LIBS=$LIBS
9442 LIBS="-lsvld $LIBS"
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 char dlopen ();
9454 main ()
9456 return dlopen ();
9458 return 0;
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462 ac_cv_lib_svld_dlopen=yes
9463 else
9464 ac_cv_lib_svld_dlopen=no
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9471 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9472 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9476 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9477 if ${ac_cv_lib_dld_dld_link+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-ldld $LIBS"
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char dld_link ();
9493 main ()
9495 return dld_link ();
9497 return 0;
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501 ac_cv_lib_dld_dld_link=yes
9502 else
9503 ac_cv_lib_dld_dld_link=no
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LIBS=$ac_check_lib_save_LIBS
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9510 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9511 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9512 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9531 esac
9533 if test "x$lt_cv_dlopen" != xno; then
9534 enable_dlopen=yes
9535 else
9536 enable_dlopen=no
9539 case $lt_cv_dlopen in
9540 dlopen)
9541 save_CPPFLAGS="$CPPFLAGS"
9542 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9544 save_LDFLAGS="$LDFLAGS"
9545 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9547 save_LIBS="$LIBS"
9548 LIBS="$lt_cv_dlopen_libs $LIBS"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9551 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9552 if ${lt_cv_dlopen_self+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 if test "$cross_compiling" = yes; then :
9556 lt_cv_dlopen_self=cross
9557 else
9558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9559 lt_status=$lt_dlunknown
9560 cat > conftest.$ac_ext <<_LT_EOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9564 #if HAVE_DLFCN_H
9565 #include <dlfcn.h>
9566 #endif
9568 #include <stdio.h>
9570 #ifdef RTLD_GLOBAL
9571 # define LT_DLGLOBAL RTLD_GLOBAL
9572 #else
9573 # ifdef DL_GLOBAL
9574 # define LT_DLGLOBAL DL_GLOBAL
9575 # else
9576 # define LT_DLGLOBAL 0
9577 # endif
9578 #endif
9580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9581 find out it does not work in some platform. */
9582 #ifndef LT_DLLAZY_OR_NOW
9583 # ifdef RTLD_LAZY
9584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9585 # else
9586 # ifdef DL_LAZY
9587 # define LT_DLLAZY_OR_NOW DL_LAZY
9588 # else
9589 # ifdef RTLD_NOW
9590 # define LT_DLLAZY_OR_NOW RTLD_NOW
9591 # else
9592 # ifdef DL_NOW
9593 # define LT_DLLAZY_OR_NOW DL_NOW
9594 # else
9595 # define LT_DLLAZY_OR_NOW 0
9596 # endif
9597 # endif
9598 # endif
9599 # endif
9600 #endif
9602 void fnord() { int i=42;}
9603 int main ()
9605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9606 int status = $lt_dlunknown;
9608 if (self)
9610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9612 /* dlclose (self); */
9614 else
9615 puts (dlerror ());
9617 return status;
9619 _LT_EOF
9620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9621 (eval $ac_link) 2>&5
9622 ac_status=$?
9623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9624 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9625 (./conftest; exit; ) >&5 2>/dev/null
9626 lt_status=$?
9627 case x$lt_status in
9628 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9629 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9630 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9631 esac
9632 else :
9633 # compilation failed
9634 lt_cv_dlopen_self=no
9637 rm -fr conftest*
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9642 $as_echo "$lt_cv_dlopen_self" >&6; }
9644 if test "x$lt_cv_dlopen_self" = xyes; then
9645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9647 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9648 if ${lt_cv_dlopen_self_static+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test "$cross_compiling" = yes; then :
9652 lt_cv_dlopen_self_static=cross
9653 else
9654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9655 lt_status=$lt_dlunknown
9656 cat > conftest.$ac_ext <<_LT_EOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9660 #if HAVE_DLFCN_H
9661 #include <dlfcn.h>
9662 #endif
9664 #include <stdio.h>
9666 #ifdef RTLD_GLOBAL
9667 # define LT_DLGLOBAL RTLD_GLOBAL
9668 #else
9669 # ifdef DL_GLOBAL
9670 # define LT_DLGLOBAL DL_GLOBAL
9671 # else
9672 # define LT_DLGLOBAL 0
9673 # endif
9674 #endif
9676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9677 find out it does not work in some platform. */
9678 #ifndef LT_DLLAZY_OR_NOW
9679 # ifdef RTLD_LAZY
9680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9681 # else
9682 # ifdef DL_LAZY
9683 # define LT_DLLAZY_OR_NOW DL_LAZY
9684 # else
9685 # ifdef RTLD_NOW
9686 # define LT_DLLAZY_OR_NOW RTLD_NOW
9687 # else
9688 # ifdef DL_NOW
9689 # define LT_DLLAZY_OR_NOW DL_NOW
9690 # else
9691 # define LT_DLLAZY_OR_NOW 0
9692 # endif
9693 # endif
9694 # endif
9695 # endif
9696 #endif
9698 void fnord() { int i=42;}
9699 int main ()
9701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9702 int status = $lt_dlunknown;
9704 if (self)
9706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9707 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9708 /* dlclose (self); */
9710 else
9711 puts (dlerror ());
9713 return status;
9715 _LT_EOF
9716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9717 (eval $ac_link) 2>&5
9718 ac_status=$?
9719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9720 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9721 (./conftest; exit; ) >&5 2>/dev/null
9722 lt_status=$?
9723 case x$lt_status in
9724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9726 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9727 esac
9728 else :
9729 # compilation failed
9730 lt_cv_dlopen_self_static=no
9733 rm -fr conftest*
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9738 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9741 CPPFLAGS="$save_CPPFLAGS"
9742 LDFLAGS="$save_LDFLAGS"
9743 LIBS="$save_LIBS"
9745 esac
9747 case $lt_cv_dlopen_self in
9748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9749 *) enable_dlopen_self=unknown ;;
9750 esac
9752 case $lt_cv_dlopen_self_static in
9753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9754 *) enable_dlopen_self_static=unknown ;;
9755 esac
9774 striplib=
9775 old_striplib=
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9777 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9778 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9779 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9780 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; }
9783 else
9784 # FIXME - insert some real tests, host_os isn't really good enough
9785 case $host_os in
9786 darwin*)
9787 if test -n "$STRIP" ; then
9788 striplib="$STRIP -x"
9789 old_striplib="$STRIP -S"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9791 $as_echo "yes" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9801 esac
9815 # Report which library types will actually be built
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9817 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9819 $as_echo "$can_build_shared" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9822 $as_echo_n "checking whether to build shared libraries... " >&6; }
9823 test "$can_build_shared" = "no" && enable_shared=no
9825 # On AIX, shared libraries and static libraries use the same namespace, and
9826 # are all built from PIC.
9827 case $host_os in
9828 aix3*)
9829 test "$enable_shared" = yes && enable_static=no
9830 if test -n "$RANLIB"; then
9831 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9832 postinstall_cmds='$RANLIB $lib'
9836 aix[4-9]*)
9837 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9838 test "$enable_shared" = yes && enable_static=no
9841 esac
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9843 $as_echo "$enable_shared" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9846 $as_echo_n "checking whether to build static libraries... " >&6; }
9847 # Make sure either enable_shared or enable_static is yes.
9848 test "$enable_shared" = yes || enable_static=yes
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9850 $as_echo "$enable_static" >&6; }
9856 ac_ext=c
9857 ac_cpp='$CPP $CPPFLAGS'
9858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9862 CC="$lt_save_CC"
9876 ac_config_commands="$ac_config_commands libtool"
9881 # Only expand once:
9884 # Find a good install program. We prefer a C program (faster),
9885 # so one script is as good as another. But avoid the broken or
9886 # incompatible versions:
9887 # SysV /etc/install, /usr/sbin/install
9888 # SunOS /usr/etc/install
9889 # IRIX /sbin/install
9890 # AIX /bin/install
9891 # AmigaOS /C/install, which installs bootblocks on floppy discs
9892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9895 # OS/2's system install, which has a completely different semantic
9896 # ./install, which can be erroneously created by make from ./install.sh.
9897 # Reject install programs that cannot install multiple files.
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9899 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9900 if test -z "$INSTALL"; then
9901 if ${ac_cv_path_install+:} false; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 # Account for people who put trailing slashes in PATH elements.
9910 case $as_dir/ in #((
9911 ./ | .// | /[cC]/* | \
9912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9913 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9914 /usr/ucb/* ) ;;
9916 # OSF1 and SCO ODT 3.0 have their own names for install.
9917 # Don't use installbsd from OSF since it installs stuff as root
9918 # by default.
9919 for ac_prog in ginstall scoinst install; do
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9922 if test $ac_prog = install &&
9923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9924 # AIX install. It has an incompatible calling convention.
9926 elif test $ac_prog = install &&
9927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9928 # program-specific install script used by HP pwplus--don't use.
9930 else
9931 rm -rf conftest.one conftest.two conftest.dir
9932 echo one > conftest.one
9933 echo two > conftest.two
9934 mkdir conftest.dir
9935 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9936 test -s conftest.one && test -s conftest.two &&
9937 test -s conftest.dir/conftest.one &&
9938 test -s conftest.dir/conftest.two
9939 then
9940 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9941 break 3
9945 done
9946 done
9948 esac
9950 done
9951 IFS=$as_save_IFS
9953 rm -rf conftest.one conftest.two conftest.dir
9956 if test "${ac_cv_path_install+set}" = set; then
9957 INSTALL=$ac_cv_path_install
9958 else
9959 # As a last resort, use the slow shell script. Don't cache a
9960 # value for INSTALL within a source directory, because that will
9961 # break other packages using the cache if that directory is
9962 # removed, or if the value is a relative name.
9963 INSTALL=$ac_install_sh
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9967 $as_echo "$INSTALL" >&6; }
9969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9970 # It thinks the first close brace ends the variable substitution.
9971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9978 #########
9979 # Enable large file support (if special flags are necessary)
9981 # Check whether --enable-largefile was given.
9982 if test "${enable_largefile+set}" = set; then :
9983 enableval=$enable_largefile;
9986 if test "$enable_largefile" != no; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9989 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9990 if ${ac_cv_sys_largefile_CC+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 ac_cv_sys_largefile_CC=no
9994 if test "$GCC" != yes; then
9995 ac_save_CC=$CC
9996 while :; do
9997 # IRIX 6.2 and later do not support large files by default,
9998 # so use the C compiler's -n32 option if that helps.
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 #include <sys/types.h>
10002 /* Check that off_t can represent 2**63 - 1 correctly.
10003 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10004 since some C++ compilers masquerading as C compilers
10005 incorrectly reject 9223372036854775807. */
10006 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10008 && LARGE_OFF_T % 2147483647 == 1)
10009 ? 1 : -1];
10011 main ()
10015 return 0;
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 break
10021 rm -f core conftest.err conftest.$ac_objext
10022 CC="$CC -n32"
10023 if ac_fn_c_try_compile "$LINENO"; then :
10024 ac_cv_sys_largefile_CC=' -n32'; break
10026 rm -f core conftest.err conftest.$ac_objext
10027 break
10028 done
10029 CC=$ac_save_CC
10030 rm -f conftest.$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10034 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10035 if test "$ac_cv_sys_largefile_CC" != no; then
10036 CC=$CC$ac_cv_sys_largefile_CC
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10040 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10041 if ${ac_cv_sys_file_offset_bits+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 while :; do
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 #include <sys/types.h>
10048 /* Check that off_t can represent 2**63 - 1 correctly.
10049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10050 since some C++ compilers masquerading as C compilers
10051 incorrectly reject 9223372036854775807. */
10052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10054 && LARGE_OFF_T % 2147483647 == 1)
10055 ? 1 : -1];
10057 main ()
10061 return 0;
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065 ac_cv_sys_file_offset_bits=no; break
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 #define _FILE_OFFSET_BITS 64
10071 #include <sys/types.h>
10072 /* Check that off_t can represent 2**63 - 1 correctly.
10073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10074 since some C++ compilers masquerading as C compilers
10075 incorrectly reject 9223372036854775807. */
10076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10078 && LARGE_OFF_T % 2147483647 == 1)
10079 ? 1 : -1];
10081 main ()
10085 return 0;
10087 _ACEOF
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 ac_cv_sys_file_offset_bits=64; break
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 ac_cv_sys_file_offset_bits=unknown
10093 break
10094 done
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10097 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10098 case $ac_cv_sys_file_offset_bits in #(
10099 no | unknown) ;;
10101 cat >>confdefs.h <<_ACEOF
10102 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10103 _ACEOF
10105 esac
10106 rm -rf conftest*
10107 if test $ac_cv_sys_file_offset_bits = unknown; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10109 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10110 if ${ac_cv_sys_large_files+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 while :; do
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 #include <sys/types.h>
10117 /* Check that off_t can represent 2**63 - 1 correctly.
10118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10119 since some C++ compilers masquerading as C compilers
10120 incorrectly reject 9223372036854775807. */
10121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10123 && LARGE_OFF_T % 2147483647 == 1)
10124 ? 1 : -1];
10126 main ()
10130 return 0;
10132 _ACEOF
10133 if ac_fn_c_try_compile "$LINENO"; then :
10134 ac_cv_sys_large_files=no; break
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 #define _LARGE_FILES 1
10140 #include <sys/types.h>
10141 /* Check that off_t can represent 2**63 - 1 correctly.
10142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10143 since some C++ compilers masquerading as C compilers
10144 incorrectly reject 9223372036854775807. */
10145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10147 && LARGE_OFF_T % 2147483647 == 1)
10148 ? 1 : -1];
10150 main ()
10154 return 0;
10156 _ACEOF
10157 if ac_fn_c_try_compile "$LINENO"; then :
10158 ac_cv_sys_large_files=1; break
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 ac_cv_sys_large_files=unknown
10162 break
10163 done
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10166 $as_echo "$ac_cv_sys_large_files" >&6; }
10167 case $ac_cv_sys_large_files in #(
10168 no | unknown) ;;
10170 cat >>confdefs.h <<_ACEOF
10171 #define _LARGE_FILES $ac_cv_sys_large_files
10172 _ACEOF
10174 esac
10175 rm -rf conftest*
10182 #########
10183 # Check for needed/wanted data types
10184 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10185 if test "x$ac_cv_type_int8_t" = xyes; then :
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_INT8_T 1
10189 _ACEOF
10193 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10194 if test "x$ac_cv_type_int16_t" = xyes; then :
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_INT16_T 1
10198 _ACEOF
10202 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10203 if test "x$ac_cv_type_int32_t" = xyes; then :
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_INT32_T 1
10207 _ACEOF
10211 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10212 if test "x$ac_cv_type_int64_t" = xyes; then :
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_INT64_T 1
10216 _ACEOF
10220 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10221 if test "x$ac_cv_type_intptr_t" = xyes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_INTPTR_T 1
10225 _ACEOF
10229 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10230 if test "x$ac_cv_type_uint8_t" = xyes; then :
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_UINT8_T 1
10234 _ACEOF
10238 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10239 if test "x$ac_cv_type_uint16_t" = xyes; then :
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_UINT16_T 1
10243 _ACEOF
10247 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10248 if test "x$ac_cv_type_uint32_t" = xyes; then :
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_UINT32_T 1
10252 _ACEOF
10256 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10257 if test "x$ac_cv_type_uint64_t" = xyes; then :
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_UINT64_T 1
10261 _ACEOF
10265 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10266 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_UINTPTR_T 1
10270 _ACEOF
10276 #########
10277 # Check for needed/wanted headers
10278 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10279 do :
10280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10283 cat >>confdefs.h <<_ACEOF
10284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10285 _ACEOF
10289 done
10292 #########
10293 # Figure out whether or not we have these functions
10295 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
10296 do :
10297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10299 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 _ACEOF
10305 done
10308 #########
10309 # By default, we use the amalgamation (this may be changed below...)
10311 USE_AMALGAMATION=1
10313 #########
10314 # Figure out all the name of a working tclsh and parameters needed to compile against Tcl.
10315 # The --with-tcl= and/or --with-tclsh= configuration arguments might be useful for this.
10318 # Check whether --with-tclsh was given.
10319 if test "${with_tclsh+set}" = set; then :
10320 withval=$with_tclsh;
10324 # Check whether --with-tcl was given.
10325 if test "${with_tcl+set}" = set; then :
10326 withval=$with_tcl;
10329 # Check whether --enable-tcl was given.
10330 if test "${enable_tcl+set}" = set; then :
10331 enableval=$enable_tcl; use_tcl=$enableval
10332 else
10333 use_tcl=yes
10336 original_use_tcl=${use_tcl}
10337 if test x"${with_tclsh}" == x -a x"${with_tcl}" == x; then
10338 for ac_prog in tclsh9.0 tclsh8.6 tclsh
10340 # Extract the first word of "$ac_prog", so it can be a program name with args.
10341 set dummy $ac_prog; ac_word=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10345 $as_echo_n "(cached) " >&6
10346 else
10347 if test -n "$TCLSH_CMD"; then
10348 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10349 else
10350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10353 IFS=$as_save_IFS
10354 test -z "$as_dir" && as_dir=.
10355 for ac_exec_ext in '' $ac_executable_extensions; do
10356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10357 ac_cv_prog_TCLSH_CMD="$ac_prog"
10358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10359 break 2
10361 done
10362 done
10363 IFS=$as_save_IFS
10367 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10368 if test -n "$TCLSH_CMD"; then
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10370 $as_echo "$TCLSH_CMD" >&6; }
10371 else
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }
10377 test -n "$TCLSH_CMD" && break
10378 done
10379 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10381 with_tclsh=${TCLSH_CMD}
10383 if test x"${with_tclsh}" != x -a x"${with_tclsh}" != xnone; then
10384 TCLSH_CMD=${with_tclsh}
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using tclsh at \"$TCLSH_CMD\"" >&5
10386 $as_echo "using tclsh at \"$TCLSH_CMD\"" >&6; }
10387 if test x"${use_tcl}" = "xyes"; then
10388 with_tcl=`${with_tclsh} <${srcdir}/tool/find_tclconfig.tcl`
10389 if test x"${with_tcl}" != x; then
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD recommends the tclConfig.sh at ${with_tcl}" >&5
10391 $as_echo "$TCLSH_CMD recommends the tclConfig.sh at ${with_tcl}" >&6; }
10392 else
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $TCLSH_CMD is unable to recommend a tclConfig.sh" >&5
10394 $as_echo "$as_me: WARNING: $TCLSH_CMD is unable to recommend a tclConfig.sh" >&2;}
10395 use_tcl=no
10399 if test x"${use_tcl}" = "xyes"; then
10400 if test x"${with_tcl}" != x; then
10401 if test -r ${with_tcl}/tclConfig.sh; then
10402 tclconfig="${with_tcl}/tclConfig.sh"
10403 else
10404 for i in tcl8.6 tcl9.0 lib; do
10405 if test -r ${with_tcl}/$i/tclConfig.sh; then
10406 tclconfig=${with_tcl}/$i/tclConfig.sh
10407 break
10409 done
10411 if test ! -r "${tclconfig}"; then
10412 as_fn_error $? "no tclConfig.sh file found under ${with_tcl}" "$LINENO" 5
10414 else
10415 # If we have not yet found a tclConfig.sh file, look in $libdir whic is
10416 # set automatically by autoconf or by the --prefix command-line option.
10417 # See https://sqlite.org/forum/forumpost/e04e693439a22457
10418 libdir=${prefix}/lib
10419 if test -r ${libdir}/tclConfig.sh; then
10420 tclconfig=${libdir}/tclConfig.sh
10421 else
10422 for i in tcl8.6 tcl9.0 lib; do
10423 if test -r ${libdir}/$i/tclConfig.sh; then
10424 tclconfig=${libdir}/$i/tclConfig.sh
10425 break
10427 done
10429 if test ! -r "${tclconfig}"; then
10430 as_fn_error $? "cannot find a usable tclConfig.sh file.
10431 Use --with-tcl=DIR to specify a directory where tclConfig.sh can be found.
10432 SQLite does not use TCL internally, but TCL is required to build SQLite
10433 from canonical sources and TCL is required for testing." "$LINENO" 5
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading TCL configuration from ${tclconfig}" >&5
10437 $as_echo "loading TCL configuration from ${tclconfig}" >&6; }
10438 . ${tclconfig}
10442 # There are lots of other configuration variables that are provided by the
10443 # tclConfig.sh file and that could be included here. But as of right now,
10444 # TCL_LIB_SPEC is the only what that the Makefile uses.
10445 HAVE_TCL=1
10446 elif test x"${original_use_tcl}" = "xno"; then
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to run tests because of --disable-tcl" >&5
10448 $as_echo "unable to run tests because of --disable-tcl" >&6; }
10449 HAVE_TCL=0
10450 else
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to run tests because no tclConfig.sh file could be located" >&5
10452 $as_echo "unable to run tests because no tclConfig.sh file could be located" >&6; }
10453 HAVE_TCL=0
10456 if test x"$TCLSH_CMD" == x; then
10457 TCLSH_CMD=${TCL_EXEC_PREFIX}/bin/tclsh${TCL_VERSION}
10458 if test ! -x ${TCLSH_CMD}; then
10459 TCLSH_CMD_2=${TCL_EXEC_PREFIX}/bin/tclsh
10460 if test ! -x ${TCLSH_CMD_2}; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find a usable tclsh at either ${TCLSH_CMD} or ${TCLSH_CMD_2}" >&5
10462 $as_echo "$as_me: WARNING: cannot find a usable tclsh at either ${TCLSH_CMD} or ${TCLSH_CMD_2}" >&2;}
10463 TCLSH_CMD=none
10464 else
10465 TCLSH_CMD=${TCLSH_CMD_2}
10469 if test "$TCLSH_CMD" = "none"; then
10470 # If we can't find a local tclsh, then building the amalgamation will fail.
10471 # We act as though --disable-amalgamation has been used.
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: can't find tclsh - defaulting to non-amalgamation build." >&5
10473 $as_echo "$as_me: WARNING: Warning: can't find tclsh - defaulting to non-amalgamation build." >&2;}
10474 USE_AMALGAMATION=0
10475 TCLSH_CMD="tclsh"
10480 if test "x${TCLLIBDIR+set}" != "xset" ; then
10481 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10482 if test -d $i ; then
10483 TCLLIBDIR=$i
10484 break
10486 done
10487 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10490 #########
10491 # Set up options for running tests.
10493 # Check whether --enable-test-status was given.
10494 if test "${enable_test_status+set}" = set; then :
10495 enableval=$enable_test_status; use_vt100=$enableval
10496 else
10497 use_vt100=no
10500 if test $use_vt100 != no; then
10501 TSTRNNR_OPTS=--status
10502 else
10503 TSTRNNR_OPTS=
10508 #########
10509 # Set up an appropriate program prefix
10511 if test "$program_prefix" = "NONE"; then
10512 program_prefix=""
10516 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10518 $as_echo "$as_me: Version set to $VERSION" >&6;}
10520 RELEASE=`cat $srcdir/VERSION`
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10522 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10525 ##########
10526 # Handle --with-wasi-sdk=DIR
10528 # This must be early because it changes the toolchain.
10531 # Check whether --with-wasi-sdk was given.
10532 if test "${with_wasi_sdk+set}" = set; then :
10533 withval=$with_wasi_sdk; with_wasisdk=${withval}
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
10537 $as_echo_n "checking for WASI SDK directory... " >&6; }
10538 if ${ac_cv_c_wasi_sdk+:} false; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10542 # First check to see if --with-tcl was specified.
10543 if test x"${with_wasi_sdk}" != x ; then
10544 if ! test -d "${with_wasi_sdk}" ; then
10545 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
10548 $as_echo "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
10549 use_wasi_sdk=yes
10550 else
10551 use_wasi_sdk=no
10556 if test "${use_wasi_sdk}" = "no" ; then
10557 HAVE_WASI_SDK=""
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10560 else
10561 HAVE_WASI_SDK=1
10562 # Changing --host and --target have no effect here except to possibly
10563 # cause confusion. autoconf has finished processing them by this
10564 # point.
10566 # host_alias=wasm32-wasi
10567 # target=wasm32-wasi
10569 # Merely changing CC and LD to the wasi-sdk's is enough to get
10570 # sqlite3.o building in WASM format.
10571 CC="${with_wasi_sdk}/bin/clang"
10572 LD="${with_wasi_sdk}/bin/wasm-ld"
10573 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
10574 cross_compiling=yes
10575 enable_threadsafe=no
10576 use_tcl=no
10577 enable_tcl=no
10578 # libtool is apparently hard-coded to use gcc for linking DLLs, so
10579 # we disable the DLL build...
10580 enable_shared=no
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10582 $as_echo "yes" >&6; }
10587 #########
10588 # Locate a compiler for the build machine. This compiler should
10589 # generate command-line programs that run on the build machine.
10591 if test x"$cross_compiling" = xno; then
10592 BUILD_CC=$CC
10593 BUILD_CFLAGS=$CFLAGS
10594 else
10595 if test "${BUILD_CC+set}" != set; then
10596 for ac_prog in gcc cc cl
10598 # Extract the first word of "$ac_prog", so it can be a program name with args.
10599 set dummy $ac_prog; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10601 $as_echo_n "checking for $ac_word... " >&6; }
10602 if ${ac_cv_prog_BUILD_CC+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 if test -n "$BUILD_CC"; then
10606 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10607 else
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615 ac_cv_prog_BUILD_CC="$ac_prog"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 break 2
10619 done
10620 done
10621 IFS=$as_save_IFS
10625 BUILD_CC=$ac_cv_prog_BUILD_CC
10626 if test -n "$BUILD_CC"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10628 $as_echo "$BUILD_CC" >&6; }
10629 else
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10631 $as_echo "no" >&6; }
10635 test -n "$BUILD_CC" && break
10636 done
10639 if test "${BUILD_CFLAGS+set}" != set; then
10640 BUILD_CFLAGS="-g"
10645 ##########
10646 # Do we want to support multithreaded use of sqlite
10648 # Check whether --enable-threadsafe was given.
10649 if test "${enable_threadsafe+set}" = set; then :
10650 enableval=$enable_threadsafe;
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10654 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10655 if test "$enable_threadsafe" = "no"; then
10656 SQLITE_THREADSAFE=0
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658 $as_echo "no" >&6; }
10659 else
10660 SQLITE_THREADSAFE=1
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10662 $as_echo "yes" >&6; }
10666 if test "$SQLITE_THREADSAFE" = "1"; then
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10668 $as_echo_n "checking for library containing pthread_create... " >&6; }
10669 if ${ac_cv_search_pthread_create+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ac_func_search_save_LIBS=$LIBS
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 /* Override any GCC internal prototype to avoid an error.
10677 Use char because int might match the return type of a GCC
10678 builtin and then its argument prototype would still apply. */
10679 #ifdef __cplusplus
10680 extern "C"
10681 #endif
10682 char pthread_create ();
10684 main ()
10686 return pthread_create ();
10688 return 0;
10690 _ACEOF
10691 for ac_lib in '' pthread; do
10692 if test -z "$ac_lib"; then
10693 ac_res="none required"
10694 else
10695 ac_res=-l$ac_lib
10696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10698 if ac_fn_c_try_link "$LINENO"; then :
10699 ac_cv_search_pthread_create=$ac_res
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext
10703 if ${ac_cv_search_pthread_create+:} false; then :
10704 break
10706 done
10707 if ${ac_cv_search_pthread_create+:} false; then :
10709 else
10710 ac_cv_search_pthread_create=no
10712 rm conftest.$ac_ext
10713 LIBS=$ac_func_search_save_LIBS
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10716 $as_echo "$ac_cv_search_pthread_create" >&6; }
10717 ac_res=$ac_cv_search_pthread_create
10718 if test "$ac_res" != no; then :
10719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10724 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10725 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10726 $as_echo_n "(cached) " >&6
10727 else
10728 ac_func_search_save_LIBS=$LIBS
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10735 #ifdef __cplusplus
10736 extern "C"
10737 #endif
10738 char pthread_mutexattr_init ();
10740 main ()
10742 return pthread_mutexattr_init ();
10744 return 0;
10746 _ACEOF
10747 for ac_lib in '' pthread; do
10748 if test -z "$ac_lib"; then
10749 ac_res="none required"
10750 else
10751 ac_res=-l$ac_lib
10752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10754 if ac_fn_c_try_link "$LINENO"; then :
10755 ac_cv_search_pthread_mutexattr_init=$ac_res
10757 rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext
10759 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10760 break
10762 done
10763 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10765 else
10766 ac_cv_search_pthread_mutexattr_init=no
10768 rm conftest.$ac_ext
10769 LIBS=$ac_func_search_save_LIBS
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10772 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10773 ac_res=$ac_cv_search_pthread_mutexattr_init
10774 if test "$ac_res" != no; then :
10775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10781 ##########
10782 # Do we want to support release
10784 # Check whether --enable-releasemode was given.
10785 if test "${enable_releasemode+set}" = set; then :
10786 enableval=$enable_releasemode;
10787 else
10788 enable_releasemode=no
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10792 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10793 if test "$enable_releasemode" = "no"; then
10794 ALLOWRELEASE=""
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10797 else
10798 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10800 $as_echo "yes" >&6; }
10804 ##########
10805 # Do we want temporary databases in memory
10807 # Check whether --enable-tempstore was given.
10808 if test "${enable_tempstore+set}" = set; then :
10809 enableval=$enable_tempstore;
10810 else
10811 enable_tempstore=no
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10815 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10816 case "$enable_tempstore" in
10817 never )
10818 TEMP_STORE=0
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10820 $as_echo "never" >&6; }
10822 no )
10823 TEMP_STORE=1
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10827 yes )
10828 TEMP_STORE=2
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10830 $as_echo "yes" >&6; }
10832 always )
10833 TEMP_STORE=3
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10835 $as_echo "always" >&6; }
10838 TEMP_STORE=1
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10840 $as_echo "no" >&6; }
10842 esac
10846 ###########
10847 # Lots of things are different if we are compiling for Windows using
10848 # the CYGWIN environment. So check for that special case and handle
10849 # things accordingly.
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10852 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10853 if test "$config_BUILD_EXEEXT" = ".exe"; then
10854 CYGWIN=yes
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10856 $as_echo "yes" >&6; }
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10859 $as_echo "unknown" >&6; }
10861 if test "$CYGWIN" != "yes"; then
10863 case $host_os in
10864 *cygwin* ) CYGWIN=yes;;
10865 * ) CYGWIN=no;;
10866 esac
10869 if test "$CYGWIN" = "yes"; then
10870 BUILD_EXEEXT=.exe
10871 else
10872 BUILD_EXEEXT=$EXEEXT
10874 if test x"$cross_compiling" = xno; then
10875 TARGET_EXEEXT=$BUILD_EXEEXT
10876 else
10877 TARGET_EXEEXT=$config_TARGET_EXEEXT
10879 if test "$TARGET_EXEEXT" = ".exe"; then
10880 SQLITE_OS_UNIX=0
10881 SQLITE_OS_WIN=1
10882 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10883 else
10884 SQLITE_OS_UNIX=1
10885 SQLITE_OS_WIN=0
10886 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10894 ##########
10895 # Figure out what C libraries are required to compile programs
10896 # that use "readline()" library.
10898 TARGET_READLINE_LIBS=""
10899 TARGET_READLINE_INC=""
10900 TARGET_HAVE_READLINE=0
10901 TARGET_HAVE_EDITLINE=0
10902 # Check whether --enable-editline was given.
10903 if test "${enable_editline+set}" = set; then :
10904 enableval=$enable_editline; with_editline=$enableval
10905 else
10906 with_editline=auto
10909 # Check whether --enable-readline was given.
10910 if test "${enable_readline+set}" = set; then :
10911 enableval=$enable_readline; with_readline=$enableval
10912 else
10913 with_readline=auto
10917 if test x"$with_editline" != xno; then
10918 sLIBS=$LIBS
10919 LIBS=""
10920 TARGET_HAVE_EDITLINE=1
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10922 $as_echo_n "checking for library containing readline... " >&6; }
10923 if ${ac_cv_search_readline+:} false; then :
10924 $as_echo_n "(cached) " >&6
10925 else
10926 ac_func_search_save_LIBS=$LIBS
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10930 /* Override any GCC internal prototype to avoid an error.
10931 Use char because int might match the return type of a GCC
10932 builtin and then its argument prototype would still apply. */
10933 #ifdef __cplusplus
10934 extern "C"
10935 #endif
10936 char readline ();
10938 main ()
10940 return readline ();
10942 return 0;
10944 _ACEOF
10945 for ac_lib in '' edit; do
10946 if test -z "$ac_lib"; then
10947 ac_res="none required"
10948 else
10949 ac_res=-l$ac_lib
10950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_search_readline=$ac_res
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext
10957 if ${ac_cv_search_readline+:} false; then :
10958 break
10960 done
10961 if ${ac_cv_search_readline+:} false; then :
10963 else
10964 ac_cv_search_readline=no
10966 rm conftest.$ac_ext
10967 LIBS=$ac_func_search_save_LIBS
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10970 $as_echo "$ac_cv_search_readline" >&6; }
10971 ac_res=$ac_cv_search_readline
10972 if test "$ac_res" != no; then :
10973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10974 with_readline=no
10975 else
10976 TARGET_HAVE_EDITLINE=0
10979 TARGET_READLINE_LIBS=$LIBS
10980 LIBS=$sLIBS
10982 if test x"$with_readline" != xno; then
10983 found="yes"
10986 # Check whether --with-readline-lib was given.
10987 if test "${with_readline_lib+set}" = set; then :
10988 withval=$with_readline_lib; with_readline_lib=$withval
10989 else
10990 with_readline_lib="auto"
10993 if test "x$with_readline_lib" = xauto; then
10994 save_LIBS="$LIBS"
10995 LIBS=""
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10997 $as_echo_n "checking for library containing tgetent... " >&6; }
10998 if ${ac_cv_search_tgetent+:} false; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_func_search_save_LIBS=$LIBS
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11005 /* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
11008 #ifdef __cplusplus
11009 extern "C"
11010 #endif
11011 char tgetent ();
11013 main ()
11015 return tgetent ();
11017 return 0;
11019 _ACEOF
11020 for ac_lib in '' readline ncurses curses termcap; do
11021 if test -z "$ac_lib"; then
11022 ac_res="none required"
11023 else
11024 ac_res=-l$ac_lib
11025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11027 if ac_fn_c_try_link "$LINENO"; then :
11028 ac_cv_search_tgetent=$ac_res
11030 rm -f core conftest.err conftest.$ac_objext \
11031 conftest$ac_exeext
11032 if ${ac_cv_search_tgetent+:} false; then :
11033 break
11035 done
11036 if ${ac_cv_search_tgetent+:} false; then :
11038 else
11039 ac_cv_search_tgetent=no
11041 rm conftest.$ac_ext
11042 LIBS=$ac_func_search_save_LIBS
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11045 $as_echo "$ac_cv_search_tgetent" >&6; }
11046 ac_res=$ac_cv_search_tgetent
11047 if test "$ac_res" != no; then :
11048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11049 term_LIBS="$LIBS"
11050 else
11051 term_LIBS=""
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11055 $as_echo_n "checking for readline in -lreadline... " >&6; }
11056 if ${ac_cv_lib_readline_readline+:} false; then :
11057 $as_echo_n "(cached) " >&6
11058 else
11059 ac_check_lib_save_LIBS=$LIBS
11060 LIBS="-lreadline $LIBS"
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11067 #ifdef __cplusplus
11068 extern "C"
11069 #endif
11070 char readline ();
11072 main ()
11074 return readline ();
11076 return 0;
11078 _ACEOF
11079 if ac_fn_c_try_link "$LINENO"; then :
11080 ac_cv_lib_readline_readline=yes
11081 else
11082 ac_cv_lib_readline_readline=no
11084 rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11089 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11090 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11091 TARGET_READLINE_LIBS="-lreadline"
11092 else
11093 found="no"
11096 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11097 LIBS="$save_LIBS"
11098 else
11099 TARGET_READLINE_LIBS="$with_readline_lib"
11103 # Check whether --with-readline-inc was given.
11104 if test "${with_readline_inc+set}" = set; then :
11105 withval=$with_readline_inc; with_readline_inc=$withval
11106 else
11107 with_readline_inc="auto"
11110 if test "x$with_readline_inc" = xauto; then
11111 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11112 if test "x$ac_cv_header_readline_h" = xyes; then :
11113 found="yes"
11114 else
11116 found="no"
11117 if test "$cross_compiling" != yes; then
11118 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11119 for subdir in include include/readline; do
11120 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11122 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11123 if eval \${$as_ac_File+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 test "$cross_compiling" = yes &&
11127 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11128 if test -r "$dir/$subdir/readline.h"; then
11129 eval "$as_ac_File=yes"
11130 else
11131 eval "$as_ac_File=no"
11134 eval ac_res=\$$as_ac_File
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11136 $as_echo "$ac_res" >&6; }
11137 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11138 found=yes
11141 if test "$found" = "yes"; then
11142 TARGET_READLINE_INC="-I$dir/$subdir"
11143 break
11145 done
11146 test "$found" = "yes" && break
11147 done
11153 else
11154 TARGET_READLINE_INC="$with_readline_inc"
11157 if test x"$found" = xno; then
11158 TARGET_READLINE_LIBS=""
11159 TARGET_READLINE_INC=""
11160 TARGET_HAVE_READLINE=0
11161 else
11162 TARGET_HAVE_READLINE=1
11166 # Check whether --with-linenoise was given.
11167 if test "${with_linenoise+set}" = set; then :
11168 withval=$with_linenoise; with_linenoise=$withval
11169 else
11170 with_linenoise="no"
11173 if test "x$with_linenoise" != "xno"; then
11174 TARGET_HAVE_READLINE=0
11175 TARGET_HAVE_EDITLINE=0
11176 TARGET_HAVE_LINENOISE=1
11177 TARGET_READLINE_INC="-I${with_linenoise}"
11178 TARGET_READLINE_LIBS="${with_linenoise}/linenoise.c"
11179 echo "using linenoise source code at ${with_linenoise}"
11180 else
11181 TARGET_HAVE_LINENOISE=0
11182 echo "not using linenoise"
11192 ##########
11193 # Figure out what C libraries are required to compile programs
11194 # that use "fdatasync()" function.
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11197 $as_echo_n "checking for library containing fdatasync... " >&6; }
11198 if ${ac_cv_search_fdatasync+:} false; then :
11199 $as_echo_n "(cached) " >&6
11200 else
11201 ac_func_search_save_LIBS=$LIBS
11202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11205 /* Override any GCC internal prototype to avoid an error.
11206 Use char because int might match the return type of a GCC
11207 builtin and then its argument prototype would still apply. */
11208 #ifdef __cplusplus
11209 extern "C"
11210 #endif
11211 char fdatasync ();
11213 main ()
11215 return fdatasync ();
11217 return 0;
11219 _ACEOF
11220 for ac_lib in '' rt; do
11221 if test -z "$ac_lib"; then
11222 ac_res="none required"
11223 else
11224 ac_res=-l$ac_lib
11225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11227 if ac_fn_c_try_link "$LINENO"; then :
11228 ac_cv_search_fdatasync=$ac_res
11230 rm -f core conftest.err conftest.$ac_objext \
11231 conftest$ac_exeext
11232 if ${ac_cv_search_fdatasync+:} false; then :
11233 break
11235 done
11236 if ${ac_cv_search_fdatasync+:} false; then :
11238 else
11239 ac_cv_search_fdatasync=no
11241 rm conftest.$ac_ext
11242 LIBS=$ac_func_search_save_LIBS
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11245 $as_echo "$ac_cv_search_fdatasync" >&6; }
11246 ac_res=$ac_cv_search_fdatasync
11247 if test "$ac_res" != no; then :
11248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11253 #########
11254 # check for debug enabled
11255 # Check whether --enable-debug was given.
11256 if test "${enable_debug+set}" = set; then :
11257 enableval=$enable_debug;
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11261 $as_echo_n "checking build type... " >&6; }
11262 if test "${enable_debug}" = "yes" ; then
11263 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0 -Wall"
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11265 $as_echo "debug" >&6; }
11266 else
11267 TARGET_DEBUG="-DNDEBUG"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11269 $as_echo "release" >&6; }
11273 #########
11274 # See whether we should use the amalgamation to build
11276 # Check whether --enable-amalgamation was given.
11277 if test "${enable_amalgamation+set}" = set; then :
11278 enableval=$enable_amalgamation;
11281 if test "${enable_amalgamation}" = "no" ; then
11282 USE_AMALGAMATION=0
11286 #########
11287 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11288 for ac_header in zlib.h
11289 do :
11290 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11291 if test "x$ac_cv_header_zlib_h" = xyes; then :
11292 cat >>confdefs.h <<_ACEOF
11293 #define HAVE_ZLIB_H 1
11294 _ACEOF
11298 done
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11301 $as_echo_n "checking for library containing deflate... " >&6; }
11302 if ${ac_cv_search_deflate+:} false; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 ac_func_search_save_LIBS=$LIBS
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11309 /* Override any GCC internal prototype to avoid an error.
11310 Use char because int might match the return type of a GCC
11311 builtin and then its argument prototype would still apply. */
11312 #ifdef __cplusplus
11313 extern "C"
11314 #endif
11315 char deflate ();
11317 main ()
11319 return deflate ();
11321 return 0;
11323 _ACEOF
11324 for ac_lib in '' z; do
11325 if test -z "$ac_lib"; then
11326 ac_res="none required"
11327 else
11328 ac_res=-l$ac_lib
11329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11331 if ac_fn_c_try_link "$LINENO"; then :
11332 ac_cv_search_deflate=$ac_res
11334 rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext
11336 if ${ac_cv_search_deflate+:} false; then :
11337 break
11339 done
11340 if ${ac_cv_search_deflate+:} false; then :
11342 else
11343 ac_cv_search_deflate=no
11345 rm conftest.$ac_ext
11346 LIBS=$ac_func_search_save_LIBS
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11349 $as_echo "$ac_cv_search_deflate" >&6; }
11350 ac_res=$ac_cv_search_deflate
11351 if test "$ac_res" != no; then :
11352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11353 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11354 else
11355 HAVE_ZLIB=""
11360 #########
11361 # See whether we should allow loadable extensions
11362 # Check whether --enable-load-extension was given.
11363 if test "${enable_load_extension+set}" = set; then :
11364 enableval=$enable_load_extension;
11365 else
11366 enable_load_extension=yes
11369 if test "${enable_load_extension}" = "yes" ; then
11370 OPT_FEATURE_FLAGS=""
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11372 $as_echo_n "checking for library containing dlopen... " >&6; }
11373 if ${ac_cv_search_dlopen+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 ac_func_search_save_LIBS=$LIBS
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11380 /* Override any GCC internal prototype to avoid an error.
11381 Use char because int might match the return type of a GCC
11382 builtin and then its argument prototype would still apply. */
11383 #ifdef __cplusplus
11384 extern "C"
11385 #endif
11386 char dlopen ();
11388 main ()
11390 return dlopen ();
11392 return 0;
11394 _ACEOF
11395 for ac_lib in '' dl; do
11396 if test -z "$ac_lib"; then
11397 ac_res="none required"
11398 else
11399 ac_res=-l$ac_lib
11400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11402 if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_search_dlopen=$ac_res
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext
11407 if ${ac_cv_search_dlopen+:} false; then :
11408 break
11410 done
11411 if ${ac_cv_search_dlopen+:} false; then :
11413 else
11414 ac_cv_search_dlopen=no
11416 rm conftest.$ac_ext
11417 LIBS=$ac_func_search_save_LIBS
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11420 $as_echo "$ac_cv_search_dlopen" >&6; }
11421 ac_res=$ac_cv_search_dlopen
11422 if test "$ac_res" != no; then :
11423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11427 else
11428 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11431 ##########
11432 # Do we want to support math functions
11434 # Check whether --enable-math was given.
11435 if test "${enable_math+set}" = set; then :
11436 enableval=$enable_math;
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11440 $as_echo_n "checking whether to support math functions... " >&6; }
11441 if test "$enable_math" = "no"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443 $as_echo "no" >&6; }
11444 else
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11446 $as_echo "yes" >&6; }
11447 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11449 $as_echo_n "checking for library containing ceil... " >&6; }
11450 if ${ac_cv_search_ceil+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 ac_func_search_save_LIBS=$LIBS
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h. */
11457 /* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460 #ifdef __cplusplus
11461 extern "C"
11462 #endif
11463 char ceil ();
11465 main ()
11467 return ceil ();
11469 return 0;
11471 _ACEOF
11472 for ac_lib in '' m; do
11473 if test -z "$ac_lib"; then
11474 ac_res="none required"
11475 else
11476 ac_res=-l$ac_lib
11477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11479 if ac_fn_c_try_link "$LINENO"; then :
11480 ac_cv_search_ceil=$ac_res
11482 rm -f core conftest.err conftest.$ac_objext \
11483 conftest$ac_exeext
11484 if ${ac_cv_search_ceil+:} false; then :
11485 break
11487 done
11488 if ${ac_cv_search_ceil+:} false; then :
11490 else
11491 ac_cv_search_ceil=no
11493 rm conftest.$ac_ext
11494 LIBS=$ac_func_search_save_LIBS
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11497 $as_echo "$ac_cv_search_ceil" >&6; }
11498 ac_res=$ac_cv_search_ceil
11499 if test "$ac_res" != no; then :
11500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11506 ##########
11507 # Do we want to support JSON functions
11509 # Check whether --enable-json was given.
11510 if test "${enable_json+set}" = set; then :
11511 enableval=$enable_json;
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
11515 $as_echo_n "checking whether to support JSON functions... " >&6; }
11516 if test "$enable_json" = "no"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
11520 else
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11522 $as_echo "yes" >&6; }
11525 ########
11526 # The --enable-all argument is short-hand to enable
11527 # multiple extensions.
11528 # Check whether --enable-all was given.
11529 if test "${enable_all+set}" = set; then :
11530 enableval=$enable_all;
11534 ##########
11535 # Do we want to support memsys3 and/or memsys5
11537 # Check whether --enable-memsys5 was given.
11538 if test "${enable_memsys5+set}" = set; then :
11539 enableval=$enable_memsys5;
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11543 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
11544 if test "${enable_memsys5}" = "yes"; then
11545 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11547 $as_echo "yes" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11552 # Check whether --enable-memsys3 was given.
11553 if test "${enable_memsys3+set}" = set; then :
11554 enableval=$enable_memsys3;
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11558 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
11559 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
11560 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11562 $as_echo "yes" >&6; }
11563 else
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 $as_echo "no" >&6; }
11568 #########
11569 # See whether we should enable Full Text Search extensions
11570 # Check whether --enable-fts3 was given.
11571 if test "${enable_fts3+set}" = set; then :
11572 enableval=$enable_fts3;
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11576 $as_echo_n "checking whether to support FTS3... " >&6; }
11577 if test "${enable_fts3}" = "yes" ; then
11578 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11580 $as_echo "yes" >&6; }
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11585 # Check whether --enable-fts4 was given.
11586 if test "${enable_fts4+set}" = set; then :
11587 enableval=$enable_fts4;
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11591 $as_echo_n "checking whether to support FTS4... " >&6; }
11592 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11594 $as_echo "yes" >&6; }
11595 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11597 $as_echo_n "checking for library containing log... " >&6; }
11598 if ${ac_cv_search_log+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 ac_func_search_save_LIBS=$LIBS
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11608 #ifdef __cplusplus
11609 extern "C"
11610 #endif
11611 char log ();
11613 main ()
11615 return log ();
11617 return 0;
11619 _ACEOF
11620 for ac_lib in '' m; do
11621 if test -z "$ac_lib"; then
11622 ac_res="none required"
11623 else
11624 ac_res=-l$ac_lib
11625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11627 if ac_fn_c_try_link "$LINENO"; then :
11628 ac_cv_search_log=$ac_res
11630 rm -f core conftest.err conftest.$ac_objext \
11631 conftest$ac_exeext
11632 if ${ac_cv_search_log+:} false; then :
11633 break
11635 done
11636 if ${ac_cv_search_log+:} false; then :
11638 else
11639 ac_cv_search_log=no
11641 rm conftest.$ac_ext
11642 LIBS=$ac_func_search_save_LIBS
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11645 $as_echo "$ac_cv_search_log" >&6; }
11646 ac_res=$ac_cv_search_log
11647 if test "$ac_res" != no; then :
11648 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11656 # Check whether --enable-fts5 was given.
11657 if test "${enable_fts5+set}" = set; then :
11658 enableval=$enable_fts5;
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11662 $as_echo_n "checking whether to support FTS5... " >&6; }
11663 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11665 $as_echo "yes" >&6; }
11666 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11668 $as_echo_n "checking for library containing log... " >&6; }
11669 if ${ac_cv_search_log+:} false; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 ac_func_search_save_LIBS=$LIBS
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11676 /* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char log ();
11684 main ()
11686 return log ();
11688 return 0;
11690 _ACEOF
11691 for ac_lib in '' m; do
11692 if test -z "$ac_lib"; then
11693 ac_res="none required"
11694 else
11695 ac_res=-l$ac_lib
11696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11698 if ac_fn_c_try_link "$LINENO"; then :
11699 ac_cv_search_log=$ac_res
11701 rm -f core conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext
11703 if ${ac_cv_search_log+:} false; then :
11704 break
11706 done
11707 if ${ac_cv_search_log+:} false; then :
11709 else
11710 ac_cv_search_log=no
11712 rm conftest.$ac_ext
11713 LIBS=$ac_func_search_save_LIBS
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11716 $as_echo "$ac_cv_search_log" >&6; }
11717 ac_res=$ac_cv_search_log
11718 if test "$ac_res" != no; then :
11719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11723 else
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11728 #########
11729 # See whether we should enable the LIMIT clause on UPDATE and DELETE
11730 # statements.
11731 # Check whether --enable-update-limit was given.
11732 if test "${enable_update_limit+set}" = set; then :
11733 enableval=$enable_update_limit;
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11737 $as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
11738 if test "${enable_update_limit}" = "yes" ; then
11739 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11741 $as_echo "yes" >&6; }
11742 else
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744 $as_echo "no" >&6; }
11747 #########
11748 # See whether we should enable GEOPOLY
11749 # Check whether --enable-geopoly was given.
11750 if test "${enable_geopoly+set}" = set; then :
11751 enableval=$enable_geopoly; enable_geopoly=yes
11752 else
11753 enable_geopoly=no
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11757 $as_echo_n "checking whether to support GEOPOLY... " >&6; }
11758 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
11759 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11760 enable_rtree=yes
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11762 $as_echo "yes" >&6; }
11763 else
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765 $as_echo "no" >&6; }
11768 #########
11769 # See whether we should enable RTREE
11770 # Check whether --enable-rtree was given.
11771 if test "${enable_rtree+set}" = set; then :
11772 enableval=$enable_rtree;
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11776 $as_echo_n "checking whether to support RTREE... " >&6; }
11777 if test "${enable_rtree}" = "yes" ; then
11778 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11780 $as_echo "yes" >&6; }
11781 else
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783 $as_echo "no" >&6; }
11786 #########
11787 # See whether we should enable the SESSION extension
11788 # Check whether --enable-session was given.
11789 if test "${enable_session+set}" = set; then :
11790 enableval=$enable_session;
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11794 $as_echo_n "checking whether to support SESSION... " >&6; }
11795 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
11796 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11797 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11799 $as_echo "yes" >&6; }
11800 else
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802 $as_echo "no" >&6; }
11805 #########
11806 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
11807 for option in $CFLAGS $CPPFLAGS
11809 case $option in
11810 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11811 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11812 esac
11813 done
11817 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11818 ac_temp_CFLAGS=""
11819 for option in $CFLAGS
11821 case $option in
11822 -DSQLITE_OMIT*) ;;
11823 -DSQLITE_ENABLE*) ;;
11824 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11825 esac
11826 done
11827 CFLAGS=$ac_temp_CFLAGS
11830 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11831 ac_temp_CPPFLAGS=""
11832 for option in $CPPFLAGS
11834 case $option in
11835 -DSQLITE_OMIT*) ;;
11836 -DSQLITE_ENABLE*) ;;
11837 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11838 esac
11839 done
11840 CPPFLAGS=$ac_temp_CPPFLAGS
11843 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11844 ac_temp_BUILD_CFLAGS=""
11845 for option in $BUILD_CFLAGS
11847 case $option in
11848 -DSQLITE_OMIT*) ;;
11849 -DSQLITE_ENABLE*) ;;
11850 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11851 esac
11852 done
11853 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11856 #########
11857 # See whether we should use GCOV
11858 # Check whether --enable-gcov was given.
11859 if test "${enable_gcov+set}" = set; then :
11860 enableval=$enable_gcov;
11863 if test "${use_gcov}" = "yes" ; then
11864 USE_GCOV=1
11865 else
11866 USE_GCOV=0
11870 #########
11871 # Enable/disabled amalagamation line macros
11872 ########
11873 AMALGAMATION_LINE_MACROS=--linemacros=0
11874 if test "${amalgamation_line_macros}" = "yes" ; then
11875 AMALGAMATION_LINE_MACROS=--linemacros=1
11877 if test "${amalgamation_line_macros}" = "no" ; then
11878 AMALGAMATION_LINE_MACROS=--linemacros=0
11882 #########
11883 # Output the config header
11884 ac_config_headers="$ac_config_headers sqlite_cfg.h"
11887 #########
11888 # Generate the output files.
11891 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11893 cat >confcache <<\_ACEOF
11894 # This file is a shell script that caches the results of configure
11895 # tests run on this system so they can be shared between configure
11896 # scripts and configure runs, see configure's option --config-cache.
11897 # It is not useful on other systems. If it contains results you don't
11898 # want to keep, you may remove or edit it.
11900 # config.status only pays attention to the cache file if you give it
11901 # the --recheck option to rerun configure.
11903 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11904 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11905 # following values.
11907 _ACEOF
11909 # The following way of writing the cache mishandles newlines in values,
11910 # but we know of no workaround that is simple, portable, and efficient.
11911 # So, we kill variables containing newlines.
11912 # Ultrix sh set writes to stderr and can't be redirected directly,
11913 # and sets the high bit in the cache file unless we assign to the vars.
11915 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11916 eval ac_val=\$$ac_var
11917 case $ac_val in #(
11918 *${as_nl}*)
11919 case $ac_var in #(
11920 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11921 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11922 esac
11923 case $ac_var in #(
11924 _ | IFS | as_nl) ;; #(
11925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11926 *) { eval $ac_var=; unset $ac_var;} ;;
11927 esac ;;
11928 esac
11929 done
11931 (set) 2>&1 |
11932 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11933 *${as_nl}ac_space=\ *)
11934 # `set' does not quote correctly, so add quotes: double-quote
11935 # substitution turns \\\\ into \\, and sed turns \\ into \.
11936 sed -n \
11937 "s/'/'\\\\''/g;
11938 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11939 ;; #(
11941 # `set' quotes correctly as required by POSIX, so do not add quotes.
11942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11944 esac |
11945 sort
11947 sed '
11948 /^ac_cv_env_/b end
11949 t clear
11950 :clear
11951 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11952 t end
11953 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11954 :end' >>confcache
11955 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11956 if test -w "$cache_file"; then
11957 if test "x$cache_file" != "x/dev/null"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11959 $as_echo "$as_me: updating cache $cache_file" >&6;}
11960 if test ! -f "$cache_file" || test -h "$cache_file"; then
11961 cat confcache >"$cache_file"
11962 else
11963 case $cache_file in #(
11964 */* | ?:*)
11965 mv -f confcache "$cache_file"$$ &&
11966 mv -f "$cache_file"$$ "$cache_file" ;; #(
11968 mv -f confcache "$cache_file" ;;
11969 esac
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11974 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11977 rm -f confcache
11979 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11980 # Let make expand exec_prefix.
11981 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11983 DEFS=-DHAVE_CONFIG_H
11985 ac_libobjs=
11986 ac_ltlibobjs=
11988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11989 # 1. Remove the extension, and $U if already installed.
11990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11993 # will be set to the directory where LIBOBJS objects are built.
11994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11996 done
11997 LIBOBJS=$ac_libobjs
11999 LTLIBOBJS=$ac_ltlibobjs
12003 : "${CONFIG_STATUS=./config.status}"
12004 ac_write_fail=0
12005 ac_clean_files_save=$ac_clean_files
12006 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12008 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12009 as_write_fail=0
12010 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12011 #! $SHELL
12012 # Generated by $as_me.
12013 # Run this file to recreate the current configuration.
12014 # Compiler output produced by configure, useful for debugging
12015 # configure, is in config.log if it exists.
12017 debug=false
12018 ac_cs_recheck=false
12019 ac_cs_silent=false
12021 SHELL=\${CONFIG_SHELL-$SHELL}
12022 export SHELL
12023 _ASEOF
12024 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12025 ## -------------------- ##
12026 ## M4sh Initialization. ##
12027 ## -------------------- ##
12029 # Be more Bourne compatible
12030 DUALCASE=1; export DUALCASE # for MKS sh
12031 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12032 emulate sh
12033 NULLCMD=:
12034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12035 # is contrary to our usage. Disable this feature.
12036 alias -g '${1+"$@"}'='"$@"'
12037 setopt NO_GLOB_SUBST
12038 else
12039 case `(set -o) 2>/dev/null` in #(
12040 *posix*) :
12041 set -o posix ;; #(
12042 *) :
12044 esac
12048 as_nl='
12050 export as_nl
12051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12055 # Prefer a ksh shell builtin over an external printf program on Solaris,
12056 # but without wasting forks for bash or zsh.
12057 if test -z "$BASH_VERSION$ZSH_VERSION" \
12058 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12059 as_echo='print -r --'
12060 as_echo_n='print -rn --'
12061 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12062 as_echo='printf %s\n'
12063 as_echo_n='printf %s'
12064 else
12065 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12066 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12067 as_echo_n='/usr/ucb/echo -n'
12068 else
12069 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12070 as_echo_n_body='eval
12071 arg=$1;
12072 case $arg in #(
12073 *"$as_nl"*)
12074 expr "X$arg" : "X\\(.*\\)$as_nl";
12075 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12076 esac;
12077 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12079 export as_echo_n_body
12080 as_echo_n='sh -c $as_echo_n_body as_echo'
12082 export as_echo_body
12083 as_echo='sh -c $as_echo_body as_echo'
12086 # The user is always right.
12087 if test "${PATH_SEPARATOR+set}" != set; then
12088 PATH_SEPARATOR=:
12089 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12090 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12091 PATH_SEPARATOR=';'
12096 # IFS
12097 # We need space, tab and new line, in precisely that order. Quoting is
12098 # there to prevent editors from complaining about space-tab.
12099 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12100 # splitting by setting IFS to empty value.)
12101 IFS=" "" $as_nl"
12103 # Find who we are. Look in the path if we contain no directory separator.
12104 as_myself=
12105 case $0 in #((
12106 *[\\/]* ) as_myself=$0 ;;
12107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12108 for as_dir in $PATH
12110 IFS=$as_save_IFS
12111 test -z "$as_dir" && as_dir=.
12112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12113 done
12114 IFS=$as_save_IFS
12117 esac
12118 # We did not find ourselves, most probably we were run as `sh COMMAND'
12119 # in which case we are not to be found in the path.
12120 if test "x$as_myself" = x; then
12121 as_myself=$0
12123 if test ! -f "$as_myself"; then
12124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12125 exit 1
12128 # Unset variables that we do not need and which cause bugs (e.g. in
12129 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12130 # suppresses any "Segmentation fault" message there. '((' could
12131 # trigger a bug in pdksh 5.2.14.
12132 for as_var in BASH_ENV ENV MAIL MAILPATH
12133 do eval test x\${$as_var+set} = xset \
12134 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12135 done
12136 PS1='$ '
12137 PS2='> '
12138 PS4='+ '
12140 # NLS nuisances.
12141 LC_ALL=C
12142 export LC_ALL
12143 LANGUAGE=C
12144 export LANGUAGE
12146 # CDPATH.
12147 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12150 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12151 # ----------------------------------------
12152 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12153 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12154 # script with STATUS, using 1 if that was 0.
12155 as_fn_error ()
12157 as_status=$1; test $as_status -eq 0 && as_status=1
12158 if test "$4"; then
12159 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12160 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12162 $as_echo "$as_me: error: $2" >&2
12163 as_fn_exit $as_status
12164 } # as_fn_error
12167 # as_fn_set_status STATUS
12168 # -----------------------
12169 # Set $? to STATUS, without forking.
12170 as_fn_set_status ()
12172 return $1
12173 } # as_fn_set_status
12175 # as_fn_exit STATUS
12176 # -----------------
12177 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12178 as_fn_exit ()
12180 set +e
12181 as_fn_set_status $1
12182 exit $1
12183 } # as_fn_exit
12185 # as_fn_unset VAR
12186 # ---------------
12187 # Portably unset VAR.
12188 as_fn_unset ()
12190 { eval $1=; unset $1;}
12192 as_unset=as_fn_unset
12193 # as_fn_append VAR VALUE
12194 # ----------------------
12195 # Append the text in VALUE to the end of the definition contained in VAR. Take
12196 # advantage of any shell optimizations that allow amortized linear growth over
12197 # repeated appends, instead of the typical quadratic growth present in naive
12198 # implementations.
12199 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12200 eval 'as_fn_append ()
12202 eval $1+=\$2
12204 else
12205 as_fn_append ()
12207 eval $1=\$$1\$2
12209 fi # as_fn_append
12211 # as_fn_arith ARG...
12212 # ------------------
12213 # Perform arithmetic evaluation on the ARGs, and store the result in the
12214 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12215 # must be portable across $(()) and expr.
12216 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12217 eval 'as_fn_arith ()
12219 as_val=$(( $* ))
12221 else
12222 as_fn_arith ()
12224 as_val=`expr "$@" || test $? -eq 1`
12226 fi # as_fn_arith
12229 if expr a : '\(a\)' >/dev/null 2>&1 &&
12230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12231 as_expr=expr
12232 else
12233 as_expr=false
12236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12237 as_basename=basename
12238 else
12239 as_basename=false
12242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12243 as_dirname=dirname
12244 else
12245 as_dirname=false
12248 as_me=`$as_basename -- "$0" ||
12249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12250 X"$0" : 'X\(//\)$' \| \
12251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12252 $as_echo X/"$0" |
12253 sed '/^.*\/\([^/][^/]*\)\/*$/{
12254 s//\1/
12257 /^X\/\(\/\/\)$/{
12258 s//\1/
12261 /^X\/\(\/\).*/{
12262 s//\1/
12265 s/.*/./; q'`
12267 # Avoid depending upon Character Ranges.
12268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12271 as_cr_digits='0123456789'
12272 as_cr_alnum=$as_cr_Letters$as_cr_digits
12274 ECHO_C= ECHO_N= ECHO_T=
12275 case `echo -n x` in #(((((
12276 -n*)
12277 case `echo 'xy\c'` in
12278 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12279 xy) ECHO_C='\c';;
12280 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12281 ECHO_T=' ';;
12282 esac;;
12284 ECHO_N='-n';;
12285 esac
12287 rm -f conf$$ conf$$.exe conf$$.file
12288 if test -d conf$$.dir; then
12289 rm -f conf$$.dir/conf$$.file
12290 else
12291 rm -f conf$$.dir
12292 mkdir conf$$.dir 2>/dev/null
12294 if (echo >conf$$.file) 2>/dev/null; then
12295 if ln -s conf$$.file conf$$ 2>/dev/null; then
12296 as_ln_s='ln -s'
12297 # ... but there are two gotchas:
12298 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12299 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12300 # In both cases, we have to default to `cp -pR'.
12301 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12302 as_ln_s='cp -pR'
12303 elif ln conf$$.file conf$$ 2>/dev/null; then
12304 as_ln_s=ln
12305 else
12306 as_ln_s='cp -pR'
12308 else
12309 as_ln_s='cp -pR'
12311 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12312 rmdir conf$$.dir 2>/dev/null
12315 # as_fn_mkdir_p
12316 # -------------
12317 # Create "$as_dir" as a directory, including parents if necessary.
12318 as_fn_mkdir_p ()
12321 case $as_dir in #(
12322 -*) as_dir=./$as_dir;;
12323 esac
12324 test -d "$as_dir" || eval $as_mkdir_p || {
12325 as_dirs=
12326 while :; do
12327 case $as_dir in #(
12328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12329 *) as_qdir=$as_dir;;
12330 esac
12331 as_dirs="'$as_qdir' $as_dirs"
12332 as_dir=`$as_dirname -- "$as_dir" ||
12333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12334 X"$as_dir" : 'X\(//\)[^/]' \| \
12335 X"$as_dir" : 'X\(//\)$' \| \
12336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12337 $as_echo X"$as_dir" |
12338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12339 s//\1/
12342 /^X\(\/\/\)[^/].*/{
12343 s//\1/
12346 /^X\(\/\/\)$/{
12347 s//\1/
12350 /^X\(\/\).*/{
12351 s//\1/
12354 s/.*/./; q'`
12355 test -d "$as_dir" && break
12356 done
12357 test -z "$as_dirs" || eval "mkdir $as_dirs"
12358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12361 } # as_fn_mkdir_p
12362 if mkdir -p . 2>/dev/null; then
12363 as_mkdir_p='mkdir -p "$as_dir"'
12364 else
12365 test -d ./-p && rmdir ./-p
12366 as_mkdir_p=false
12370 # as_fn_executable_p FILE
12371 # -----------------------
12372 # Test if FILE is an executable regular file.
12373 as_fn_executable_p ()
12375 test -f "$1" && test -x "$1"
12376 } # as_fn_executable_p
12377 as_test_x='test -x'
12378 as_executable_p=as_fn_executable_p
12380 # Sed expression to map a string onto a valid CPP name.
12381 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12383 # Sed expression to map a string onto a valid variable name.
12384 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12387 exec 6>&1
12388 ## ----------------------------------- ##
12389 ## Main body of $CONFIG_STATUS script. ##
12390 ## ----------------------------------- ##
12391 _ASEOF
12392 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12395 # Save the log message, to keep $0 and so on meaningful, and to
12396 # report actual input values of CONFIG_FILES etc. instead of their
12397 # values after options handling.
12398 ac_log="
12399 This file was extended by sqlite $as_me 3.47.0, which was
12400 generated by GNU Autoconf 2.69. Invocation command line was
12402 CONFIG_FILES = $CONFIG_FILES
12403 CONFIG_HEADERS = $CONFIG_HEADERS
12404 CONFIG_LINKS = $CONFIG_LINKS
12405 CONFIG_COMMANDS = $CONFIG_COMMANDS
12406 $ $0 $@
12408 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12411 _ACEOF
12413 case $ac_config_files in *"
12414 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12415 esac
12417 case $ac_config_headers in *"
12418 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12419 esac
12422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12423 # Files that config.status was made for.
12424 config_files="$ac_config_files"
12425 config_headers="$ac_config_headers"
12426 config_commands="$ac_config_commands"
12428 _ACEOF
12430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12431 ac_cs_usage="\
12432 \`$as_me' instantiates files and other configuration actions
12433 from templates according to the current configuration. Unless the files
12434 and actions are specified as TAGs, all are instantiated by default.
12436 Usage: $0 [OPTION]... [TAG]...
12438 -h, --help print this help, then exit
12439 -V, --version print version number and configuration settings, then exit
12440 --config print configuration, then exit
12441 -q, --quiet, --silent
12442 do not print progress messages
12443 -d, --debug don't remove temporary files
12444 --recheck update $as_me by reconfiguring in the same conditions
12445 --file=FILE[:TEMPLATE]
12446 instantiate the configuration file FILE
12447 --header=FILE[:TEMPLATE]
12448 instantiate the configuration header FILE
12450 Configuration files:
12451 $config_files
12453 Configuration headers:
12454 $config_headers
12456 Configuration commands:
12457 $config_commands
12459 Report bugs to the package provider."
12461 _ACEOF
12462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12463 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12464 ac_cs_version="\\
12465 sqlite config.status 3.47.0
12466 configured by $0, generated by GNU Autoconf 2.69,
12467 with options \\"\$ac_cs_config\\"
12469 Copyright (C) 2012 Free Software Foundation, Inc.
12470 This config.status script is free software; the Free Software Foundation
12471 gives unlimited permission to copy, distribute and modify it."
12473 ac_pwd='$ac_pwd'
12474 srcdir='$srcdir'
12475 INSTALL='$INSTALL'
12476 test -n "\$AWK" || AWK=awk
12477 _ACEOF
12479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12480 # The default lists apply if the user does not specify any file.
12481 ac_need_defaults=:
12482 while test $# != 0
12484 case $1 in
12485 --*=?*)
12486 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12487 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12488 ac_shift=:
12490 --*=)
12491 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12492 ac_optarg=
12493 ac_shift=:
12496 ac_option=$1
12497 ac_optarg=$2
12498 ac_shift=shift
12500 esac
12502 case $ac_option in
12503 # Handling of the options.
12504 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12505 ac_cs_recheck=: ;;
12506 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12507 $as_echo "$ac_cs_version"; exit ;;
12508 --config | --confi | --conf | --con | --co | --c )
12509 $as_echo "$ac_cs_config"; exit ;;
12510 --debug | --debu | --deb | --de | --d | -d )
12511 debug=: ;;
12512 --file | --fil | --fi | --f )
12513 $ac_shift
12514 case $ac_optarg in
12515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12516 '') as_fn_error $? "missing file argument" ;;
12517 esac
12518 as_fn_append CONFIG_FILES " '$ac_optarg'"
12519 ac_need_defaults=false;;
12520 --header | --heade | --head | --hea )
12521 $ac_shift
12522 case $ac_optarg in
12523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12524 esac
12525 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12526 ac_need_defaults=false;;
12527 --he | --h)
12528 # Conflict between --help and --header
12529 as_fn_error $? "ambiguous option: \`$1'
12530 Try \`$0 --help' for more information.";;
12531 --help | --hel | -h )
12532 $as_echo "$ac_cs_usage"; exit ;;
12533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12534 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12535 ac_cs_silent=: ;;
12537 # This is an error.
12538 -*) as_fn_error $? "unrecognized option: \`$1'
12539 Try \`$0 --help' for more information." ;;
12541 *) as_fn_append ac_config_targets " $1"
12542 ac_need_defaults=false ;;
12544 esac
12545 shift
12546 done
12548 ac_configure_extra_args=
12550 if $ac_cs_silent; then
12551 exec 6>/dev/null
12552 ac_configure_extra_args="$ac_configure_extra_args --silent"
12555 _ACEOF
12556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12557 if \$ac_cs_recheck; then
12558 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12559 shift
12560 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12561 CONFIG_SHELL='$SHELL'
12562 export CONFIG_SHELL
12563 exec "\$@"
12566 _ACEOF
12567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12568 exec 5>>config.log
12570 echo
12571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12572 ## Running $as_me. ##
12573 _ASBOX
12574 $as_echo "$ac_log"
12575 } >&5
12577 _ACEOF
12578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12580 # INIT-COMMANDS
12584 # The HP-UX ksh and POSIX shell print the target directory to stdout
12585 # if CDPATH is set.
12586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12588 sed_quote_subst='$sed_quote_subst'
12589 double_quote_subst='$double_quote_subst'
12590 delay_variable_subst='$delay_variable_subst'
12591 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12592 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12593 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12594 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12595 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12596 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12597 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12598 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12599 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12600 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12601 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12602 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12603 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12604 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12605 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12606 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12607 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12608 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12609 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12610 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12611 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12612 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12613 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12614 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12615 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12616 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12617 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12618 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12619 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12620 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12621 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12622 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12623 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12624 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12625 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12626 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12627 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12628 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12629 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12630 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12631 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12632 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12633 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12635 lt_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"`'
12636 lt_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"`'
12637 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12638 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12639 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12640 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12641 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12642 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12643 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12644 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12645 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12646 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12647 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12648 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12649 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12650 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12651 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12652 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12653 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12654 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12655 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12656 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12657 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12658 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12659 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12660 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12661 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12662 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12663 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12664 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12665 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12666 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12667 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12668 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12669 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12670 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12671 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12672 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12673 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12674 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12675 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12676 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12677 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12678 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12679 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12680 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12681 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12682 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12683 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12684 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12685 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12686 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12687 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12688 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12689 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12690 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12691 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12692 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12693 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12694 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12695 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12696 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12697 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12698 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12699 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12700 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12701 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12702 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12703 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12704 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12705 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12706 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12707 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12708 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12710 LTCC='$LTCC'
12711 LTCFLAGS='$LTCFLAGS'
12712 compiler='$compiler_DEFAULT'
12714 # Quote evaled strings.
12715 for var in SED \
12716 GREP \
12717 EGREP \
12718 FGREP \
12719 LD \
12720 NM \
12721 LN_S \
12722 lt_SP2NL \
12723 lt_NL2SP \
12724 reload_flag \
12725 OBJDUMP \
12726 deplibs_check_method \
12727 file_magic_cmd \
12728 AR \
12729 AR_FLAGS \
12730 STRIP \
12731 RANLIB \
12732 CC \
12733 CFLAGS \
12734 compiler \
12735 lt_cv_sys_global_symbol_pipe \
12736 lt_cv_sys_global_symbol_to_cdecl \
12737 lt_cv_sys_global_symbol_to_c_name_address \
12738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12739 SHELL \
12740 ECHO \
12741 lt_prog_compiler_no_builtin_flag \
12742 lt_prog_compiler_wl \
12743 lt_prog_compiler_pic \
12744 lt_prog_compiler_static \
12745 lt_cv_prog_compiler_c_o \
12746 need_locks \
12747 DSYMUTIL \
12748 NMEDIT \
12749 LIPO \
12750 OTOOL \
12751 OTOOL64 \
12752 shrext_cmds \
12753 export_dynamic_flag_spec \
12754 whole_archive_flag_spec \
12755 compiler_needs_object \
12756 with_gnu_ld \
12757 allow_undefined_flag \
12758 no_undefined_flag \
12759 hardcode_libdir_flag_spec \
12760 hardcode_libdir_flag_spec_ld \
12761 hardcode_libdir_separator \
12762 fix_srcfile_path \
12763 exclude_expsyms \
12764 include_expsyms \
12765 file_list_spec \
12766 variables_saved_for_relink \
12767 libname_spec \
12768 library_names_spec \
12769 soname_spec \
12770 finish_eval \
12771 old_striplib \
12772 striplib; do
12773 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12774 *[\\\\\\\`\\"\\\$]*)
12775 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12778 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12780 esac
12781 done
12783 # Double-quote double-evaled strings.
12784 for var in reload_cmds \
12785 old_postinstall_cmds \
12786 old_postuninstall_cmds \
12787 old_archive_cmds \
12788 extract_expsyms_cmds \
12789 old_archive_from_new_cmds \
12790 old_archive_from_expsyms_cmds \
12791 archive_cmds \
12792 archive_expsym_cmds \
12793 module_cmds \
12794 module_expsym_cmds \
12795 export_symbols_cmds \
12796 prelink_cmds \
12797 postinstall_cmds \
12798 postuninstall_cmds \
12799 finish_cmds \
12800 sys_lib_search_path_spec \
12801 sys_lib_dlsearch_path_spec; do
12802 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12803 *[\\\\\\\`\\"\\\$]*)
12804 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12807 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12809 esac
12810 done
12812 # Fix-up fallback echo if it was mangled by the above quoting rules.
12813 case \$lt_ECHO in
12814 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12816 esac
12818 ac_aux_dir='$ac_aux_dir'
12819 xsi_shell='$xsi_shell'
12820 lt_shell_append='$lt_shell_append'
12822 # See if we are running on zsh, and set the options which allow our
12823 # commands through without removal of \ escapes INIT.
12824 if test -n "\${ZSH_VERSION+set}" ; then
12825 setopt NO_GLOB_SUBST
12829 PACKAGE='$PACKAGE'
12830 VERSION='$VERSION'
12831 TIMESTAMP='$TIMESTAMP'
12832 RM='$RM'
12833 ofile='$ofile'
12838 _ACEOF
12840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12842 # Handling of arguments.
12843 for ac_config_target in $ac_config_targets
12845 case $ac_config_target in
12846 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12847 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
12848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12849 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12851 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12852 esac
12853 done
12856 # If the user did not use the arguments to specify the items to instantiate,
12857 # then the envvar interface is used. Set only those that are not.
12858 # We use the long form for the default assignment because of an extremely
12859 # bizarre bug on SunOS 4.1.3.
12860 if $ac_need_defaults; then
12861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12866 # Have a temporary directory for convenience. Make it in the build tree
12867 # simply because there is no reason against having it here, and in addition,
12868 # creating and moving files from /tmp can sometimes cause problems.
12869 # Hook for its removal unless debugging.
12870 # Note that there is a small window in which the directory will not be cleaned:
12871 # after its creation but before its name has been assigned to `$tmp'.
12872 $debug ||
12874 tmp= ac_tmp=
12875 trap 'exit_status=$?
12876 : "${ac_tmp:=$tmp}"
12877 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12879 trap 'as_fn_exit 1' 1 2 13 15
12881 # Create a (secure) tmp directory for tmp files.
12884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12885 test -d "$tmp"
12886 } ||
12888 tmp=./conf$$-$RANDOM
12889 (umask 077 && mkdir "$tmp")
12890 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12891 ac_tmp=$tmp
12893 # Set up the scripts for CONFIG_FILES section.
12894 # No need to generate them if there are no CONFIG_FILES.
12895 # This happens for instance with `./config.status config.h'.
12896 if test -n "$CONFIG_FILES"; then
12899 ac_cr=`echo X | tr X '\015'`
12900 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12901 # But we know of no other shell where ac_cr would be empty at this
12902 # point, so we can use a bashism as a fallback.
12903 if test "x$ac_cr" = x; then
12904 eval ac_cr=\$\'\\r\'
12906 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12907 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12908 ac_cs_awk_cr='\\r'
12909 else
12910 ac_cs_awk_cr=$ac_cr
12913 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12914 _ACEOF
12918 echo "cat >conf$$subs.awk <<_ACEOF" &&
12919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12920 echo "_ACEOF"
12921 } >conf$$subs.sh ||
12922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12923 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12924 ac_delim='%!_!# '
12925 for ac_last_try in false false false false false :; do
12926 . ./conf$$subs.sh ||
12927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12930 if test $ac_delim_n = $ac_delim_num; then
12931 break
12932 elif $ac_last_try; then
12933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12934 else
12935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12937 done
12938 rm -f conf$$subs.sh
12940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12941 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12942 _ACEOF
12943 sed -n '
12945 s/^/S["/; s/!.*/"]=/
12948 s/^[^!]*!//
12949 :repl
12950 t repl
12951 s/'"$ac_delim"'$//
12952 t delim
12955 s/\(.\{148\}\)..*/\1/
12956 t more1
12957 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12960 b repl
12961 :more1
12962 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12965 s/.\{148\}//
12966 t nl
12967 :delim
12969 s/\(.\{148\}\)..*/\1/
12970 t more2
12971 s/["\\]/\\&/g; s/^/"/; s/$/"/
12974 :more2
12975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12978 s/.\{148\}//
12979 t delim
12980 ' <conf$$subs.awk | sed '
12981 /^[^""]/{
12983 s/\n//
12985 ' >>$CONFIG_STATUS || ac_write_fail=1
12986 rm -f conf$$subs.awk
12987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12988 _ACAWK
12989 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12990 for (key in S) S_is_set[key] = 1
12991 FS = "\a"
12995 line = $ 0
12996 nfields = split(line, field, "@")
12997 substed = 0
12998 len = length(field[1])
12999 for (i = 2; i < nfields; i++) {
13000 key = field[i]
13001 keylen = length(key)
13002 if (S_is_set[key]) {
13003 value = S[key]
13004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13005 len += length(value) + length(field[++i])
13006 substed = 1
13007 } else
13008 len += 1 + keylen
13011 print line
13014 _ACAWK
13015 _ACEOF
13016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13017 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13019 else
13021 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13022 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13023 _ACEOF
13025 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13026 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13027 # trailing colons and then remove the whole line if VPATH becomes empty
13028 # (actually we leave an empty line to preserve line numbers).
13029 if test "x$srcdir" = x.; then
13030 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13032 s///
13033 s/^/:/
13034 s/[ ]*$/:/
13035 s/:\$(srcdir):/:/g
13036 s/:\${srcdir}:/:/g
13037 s/:@srcdir@:/:/g
13038 s/^:*//
13039 s/:*$//
13041 s/\(=[ ]*\).*/\1/
13043 s/\n//
13044 s/^[^=]*=[ ]*$//
13048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13049 fi # test -n "$CONFIG_FILES"
13051 # Set up the scripts for CONFIG_HEADERS section.
13052 # No need to generate them if there are no CONFIG_HEADERS.
13053 # This happens for instance with `./config.status Makefile'.
13054 if test -n "$CONFIG_HEADERS"; then
13055 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13056 BEGIN {
13057 _ACEOF
13059 # Transform confdefs.h into an awk script `defines.awk', embedded as
13060 # here-document in config.status, that substitutes the proper values into
13061 # config.h.in to produce config.h.
13063 # Create a delimiter string that does not exist in confdefs.h, to ease
13064 # handling of long lines.
13065 ac_delim='%!_!# '
13066 for ac_last_try in false false :; do
13067 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13068 if test -z "$ac_tt"; then
13069 break
13070 elif $ac_last_try; then
13071 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13072 else
13073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13075 done
13077 # For the awk script, D is an array of macro values keyed by name,
13078 # likewise P contains macro parameters if any. Preserve backslash
13079 # newline sequences.
13081 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13082 sed -n '
13083 s/.\{148\}/&'"$ac_delim"'/g
13084 t rset
13085 :rset
13086 s/^[ ]*#[ ]*define[ ][ ]*/ /
13087 t def
13089 :def
13090 s/\\$//
13091 t bsnl
13092 s/["\\]/\\&/g
13093 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13094 D["\1"]=" \3"/p
13095 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13097 :bsnl
13098 s/["\\]/\\&/g
13099 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13100 D["\1"]=" \3\\\\\\n"\\/p
13101 t cont
13102 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13103 t cont
13105 :cont
13107 s/.\{148\}/&'"$ac_delim"'/g
13108 t clear
13109 :clear
13110 s/\\$//
13111 t bsnlc
13112 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13114 :bsnlc
13115 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13116 b cont
13117 ' <confdefs.h | sed '
13118 s/'"$ac_delim"'/"\\\
13119 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13122 for (key in D) D_is_set[key] = 1
13123 FS = "\a"
13125 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13126 line = \$ 0
13127 split(line, arg, " ")
13128 if (arg[1] == "#") {
13129 defundef = arg[2]
13130 mac1 = arg[3]
13131 } else {
13132 defundef = substr(arg[1], 2)
13133 mac1 = arg[2]
13135 split(mac1, mac2, "(") #)
13136 macro = mac2[1]
13137 prefix = substr(line, 1, index(line, defundef) - 1)
13138 if (D_is_set[macro]) {
13139 # Preserve the white space surrounding the "#".
13140 print prefix "define", macro P[macro] D[macro]
13141 next
13142 } else {
13143 # Replace #undef with comments. This is necessary, for example,
13144 # in the case of _POSIX_SOURCE, which is predefined and required
13145 # on some systems where configure will not decide to define it.
13146 if (defundef == "undef") {
13147 print "/*", prefix defundef, macro, "*/"
13148 next
13152 { print }
13153 _ACAWK
13154 _ACEOF
13155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13156 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13157 fi # test -n "$CONFIG_HEADERS"
13160 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13161 shift
13162 for ac_tag
13164 case $ac_tag in
13165 :[FHLC]) ac_mode=$ac_tag; continue;;
13166 esac
13167 case $ac_mode$ac_tag in
13168 :[FHL]*:*);;
13169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13170 :[FH]-) ac_tag=-:-;;
13171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13172 esac
13173 ac_save_IFS=$IFS
13174 IFS=:
13175 set x $ac_tag
13176 IFS=$ac_save_IFS
13177 shift
13178 ac_file=$1
13179 shift
13181 case $ac_mode in
13182 :L) ac_source=$1;;
13183 :[FH])
13184 ac_file_inputs=
13185 for ac_f
13187 case $ac_f in
13188 -) ac_f="$ac_tmp/stdin";;
13189 *) # Look for the file first in the build tree, then in the source tree
13190 # (if the path is not absolute). The absolute path cannot be DOS-style,
13191 # because $ac_f cannot contain `:'.
13192 test -f "$ac_f" ||
13193 case $ac_f in
13194 [\\/$]*) false;;
13195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13196 esac ||
13197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13198 esac
13199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13200 as_fn_append ac_file_inputs " '$ac_f'"
13201 done
13203 # Let's still pretend it is `configure' which instantiates (i.e., don't
13204 # use $as_me), people would be surprised to read:
13205 # /* config.h. Generated by config.status. */
13206 configure_input='Generated from '`
13207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13208 `' by configure.'
13209 if test x"$ac_file" != x-; then
13210 configure_input="$ac_file. $configure_input"
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13212 $as_echo "$as_me: creating $ac_file" >&6;}
13214 # Neutralize special characters interpreted by sed in replacement strings.
13215 case $configure_input in #(
13216 *\&* | *\|* | *\\* )
13217 ac_sed_conf_input=`$as_echo "$configure_input" |
13218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13219 *) ac_sed_conf_input=$configure_input;;
13220 esac
13222 case $ac_tag in
13223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13225 esac
13227 esac
13229 ac_dir=`$as_dirname -- "$ac_file" ||
13230 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13231 X"$ac_file" : 'X\(//\)[^/]' \| \
13232 X"$ac_file" : 'X\(//\)$' \| \
13233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13234 $as_echo X"$ac_file" |
13235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13236 s//\1/
13239 /^X\(\/\/\)[^/].*/{
13240 s//\1/
13243 /^X\(\/\/\)$/{
13244 s//\1/
13247 /^X\(\/\).*/{
13248 s//\1/
13251 s/.*/./; q'`
13252 as_dir="$ac_dir"; as_fn_mkdir_p
13253 ac_builddir=.
13255 case "$ac_dir" in
13256 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13259 # A ".." for each directory in $ac_dir_suffix.
13260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13261 case $ac_top_builddir_sub in
13262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13264 esac ;;
13265 esac
13266 ac_abs_top_builddir=$ac_pwd
13267 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13268 # for backward compatibility:
13269 ac_top_builddir=$ac_top_build_prefix
13271 case $srcdir in
13272 .) # We are building in place.
13273 ac_srcdir=.
13274 ac_top_srcdir=$ac_top_builddir_sub
13275 ac_abs_top_srcdir=$ac_pwd ;;
13276 [\\/]* | ?:[\\/]* ) # Absolute name.
13277 ac_srcdir=$srcdir$ac_dir_suffix;
13278 ac_top_srcdir=$srcdir
13279 ac_abs_top_srcdir=$srcdir ;;
13280 *) # Relative name.
13281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13282 ac_top_srcdir=$ac_top_build_prefix$srcdir
13283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13284 esac
13285 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13288 case $ac_mode in
13291 # CONFIG_FILE
13294 case $INSTALL in
13295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13297 esac
13298 _ACEOF
13300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13301 # If the template does not know about datarootdir, expand it.
13302 # FIXME: This hack should be removed a few years after 2.60.
13303 ac_datarootdir_hack=; ac_datarootdir_seen=
13304 ac_sed_dataroot='
13305 /datarootdir/ {
13309 /@datadir@/p
13310 /@docdir@/p
13311 /@infodir@/p
13312 /@localedir@/p
13313 /@mandir@/p'
13314 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13315 *datarootdir*) ac_datarootdir_seen=yes;;
13316 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13318 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13319 _ACEOF
13320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13321 ac_datarootdir_hack='
13322 s&@datadir@&$datadir&g
13323 s&@docdir@&$docdir&g
13324 s&@infodir@&$infodir&g
13325 s&@localedir@&$localedir&g
13326 s&@mandir@&$mandir&g
13327 s&\\\${datarootdir}&$datarootdir&g' ;;
13328 esac
13329 _ACEOF
13331 # Neutralize VPATH when `$srcdir' = `.'.
13332 # Shell code in configure.ac might set extrasub.
13333 # FIXME: do we really want to maintain this feature?
13334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13335 ac_sed_extra="$ac_vpsub
13336 $extrasub
13337 _ACEOF
13338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13341 s|@configure_input@|$ac_sed_conf_input|;t t
13342 s&@top_builddir@&$ac_top_builddir_sub&;t t
13343 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13344 s&@srcdir@&$ac_srcdir&;t t
13345 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13346 s&@top_srcdir@&$ac_top_srcdir&;t t
13347 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13348 s&@builddir@&$ac_builddir&;t t
13349 s&@abs_builddir@&$ac_abs_builddir&;t t
13350 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13351 s&@INSTALL@&$ac_INSTALL&;t t
13352 $ac_datarootdir_hack
13354 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13355 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13357 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13358 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13359 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13360 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13362 which seems to be undefined. Please make sure it is defined" >&5
13363 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13364 which seems to be undefined. Please make sure it is defined" >&2;}
13366 rm -f "$ac_tmp/stdin"
13367 case $ac_file in
13368 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13369 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13370 esac \
13371 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13375 # CONFIG_HEADER
13377 if test x"$ac_file" != x-; then
13379 $as_echo "/* $configure_input */" \
13380 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13381 } >"$ac_tmp/config.h" \
13382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13383 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13385 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13386 else
13387 rm -f "$ac_file"
13388 mv "$ac_tmp/config.h" "$ac_file" \
13389 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13391 else
13392 $as_echo "/* $configure_input */" \
13393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13394 || as_fn_error $? "could not create -" "$LINENO" 5
13398 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13399 $as_echo "$as_me: executing $ac_file commands" >&6;}
13401 esac
13404 case $ac_file$ac_mode in
13405 "libtool":C)
13407 # See if we are running on zsh, and set the options which allow our
13408 # commands through without removal of \ escapes.
13409 if test -n "${ZSH_VERSION+set}" ; then
13410 setopt NO_GLOB_SUBST
13413 cfgfile="${ofile}T"
13414 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13415 $RM "$cfgfile"
13417 cat <<_LT_EOF >> "$cfgfile"
13418 #! $SHELL
13420 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13421 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13423 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13425 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13426 # 2006, 2007, 2008 Free Software Foundation, Inc.
13427 # Written by Gordon Matzigkeit, 1996
13429 # This file is part of GNU Libtool.
13431 # GNU Libtool is free software; you can redistribute it and/or
13432 # modify it under the terms of the GNU General Public License as
13433 # published by the Free Software Foundation; either version 2 of
13434 # the License, or (at your option) any later version.
13436 # As a special exception to the GNU General Public License,
13437 # if you distribute this file as part of a program or library that
13438 # is built using GNU Libtool, you may include this file under the
13439 # same distribution terms that you use for the rest of that program.
13441 # GNU Libtool is distributed in the hope that it will be useful,
13442 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13443 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13444 # GNU General Public License for more details.
13446 # You should have received a copy of the GNU General Public License
13447 # along with GNU Libtool; see the file COPYING. If not, a copy
13448 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13449 # obtained by writing to the Free Software Foundation, Inc.,
13450 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13453 # The names of the tagged configurations supported by this script.
13454 available_tags=""
13456 # ### BEGIN LIBTOOL CONFIG
13458 # Which release of libtool.m4 was used?
13459 macro_version=$macro_version
13460 macro_revision=$macro_revision
13462 # Whether or not to build shared libraries.
13463 build_libtool_libs=$enable_shared
13465 # Whether or not to build static libraries.
13466 build_old_libs=$enable_static
13468 # What type of objects to build.
13469 pic_mode=$pic_mode
13471 # Whether or not to optimize for fast installation.
13472 fast_install=$enable_fast_install
13474 # The host system.
13475 host_alias=$host_alias
13476 host=$host
13477 host_os=$host_os
13479 # The build system.
13480 build_alias=$build_alias
13481 build=$build
13482 build_os=$build_os
13484 # A sed program that does not truncate output.
13485 SED=$lt_SED
13487 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13488 Xsed="\$SED -e 1s/^X//"
13490 # A grep program that handles long lines.
13491 GREP=$lt_GREP
13493 # An ERE matcher.
13494 EGREP=$lt_EGREP
13496 # A literal string matcher.
13497 FGREP=$lt_FGREP
13499 # A BSD- or MS-compatible name lister.
13500 NM=$lt_NM
13502 # Whether we need soft or hard links.
13503 LN_S=$lt_LN_S
13505 # What is the maximum length of a command?
13506 max_cmd_len=$max_cmd_len
13508 # Object file suffix (normally "o").
13509 objext=$ac_objext
13511 # Executable file suffix (normally "").
13512 exeext=$exeext
13514 # whether the shell understands "unset".
13515 lt_unset=$lt_unset
13517 # turn spaces into newlines.
13518 SP2NL=$lt_lt_SP2NL
13520 # turn newlines into spaces.
13521 NL2SP=$lt_lt_NL2SP
13523 # How to create reloadable object files.
13524 reload_flag=$lt_reload_flag
13525 reload_cmds=$lt_reload_cmds
13527 # An object symbol dumper.
13528 OBJDUMP=$lt_OBJDUMP
13530 # Method to check whether dependent libraries are shared objects.
13531 deplibs_check_method=$lt_deplibs_check_method
13533 # Command to use when deplibs_check_method == "file_magic".
13534 file_magic_cmd=$lt_file_magic_cmd
13536 # The archiver.
13537 AR=$lt_AR
13538 AR_FLAGS=$lt_AR_FLAGS
13540 # A symbol stripping program.
13541 STRIP=$lt_STRIP
13543 # Commands used to install an old-style archive.
13544 RANLIB=$lt_RANLIB
13545 old_postinstall_cmds=$lt_old_postinstall_cmds
13546 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13548 # A C compiler.
13549 LTCC=$lt_CC
13551 # LTCC compiler flags.
13552 LTCFLAGS=$lt_CFLAGS
13554 # Take the output of nm and produce a listing of raw symbols and C names.
13555 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13557 # Transform the output of nm in a proper C declaration.
13558 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13560 # Transform the output of nm in a C name address pair.
13561 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13563 # Transform the output of nm in a C name address pair when lib prefix is needed.
13564 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13566 # The name of the directory that contains temporary libtool files.
13567 objdir=$objdir
13569 # Shell to use when invoking shell scripts.
13570 SHELL=$lt_SHELL
13572 # An echo program that does not interpret backslashes.
13573 ECHO=$lt_ECHO
13575 # Used to examine libraries when file_magic_cmd begins with "file".
13576 MAGIC_CMD=$MAGIC_CMD
13578 # Must we lock files when doing compilation?
13579 need_locks=$lt_need_locks
13581 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13582 DSYMUTIL=$lt_DSYMUTIL
13584 # Tool to change global to local symbols on Mac OS X.
13585 NMEDIT=$lt_NMEDIT
13587 # Tool to manipulate fat objects and archives on Mac OS X.
13588 LIPO=$lt_LIPO
13590 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13591 OTOOL=$lt_OTOOL
13593 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13594 OTOOL64=$lt_OTOOL64
13596 # Old archive suffix (normally "a").
13597 libext=$libext
13599 # Shared library suffix (normally ".so").
13600 shrext_cmds=$lt_shrext_cmds
13602 # The commands to extract the exported symbol list from a shared archive.
13603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13605 # Variables whose values should be saved in libtool wrapper scripts and
13606 # restored at link time.
13607 variables_saved_for_relink=$lt_variables_saved_for_relink
13609 # Do we need the "lib" prefix for modules?
13610 need_lib_prefix=$need_lib_prefix
13612 # Do we need a version for libraries?
13613 need_version=$need_version
13615 # Library versioning type.
13616 version_type=$version_type
13618 # Shared library runtime path variable.
13619 runpath_var=$runpath_var
13621 # Shared library path variable.
13622 shlibpath_var=$shlibpath_var
13624 # Is shlibpath searched before the hard-coded library search path?
13625 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13627 # Format of library name prefix.
13628 libname_spec=$lt_libname_spec
13630 # List of archive names. First name is the real one, the rest are links.
13631 # The last name is the one that the linker finds with -lNAME
13632 library_names_spec=$lt_library_names_spec
13634 # The coded name of the library, if different from the real name.
13635 soname_spec=$lt_soname_spec
13637 # Command to use after installation of a shared archive.
13638 postinstall_cmds=$lt_postinstall_cmds
13640 # Command to use after uninstallation of a shared archive.
13641 postuninstall_cmds=$lt_postuninstall_cmds
13643 # Commands used to finish a libtool library installation in a directory.
13644 finish_cmds=$lt_finish_cmds
13646 # As "finish_cmds", except a single script fragment to be evaled but
13647 # not shown.
13648 finish_eval=$lt_finish_eval
13650 # Whether we should hardcode library paths into libraries.
13651 hardcode_into_libs=$hardcode_into_libs
13653 # Compile-time system search path for libraries.
13654 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13656 # Run-time system search path for libraries.
13657 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13659 # Whether dlopen is supported.
13660 dlopen_support=$enable_dlopen
13662 # Whether dlopen of programs is supported.
13663 dlopen_self=$enable_dlopen_self
13665 # Whether dlopen of statically linked programs is supported.
13666 dlopen_self_static=$enable_dlopen_self_static
13668 # Commands to strip libraries.
13669 old_striplib=$lt_old_striplib
13670 striplib=$lt_striplib
13673 # The linker used to build libraries.
13674 LD=$lt_LD
13676 # Commands used to build an old-style archive.
13677 old_archive_cmds=$lt_old_archive_cmds
13679 # A language specific compiler.
13680 CC=$lt_compiler
13682 # Is the compiler the GNU compiler?
13683 with_gcc=$GCC
13685 # Compiler flag to turn off builtin functions.
13686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13688 # How to pass a linker flag through the compiler.
13689 wl=$lt_lt_prog_compiler_wl
13691 # Additional compiler flags for building library objects.
13692 pic_flag=$lt_lt_prog_compiler_pic
13694 # Compiler flag to prevent dynamic linking.
13695 link_static_flag=$lt_lt_prog_compiler_static
13697 # Does compiler simultaneously support -c and -o options?
13698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13700 # Whether or not to add -lc for building shared libraries.
13701 build_libtool_need_lc=$archive_cmds_need_lc
13703 # Whether or not to disallow shared libs when runtime libs are static.
13704 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13706 # Compiler flag to allow reflexive dlopens.
13707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13709 # Compiler flag to generate shared objects directly from archives.
13710 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13712 # Whether the compiler copes with passing no objects directly.
13713 compiler_needs_object=$lt_compiler_needs_object
13715 # Create an old-style archive from a shared archive.
13716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13718 # Create a temporary old-style archive to link instead of a shared archive.
13719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13721 # Commands used to build a shared archive.
13722 archive_cmds=$lt_archive_cmds
13723 archive_expsym_cmds=$lt_archive_expsym_cmds
13725 # Commands used to build a loadable module if different from building
13726 # a shared archive.
13727 module_cmds=$lt_module_cmds
13728 module_expsym_cmds=$lt_module_expsym_cmds
13730 # Whether we are building with GNU ld or not.
13731 with_gnu_ld=$lt_with_gnu_ld
13733 # Flag that allows shared libraries with undefined symbols to be built.
13734 allow_undefined_flag=$lt_allow_undefined_flag
13736 # Flag that enforces no undefined symbols.
13737 no_undefined_flag=$lt_no_undefined_flag
13739 # Flag to hardcode \$libdir into a binary during linking.
13740 # This must work even if \$libdir does not exist
13741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13743 # If ld is used when linking, flag to hardcode \$libdir into a binary
13744 # during linking. This must work even if \$libdir does not exist.
13745 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13747 # Whether we need a single "-rpath" flag with a separated argument.
13748 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13751 # DIR into the resulting binary.
13752 hardcode_direct=$hardcode_direct
13754 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13755 # DIR into the resulting binary and the resulting library dependency is
13756 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13757 # library is relocated.
13758 hardcode_direct_absolute=$hardcode_direct_absolute
13760 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13761 # into the resulting binary.
13762 hardcode_minus_L=$hardcode_minus_L
13764 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13765 # into the resulting binary.
13766 hardcode_shlibpath_var=$hardcode_shlibpath_var
13768 # Set to "yes" if building a shared library automatically hardcodes DIR
13769 # into the library and all subsequent libraries and executables linked
13770 # against it.
13771 hardcode_automatic=$hardcode_automatic
13773 # Set to yes if linker adds runtime paths of dependent libraries
13774 # to runtime path list.
13775 inherit_rpath=$inherit_rpath
13777 # Whether libtool must link a program against all its dependency libraries.
13778 link_all_deplibs=$link_all_deplibs
13780 # Fix the shell variable \$srcfile for the compiler.
13781 fix_srcfile_path=$lt_fix_srcfile_path
13783 # Set to "yes" if exported symbols are required.
13784 always_export_symbols=$always_export_symbols
13786 # The commands to list exported symbols.
13787 export_symbols_cmds=$lt_export_symbols_cmds
13789 # Symbols that should not be listed in the preloaded symbols.
13790 exclude_expsyms=$lt_exclude_expsyms
13792 # Symbols that must always be exported.
13793 include_expsyms=$lt_include_expsyms
13795 # Commands necessary for linking programs (against libraries) with templates.
13796 prelink_cmds=$lt_prelink_cmds
13798 # Specify filename containing input files.
13799 file_list_spec=$lt_file_list_spec
13801 # How to hardcode a shared library path into an executable.
13802 hardcode_action=$hardcode_action
13804 # ### END LIBTOOL CONFIG
13806 _LT_EOF
13808 case $host_os in
13809 aix3*)
13810 cat <<\_LT_EOF >> "$cfgfile"
13811 # AIX sometimes has problems with the GCC collect2 program. For some
13812 # reason, if we set the COLLECT_NAMES environment variable, the problems
13813 # vanish in a puff of smoke.
13814 if test "X${COLLECT_NAMES+set}" != Xset; then
13815 COLLECT_NAMES=
13816 export COLLECT_NAMES
13818 _LT_EOF
13820 esac
13823 ltmain="$ac_aux_dir/ltmain.sh"
13826 # We use sed instead of cat because bash on DJGPP gets confused if
13827 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13828 # text mode, it properly converts lines to CR/LF. This bash problem
13829 # is reportedly fixed, but why not run on old versions too?
13830 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13831 || (rm -f "$cfgfile"; exit 1)
13833 case $xsi_shell in
13834 yes)
13835 cat << \_LT_EOF >> "$cfgfile"
13837 # func_dirname file append nondir_replacement
13838 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13839 # otherwise set result to NONDIR_REPLACEMENT.
13840 func_dirname ()
13842 case ${1} in
13843 */*) func_dirname_result="${1%/*}${2}" ;;
13844 * ) func_dirname_result="${3}" ;;
13845 esac
13848 # func_basename file
13849 func_basename ()
13851 func_basename_result="${1##*/}"
13854 # func_dirname_and_basename file append nondir_replacement
13855 # perform func_basename and func_dirname in a single function
13856 # call:
13857 # dirname: Compute the dirname of FILE. If nonempty,
13858 # add APPEND to the result, otherwise set result
13859 # to NONDIR_REPLACEMENT.
13860 # value returned in "$func_dirname_result"
13861 # basename: Compute filename of FILE.
13862 # value retuned in "$func_basename_result"
13863 # Implementation must be kept synchronized with func_dirname
13864 # and func_basename. For efficiency, we do not delegate to
13865 # those functions but instead duplicate the functionality here.
13866 func_dirname_and_basename ()
13868 case ${1} in
13869 */*) func_dirname_result="${1%/*}${2}" ;;
13870 * ) func_dirname_result="${3}" ;;
13871 esac
13872 func_basename_result="${1##*/}"
13875 # func_stripname prefix suffix name
13876 # strip PREFIX and SUFFIX off of NAME.
13877 # PREFIX and SUFFIX must not contain globbing or regex special
13878 # characters, hashes, percent signs, but SUFFIX may contain a leading
13879 # dot (in which case that matches only a dot).
13880 func_stripname ()
13882 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13883 # positional parameters, so assign one to ordinary parameter first.
13884 func_stripname_result=${3}
13885 func_stripname_result=${func_stripname_result#"${1}"}
13886 func_stripname_result=${func_stripname_result%"${2}"}
13889 # func_opt_split
13890 func_opt_split ()
13892 func_opt_split_opt=${1%%=*}
13893 func_opt_split_arg=${1#*=}
13896 # func_lo2o object
13897 func_lo2o ()
13899 case ${1} in
13900 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13901 *) func_lo2o_result=${1} ;;
13902 esac
13905 # func_xform libobj-or-source
13906 func_xform ()
13908 func_xform_result=${1%.*}.lo
13911 # func_arith arithmetic-term...
13912 func_arith ()
13914 func_arith_result=$(( $* ))
13917 # func_len string
13918 # STRING may not start with a hyphen.
13919 func_len ()
13921 func_len_result=${#1}
13924 _LT_EOF
13926 *) # Bourne compatible functions.
13927 cat << \_LT_EOF >> "$cfgfile"
13929 # func_dirname file append nondir_replacement
13930 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13931 # otherwise set result to NONDIR_REPLACEMENT.
13932 func_dirname ()
13934 # Extract subdirectory from the argument.
13935 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13936 if test "X$func_dirname_result" = "X${1}"; then
13937 func_dirname_result="${3}"
13938 else
13939 func_dirname_result="$func_dirname_result${2}"
13943 # func_basename file
13944 func_basename ()
13946 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13950 # func_stripname prefix suffix name
13951 # strip PREFIX and SUFFIX off of NAME.
13952 # PREFIX and SUFFIX must not contain globbing or regex special
13953 # characters, hashes, percent signs, but SUFFIX may contain a leading
13954 # dot (in which case that matches only a dot).
13955 # func_strip_suffix prefix name
13956 func_stripname ()
13958 case ${2} in
13959 .*) func_stripname_result=`$ECHO "X${3}" \
13960 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13961 *) func_stripname_result=`$ECHO "X${3}" \
13962 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13963 esac
13966 # sed scripts:
13967 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13968 my_sed_long_arg='1s/^-[^=]*=//'
13970 # func_opt_split
13971 func_opt_split ()
13973 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13974 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13977 # func_lo2o object
13978 func_lo2o ()
13980 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13983 # func_xform libobj-or-source
13984 func_xform ()
13986 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13989 # func_arith arithmetic-term...
13990 func_arith ()
13992 func_arith_result=`expr "$@"`
13995 # func_len string
13996 # STRING may not start with a hyphen.
13997 func_len ()
13999 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14002 _LT_EOF
14003 esac
14005 case $lt_shell_append in
14006 yes)
14007 cat << \_LT_EOF >> "$cfgfile"
14009 # func_append var value
14010 # Append VALUE to the end of shell variable VAR.
14011 func_append ()
14013 eval "$1+=\$2"
14015 _LT_EOF
14018 cat << \_LT_EOF >> "$cfgfile"
14020 # func_append var value
14021 # Append VALUE to the end of shell variable VAR.
14022 func_append ()
14024 eval "$1=\$$1\$2"
14027 _LT_EOF
14029 esac
14032 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14033 || (rm -f "$cfgfile"; exit 1)
14035 mv -f "$cfgfile" "$ofile" ||
14036 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14037 chmod +x "$ofile"
14041 esac
14042 done # for ac_tag
14045 as_fn_exit 0
14046 _ACEOF
14047 ac_clean_files=$ac_clean_files_save
14049 test $ac_write_fail = 0 ||
14050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14053 # configure is writing to config.log, and then calls config.status.
14054 # config.status does its own redirection, appending to config.log.
14055 # Unfortunately, on DOS this fails, as config.log is still kept open
14056 # by configure, so config.status won't be able to write to it; its
14057 # output is simply discarded. So we exec the FD to /dev/null,
14058 # effectively closing config.log, so it can be properly (re)opened and
14059 # appended to by config.status. When coming back to configure, we
14060 # need to make the FD available again.
14061 if test "$no_create" != yes; then
14062 ac_cs_success=:
14063 ac_config_status_args=
14064 test "$silent" = yes &&
14065 ac_config_status_args="$ac_config_status_args --quiet"
14066 exec 5>/dev/null
14067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14068 exec 5>>config.log
14069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14070 # would make configure fail if this is the last instruction.
14071 $ac_cs_success || as_fn_exit 1
14073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}