Snapshot of upstream SQLite 3.45.1
[sqlcipher.git] / configure
blobb7a3bfa42caa4dd79175bae17a87603bf28713a6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.45.1.
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.45.1'
730 PACKAGE_STRING='sqlite 3.45.1'
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 HAVE_TCL
785 TCL_SHLIB_SUFFIX
786 TCL_STUB_LIB_SPEC
787 TCL_STUB_LIB_FLAG
788 TCL_STUB_LIB_FILE
789 TCL_LIB_SPEC
790 TCL_LIB_FLAG
791 TCL_LIB_FILE
792 TCL_INCLUDE_SPEC
793 TCL_SRC_DIR
794 TCL_BIN_DIR
795 TCL_VERSION
796 TARGET_EXEEXT
797 SQLITE_OS_WIN
798 SQLITE_OS_UNIX
799 BUILD_EXEEXT
800 TEMP_STORE
801 ALLOWRELEASE
802 SQLITE_THREADSAFE
803 BUILD_CC
804 HAVE_WASI_SDK
805 RELEASE
806 VERSION
807 program_prefix
808 TCLLIBDIR
809 TCLSH_CMD
810 INSTALL_DATA
811 INSTALL_SCRIPT
812 INSTALL_PROGRAM
814 OTOOL64
815 OTOOL
816 LIPO
817 NMEDIT
818 DSYMUTIL
819 lt_ECHO
820 RANLIB
821 STRIP
823 OBJDUMP
824 LN_S
826 ac_ct_DUMPBIN
827 DUMPBIN
829 FGREP
830 EGREP
831 GREP
833 OBJEXT
834 EXEEXT
835 ac_ct_CC
836 CPPFLAGS
837 LDFLAGS
838 CFLAGS
840 host_os
841 host_vendor
842 host_cpu
843 host
844 build_os
845 build_vendor
846 build_cpu
847 build
848 LIBTOOL
849 target_alias
850 host_alias
851 build_alias
852 LIBS
853 ECHO_T
854 ECHO_N
855 ECHO_C
856 DEFS
857 mandir
858 localedir
859 libdir
860 psdir
861 pdfdir
862 dvidir
863 htmldir
864 infodir
865 docdir
866 oldincludedir
867 includedir
868 localstatedir
869 sharedstatedir
870 sysconfdir
871 datadir
872 datarootdir
873 libexecdir
874 sbindir
875 bindir
876 program_transform_name
877 prefix
878 exec_prefix
879 PACKAGE_URL
880 PACKAGE_BUGREPORT
881 PACKAGE_STRING
882 PACKAGE_VERSION
883 PACKAGE_TARNAME
884 PACKAGE_NAME
885 PATH_SEPARATOR
886 SHELL'
887 ac_subst_files=''
888 ac_user_opts='
889 enable_option_checking
890 enable_shared
891 enable_static
892 with_pic
893 enable_fast_install
894 with_gnu_ld
895 enable_libtool_lock
896 enable_largefile
897 with_wasi_sdk
898 enable_threadsafe
899 enable_releasemode
900 enable_tempstore
901 enable_tcl
902 with_tcl
903 enable_editline
904 enable_readline
905 with_readline_lib
906 with_readline_inc
907 with_linenoise
908 enable_debug
909 enable_amalgamation
910 enable_load_extension
911 enable_math
912 enable_json
913 enable_all
914 enable_memsys5
915 enable_memsys3
916 enable_fts3
917 enable_fts4
918 enable_fts5
919 enable_update_limit
920 enable_geopoly
921 enable_rtree
922 enable_session
923 enable_gcov
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
934 TCLLIBDIR'
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
985 ac_prev=
986 ac_dashdash=
987 for ac_option
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
996 case $ac_option in
997 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *=) ac_optarg= ;;
999 *) ac_optarg=yes ;;
1000 esac
1002 # Accept the important Cygnus configure options, so we can diagnose typos.
1004 case $ac_dashdash$ac_option in
1006 ac_dashdash=yes ;;
1008 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 ac_prev=bindir ;;
1010 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1011 bindir=$ac_optarg ;;
1013 -build | --build | --buil | --bui | --bu)
1014 ac_prev=build_alias ;;
1015 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1016 build_alias=$ac_optarg ;;
1018 -cache-file | --cache-file | --cache-fil | --cache-fi \
1019 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1020 ac_prev=cache_file ;;
1021 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1022 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1023 cache_file=$ac_optarg ;;
1025 --config-cache | -C)
1026 cache_file=config.cache ;;
1028 -datadir | --datadir | --datadi | --datad)
1029 ac_prev=datadir ;;
1030 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1031 datadir=$ac_optarg ;;
1033 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1034 | --dataroo | --dataro | --datar)
1035 ac_prev=datarootdir ;;
1036 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1037 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1038 datarootdir=$ac_optarg ;;
1040 -disable-* | --disable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 as_fn_error $? "invalid feature name: $ac_useropt"
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=\$ac_optarg ;;
1286 -without-* | --without-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=no ;;
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1320 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1321 Try \`$0 --help' for more information"
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 case $ac_envvar in #(
1328 '' | [0-9]* | *[!_$as_cr_alnum]* )
1329 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1330 esac
1331 eval $ac_envvar=\$ac_optarg
1332 export $ac_envvar ;;
1335 # FIXME: should be removed in autoconf 3.0.
1336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1342 esac
1343 done
1345 if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 as_fn_error $? "missing argument to $ac_option"
1350 if test -n "$ac_unrecognized_opts"; then
1351 case $enable_option_checking in
1352 no) ;;
1353 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1354 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1355 esac
1358 # Check all directory arguments for consistency.
1359 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1360 datadir sysconfdir sharedstatedir localstatedir includedir \
1361 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1362 libdir localedir mandir
1364 eval ac_val=\$$ac_var
1365 # Remove trailing slashes.
1366 case $ac_val in
1367 */ )
1368 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1369 eval $ac_var=\$ac_val;;
1370 esac
1371 # Be sure to have absolute directory names.
1372 case $ac_val in
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1375 esac
1376 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1377 done
1379 # There might be people who depend on the old broken behavior: `$host'
1380 # used to hold the argument of --host etc.
1381 # FIXME: To remove some day.
1382 build=$build_alias
1383 host=$host_alias
1384 target=$target_alias
1386 # FIXME: To remove some day.
1387 if test "x$host_alias" != x; then
1388 if test "x$build_alias" = x; then
1389 cross_compiling=maybe
1390 elif test "x$build_alias" != "x$host_alias"; then
1391 cross_compiling=yes
1395 ac_tool_prefix=
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398 test "$silent" = yes && exec 6>/dev/null
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 as_fn_error $? "working directory cannot be determined"
1405 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1406 as_fn_error $? "pwd does not report name of working directory"
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$as_myself" ||
1414 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$as_myself" : 'X\(//\)[^/]' \| \
1416 X"$as_myself" : 'X\(//\)$' \| \
1417 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1418 $as_echo X"$as_myself" |
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 s//\1/
1423 /^X\(\/\/\)[^/].*/{
1424 s//\1/
1427 /^X\(\/\/\)$/{
1428 s//\1/
1431 /^X\(\/\).*/{
1432 s//\1/
1435 s/.*/./; q'`
1436 srcdir=$ac_confdir
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 srcdir=..
1440 else
1441 ac_srcdir_defaulted=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1447 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 ac_abs_confdir=`(
1449 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1450 pwd)`
1451 # When building in place, set srcdir=.
1452 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 srcdir=.
1455 # Remove unnecessary trailing slashes from srcdir.
1456 # Double slashes in file names in object file debugging info
1457 # mess up M-x gdb in Emacs.
1458 case $srcdir in
1459 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 esac
1461 for ac_var in $ac_precious_vars; do
1462 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_env_${ac_var}_value=\$${ac_var}
1464 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 done
1469 # Report the --help message.
1471 if test "$ac_init_help" = "long"; then
1472 # Omit some internal or obsolete options to make the list less imposing.
1473 # This message is too long to be a string in the A/UX 3.1 sh.
1474 cat <<_ACEOF
1475 \`configure' configures sqlite 3.45.1 to adapt to many kinds of systems.
1477 Usage: $0 [OPTION]... [VAR=VALUE]...
1479 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1480 VAR=VALUE. See below for descriptions of some of the useful variables.
1482 Defaults for the options are specified in brackets.
1484 Configuration:
1485 -h, --help display this help and exit
1486 --help=short display options specific to this package
1487 --help=recursive display the short help of all the included packages
1488 -V, --version display version information and exit
1489 -q, --quiet, --silent do not print \`checking ...' messages
1490 --cache-file=FILE cache test results in FILE [disabled]
1491 -C, --config-cache alias for \`--cache-file=config.cache'
1492 -n, --no-create do not create output files
1493 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1495 Installation directories:
1496 --prefix=PREFIX install architecture-independent files in PREFIX
1497 [$ac_default_prefix]
1498 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 [PREFIX]
1501 By default, \`make install' will install all the files in
1502 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1503 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1504 for instance \`--prefix=\$HOME'.
1506 For better control, use the options below.
1508 Fine tuning of the installation directories:
1509 --bindir=DIR user executables [EPREFIX/bin]
1510 --sbindir=DIR system admin executables [EPREFIX/sbin]
1511 --libexecdir=DIR program executables [EPREFIX/libexec]
1512 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1513 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1514 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1515 --libdir=DIR object code libraries [EPREFIX/lib]
1516 --includedir=DIR C header files [PREFIX/include]
1517 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1518 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1519 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1520 --infodir=DIR info documentation [DATAROOTDIR/info]
1521 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1522 --mandir=DIR man documentation [DATAROOTDIR/man]
1523 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1524 --htmldir=DIR html documentation [DOCDIR]
1525 --dvidir=DIR dvi documentation [DOCDIR]
1526 --pdfdir=DIR pdf documentation [DOCDIR]
1527 --psdir=DIR ps documentation [DOCDIR]
1528 _ACEOF
1530 cat <<\_ACEOF
1532 System types:
1533 --build=BUILD configure for building on BUILD [guessed]
1534 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1535 _ACEOF
1538 if test -n "$ac_init_help"; then
1539 case $ac_init_help in
1540 short | recursive ) echo "Configuration of sqlite 3.45.1:";;
1541 esac
1542 cat <<\_ACEOF
1544 Optional Features:
1545 --disable-option-checking ignore unrecognized --enable/--with options
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-shared[=PKGS] build shared libraries [default=yes]
1549 --enable-static[=PKGS] build static libraries [default=yes]
1550 --enable-fast-install[=PKGS]
1551 optimize for fast installation [default=yes]
1552 --disable-libtool-lock avoid locking (might break parallel builds)
1553 --disable-largefile omit support for large files
1554 --disable-threadsafe Disable mutexing
1555 --enable-releasemode Support libtool link to release mode
1556 --enable-tempstore Use an in-ram database for temporary tables
1557 (never,no,yes,always)
1558 --disable-tcl do not build TCL extension
1559 --enable-editline enable BSD editline support
1560 --disable-readline disable readline support
1561 --enable-debug enable debugging & verbose explain
1562 --disable-amalgamation Disable the amalgamation and instead build all files
1563 separately
1564 --disable-load-extension
1565 Disable loading of external extensions
1566 --disable-math Disable math functions
1567 --disable-json Disable JSON functions
1568 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
1569 --enable-memsys5 Enable MEMSYS5
1570 --enable-memsys3 Enable MEMSYS3
1571 --enable-fts3 Enable the FTS3 extension
1572 --enable-fts4 Enable the FTS4 extension
1573 --enable-fts5 Enable the FTS5 extension
1574 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1575 --enable-geopoly Enable the GEOPOLY extension
1576 --enable-rtree Enable the RTREE extension
1577 --enable-session Enable the SESSION extension
1578 --enable-gcov Enable coverage testing using gcov
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1587 cross-compile to WASM.
1588 --with-tcl=DIR directory containing tcl configuration
1589 (tclConfig.sh)
1590 --with-readline-lib specify readline library
1591 --with-readline-inc specify readline include paths
1592 --with-linenoise=DIR source directory for linenoise library
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1602 CPP C preprocessor
1603 TCLLIBDIR Where to install tcl plugin
1605 Use these variables to override the choices made by `configure' or to help
1606 it to find libraries and programs with nonstandard names/locations.
1608 Report bugs to the package provider.
1609 _ACEOF
1610 ac_status=$?
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618 continue
1619 ac_builddir=.
1621 case "$ac_dir" in
1622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631 esac
1632 ac_abs_top_builddir=$ac_pwd
1633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir=$ac_top_build_prefix
1637 case $srcdir in
1638 .) # We are building in place.
1639 ac_srcdir=.
1640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
1643 ac_srcdir=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650 esac
1651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1661 else
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 fi || ac_status=$?
1664 cd "$ac_pwd" || { ac_status=$?; break; }
1665 done
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1670 cat <<\_ACEOF
1671 sqlite configure 3.45.1
1672 generated by GNU Autoconf 2.69
1674 Copyright (C) 2012 Free Software Foundation, Inc.
1675 This configure script is free software; the Free Software Foundation
1676 gives unlimited permission to copy, distribute and modify it.
1677 _ACEOF
1678 exit
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext
1692 if { { ac_try="$ac_compile"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1700 ac_status=$?
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1711 ac_retval=0
1712 else
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=1
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_link ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest$ac_exeext
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1757 ac_retval=1
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists and can be compiled using the include files in
1772 # INCLUDES, setting the cache variable VAR accordingly.
1773 ac_fn_c_check_header_compile ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1784 #include <$2>
1785 _ACEOF
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 eval "$3=yes"
1788 else
1789 eval "$3=no"
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 eval ac_res=\$$3
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_header_compile
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_cpp ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807 case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826 else
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1830 ac_retval=1
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_c_try_cpp
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1841 ac_fn_c_try_run ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=$ac_status
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_run
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1889 else
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894 #define $2 innocuous_$2
1896 /* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1901 #ifdef __STDC__
1902 # include <limits.h>
1903 #else
1904 # include <assert.h>
1905 #endif
1907 #undef $2
1909 /* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1912 #ifdef __cplusplus
1913 extern "C"
1914 #endif
1915 char $2 ();
1916 /* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919 #if defined __stub_$2 || defined __stub___$2
1920 choke me
1921 #endif
1924 main ()
1926 return $2 ();
1928 return 0;
1930 _ACEOF
1931 if ac_fn_c_try_link "$LINENO"; then :
1932 eval "$3=yes"
1933 else
1934 eval "$3=no"
1936 rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_func
1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947 # -------------------------------------------
1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
1949 # variable VAR accordingly.
1950 ac_fn_c_check_type ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 eval "$3=no"
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1963 main ()
1965 if (sizeof ($2))
1966 return 0;
1968 return 0;
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 if (sizeof (($2)))
1979 return 0;
1981 return 0;
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1986 else
1987 eval "$3=yes"
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_check_type
2000 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2001 # -------------------------------------------------------
2002 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2003 # the include files in INCLUDES and setting the cache variable VAR
2004 # accordingly.
2005 ac_fn_c_check_header_mongrel ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 if eval \${$3+:} false; then :
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 else
2018 # Is the header compilable?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2020 $as_echo_n "checking $2 usability... " >&6; }
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027 ac_header_compiler=yes
2028 else
2029 ac_header_compiler=no
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2033 $as_echo "$ac_header_compiler" >&6; }
2035 # Is the header present?
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2037 $as_echo_n "checking $2 presence... " >&6; }
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 #include <$2>
2041 _ACEOF
2042 if ac_fn_c_try_cpp "$LINENO"; then :
2043 ac_header_preproc=yes
2044 else
2045 ac_header_preproc=no
2047 rm -f conftest.err conftest.i conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2049 $as_echo "$ac_header_preproc" >&6; }
2051 # So? What about this header?
2052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2053 yes:no: )
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2055 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2057 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 no:yes:* )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2061 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2063 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2065 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2067 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2069 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2071 esac
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2076 else
2077 eval "$3=\$ac_header_compiler"
2079 eval ac_res=\$$3
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085 } # ac_fn_c_check_header_mongrel
2086 cat >config.log <<_ACEOF
2087 This file contains any messages produced by compilers while
2088 running configure, to aid debugging if configure makes a mistake.
2090 It was created by sqlite $as_me 3.45.1, which was
2091 generated by GNU Autoconf 2.69. Invocation command line was
2093 $ $0 $@
2095 _ACEOF
2096 exec 5>>config.log
2098 cat <<_ASUNAME
2099 ## --------- ##
2100 ## Platform. ##
2101 ## --------- ##
2103 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2104 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2105 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2106 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2107 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2109 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2110 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2112 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2113 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2114 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2115 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2116 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2117 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2118 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2120 _ASUNAME
2122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 for as_dir in $PATH
2125 IFS=$as_save_IFS
2126 test -z "$as_dir" && as_dir=.
2127 $as_echo "PATH: $as_dir"
2128 done
2129 IFS=$as_save_IFS
2131 } >&5
2133 cat >&5 <<_ACEOF
2136 ## ----------- ##
2137 ## Core tests. ##
2138 ## ----------- ##
2140 _ACEOF
2143 # Keep a trace of the command line.
2144 # Strip out --no-create and --no-recursion so they do not pile up.
2145 # Strip out --silent because we don't want to record it for future runs.
2146 # Also quote any args containing shell meta-characters.
2147 # Make two passes to allow for proper duplicate-argument suppression.
2148 ac_configure_args=
2149 ac_configure_args0=
2150 ac_configure_args1=
2151 ac_must_keep_next=false
2152 for ac_pass in 1 2
2154 for ac_arg
2156 case $ac_arg in
2157 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2159 | -silent | --silent | --silen | --sile | --sil)
2160 continue ;;
2161 *\'*)
2162 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2163 esac
2164 case $ac_pass in
2165 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2167 as_fn_append ac_configure_args1 " '$ac_arg'"
2168 if test $ac_must_keep_next = true; then
2169 ac_must_keep_next=false # Got value, back to normal.
2170 else
2171 case $ac_arg in
2172 *=* | --config-cache | -C | -disable-* | --disable-* \
2173 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2174 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2175 | -with-* | --with-* | -without-* | --without-* | --x)
2176 case "$ac_configure_args0 " in
2177 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2178 esac
2180 -* ) ac_must_keep_next=true ;;
2181 esac
2183 as_fn_append ac_configure_args " '$ac_arg'"
2185 esac
2186 done
2187 done
2188 { ac_configure_args0=; unset ac_configure_args0;}
2189 { ac_configure_args1=; unset ac_configure_args1;}
2191 # When interrupted or exit'd, cleanup temporary files, and complete
2192 # config.log. We remove comments because anyway the quotes in there
2193 # would cause problems or look ugly.
2194 # WARNING: Use '\'' to represent an apostrophe within the trap.
2195 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2196 trap 'exit_status=$?
2197 # Save into config.log some information that might help in debugging.
2199 echo
2201 $as_echo "## ---------------- ##
2202 ## Cache variables. ##
2203 ## ---------------- ##"
2204 echo
2205 # The following way of writing the cache mishandles newlines in values,
2207 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2208 eval ac_val=\$$ac_var
2209 case $ac_val in #(
2210 *${as_nl}*)
2211 case $ac_var in #(
2212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2214 esac
2215 case $ac_var in #(
2216 _ | IFS | as_nl) ;; #(
2217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2218 *) { eval $ac_var=; unset $ac_var;} ;;
2219 esac ;;
2220 esac
2221 done
2222 (set) 2>&1 |
2223 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2224 *${as_nl}ac_space=\ *)
2225 sed -n \
2226 "s/'\''/'\''\\\\'\'''\''/g;
2227 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2228 ;; #(
2230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2232 esac |
2233 sort
2235 echo
2237 $as_echo "## ----------------- ##
2238 ## Output variables. ##
2239 ## ----------------- ##"
2240 echo
2241 for ac_var in $ac_subst_vars
2243 eval ac_val=\$$ac_var
2244 case $ac_val in
2245 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2246 esac
2247 $as_echo "$ac_var='\''$ac_val'\''"
2248 done | sort
2249 echo
2251 if test -n "$ac_subst_files"; then
2252 $as_echo "## ------------------- ##
2253 ## File substitutions. ##
2254 ## ------------------- ##"
2255 echo
2256 for ac_var in $ac_subst_files
2258 eval ac_val=\$$ac_var
2259 case $ac_val in
2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 esac
2262 $as_echo "$ac_var='\''$ac_val'\''"
2263 done | sort
2264 echo
2267 if test -s confdefs.h; then
2268 $as_echo "## ----------- ##
2269 ## confdefs.h. ##
2270 ## ----------- ##"
2271 echo
2272 cat confdefs.h
2273 echo
2275 test "$ac_signal" != 0 &&
2276 $as_echo "$as_me: caught signal $ac_signal"
2277 $as_echo "$as_me: exit $exit_status"
2278 } >&5
2279 rm -f core *.core core.conftest.* &&
2280 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2281 exit $exit_status
2283 for ac_signal in 1 2 13 15; do
2284 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2285 done
2286 ac_signal=0
2288 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2289 rm -f -r conftest* confdefs.h
2291 $as_echo "/* confdefs.h */" > confdefs.h
2293 # Predefined preprocessor variables.
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_NAME "$PACKAGE_NAME"
2297 _ACEOF
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2301 _ACEOF
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2305 _ACEOF
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_STRING "$PACKAGE_STRING"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_URL "$PACKAGE_URL"
2317 _ACEOF
2320 # Let the site file select an alternate cache file if it wants to.
2321 # Prefer an explicitly selected file to automatically selected ones.
2322 ac_site_file1=NONE
2323 ac_site_file2=NONE
2324 if test -n "$CONFIG_SITE"; then
2325 # We do not want a PATH search for config.site.
2326 case $CONFIG_SITE in #((
2327 -*) ac_site_file1=./$CONFIG_SITE;;
2328 */*) ac_site_file1=$CONFIG_SITE;;
2329 *) ac_site_file1=./$CONFIG_SITE;;
2330 esac
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_file1=$prefix/share/config.site
2333 ac_site_file2=$prefix/etc/config.site
2334 else
2335 ac_site_file1=$ac_default_prefix/share/config.site
2336 ac_site_file2=$ac_default_prefix/etc/config.site
2338 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2340 test "x$ac_site_file" = xNONE && continue
2341 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2343 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2344 sed 's/^/| /' "$ac_site_file" >&5
2345 . "$ac_site_file" \
2346 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 as_fn_error $? "failed to load site script $ac_site_file
2349 See \`config.log' for more details" "$LINENO" 5; }
2351 done
2353 if test -r "$cache_file"; then
2354 # Some versions of bash will fail to source /dev/null (special files
2355 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2356 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2358 $as_echo "$as_me: loading cache $cache_file" >&6;}
2359 case $cache_file in
2360 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2361 *) . "./$cache_file";;
2362 esac
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2366 $as_echo "$as_me: creating cache $cache_file" >&6;}
2367 >$cache_file
2370 # Check that the precious variables saved in the cache have kept the same
2371 # value.
2372 ac_cache_corrupted=false
2373 for ac_var in $ac_precious_vars; do
2374 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2375 eval ac_new_set=\$ac_env_${ac_var}_set
2376 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2377 eval ac_new_val=\$ac_env_${ac_var}_value
2378 case $ac_old_set,$ac_new_set in
2379 set,)
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2381 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2382 ac_cache_corrupted=: ;;
2383 ,set)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2385 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,);;
2389 if test "x$ac_old_val" != "x$ac_new_val"; then
2390 # differences in whitespace do not lead to failure.
2391 ac_old_val_w=`echo x $ac_old_val`
2392 ac_new_val_w=`echo x $ac_new_val`
2393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2395 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2396 ac_cache_corrupted=:
2397 else
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2399 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2400 eval $ac_var=\$ac_old_val
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2403 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2405 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2406 fi;;
2407 esac
2408 # Pass precious variables to config.status.
2409 if test "$ac_new_set" = set; then
2410 case $ac_new_val in
2411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2412 *) ac_arg=$ac_var=$ac_new_val ;;
2413 esac
2414 case " $ac_configure_args " in
2415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2416 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2417 esac
2419 done
2420 if $ac_cache_corrupted; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2424 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2425 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2427 ## -------------------- ##
2428 ## Main body of script. ##
2429 ## -------------------- ##
2431 ac_ext=c
2432 ac_cpp='$CPP $CPPFLAGS'
2433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2439 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2440 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2441 as_fn_error $? "configure script is out of date:
2442 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2443 top level VERSION file = $sqlite_version_sanity_check
2444 please regen with autoconf" "$LINENO" 5
2447 #########
2448 # Programs needed
2450 case `pwd` in
2451 *\ * | *\ *)
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2453 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2454 esac
2458 macro_version='2.2.6'
2459 macro_revision='1.3012'
2473 ltmain="$ac_aux_dir/ltmain.sh"
2475 ac_aux_dir=
2476 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2477 if test -f "$ac_dir/install-sh"; then
2478 ac_aux_dir=$ac_dir
2479 ac_install_sh="$ac_aux_dir/install-sh -c"
2480 break
2481 elif test -f "$ac_dir/install.sh"; then
2482 ac_aux_dir=$ac_dir
2483 ac_install_sh="$ac_aux_dir/install.sh -c"
2484 break
2485 elif test -f "$ac_dir/shtool"; then
2486 ac_aux_dir=$ac_dir
2487 ac_install_sh="$ac_aux_dir/shtool install -c"
2488 break
2490 done
2491 if test -z "$ac_aux_dir"; then
2492 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2495 # These three variables are undocumented and unsupported,
2496 # and are intended to be withdrawn in a future Autoconf release.
2497 # They can cause serious problems if a builder's source tree is in a directory
2498 # whose full name contains unusual characters.
2499 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2500 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2501 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2504 # Make sure we can run config.sub.
2505 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2506 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2509 $as_echo_n "checking build system type... " >&6; }
2510 if ${ac_cv_build+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 ac_build_alias=$build_alias
2514 test "x$ac_build_alias" = x &&
2515 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2516 test "x$ac_build_alias" = x &&
2517 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2518 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2523 $as_echo "$ac_cv_build" >&6; }
2524 case $ac_cv_build in
2525 *-*-*) ;;
2526 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2527 esac
2528 build=$ac_cv_build
2529 ac_save_IFS=$IFS; IFS='-'
2530 set x $ac_cv_build
2531 shift
2532 build_cpu=$1
2533 build_vendor=$2
2534 shift; shift
2535 # Remember, the first character of IFS is used to create $*,
2536 # except with old shells:
2537 build_os=$*
2538 IFS=$ac_save_IFS
2539 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2543 $as_echo_n "checking host system type... " >&6; }
2544 if ${ac_cv_host+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 if test "x$host_alias" = x; then
2548 ac_cv_host=$ac_cv_build
2549 else
2550 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2556 $as_echo "$ac_cv_host" >&6; }
2557 case $ac_cv_host in
2558 *-*-*) ;;
2559 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2560 esac
2561 host=$ac_cv_host
2562 ac_save_IFS=$IFS; IFS='-'
2563 set x $ac_cv_host
2564 shift
2565 host_cpu=$1
2566 host_vendor=$2
2567 shift; shift
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2570 host_os=$*
2571 IFS=$ac_save_IFS
2572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584 $as_echo_n "checking for $ac_word... " >&6; }
2585 if ${ac_cv_prog_CC+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test -n "$CC"; then
2589 ac_cv_prog_CC="$CC" # Let the user override the test.
2590 else
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592 for as_dir in $PATH
2594 IFS=$as_save_IFS
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2598 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 break 2
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 CC=$ac_cv_prog_CC
2609 if test -n "$CC"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2611 $as_echo "$CC" >&6; }
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614 $as_echo "no" >&6; }
2619 if test -z "$ac_cv_prog_CC"; then
2620 ac_ct_CC=$CC
2621 # Extract the first word of "gcc", so it can be a program name with args.
2622 set dummy gcc; ac_word=$2
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2624 $as_echo_n "checking for $ac_word... " >&6; }
2625 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2626 $as_echo_n "(cached) " >&6
2627 else
2628 if test -n "$ac_ct_CC"; then
2629 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2634 IFS=$as_save_IFS
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2638 ac_cv_prog_ac_ct_CC="gcc"
2639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 break 2
2642 done
2643 done
2644 IFS=$as_save_IFS
2648 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2649 if test -n "$ac_ct_CC"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2651 $as_echo "$ac_ct_CC" >&6; }
2652 else
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2657 if test "x$ac_ct_CC" = x; then
2658 CC=""
2659 else
2660 case $cross_compiling:$ac_tool_warned in
2661 yes:)
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2664 ac_tool_warned=yes ;;
2665 esac
2666 CC=$ac_ct_CC
2668 else
2669 CC="$ac_cv_prog_CC"
2672 if test -z "$CC"; then
2673 if test -n "$ac_tool_prefix"; then
2674 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}cc; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CC="${ac_tool_prefix}cc"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2695 done
2696 done
2697 IFS=$as_save_IFS
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2713 if test -z "$CC"; then
2714 # Extract the first word of "cc", so it can be a program name with args.
2715 set dummy cc; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if ${ac_cv_prog_CC+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test -n "$CC"; then
2722 ac_cv_prog_CC="$CC" # Let the user override the test.
2723 else
2724 ac_prog_rejected=no
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2733 ac_prog_rejected=yes
2734 continue
2736 ac_cv_prog_CC="cc"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2740 done
2741 done
2742 IFS=$as_save_IFS
2744 if test $ac_prog_rejected = yes; then
2745 # We found a bogon in the path, so make sure we never use it.
2746 set dummy $ac_cv_prog_CC
2747 shift
2748 if test $# != 0; then
2749 # We chose a different compiler from the bogus one.
2750 # However, it has the same basename, so the bogon will be chosen
2751 # first if we set CC to just the basename; use the full file name.
2752 shift
2753 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2769 if test -z "$CC"; then
2770 if test -n "$ac_tool_prefix"; then
2771 for ac_prog in cl.exe
2773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779 else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2794 done
2795 done
2796 IFS=$as_save_IFS
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2804 else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2810 test -n "$CC" && break
2811 done
2813 if test -z "$CC"; then
2814 ac_ct_CC=$CC
2815 for ac_prog in cl.exe
2817 # Extract the first word of "$ac_prog", so it can be a program name with args.
2818 set dummy $ac_prog; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 if test -n "$ac_ct_CC"; then
2825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2826 else
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_CC="$ac_prog"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2838 done
2839 done
2840 IFS=$as_save_IFS
2844 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2845 if test -n "$ac_ct_CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2847 $as_echo "$ac_ct_CC" >&6; }
2848 else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2854 test -n "$ac_ct_CC" && break
2855 done
2857 if test "x$ac_ct_CC" = x; then
2858 CC=""
2859 else
2860 case $cross_compiling:$ac_tool_warned in
2861 yes:)
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2865 esac
2866 CC=$ac_ct_CC
2873 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "no acceptable C compiler found in \$PATH
2876 See \`config.log' for more details" "$LINENO" 5; }
2878 # Provide some information about the compiler.
2879 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2880 set X $ac_compile
2881 ac_compiler=$2
2882 for ac_option in --version -v -V -qversion; do
2883 { { ac_try="$ac_compiler $ac_option >&5"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889 $as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2891 ac_status=$?
2892 if test -s conftest.err; then
2893 sed '10a\
2894 ... rest of stderr output deleted ...
2895 10q' conftest.err >conftest.er1
2896 cat conftest.er1 >&5
2898 rm -f conftest.er1 conftest.err
2899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2900 test $ac_status = 0; }
2901 done
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h. */
2907 main ()
2911 return 0;
2913 _ACEOF
2914 ac_clean_files_save=$ac_clean_files
2915 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2916 # Try to create an executable without -o first, disregard a.out.
2917 # It will help us diagnose broken compilers, and finding out an intuition
2918 # of exeext.
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2920 $as_echo_n "checking whether the C compiler works... " >&6; }
2921 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2923 # The possible output files:
2924 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2926 ac_rmfiles=
2927 for ac_file in $ac_files
2929 case $ac_file in
2930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2931 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2932 esac
2933 done
2934 rm -f $ac_rmfiles
2936 if { { ac_try="$ac_link_default"
2937 case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940 esac
2941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2942 $as_echo "$ac_try_echo"; } >&5
2943 (eval "$ac_link_default") 2>&5
2944 ac_status=$?
2945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2946 test $ac_status = 0; }; then :
2947 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2948 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2949 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2950 # so that the user can short-circuit this test for compilers unknown to
2951 # Autoconf.
2952 for ac_file in $ac_files ''
2954 test -f "$ac_file" || continue
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2958 [ab].out )
2959 # We found the default executable, but exeext='' is most
2960 # certainly right.
2961 break;;
2962 *.* )
2963 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2964 then :; else
2965 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2967 # We set ac_cv_exeext here because the later test for it is not
2968 # safe: cross compilers may not add the suffix if given an `-o'
2969 # argument, so we may need to know it at that point already.
2970 # Even if this section looks crufty: it has the advantage of
2971 # actually working.
2972 break;;
2974 break;;
2975 esac
2976 done
2977 test "$ac_cv_exeext" = no && ac_cv_exeext=
2979 else
2980 ac_file=''
2982 if test -z "$ac_file"; then :
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error 77 "C compiler cannot create executables
2991 See \`config.log' for more details" "$LINENO" 5; }
2992 else
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2994 $as_echo "yes" >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2997 $as_echo_n "checking for C compiler default output file name... " >&6; }
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2999 $as_echo "$ac_file" >&6; }
3000 ac_exeext=$ac_cv_exeext
3002 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3003 ac_clean_files=$ac_clean_files_save
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3005 $as_echo_n "checking for suffix of executables... " >&6; }
3006 if { { ac_try="$ac_link"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 $as_echo "$ac_try_echo"; } >&5
3013 (eval "$ac_link") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016 test $ac_status = 0; }; then :
3017 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3018 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3019 # work properly (i.e., refer to `conftest.exe'), while it won't with
3020 # `rm'.
3021 for ac_file in conftest.exe conftest conftest.*; do
3022 test -f "$ac_file" || continue
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3026 break;;
3027 * ) break;;
3028 esac
3029 done
3030 else
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3034 See \`config.log' for more details" "$LINENO" 5; }
3036 rm -f conftest conftest$ac_cv_exeext
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3038 $as_echo "$ac_cv_exeext" >&6; }
3040 rm -f conftest.$ac_ext
3041 EXEEXT=$ac_cv_exeext
3042 ac_exeext=$EXEEXT
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3045 #include <stdio.h>
3047 main ()
3049 FILE *f = fopen ("conftest.out", "w");
3050 return ferror (f) || fclose (f) != 0;
3053 return 0;
3055 _ACEOF
3056 ac_clean_files="$ac_clean_files conftest.out"
3057 # Check that the compiler produces executables we can run. If not, either
3058 # the compiler is broken, or we cross compile.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3060 $as_echo_n "checking whether we are cross compiling... " >&6; }
3061 if test "$cross_compiling" != yes; then
3062 { { ac_try="$ac_link"
3063 case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066 esac
3067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_link") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }
3073 if { ac_try='./conftest$ac_cv_exeext'
3074 { { case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079 $as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_try") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; }; then
3084 cross_compiling=no
3085 else
3086 if test "$cross_compiling" = maybe; then
3087 cross_compiling=yes
3088 else
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error $? "cannot run C compiled programs.
3092 If you meant to cross compile, use \`--host'.
3093 See \`config.log' for more details" "$LINENO" 5; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3098 $as_echo "$cross_compiling" >&6; }
3100 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3101 ac_clean_files=$ac_clean_files_save
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3103 $as_echo_n "checking for suffix of object files... " >&6; }
3104 if ${ac_cv_objext+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3111 main ()
3115 return 0;
3117 _ACEOF
3118 rm -f conftest.o conftest.obj
3119 if { { ac_try="$ac_compile"
3120 case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123 esac
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_compile") 2>&5
3127 ac_status=$?
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 for ac_file in conftest.o conftest.obj conftest.*; do
3131 test -f "$ac_file" || continue;
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3134 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3135 break;;
3136 esac
3137 done
3138 else
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error $? "cannot compute suffix of object files: cannot compile
3145 See \`config.log' for more details" "$LINENO" 5; }
3147 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3150 $as_echo "$ac_cv_objext" >&6; }
3151 OBJEXT=$ac_cv_objext
3152 ac_objext=$OBJEXT
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3154 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3155 if ${ac_cv_c_compiler_gnu+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3162 main ()
3164 #ifndef __GNUC__
3165 choke me
3166 #endif
3169 return 0;
3171 _ACEOF
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173 ac_compiler_gnu=yes
3174 else
3175 ac_compiler_gnu=no
3177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3182 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3183 if test $ac_compiler_gnu = yes; then
3184 GCC=yes
3185 else
3186 GCC=
3188 ac_test_CFLAGS=${CFLAGS+set}
3189 ac_save_CFLAGS=$CFLAGS
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3191 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3192 if ${ac_cv_prog_cc_g+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 ac_save_c_werror_flag=$ac_c_werror_flag
3196 ac_c_werror_flag=yes
3197 ac_cv_prog_cc_g=no
3198 CFLAGS="-g"
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3203 main ()
3207 return 0;
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_cv_prog_cc_g=yes
3212 else
3213 CFLAGS=""
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3218 main ()
3222 return 0;
3224 _ACEOF
3225 if ac_fn_c_try_compile "$LINENO"; then :
3227 else
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3229 CFLAGS="-g"
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 if ac_fn_c_try_compile "$LINENO"; then :
3242 ac_cv_prog_cc_g=yes
3244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 ac_c_werror_flag=$ac_save_c_werror_flag
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3252 $as_echo "$ac_cv_prog_cc_g" >&6; }
3253 if test "$ac_test_CFLAGS" = set; then
3254 CFLAGS=$ac_save_CFLAGS
3255 elif test $ac_cv_prog_cc_g = yes; then
3256 if test "$GCC" = yes; then
3257 CFLAGS="-g -O2"
3258 else
3259 CFLAGS="-g"
3261 else
3262 if test "$GCC" = yes; then
3263 CFLAGS="-O2"
3264 else
3265 CFLAGS=
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3269 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3270 if ${ac_cv_prog_cc_c89+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 ac_cv_prog_cc_c89=no
3274 ac_save_CC=$CC
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3277 #include <stdarg.h>
3278 #include <stdio.h>
3279 struct stat;
3280 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3281 struct buf { int x; };
3282 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3283 static char *e (p, i)
3284 char **p;
3285 int i;
3287 return p[i];
3289 static char *f (char * (*g) (char **, int), char **p, ...)
3291 char *s;
3292 va_list v;
3293 va_start (v,p);
3294 s = g (p, va_arg (v,int));
3295 va_end (v);
3296 return s;
3299 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3300 function prototypes and stuff, but not '\xHH' hex character constants.
3301 These don't provoke an error unfortunately, instead are silently treated
3302 as 'x'. The following induces an error, until -std is added to get
3303 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3304 array size at least. It's necessary to write '\x00'==0 to get something
3305 that's true only with -std. */
3306 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3308 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3309 inside strings and character constants. */
3310 #define FOO(x) 'x'
3311 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3313 int test (int i, double x);
3314 struct s1 {int (*f) (int a);};
3315 struct s2 {int (*f) (double a);};
3316 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 int argc;
3318 char **argv;
3320 main ()
3322 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3324 return 0;
3326 _ACEOF
3327 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3328 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3330 CC="$ac_save_CC $ac_arg"
3331 if ac_fn_c_try_compile "$LINENO"; then :
3332 ac_cv_prog_cc_c89=$ac_arg
3334 rm -f core conftest.err conftest.$ac_objext
3335 test "x$ac_cv_prog_cc_c89" != "xno" && break
3336 done
3337 rm -f conftest.$ac_ext
3338 CC=$ac_save_CC
3341 # AC_CACHE_VAL
3342 case "x$ac_cv_prog_cc_c89" in
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3345 $as_echo "none needed" >&6; } ;;
3346 xno)
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3348 $as_echo "unsupported" >&6; } ;;
3350 CC="$CC $ac_cv_prog_cc_c89"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3352 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3353 esac
3354 if test "x$ac_cv_prog_cc_c89" != xno; then :
3358 ac_ext=c
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3365 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3366 if ${ac_cv_path_SED+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3370 for ac_i in 1 2 3 4 5 6 7; do
3371 ac_script="$ac_script$as_nl$ac_script"
3372 done
3373 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3374 { ac_script=; unset ac_script;}
3375 if test -z "$SED"; then
3376 ac_path_SED_found=false
3377 # Loop through the user's path and test for each of PROGNAME-LIST
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_prog in sed gsed; do
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3386 as_fn_executable_p "$ac_path_SED" || continue
3387 # Check for GNU ac_path_SED and select it if it is found.
3388 # Check for GNU $ac_path_SED
3389 case `"$ac_path_SED" --version 2>&1` in
3390 *GNU*)
3391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3393 ac_count=0
3394 $as_echo_n 0123456789 >"conftest.in"
3395 while :
3397 cat "conftest.in" "conftest.in" >"conftest.tmp"
3398 mv "conftest.tmp" "conftest.in"
3399 cp "conftest.in" "conftest.nl"
3400 $as_echo '' >> "conftest.nl"
3401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3403 as_fn_arith $ac_count + 1 && ac_count=$as_val
3404 if test $ac_count -gt ${ac_path_SED_max-0}; then
3405 # Best one so far, save it but keep looking for a better one
3406 ac_cv_path_SED="$ac_path_SED"
3407 ac_path_SED_max=$ac_count
3409 # 10*(2^10) chars as input seems more than enough
3410 test $ac_count -gt 10 && break
3411 done
3412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3413 esac
3415 $ac_path_SED_found && break 3
3416 done
3417 done
3418 done
3419 IFS=$as_save_IFS
3420 if test -z "$ac_cv_path_SED"; then
3421 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3423 else
3424 ac_cv_path_SED=$SED
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3429 $as_echo "$ac_cv_path_SED" >&6; }
3430 SED="$ac_cv_path_SED"
3431 rm -f conftest.sed
3433 test -z "$SED" && SED=sed
3434 Xsed="$SED -e 1s/^X//"
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3447 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3448 if ${ac_cv_path_GREP+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -z "$GREP"; then
3452 ac_path_GREP_found=false
3453 # Loop through the user's path and test for each of PROGNAME-LIST
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3457 IFS=$as_save_IFS
3458 test -z "$as_dir" && as_dir=.
3459 for ac_prog in grep ggrep; do
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3462 as_fn_executable_p "$ac_path_GREP" || continue
3463 # Check for GNU ac_path_GREP and select it if it is found.
3464 # Check for GNU $ac_path_GREP
3465 case `"$ac_path_GREP" --version 2>&1` in
3466 *GNU*)
3467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3469 ac_count=0
3470 $as_echo_n 0123456789 >"conftest.in"
3471 while :
3473 cat "conftest.in" "conftest.in" >"conftest.tmp"
3474 mv "conftest.tmp" "conftest.in"
3475 cp "conftest.in" "conftest.nl"
3476 $as_echo 'GREP' >> "conftest.nl"
3477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3479 as_fn_arith $ac_count + 1 && ac_count=$as_val
3480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3481 # Best one so far, save it but keep looking for a better one
3482 ac_cv_path_GREP="$ac_path_GREP"
3483 ac_path_GREP_max=$ac_count
3485 # 10*(2^10) chars as input seems more than enough
3486 test $ac_count -gt 10 && break
3487 done
3488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3489 esac
3491 $ac_path_GREP_found && break 3
3492 done
3493 done
3494 done
3495 IFS=$as_save_IFS
3496 if test -z "$ac_cv_path_GREP"; then
3497 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3499 else
3500 ac_cv_path_GREP=$GREP
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3505 $as_echo "$ac_cv_path_GREP" >&6; }
3506 GREP="$ac_cv_path_GREP"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3510 $as_echo_n "checking for egrep... " >&6; }
3511 if ${ac_cv_path_EGREP+:} false; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3515 then ac_cv_path_EGREP="$GREP -E"
3516 else
3517 if test -z "$EGREP"; then
3518 ac_path_EGREP_found=false
3519 # Loop through the user's path and test for each of PROGNAME-LIST
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_prog in egrep; do
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3528 as_fn_executable_p "$ac_path_EGREP" || continue
3529 # Check for GNU ac_path_EGREP and select it if it is found.
3530 # Check for GNU $ac_path_EGREP
3531 case `"$ac_path_EGREP" --version 2>&1` in
3532 *GNU*)
3533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3535 ac_count=0
3536 $as_echo_n 0123456789 >"conftest.in"
3537 while :
3539 cat "conftest.in" "conftest.in" >"conftest.tmp"
3540 mv "conftest.tmp" "conftest.in"
3541 cp "conftest.in" "conftest.nl"
3542 $as_echo 'EGREP' >> "conftest.nl"
3543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3545 as_fn_arith $ac_count + 1 && ac_count=$as_val
3546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3547 # Best one so far, save it but keep looking for a better one
3548 ac_cv_path_EGREP="$ac_path_EGREP"
3549 ac_path_EGREP_max=$ac_count
3551 # 10*(2^10) chars as input seems more than enough
3552 test $ac_count -gt 10 && break
3553 done
3554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3555 esac
3557 $ac_path_EGREP_found && break 3
3558 done
3559 done
3560 done
3561 IFS=$as_save_IFS
3562 if test -z "$ac_cv_path_EGREP"; then
3563 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3565 else
3566 ac_cv_path_EGREP=$EGREP
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3572 $as_echo "$ac_cv_path_EGREP" >&6; }
3573 EGREP="$ac_cv_path_EGREP"
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3577 $as_echo_n "checking for fgrep... " >&6; }
3578 if ${ac_cv_path_FGREP+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3582 then ac_cv_path_FGREP="$GREP -F"
3583 else
3584 if test -z "$FGREP"; then
3585 ac_path_FGREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in fgrep; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3595 as_fn_executable_p "$ac_path_FGREP" || continue
3596 # Check for GNU ac_path_FGREP and select it if it is found.
3597 # Check for GNU $ac_path_FGREP
3598 case `"$ac_path_FGREP" --version 2>&1` in
3599 *GNU*)
3600 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3602 ac_count=0
3603 $as_echo_n 0123456789 >"conftest.in"
3604 while :
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 $as_echo 'FGREP' >> "conftest.nl"
3610 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 as_fn_arith $ac_count + 1 && ac_count=$as_val
3613 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_FGREP="$ac_path_FGREP"
3616 ac_path_FGREP_max=$ac_count
3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3620 done
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3622 esac
3624 $ac_path_FGREP_found && break 3
3625 done
3626 done
3627 done
3628 IFS=$as_save_IFS
3629 if test -z "$ac_cv_path_FGREP"; then
3630 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3632 else
3633 ac_cv_path_FGREP=$FGREP
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3639 $as_echo "$ac_cv_path_FGREP" >&6; }
3640 FGREP="$ac_cv_path_FGREP"
3643 test -z "$GREP" && GREP=grep
3663 # Check whether --with-gnu-ld was given.
3664 if test "${with_gnu_ld+set}" = set; then :
3665 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3666 else
3667 with_gnu_ld=no
3670 ac_prog=ld
3671 if test "$GCC" = yes; then
3672 # Check if gcc -print-prog-name=ld gives a path.
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3674 $as_echo_n "checking for ld used by $CC... " >&6; }
3675 case $host in
3676 *-*-mingw*)
3677 # gcc leaves a trailing carriage return which upsets mingw
3678 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3680 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3681 esac
3682 case $ac_prog in
3683 # Accept absolute paths.
3684 [\\/]* | ?:[\\/]*)
3685 re_direlt='/[^/][^/]*/\.\./'
3686 # Canonicalize the pathname of ld
3687 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3688 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3689 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3690 done
3691 test -z "$LD" && LD="$ac_prog"
3694 # If it fails, then pretend we aren't using GCC.
3695 ac_prog=ld
3698 # If it is relative, then search for the first ld in PATH.
3699 with_gnu_ld=unknown
3701 esac
3702 elif test "$with_gnu_ld" = yes; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3704 $as_echo_n "checking for GNU ld... " >&6; }
3705 else
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3707 $as_echo_n "checking for non-GNU ld... " >&6; }
3709 if ${lt_cv_path_LD+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711 else
3712 if test -z "$LD"; then
3713 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3714 for ac_dir in $PATH; do
3715 IFS="$lt_save_ifs"
3716 test -z "$ac_dir" && ac_dir=.
3717 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3718 lt_cv_path_LD="$ac_dir/$ac_prog"
3719 # Check to see if the program is GNU ld. I'd rather use --version,
3720 # but apparently some variants of GNU ld only accept -v.
3721 # Break only if it was the GNU/non-GNU ld that we prefer.
3722 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3723 *GNU* | *'with BFD'*)
3724 test "$with_gnu_ld" != no && break
3727 test "$with_gnu_ld" != yes && break
3729 esac
3731 done
3732 IFS="$lt_save_ifs"
3733 else
3734 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3738 LD="$lt_cv_path_LD"
3739 if test -n "$LD"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3741 $as_echo "$LD" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3746 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3748 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3749 if ${lt_cv_prog_gnu_ld+:} false; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3753 case `$LD -v 2>&1 </dev/null` in
3754 *GNU* | *'with BFD'*)
3755 lt_cv_prog_gnu_ld=yes
3758 lt_cv_prog_gnu_ld=no
3760 esac
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3763 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3764 with_gnu_ld=$lt_cv_prog_gnu_ld
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3775 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3776 if ${lt_cv_path_NM+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 if test -n "$NM"; then
3780 # Let the user override the test.
3781 lt_cv_path_NM="$NM"
3782 else
3783 lt_nm_to_check="${ac_tool_prefix}nm"
3784 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3785 lt_nm_to_check="$lt_nm_to_check nm"
3787 for lt_tmp_nm in $lt_nm_to_check; do
3788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3789 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3790 IFS="$lt_save_ifs"
3791 test -z "$ac_dir" && ac_dir=.
3792 tmp_nm="$ac_dir/$lt_tmp_nm"
3793 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3794 # Check to see if the nm accepts a BSD-compat flag.
3795 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3796 # nm: unknown option "B" ignored
3797 # Tru64's nm complains that /dev/null is an invalid object file
3798 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3799 */dev/null* | *'Invalid file or object type'*)
3800 lt_cv_path_NM="$tmp_nm -B"
3801 break
3804 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3805 */dev/null*)
3806 lt_cv_path_NM="$tmp_nm -p"
3807 break
3810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3811 continue # so that we can try to find one that supports BSD flags
3813 esac
3815 esac
3817 done
3818 IFS="$lt_save_ifs"
3819 done
3820 : ${lt_cv_path_NM=no}
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3824 $as_echo "$lt_cv_path_NM" >&6; }
3825 if test "$lt_cv_path_NM" != "no"; then
3826 NM="$lt_cv_path_NM"
3827 else
3828 # Didn't find any BSD compatible name lister, look for dumpbin.
3829 if test -n "$ac_tool_prefix"; then
3830 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_DUMPBIN+:} false; then :
3837 $as_echo_n "(cached) " >&6
3838 else
3839 if test -n "$DUMPBIN"; then
3840 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3841 else
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3853 done
3854 done
3855 IFS=$as_save_IFS
3859 DUMPBIN=$ac_cv_prog_DUMPBIN
3860 if test -n "$DUMPBIN"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3862 $as_echo "$DUMPBIN" >&6; }
3863 else
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3869 test -n "$DUMPBIN" && break
3870 done
3872 if test -z "$DUMPBIN"; then
3873 ac_ct_DUMPBIN=$DUMPBIN
3874 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3876 # Extract the first word of "$ac_prog", so it can be a program name with args.
3877 set dummy $ac_prog; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 if test -n "$ac_ct_DUMPBIN"; then
3884 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3897 done
3898 done
3899 IFS=$as_save_IFS
3903 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3904 if test -n "$ac_ct_DUMPBIN"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3906 $as_echo "$ac_ct_DUMPBIN" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 test -n "$ac_ct_DUMPBIN" && break
3914 done
3916 if test "x$ac_ct_DUMPBIN" = x; then
3917 DUMPBIN=":"
3918 else
3919 case $cross_compiling:$ac_tool_warned in
3920 yes:)
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3923 ac_tool_warned=yes ;;
3924 esac
3925 DUMPBIN=$ac_ct_DUMPBIN
3930 if test "$DUMPBIN" != ":"; then
3931 NM="$DUMPBIN"
3934 test -z "$NM" && NM=nm
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3942 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3943 if ${lt_cv_nm_interface+:} false; then :
3944 $as_echo_n "(cached) " >&6
3945 else
3946 lt_cv_nm_interface="BSD nm"
3947 echo "int some_variable = 0;" > conftest.$ac_ext
3948 (eval echo "\"\$as_me:3948: $ac_compile\"" >&5)
3949 (eval "$ac_compile" 2>conftest.err)
3950 cat conftest.err >&5
3951 (eval echo "\"\$as_me:3951: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3952 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3953 cat conftest.err >&5
3954 (eval echo "\"\$as_me:3954: output\"" >&5)
3955 cat conftest.out >&5
3956 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3957 lt_cv_nm_interface="MS dumpbin"
3959 rm -f conftest*
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3962 $as_echo "$lt_cv_nm_interface" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3965 $as_echo_n "checking whether ln -s works... " >&6; }
3966 LN_S=$as_ln_s
3967 if test "$LN_S" = "ln -s"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3972 $as_echo "no, using $LN_S" >&6; }
3975 # find the maximum length of command line arguments
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3977 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3978 if ${lt_cv_sys_max_cmd_len+:} false; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3982 teststring="ABCD"
3984 case $build_os in
3985 msdosdjgpp*)
3986 # On DJGPP, this test can blow up pretty badly due to problems in libc
3987 # (any single argument exceeding 2000 bytes causes a buffer overrun
3988 # during glob expansion). Even if it were fixed, the result of this
3989 # check would be larger than it should be.
3990 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3993 gnu*)
3994 # Under GNU Hurd, this test is not required because there is
3995 # no limit to the length of command line arguments.
3996 # Libtool will interpret -1 as no limit whatsoever
3997 lt_cv_sys_max_cmd_len=-1;
4000 cygwin* | mingw* | cegcc*)
4001 # On Win9x/ME, this test blows up -- it succeeds, but takes
4002 # about 5 minutes as the teststring grows exponentially.
4003 # Worse, since 9x/ME are not pre-emptively multitasking,
4004 # you end up with a "frozen" computer, even though with patience
4005 # the test eventually succeeds (with a max line length of 256k).
4006 # Instead, let's just punt: use the minimum linelength reported by
4007 # all of the supported platforms: 8192 (on NT/2K/XP).
4008 lt_cv_sys_max_cmd_len=8192;
4011 amigaos*)
4012 # On AmigaOS with pdksh, this test takes hours, literally.
4013 # So we just punt and use a minimum line length of 8192.
4014 lt_cv_sys_max_cmd_len=8192;
4017 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4018 # This has been around since 386BSD, at least. Likely further.
4019 if test -x /sbin/sysctl; then
4020 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4021 elif test -x /usr/sbin/sysctl; then
4022 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4023 else
4024 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4026 # And add a safety zone
4027 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4028 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4031 interix*)
4032 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4033 lt_cv_sys_max_cmd_len=196608
4036 osf*)
4037 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4038 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4039 # nice to cause kernel panics so lets avoid the loop below.
4040 # First set a reasonable default.
4041 lt_cv_sys_max_cmd_len=16384
4043 if test -x /sbin/sysconfig; then
4044 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4045 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4046 esac
4049 sco3.2v5*)
4050 lt_cv_sys_max_cmd_len=102400
4052 sysv5* | sco5v6* | sysv4.2uw2*)
4053 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4054 if test -n "$kargmax"; then
4055 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4056 else
4057 lt_cv_sys_max_cmd_len=32768
4061 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4062 if test -n "$lt_cv_sys_max_cmd_len"; then
4063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4064 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4065 else
4066 # Make teststring a little bigger before we do anything with it.
4067 # a 1K string should be a reasonable start.
4068 for i in 1 2 3 4 5 6 7 8 ; do
4069 teststring=$teststring$teststring
4070 done
4071 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4072 # If test is not a shell built-in, we'll probably end up computing a
4073 # maximum length that is only half of the actual maximum length, but
4074 # we can't tell.
4075 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4076 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4077 test $i != 17 # 1/2 MB should be enough
4079 i=`expr $i + 1`
4080 teststring=$teststring$teststring
4081 done
4082 # Only check the string length outside the loop.
4083 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4084 teststring=
4085 # Add a significant safety factor because C++ compilers can tack on
4086 # massive amounts of additional arguments before passing them to the
4087 # linker. It appears as though 1/2 is a usable value.
4088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4091 esac
4095 if test -n $lt_cv_sys_max_cmd_len ; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4097 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4098 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4100 $as_echo "none" >&6; }
4102 max_cmd_len=$lt_cv_sys_max_cmd_len
4109 : ${CP="cp -f"}
4110 : ${MV="mv -f"}
4111 : ${RM="rm -f"}
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4114 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4115 # Try some XSI features
4116 xsi_shell=no
4117 ( _lt_dummy="a/b/c"
4118 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4119 = c,a/b,, \
4120 && eval 'test $(( 1 + 1 )) -eq 2 \
4121 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4122 && xsi_shell=yes
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4124 $as_echo "$xsi_shell" >&6; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4128 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4129 lt_shell_append=no
4130 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4131 >/dev/null 2>&1 \
4132 && lt_shell_append=yes
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4134 $as_echo "$lt_shell_append" >&6; }
4137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4138 lt_unset=unset
4139 else
4140 lt_unset=false
4147 # test EBCDIC or ASCII
4148 case `echo X|tr X '\101'` in
4149 A) # ASCII based system
4150 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4151 lt_SP2NL='tr \040 \012'
4152 lt_NL2SP='tr \015\012 \040\040'
4154 *) # EBCDIC based system
4155 lt_SP2NL='tr \100 \n'
4156 lt_NL2SP='tr \r\n \100\100'
4158 esac
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4169 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4170 if ${lt_cv_ld_reload_flag+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4173 lt_cv_ld_reload_flag='-r'
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4176 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4177 reload_flag=$lt_cv_ld_reload_flag
4178 case $reload_flag in
4179 "" | " "*) ;;
4180 *) reload_flag=" $reload_flag" ;;
4181 esac
4182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4183 case $host_os in
4184 darwin*)
4185 if test "$GCC" = yes; then
4186 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4187 else
4188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4191 esac
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_OBJDUMP+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$OBJDUMP"; then
4210 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 OBJDUMP=$ac_cv_prog_OBJDUMP
4230 if test -n "$OBJDUMP"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4232 $as_echo "$OBJDUMP" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4240 if test -z "$ac_cv_prog_OBJDUMP"; then
4241 ac_ct_OBJDUMP=$OBJDUMP
4242 # Extract the first word of "objdump", so it can be a program name with args.
4243 set dummy objdump; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$ac_ct_OBJDUMP"; then
4250 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4270 if test -n "$ac_ct_OBJDUMP"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4272 $as_echo "$ac_ct_OBJDUMP" >&6; }
4273 else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4278 if test "x$ac_ct_OBJDUMP" = x; then
4279 OBJDUMP="false"
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 OBJDUMP=$ac_ct_OBJDUMP
4289 else
4290 OBJDUMP="$ac_cv_prog_OBJDUMP"
4293 test -z "$OBJDUMP" && OBJDUMP=objdump
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4304 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4305 if ${lt_cv_deplibs_check_method+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 lt_cv_file_magic_cmd='$MAGIC_CMD'
4309 lt_cv_file_magic_test_file=
4310 lt_cv_deplibs_check_method='unknown'
4311 # Need to set the preceding variable on all platforms that support
4312 # interlibrary dependencies.
4313 # 'none' -- dependencies not supported.
4314 # `unknown' -- same as none, but documents that we really don't know.
4315 # 'pass_all' -- all dependencies passed with no checks.
4316 # 'test_compile' -- check by making test program.
4317 # 'file_magic [[regex]]' -- check by looking for files in library path
4318 # which responds to the $file_magic_cmd with a given extended regex.
4319 # If you have `file' or equivalent on your system and you're not sure
4320 # whether `pass_all' will *always* work, you probably want this one.
4322 case $host_os in
4323 aix[4-9]*)
4324 lt_cv_deplibs_check_method=pass_all
4327 beos*)
4328 lt_cv_deplibs_check_method=pass_all
4331 bsdi[45]*)
4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4333 lt_cv_file_magic_cmd='/usr/bin/file -L'
4334 lt_cv_file_magic_test_file=/shlib/libc.so
4337 cygwin*)
4338 # func_win32_libid is a shell function defined in ltmain.sh
4339 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4340 lt_cv_file_magic_cmd='func_win32_libid'
4343 mingw* | pw32*)
4344 # Base MSYS/MinGW do not provide the 'file' command needed by
4345 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4346 # unless we find 'file', for example because we are cross-compiling.
4347 if ( file / ) >/dev/null 2>&1; then
4348 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4349 lt_cv_file_magic_cmd='func_win32_libid'
4350 else
4351 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4352 lt_cv_file_magic_cmd='$OBJDUMP -f'
4356 cegcc)
4357 # use the weaker test based on 'objdump'. See mingw*.
4358 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4359 lt_cv_file_magic_cmd='$OBJDUMP -f'
4362 darwin* | rhapsody*)
4363 lt_cv_deplibs_check_method=pass_all
4366 freebsd* | dragonfly*)
4367 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4368 case $host_cpu in
4369 i*86 )
4370 # Not sure whether the presence of OpenBSD here was a mistake.
4371 # Let's accept both of them until this is cleared up.
4372 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4373 lt_cv_file_magic_cmd=/usr/bin/file
4374 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4376 esac
4377 else
4378 lt_cv_deplibs_check_method=pass_all
4382 gnu*)
4383 lt_cv_deplibs_check_method=pass_all
4386 hpux10.20* | hpux11*)
4387 lt_cv_file_magic_cmd=/usr/bin/file
4388 case $host_cpu in
4389 ia64*)
4390 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4391 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4393 hppa*64*)
4394 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]'
4395 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4399 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4401 esac
4404 interix[3-9]*)
4405 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4409 irix5* | irix6* | nonstopux*)
4410 case $LD in
4411 *-32|*"-32 ") libmagic=32-bit;;
4412 *-n32|*"-n32 ") libmagic=N32;;
4413 *-64|*"-64 ") libmagic=64-bit;;
4414 *) libmagic=never-match;;
4415 esac
4416 lt_cv_deplibs_check_method=pass_all
4419 # This must be Linux ELF.
4420 linux* | k*bsd*-gnu)
4421 lt_cv_deplibs_check_method=pass_all
4424 netbsd*)
4425 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4427 else
4428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4432 newos6*)
4433 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4434 lt_cv_file_magic_cmd=/usr/bin/file
4435 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4438 *nto* | *qnx*)
4439 lt_cv_deplibs_check_method=pass_all
4442 openbsd*)
4443 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4444 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4445 else
4446 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4450 osf3* | osf4* | osf5*)
4451 lt_cv_deplibs_check_method=pass_all
4454 rdos*)
4455 lt_cv_deplibs_check_method=pass_all
4458 solaris*)
4459 lt_cv_deplibs_check_method=pass_all
4462 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4463 lt_cv_deplibs_check_method=pass_all
4466 sysv4 | sysv4.3*)
4467 case $host_vendor in
4468 motorola)
4469 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]'
4470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4472 ncr)
4473 lt_cv_deplibs_check_method=pass_all
4475 sequent)
4476 lt_cv_file_magic_cmd='/bin/file'
4477 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4479 sni)
4480 lt_cv_file_magic_cmd='/bin/file'
4481 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4482 lt_cv_file_magic_test_file=/lib/libc.so
4484 siemens)
4485 lt_cv_deplibs_check_method=pass_all
4488 lt_cv_deplibs_check_method=pass_all
4490 esac
4493 tpf*)
4494 lt_cv_deplibs_check_method=pass_all
4496 esac
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4500 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4501 file_magic_cmd=$lt_cv_file_magic_cmd
4502 deplibs_check_method=$lt_cv_deplibs_check_method
4503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4516 if test -n "$ac_tool_prefix"; then
4517 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4518 set dummy ${ac_tool_prefix}ar; ac_word=$2
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4520 $as_echo_n "checking for $ac_word... " >&6; }
4521 if ${ac_cv_prog_AR+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$AR"; then
4525 ac_cv_prog_AR="$AR" # Let the user override the test.
4526 else
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH
4530 IFS=$as_save_IFS
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4534 ac_cv_prog_AR="${ac_tool_prefix}ar"
4535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4536 break 2
4538 done
4539 done
4540 IFS=$as_save_IFS
4544 AR=$ac_cv_prog_AR
4545 if test -n "$AR"; then
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4547 $as_echo "$AR" >&6; }
4548 else
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4550 $as_echo "no" >&6; }
4555 if test -z "$ac_cv_prog_AR"; then
4556 ac_ct_AR=$AR
4557 # Extract the first word of "ar", so it can be a program name with args.
4558 set dummy ar; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 if test -n "$ac_ct_AR"; then
4565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4566 else
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_AR="ar"
4575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4578 done
4579 done
4580 IFS=$as_save_IFS
4584 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4585 if test -n "$ac_ct_AR"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4587 $as_echo "$ac_ct_AR" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4593 if test "x$ac_ct_AR" = x; then
4594 AR="false"
4595 else
4596 case $cross_compiling:$ac_tool_warned in
4597 yes:)
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4600 ac_tool_warned=yes ;;
4601 esac
4602 AR=$ac_ct_AR
4604 else
4605 AR="$ac_cv_prog_AR"
4608 test -z "$AR" && AR=ar
4609 test -z "$AR_FLAGS" && AR_FLAGS=cru
4621 if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4623 set dummy ${ac_tool_prefix}strip; ac_word=$2
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4625 $as_echo_n "checking for $ac_word... " >&6; }
4626 if ${ac_cv_prog_STRIP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if test -n "$STRIP"; then
4630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4631 else
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4643 done
4644 done
4645 IFS=$as_save_IFS
4649 STRIP=$ac_cv_prog_STRIP
4650 if test -n "$STRIP"; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4652 $as_echo "$STRIP" >&6; }
4653 else
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4655 $as_echo "no" >&6; }
4660 if test -z "$ac_cv_prog_STRIP"; then
4661 ac_ct_STRIP=$STRIP
4662 # Extract the first word of "strip", so it can be a program name with args.
4663 set dummy strip; ac_word=$2
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$ac_ct_STRIP"; then
4670 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_ac_ct_STRIP="strip"
4680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4683 done
4684 done
4685 IFS=$as_save_IFS
4689 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4690 if test -n "$ac_ct_STRIP"; then
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4692 $as_echo "$ac_ct_STRIP" >&6; }
4693 else
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695 $as_echo "no" >&6; }
4698 if test "x$ac_ct_STRIP" = x; then
4699 STRIP=":"
4700 else
4701 case $cross_compiling:$ac_tool_warned in
4702 yes:)
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4705 ac_tool_warned=yes ;;
4706 esac
4707 STRIP=$ac_ct_STRIP
4709 else
4710 STRIP="$ac_cv_prog_STRIP"
4713 test -z "$STRIP" && STRIP=:
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_RANLIB+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$RANLIB"; then
4729 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 RANLIB=$ac_cv_prog_RANLIB
4749 if test -n "$RANLIB"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4751 $as_echo "$RANLIB" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4759 if test -z "$ac_cv_prog_RANLIB"; then
4760 ac_ct_RANLIB=$RANLIB
4761 # Extract the first word of "ranlib", so it can be a program name with args.
4762 set dummy ranlib; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$ac_ct_RANLIB"; then
4769 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4778 ac_cv_prog_ac_ct_RANLIB="ranlib"
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4789 if test -n "$ac_ct_RANLIB"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4791 $as_echo "$ac_ct_RANLIB" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4797 if test "x$ac_ct_RANLIB" = x; then
4798 RANLIB=":"
4799 else
4800 case $cross_compiling:$ac_tool_warned in
4801 yes:)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4804 ac_tool_warned=yes ;;
4805 esac
4806 RANLIB=$ac_ct_RANLIB
4808 else
4809 RANLIB="$ac_cv_prog_RANLIB"
4812 test -z "$RANLIB" && RANLIB=:
4819 # Determine commands to create old-style static archives.
4820 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4821 old_postinstall_cmds='chmod 644 $oldlib'
4822 old_postuninstall_cmds=
4824 if test -n "$RANLIB"; then
4825 case $host_os in
4826 openbsd*)
4827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4832 esac
4833 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4869 # If no C compiler was specified, use CC.
4870 LTCC=${LTCC-"$CC"}
4872 # If no C compiler flags were specified, use CFLAGS.
4873 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4875 # Allow CC to be a program name with arguments.
4876 compiler=$CC
4879 # Check for command to grab the raw symbol name followed by C symbol from nm.
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4881 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4882 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4886 # These are sane defaults that work on at least a few old systems.
4887 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4889 # Character class describing NM global symbol codes.
4890 symcode='[BCDEGRST]'
4892 # Regexp to match symbols that can be accessed directly from C.
4893 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4895 # Define system-specific variables.
4896 case $host_os in
4897 aix*)
4898 symcode='[BCDT]'
4900 cygwin* | mingw* | pw32* | cegcc*)
4901 symcode='[ABCDGISTW]'
4903 hpux*)
4904 if test "$host_cpu" = ia64; then
4905 symcode='[ABCDEGRST]'
4908 irix* | nonstopux*)
4909 symcode='[BCDEGRST]'
4911 osf*)
4912 symcode='[BCDEGQRST]'
4914 solaris*)
4915 symcode='[BDRT]'
4917 sco3.2v5*)
4918 symcode='[DT]'
4920 sysv4.2uw2*)
4921 symcode='[DT]'
4923 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4924 symcode='[ABDT]'
4926 sysv4)
4927 symcode='[DFNSTU]'
4929 esac
4931 # If we're using GNU nm, then use its standard symbol codes.
4932 case `$NM -V 2>&1` in
4933 *GNU* | *'with BFD'*)
4934 symcode='[ABCDGIRSTW]' ;;
4935 esac
4937 # Transform an extracted symbol line into a proper C declaration.
4938 # Some systems (esp. on ia64) link data and code symbols differently,
4939 # so use this general approach.
4940 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4942 # Transform an extracted symbol line into symbol name and symbol address
4943 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4944 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'"
4946 # Handle CRLF in mingw tool chain
4947 opt_cr=
4948 case $build_os in
4949 mingw*)
4950 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4952 esac
4954 # Try without a prefix underscore, then with it.
4955 for ac_symprfx in "" "_"; do
4957 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4958 symxfrm="\\1 $ac_symprfx\\2 \\2"
4960 # Write the raw and C identifiers.
4961 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4962 # Fake it for dumpbin and say T for any non-static function
4963 # and D for any global variable.
4964 # Also find C++ and __fastcall symbols from MSVC++,
4965 # which start with @ or ?.
4966 lt_cv_sys_global_symbol_pipe="$AWK '"\
4967 " {last_section=section; section=\$ 3};"\
4968 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4969 " \$ 0!~/External *\|/{next};"\
4970 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4971 " {if(hide[section]) next};"\
4972 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4973 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4974 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4975 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4976 " ' prfx=^$ac_symprfx"
4977 else
4978 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4981 # Check to see that the pipe works correctly.
4982 pipe_works=no
4984 rm -f conftest*
4985 cat > conftest.$ac_ext <<_LT_EOF
4986 #ifdef __cplusplus
4987 extern "C" {
4988 #endif
4989 char nm_test_var;
4990 void nm_test_func(void);
4991 void nm_test_func(void){}
4992 #ifdef __cplusplus
4994 #endif
4995 int main(){nm_test_var='a';nm_test_func();return(0);}
4996 _LT_EOF
4998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4999 (eval $ac_compile) 2>&5
5000 ac_status=$?
5001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5002 test $ac_status = 0; }; then
5003 # Now try to grab the symbols.
5004 nlist=conftest.nm
5005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5006 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5007 ac_status=$?
5008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; } && test -s "$nlist"; then
5010 # Try sorting and uniquifying the output.
5011 if sort "$nlist" | uniq > "$nlist"T; then
5012 mv -f "$nlist"T "$nlist"
5013 else
5014 rm -f "$nlist"T
5017 # Make sure that we snagged all the symbols we need.
5018 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5019 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5020 cat <<_LT_EOF > conftest.$ac_ext
5021 #ifdef __cplusplus
5022 extern "C" {
5023 #endif
5025 _LT_EOF
5026 # Now generate the symbol file.
5027 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5029 cat <<_LT_EOF >> conftest.$ac_ext
5031 /* The mapping between symbol names and symbols. */
5032 const struct {
5033 const char *name;
5034 void *address;
5036 lt__PROGRAM__LTX_preloaded_symbols[] =
5038 { "@PROGRAM@", (void *) 0 },
5039 _LT_EOF
5040 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5041 cat <<\_LT_EOF >> conftest.$ac_ext
5042 {0, (void *) 0}
5045 /* This works around a problem in FreeBSD linker */
5046 #ifdef FREEBSD_WORKAROUND
5047 static const void *lt_preloaded_setup() {
5048 return lt__PROGRAM__LTX_preloaded_symbols;
5050 #endif
5052 #ifdef __cplusplus
5054 #endif
5055 _LT_EOF
5056 # Now try linking the two files.
5057 mv conftest.$ac_objext conftstm.$ac_objext
5058 lt_save_LIBS="$LIBS"
5059 lt_save_CFLAGS="$CFLAGS"
5060 LIBS="conftstm.$ac_objext"
5061 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5063 (eval $ac_link) 2>&5
5064 ac_status=$?
5065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5066 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5067 pipe_works=yes
5069 LIBS="$lt_save_LIBS"
5070 CFLAGS="$lt_save_CFLAGS"
5071 else
5072 echo "cannot find nm_test_func in $nlist" >&5
5074 else
5075 echo "cannot find nm_test_var in $nlist" >&5
5077 else
5078 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5080 else
5081 echo "$progname: failed program was:" >&5
5082 cat conftest.$ac_ext >&5
5084 rm -rf conftest* conftst*
5086 # Do not use the global_symbol_pipe unless it works.
5087 if test "$pipe_works" = yes; then
5088 break
5089 else
5090 lt_cv_sys_global_symbol_pipe=
5092 done
5096 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5097 lt_cv_sys_global_symbol_to_cdecl=
5099 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5101 $as_echo "failed" >&6; }
5102 else
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5104 $as_echo "ok" >&6; }
5129 # Check whether --enable-libtool-lock was given.
5130 if test "${enable_libtool_lock+set}" = set; then :
5131 enableval=$enable_libtool_lock;
5134 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5136 # Some flags need to be propagated to the compiler or linker for good
5137 # libtool support.
5138 case $host in
5139 ia64-*-hpux*)
5140 # Find out which ABI we are using.
5141 echo 'int i;' > conftest.$ac_ext
5142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5143 (eval $ac_compile) 2>&5
5144 ac_status=$?
5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; }; then
5147 case `/usr/bin/file conftest.$ac_objext` in
5148 *ELF-32*)
5149 HPUX_IA64_MODE="32"
5151 *ELF-64*)
5152 HPUX_IA64_MODE="64"
5154 esac
5156 rm -rf conftest*
5158 *-*-irix6*)
5159 # Find out which ABI we are using.
5160 echo '#line 5160 "configure"' > conftest.$ac_ext
5161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5162 (eval $ac_compile) 2>&5
5163 ac_status=$?
5164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5165 test $ac_status = 0; }; then
5166 if test "$lt_cv_prog_gnu_ld" = yes; then
5167 case `/usr/bin/file conftest.$ac_objext` in
5168 *32-bit*)
5169 LD="${LD-ld} -melf32bsmip"
5171 *N32*)
5172 LD="${LD-ld} -melf32bmipn32"
5174 *64-bit*)
5175 LD="${LD-ld} -melf64bmip"
5177 esac
5178 else
5179 case `/usr/bin/file conftest.$ac_objext` in
5180 *32-bit*)
5181 LD="${LD-ld} -32"
5183 *N32*)
5184 LD="${LD-ld} -n32"
5186 *64-bit*)
5187 LD="${LD-ld} -64"
5189 esac
5192 rm -rf conftest*
5195 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5196 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5197 # Find out which ABI we are using.
5198 echo 'int i;' > conftest.$ac_ext
5199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5200 (eval $ac_compile) 2>&5
5201 ac_status=$?
5202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5203 test $ac_status = 0; }; then
5204 case `/usr/bin/file conftest.o` in
5205 *32-bit*)
5206 case $host in
5207 x86_64-*kfreebsd*-gnu)
5208 LD="${LD-ld} -m elf_i386_fbsd"
5210 x86_64-*linux*)
5211 LD="${LD-ld} -m elf_i386"
5213 ppc64-*linux*|powerpc64-*linux*)
5214 LD="${LD-ld} -m elf32ppclinux"
5216 s390x-*linux*)
5217 LD="${LD-ld} -m elf_s390"
5219 sparc64-*linux*)
5220 LD="${LD-ld} -m elf32_sparc"
5222 esac
5224 *64-bit*)
5225 case $host in
5226 x86_64-*kfreebsd*-gnu)
5227 LD="${LD-ld} -m elf_x86_64_fbsd"
5229 x86_64-*linux*)
5230 LD="${LD-ld} -m elf_x86_64"
5232 ppc*-*linux*|powerpc*-*linux*)
5233 LD="${LD-ld} -m elf64ppc"
5235 s390*-*linux*|s390*-*tpf*)
5236 LD="${LD-ld} -m elf64_s390"
5238 sparc*-*linux*)
5239 LD="${LD-ld} -m elf64_sparc"
5241 esac
5243 esac
5245 rm -rf conftest*
5248 *-*-sco3.2v5*)
5249 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5250 SAVE_CFLAGS="$CFLAGS"
5251 CFLAGS="$CFLAGS -belf"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5253 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5254 if ${lt_cv_cc_needs_belf+:} false; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 ac_ext=c
5258 ac_cpp='$CPP $CPPFLAGS'
5259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264 /* end confdefs.h. */
5267 main ()
5271 return 0;
5273 _ACEOF
5274 if ac_fn_c_try_link "$LINENO"; then :
5275 lt_cv_cc_needs_belf=yes
5276 else
5277 lt_cv_cc_needs_belf=no
5279 rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
5281 ac_ext=c
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5289 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5290 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5291 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5292 CFLAGS="$SAVE_CFLAGS"
5295 sparc*-*solaris*)
5296 # Find out which ABI we are using.
5297 echo 'int i;' > conftest.$ac_ext
5298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5299 (eval $ac_compile) 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5302 test $ac_status = 0; }; then
5303 case `/usr/bin/file conftest.o` in
5304 *64-bit*)
5305 case $lt_cv_prog_gnu_ld in
5306 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5308 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5309 LD="${LD-ld} -64"
5312 esac
5314 esac
5316 rm -rf conftest*
5318 esac
5320 need_locks="$enable_libtool_lock"
5323 case $host_os in
5324 rhapsody* | darwin*)
5325 if test -n "$ac_tool_prefix"; then
5326 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5327 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 if test -n "$DSYMUTIL"; then
5334 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5349 IFS=$as_save_IFS
5353 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5354 if test -n "$DSYMUTIL"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5356 $as_echo "$DSYMUTIL" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5364 if test -z "$ac_cv_prog_DSYMUTIL"; then
5365 ac_ct_DSYMUTIL=$DSYMUTIL
5366 # Extract the first word of "dsymutil", so it can be a program name with args.
5367 set dummy dsymutil; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$ac_ct_DSYMUTIL"; then
5374 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5394 if test -n "$ac_ct_DSYMUTIL"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5396 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5402 if test "x$ac_ct_DSYMUTIL" = x; then
5403 DSYMUTIL=":"
5404 else
5405 case $cross_compiling:$ac_tool_warned in
5406 yes:)
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409 ac_tool_warned=yes ;;
5410 esac
5411 DSYMUTIL=$ac_ct_DSYMUTIL
5413 else
5414 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5417 if test -n "$ac_tool_prefix"; then
5418 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5419 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_NMEDIT+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$NMEDIT"; then
5426 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5435 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 NMEDIT=$ac_cv_prog_NMEDIT
5446 if test -n "$NMEDIT"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5448 $as_echo "$NMEDIT" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5456 if test -z "$ac_cv_prog_NMEDIT"; then
5457 ac_ct_NMEDIT=$NMEDIT
5458 # Extract the first word of "nmedit", so it can be a program name with args.
5459 set dummy nmedit; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5463 $as_echo_n "(cached) " >&6
5464 else
5465 if test -n "$ac_ct_NMEDIT"; then
5466 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5467 else
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 for as_dir in $PATH
5471 IFS=$as_save_IFS
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 break 2
5479 done
5480 done
5481 IFS=$as_save_IFS
5485 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5486 if test -n "$ac_ct_NMEDIT"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5488 $as_echo "$ac_ct_NMEDIT" >&6; }
5489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5494 if test "x$ac_ct_NMEDIT" = x; then
5495 NMEDIT=":"
5496 else
5497 case $cross_compiling:$ac_tool_warned in
5498 yes:)
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5501 ac_tool_warned=yes ;;
5502 esac
5503 NMEDIT=$ac_ct_NMEDIT
5505 else
5506 NMEDIT="$ac_cv_prog_NMEDIT"
5509 if test -n "$ac_tool_prefix"; then
5510 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5511 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_LIPO+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -n "$LIPO"; then
5518 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5519 else
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5531 done
5532 done
5533 IFS=$as_save_IFS
5537 LIPO=$ac_cv_prog_LIPO
5538 if test -n "$LIPO"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5540 $as_echo "$LIPO" >&6; }
5541 else
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5548 if test -z "$ac_cv_prog_LIPO"; then
5549 ac_ct_LIPO=$LIPO
5550 # Extract the first word of "lipo", so it can be a program name with args.
5551 set dummy lipo; ac_word=$2
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5553 $as_echo_n "checking for $ac_word... " >&6; }
5554 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 if test -n "$ac_ct_LIPO"; then
5558 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5559 else
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 for as_dir in $PATH
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_prog_ac_ct_LIPO="lipo"
5568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5571 done
5572 done
5573 IFS=$as_save_IFS
5577 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5578 if test -n "$ac_ct_LIPO"; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5580 $as_echo "$ac_ct_LIPO" >&6; }
5581 else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5586 if test "x$ac_ct_LIPO" = x; then
5587 LIPO=":"
5588 else
5589 case $cross_compiling:$ac_tool_warned in
5590 yes:)
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5593 ac_tool_warned=yes ;;
5594 esac
5595 LIPO=$ac_ct_LIPO
5597 else
5598 LIPO="$ac_cv_prog_LIPO"
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5603 set dummy ${ac_tool_prefix}otool; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_OTOOL+:} false; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if test -n "$OTOOL"; then
5610 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5611 else
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 for as_dir in $PATH
5615 IFS=$as_save_IFS
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5621 break 2
5623 done
5624 done
5625 IFS=$as_save_IFS
5629 OTOOL=$ac_cv_prog_OTOOL
5630 if test -n "$OTOOL"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5632 $as_echo "$OTOOL" >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5640 if test -z "$ac_cv_prog_OTOOL"; then
5641 ac_ct_OTOOL=$OTOOL
5642 # Extract the first word of "otool", so it can be a program name with args.
5643 set dummy otool; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$ac_ct_OTOOL"; then
5650 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_OTOOL="otool"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5663 done
5664 done
5665 IFS=$as_save_IFS
5669 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5670 if test -n "$ac_ct_OTOOL"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5672 $as_echo "$ac_ct_OTOOL" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5678 if test "x$ac_ct_OTOOL" = x; then
5679 OTOOL=":"
5680 else
5681 case $cross_compiling:$ac_tool_warned in
5682 yes:)
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned=yes ;;
5686 esac
5687 OTOOL=$ac_ct_OTOOL
5689 else
5690 OTOOL="$ac_cv_prog_OTOOL"
5693 if test -n "$ac_tool_prefix"; then
5694 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5695 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if ${ac_cv_prog_OTOOL64+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -n "$OTOOL64"; then
5702 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5703 else
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 for as_dir in $PATH
5707 IFS=$as_save_IFS
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 break 2
5715 done
5716 done
5717 IFS=$as_save_IFS
5721 OTOOL64=$ac_cv_prog_OTOOL64
5722 if test -n "$OTOOL64"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5724 $as_echo "$OTOOL64" >&6; }
5725 else
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5727 $as_echo "no" >&6; }
5732 if test -z "$ac_cv_prog_OTOOL64"; then
5733 ac_ct_OTOOL64=$OTOOL64
5734 # Extract the first word of "otool64", so it can be a program name with args.
5735 set dummy otool64; ac_word=$2
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5737 $as_echo_n "checking for $ac_word... " >&6; }
5738 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 if test -n "$ac_ct_OTOOL64"; then
5742 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5743 else
5744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 for as_dir in $PATH
5747 IFS=$as_save_IFS
5748 test -z "$as_dir" && as_dir=.
5749 for ac_exec_ext in '' $ac_executable_extensions; do
5750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5751 ac_cv_prog_ac_ct_OTOOL64="otool64"
5752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 break 2
5755 done
5756 done
5757 IFS=$as_save_IFS
5761 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5762 if test -n "$ac_ct_OTOOL64"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5764 $as_echo "$ac_ct_OTOOL64" >&6; }
5765 else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5770 if test "x$ac_ct_OTOOL64" = x; then
5771 OTOOL64=":"
5772 else
5773 case $cross_compiling:$ac_tool_warned in
5774 yes:)
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5777 ac_tool_warned=yes ;;
5778 esac
5779 OTOOL64=$ac_ct_OTOOL64
5781 else
5782 OTOOL64="$ac_cv_prog_OTOOL64"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5812 $as_echo_n "checking for -single_module linker flag... " >&6; }
5813 if ${lt_cv_apple_cc_single_mod+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 lt_cv_apple_cc_single_mod=no
5817 if test -z "${LT_MULTI_MODULE}"; then
5818 # By default we will add the -single_module flag. You can override
5819 # by either setting the environment variable LT_MULTI_MODULE
5820 # non-empty at configure time, or by adding -multi_module to the
5821 # link flags.
5822 rm -rf libconftest.dylib*
5823 echo "int foo(void){return 1;}" > conftest.c
5824 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5825 -dynamiclib -Wl,-single_module conftest.c" >&5
5826 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5827 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5828 _lt_result=$?
5829 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5830 lt_cv_apple_cc_single_mod=yes
5831 else
5832 cat conftest.err >&5
5834 rm -rf libconftest.dylib*
5835 rm -f conftest.*
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5839 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5841 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5842 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 lt_cv_ld_exported_symbols_list=no
5846 save_LDFLAGS=$LDFLAGS
5847 echo "_main" > conftest.sym
5848 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5853 main ()
5857 return 0;
5859 _ACEOF
5860 if ac_fn_c_try_link "$LINENO"; then :
5861 lt_cv_ld_exported_symbols_list=yes
5862 else
5863 lt_cv_ld_exported_symbols_list=no
5865 rm -f core conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext conftest.$ac_ext
5867 LDFLAGS="$save_LDFLAGS"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5871 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5872 case $host_os in
5873 rhapsody* | darwin1.[012])
5874 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5875 darwin1.*)
5876 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5877 darwin*) # darwin 5.x on
5878 # if running on 10.5 or later, the deployment target defaults
5879 # to the OS version, if on x86, and 10.4, the deployment
5880 # target defaults to 10.4. Don't you love it?
5881 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5882 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5883 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5884 10.[012]*)
5885 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5886 10.*)
5887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5888 esac
5890 esac
5891 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5892 _lt_dar_single_mod='$single_module'
5894 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5895 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5896 else
5897 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5899 if test "$DSYMUTIL" != ":"; then
5900 _lt_dsymutil='~$DSYMUTIL $lib || :'
5901 else
5902 _lt_dsymutil=
5905 esac
5907 ac_ext=c
5908 ac_cpp='$CPP $CPPFLAGS'
5909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5913 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5914 # On Suns, sometimes $CPP names a directory.
5915 if test -n "$CPP" && test -d "$CPP"; then
5916 CPP=
5918 if test -z "$CPP"; then
5919 if ${ac_cv_prog_CPP+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 # Double quotes because CPP needs to be expanded
5923 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5925 ac_preproc_ok=false
5926 for ac_c_preproc_warn_flag in '' yes
5928 # Use a header file that comes with gcc, so configuring glibc
5929 # with a fresh cross-compiler works.
5930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931 # <limits.h> exists even on freestanding compilers.
5932 # On the NeXT, cc -E runs the code through the compiler's parser,
5933 # not just through cpp. "Syntax error" is here to catch this case.
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5936 #ifdef __STDC__
5937 # include <limits.h>
5938 #else
5939 # include <assert.h>
5940 #endif
5941 Syntax error
5942 _ACEOF
5943 if ac_fn_c_try_cpp "$LINENO"; then :
5945 else
5946 # Broken: fails on valid input.
5947 continue
5949 rm -f conftest.err conftest.i conftest.$ac_ext
5951 # OK, works on sane cases. Now check whether nonexistent headers
5952 # can be detected and how.
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5955 #include <ac_nonexistent.h>
5956 _ACEOF
5957 if ac_fn_c_try_cpp "$LINENO"; then :
5958 # Broken: success on invalid input.
5959 continue
5960 else
5961 # Passes both tests.
5962 ac_preproc_ok=:
5963 break
5965 rm -f conftest.err conftest.i conftest.$ac_ext
5967 done
5968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5969 rm -f conftest.i conftest.err conftest.$ac_ext
5970 if $ac_preproc_ok; then :
5971 break
5974 done
5975 ac_cv_prog_CPP=$CPP
5978 CPP=$ac_cv_prog_CPP
5979 else
5980 ac_cv_prog_CPP=$CPP
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5983 $as_echo "$CPP" >&6; }
5984 ac_preproc_ok=false
5985 for ac_c_preproc_warn_flag in '' yes
5987 # Use a header file that comes with gcc, so configuring glibc
5988 # with a fresh cross-compiler works.
5989 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5990 # <limits.h> exists even on freestanding compilers.
5991 # On the NeXT, cc -E runs the code through the compiler's parser,
5992 # not just through cpp. "Syntax error" is here to catch this case.
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #ifdef __STDC__
5996 # include <limits.h>
5997 #else
5998 # include <assert.h>
5999 #endif
6000 Syntax error
6001 _ACEOF
6002 if ac_fn_c_try_cpp "$LINENO"; then :
6004 else
6005 # Broken: fails on valid input.
6006 continue
6008 rm -f conftest.err conftest.i conftest.$ac_ext
6010 # OK, works on sane cases. Now check whether nonexistent headers
6011 # can be detected and how.
6012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013 /* end confdefs.h. */
6014 #include <ac_nonexistent.h>
6015 _ACEOF
6016 if ac_fn_c_try_cpp "$LINENO"; then :
6017 # Broken: success on invalid input.
6018 continue
6019 else
6020 # Passes both tests.
6021 ac_preproc_ok=:
6022 break
6024 rm -f conftest.err conftest.i conftest.$ac_ext
6026 done
6027 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6028 rm -f conftest.i conftest.err conftest.$ac_ext
6029 if $ac_preproc_ok; then :
6031 else
6032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6034 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6035 See \`config.log' for more details" "$LINENO" 5; }
6038 ac_ext=c
6039 ac_cpp='$CPP $CPPFLAGS'
6040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6046 $as_echo_n "checking for ANSI C header files... " >&6; }
6047 if ${ac_cv_header_stdc+:} false; then :
6048 $as_echo_n "(cached) " >&6
6049 else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 #include <stdlib.h>
6053 #include <stdarg.h>
6054 #include <string.h>
6055 #include <float.h>
6058 main ()
6062 return 0;
6064 _ACEOF
6065 if ac_fn_c_try_compile "$LINENO"; then :
6066 ac_cv_header_stdc=yes
6067 else
6068 ac_cv_header_stdc=no
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 if test $ac_cv_header_stdc = yes; then
6073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076 #include <string.h>
6078 _ACEOF
6079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "memchr" >/dev/null 2>&1; then :
6082 else
6083 ac_cv_header_stdc=no
6085 rm -f conftest*
6089 if test $ac_cv_header_stdc = yes; then
6090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6093 #include <stdlib.h>
6095 _ACEOF
6096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "free" >/dev/null 2>&1; then :
6099 else
6100 ac_cv_header_stdc=no
6102 rm -f conftest*
6106 if test $ac_cv_header_stdc = yes; then
6107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6108 if test "$cross_compiling" = yes; then :
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #include <ctype.h>
6114 #include <stdlib.h>
6115 #if ((' ' & 0x0FF) == 0x020)
6116 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118 #else
6119 # define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124 #endif
6126 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6128 main ()
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 return 2;
6135 return 0;
6137 _ACEOF
6138 if ac_fn_c_try_run "$LINENO"; then :
6140 else
6141 ac_cv_header_stdc=no
6143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 conftest.$ac_objext conftest.beam conftest.$ac_ext
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6150 $as_echo "$ac_cv_header_stdc" >&6; }
6151 if test $ac_cv_header_stdc = yes; then
6153 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6157 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6158 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6159 inttypes.h stdint.h unistd.h
6160 do :
6161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6162 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6165 cat >>confdefs.h <<_ACEOF
6166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167 _ACEOF
6171 done
6174 for ac_header in dlfcn.h
6175 do :
6176 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6178 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6179 cat >>confdefs.h <<_ACEOF
6180 #define HAVE_DLFCN_H 1
6181 _ACEOF
6185 done
6189 # Set options
6193 enable_dlopen=no
6196 enable_win32_dll=no
6199 # Check whether --enable-shared was given.
6200 if test "${enable_shared+set}" = set; then :
6201 enableval=$enable_shared; p=${PACKAGE-default}
6202 case $enableval in
6203 yes) enable_shared=yes ;;
6204 no) enable_shared=no ;;
6206 enable_shared=no
6207 # Look at the argument we got. We use all the common list separators.
6208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6209 for pkg in $enableval; do
6210 IFS="$lt_save_ifs"
6211 if test "X$pkg" = "X$p"; then
6212 enable_shared=yes
6214 done
6215 IFS="$lt_save_ifs"
6217 esac
6218 else
6219 enable_shared=yes
6230 # Check whether --enable-static was given.
6231 if test "${enable_static+set}" = set; then :
6232 enableval=$enable_static; p=${PACKAGE-default}
6233 case $enableval in
6234 yes) enable_static=yes ;;
6235 no) enable_static=no ;;
6237 enable_static=no
6238 # Look at the argument we got. We use all the common list separators.
6239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6240 for pkg in $enableval; do
6241 IFS="$lt_save_ifs"
6242 if test "X$pkg" = "X$p"; then
6243 enable_static=yes
6245 done
6246 IFS="$lt_save_ifs"
6248 esac
6249 else
6250 enable_static=yes
6262 # Check whether --with-pic was given.
6263 if test "${with_pic+set}" = set; then :
6264 withval=$with_pic; pic_mode="$withval"
6265 else
6266 pic_mode=default
6270 test -z "$pic_mode" && pic_mode=default
6278 # Check whether --enable-fast-install was given.
6279 if test "${enable_fast_install+set}" = set; then :
6280 enableval=$enable_fast_install; p=${PACKAGE-default}
6281 case $enableval in
6282 yes) enable_fast_install=yes ;;
6283 no) enable_fast_install=no ;;
6285 enable_fast_install=no
6286 # Look at the argument we got. We use all the common list separators.
6287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6288 for pkg in $enableval; do
6289 IFS="$lt_save_ifs"
6290 if test "X$pkg" = "X$p"; then
6291 enable_fast_install=yes
6293 done
6294 IFS="$lt_save_ifs"
6296 esac
6297 else
6298 enable_fast_install=yes
6311 # This can be used to rebuild libtool when needed
6312 LIBTOOL_DEPS="$ltmain"
6314 # Always use our own libtool.
6315 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6341 test -z "$LN_S" && LN_S="ln -s"
6356 if test -n "${ZSH_VERSION+set}" ; then
6357 setopt NO_GLOB_SUBST
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6361 $as_echo_n "checking for objdir... " >&6; }
6362 if ${lt_cv_objdir+:} false; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 rm -f .libs 2>/dev/null
6366 mkdir .libs 2>/dev/null
6367 if test -d .libs; then
6368 lt_cv_objdir=.libs
6369 else
6370 # MS-DOS does not allow filenames that begin with a dot.
6371 lt_cv_objdir=_libs
6373 rmdir .libs 2>/dev/null
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6376 $as_echo "$lt_cv_objdir" >&6; }
6377 objdir=$lt_cv_objdir
6383 cat >>confdefs.h <<_ACEOF
6384 #define LT_OBJDIR "$lt_cv_objdir/"
6385 _ACEOF
6403 case $host_os in
6404 aix3*)
6405 # AIX sometimes has problems with the GCC collect2 program. For some
6406 # reason, if we set the COLLECT_NAMES environment variable, the problems
6407 # vanish in a puff of smoke.
6408 if test "X${COLLECT_NAMES+set}" != Xset; then
6409 COLLECT_NAMES=
6410 export COLLECT_NAMES
6413 esac
6415 # Sed substitution that helps us do robust quoting. It backslashifies
6416 # metacharacters that are still active within double-quoted strings.
6417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6419 # Same as above, but do not quote variable references.
6420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6422 # Sed substitution to delay expansion of an escaped shell variable in a
6423 # double_quote_subst'ed string.
6424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6426 # Sed substitution to delay expansion of an escaped single quote.
6427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6429 # Sed substitution to avoid accidental globbing in evaled expressions
6430 no_glob_subst='s/\*/\\\*/g'
6432 # Global variables:
6433 ofile=libtool
6434 can_build_shared=yes
6436 # All known linkers require a `.a' archive for static linking (except MSVC,
6437 # which needs '.lib').
6438 libext=a
6440 with_gnu_ld="$lt_cv_prog_gnu_ld"
6442 old_CC="$CC"
6443 old_CFLAGS="$CFLAGS"
6445 # Set sane defaults for various variables
6446 test -z "$CC" && CC=cc
6447 test -z "$LTCC" && LTCC=$CC
6448 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6449 test -z "$LD" && LD=ld
6450 test -z "$ac_objext" && ac_objext=o
6452 for cc_temp in $compiler""; do
6453 case $cc_temp in
6454 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6455 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6456 \-*) ;;
6457 *) break;;
6458 esac
6459 done
6460 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6463 # Only perform the check for file, if the check method requires it
6464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6465 case $deplibs_check_method in
6466 file_magic*)
6467 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6469 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 case $MAGIC_CMD in
6474 [\\/*] | ?:[\\/]*)
6475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6478 lt_save_MAGIC_CMD="$MAGIC_CMD"
6479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6481 for ac_dir in $ac_dummy; do
6482 IFS="$lt_save_ifs"
6483 test -z "$ac_dir" && ac_dir=.
6484 if test -f $ac_dir/${ac_tool_prefix}file; then
6485 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6486 if test -n "$file_magic_test_file"; then
6487 case $deplibs_check_method in
6488 "file_magic "*)
6489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6492 $EGREP "$file_magic_regex" > /dev/null; then
6494 else
6495 cat <<_LT_EOF 1>&2
6497 *** Warning: the command libtool uses to detect shared libraries,
6498 *** $file_magic_cmd, produces output that libtool cannot recognize.
6499 *** The result is that libtool may fail to recognize shared libraries
6500 *** as such. This will affect the creation of libtool libraries that
6501 *** depend on shared libraries, but programs linked with such libtool
6502 *** libraries will work regardless of this problem. Nevertheless, you
6503 *** may want to report the problem to your system manager and/or to
6504 *** bug-libtool@gnu.org
6506 _LT_EOF
6507 fi ;;
6508 esac
6510 break
6512 done
6513 IFS="$lt_save_ifs"
6514 MAGIC_CMD="$lt_save_MAGIC_CMD"
6516 esac
6519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6520 if test -n "$MAGIC_CMD"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6522 $as_echo "$MAGIC_CMD" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6532 if test -z "$lt_cv_path_MAGIC_CMD"; then
6533 if test -n "$ac_tool_prefix"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6535 $as_echo_n "checking for file... " >&6; }
6536 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 case $MAGIC_CMD in
6540 [\\/*] | ?:[\\/]*)
6541 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6544 lt_save_MAGIC_CMD="$MAGIC_CMD"
6545 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6546 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6547 for ac_dir in $ac_dummy; do
6548 IFS="$lt_save_ifs"
6549 test -z "$ac_dir" && ac_dir=.
6550 if test -f $ac_dir/file; then
6551 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6552 if test -n "$file_magic_test_file"; then
6553 case $deplibs_check_method in
6554 "file_magic "*)
6555 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6557 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6558 $EGREP "$file_magic_regex" > /dev/null; then
6560 else
6561 cat <<_LT_EOF 1>&2
6563 *** Warning: the command libtool uses to detect shared libraries,
6564 *** $file_magic_cmd, produces output that libtool cannot recognize.
6565 *** The result is that libtool may fail to recognize shared libraries
6566 *** as such. This will affect the creation of libtool libraries that
6567 *** depend on shared libraries, but programs linked with such libtool
6568 *** libraries will work regardless of this problem. Nevertheless, you
6569 *** may want to report the problem to your system manager and/or to
6570 *** bug-libtool@gnu.org
6572 _LT_EOF
6573 fi ;;
6574 esac
6576 break
6578 done
6579 IFS="$lt_save_ifs"
6580 MAGIC_CMD="$lt_save_MAGIC_CMD"
6582 esac
6585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6586 if test -n "$MAGIC_CMD"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6588 $as_echo "$MAGIC_CMD" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6595 else
6596 MAGIC_CMD=:
6602 esac
6604 # Use C for the default configuration in the libtool script
6606 lt_save_CC="$CC"
6607 ac_ext=c
6608 ac_cpp='$CPP $CPPFLAGS'
6609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6614 # Source file extension for C test sources.
6615 ac_ext=c
6617 # Object file extension for compiled C test sources.
6618 objext=o
6619 objext=$objext
6621 # Code to be used in simple compile tests
6622 lt_simple_compile_test_code="int some_variable = 0;"
6624 # Code to be used in simple link tests
6625 lt_simple_link_test_code='int main(){return(0);}'
6633 # If no C compiler was specified, use CC.
6634 LTCC=${LTCC-"$CC"}
6636 # If no C compiler flags were specified, use CFLAGS.
6637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6639 # Allow CC to be a program name with arguments.
6640 compiler=$CC
6642 # Save the default compiler, since it gets overwritten when the other
6643 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6644 compiler_DEFAULT=$CC
6646 # save warnings/boilerplate of simple test code
6647 ac_outfile=conftest.$ac_objext
6648 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6650 _lt_compiler_boilerplate=`cat conftest.err`
6651 $RM conftest*
6653 ac_outfile=conftest.$ac_objext
6654 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6656 _lt_linker_boilerplate=`cat conftest.err`
6657 $RM -r conftest*
6660 if test -n "$compiler"; then
6662 lt_prog_compiler_no_builtin_flag=
6664 if test "$GCC" = yes; then
6665 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6668 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6669 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 lt_cv_prog_compiler_rtti_exceptions=no
6673 ac_outfile=conftest.$ac_objext
6674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6675 lt_compiler_flag="-fno-rtti -fno-exceptions"
6676 # Insert the option either (1) after the last *FLAGS variable, or
6677 # (2) before a word containing "conftest.", or (3) at the end.
6678 # Note that $ac_compile itself does not contain backslashes and begins
6679 # with a dollar sign (not a hyphen), so the echo should work correctly.
6680 # The option is referenced via a variable to avoid confusing sed.
6681 lt_compile=`echo "$ac_compile" | $SED \
6682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6684 -e 's:$: $lt_compiler_flag:'`
6685 (eval echo "\"\$as_me:6685: $lt_compile\"" >&5)
6686 (eval "$lt_compile" 2>conftest.err)
6687 ac_status=$?
6688 cat conftest.err >&5
6689 echo "$as_me:6689: \$? = $ac_status" >&5
6690 if (exit $ac_status) && test -s "$ac_outfile"; then
6691 # The compiler can only warn and ignore the option if not recognized
6692 # So say no if there are warnings other than the usual output.
6693 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6696 lt_cv_prog_compiler_rtti_exceptions=yes
6699 $RM conftest*
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6703 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6707 else
6718 lt_prog_compiler_wl=
6719 lt_prog_compiler_pic=
6720 lt_prog_compiler_static=
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6723 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6725 if test "$GCC" = yes; then
6726 lt_prog_compiler_wl='-Wl,'
6727 lt_prog_compiler_static='-static'
6729 case $host_os in
6730 aix*)
6731 # All AIX code is PIC.
6732 if test "$host_cpu" = ia64; then
6733 # AIX 5 now supports IA64 processor
6734 lt_prog_compiler_static='-Bstatic'
6738 amigaos*)
6739 case $host_cpu in
6740 powerpc)
6741 # see comment about AmigaOS4 .so support
6742 lt_prog_compiler_pic='-fPIC'
6744 m68k)
6745 # FIXME: we need at least 68020 code to build shared libraries, but
6746 # adding the `-m68020' flag to GCC prevents building anything better,
6747 # like `-m68040'.
6748 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6750 esac
6753 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6754 # PIC is the default for these OSes.
6757 mingw* | cygwin* | pw32* | os2* | cegcc*)
6758 # This hack is so that the source file can tell whether it is being
6759 # built for inclusion in a dll (and should export symbols for example).
6760 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6761 # (--disable-auto-import) libraries
6762 lt_prog_compiler_pic='-DDLL_EXPORT'
6765 darwin* | rhapsody*)
6766 # PIC is the default on this platform
6767 # Common symbols not allowed in MH_DYLIB files
6768 lt_prog_compiler_pic='-fno-common'
6771 hpux*)
6772 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6773 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6774 # sets the default TLS model and affects inlining.
6775 case $host_cpu in
6776 hppa*64*)
6777 # +Z the default
6780 lt_prog_compiler_pic='-fPIC'
6782 esac
6785 interix[3-9]*)
6786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6787 # Instead, we relocate shared libraries at runtime.
6790 msdosdjgpp*)
6791 # Just because we use GCC doesn't mean we suddenly get shared libraries
6792 # on systems that don't support them.
6793 lt_prog_compiler_can_build_shared=no
6794 enable_shared=no
6797 *nto* | *qnx*)
6798 # QNX uses GNU C++, but need to define -shared option too, otherwise
6799 # it will coredump.
6800 lt_prog_compiler_pic='-fPIC -shared'
6803 sysv4*MP*)
6804 if test -d /usr/nec; then
6805 lt_prog_compiler_pic=-Kconform_pic
6810 lt_prog_compiler_pic='-fPIC'
6812 esac
6813 else
6814 # PORTME Check for flag to pass linker flags through the system compiler.
6815 case $host_os in
6816 aix*)
6817 lt_prog_compiler_wl='-Wl,'
6818 if test "$host_cpu" = ia64; then
6819 # AIX 5 now supports IA64 processor
6820 lt_prog_compiler_static='-Bstatic'
6821 else
6822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6826 mingw* | cygwin* | pw32* | os2* | cegcc*)
6827 # This hack is so that the source file can tell whether it is being
6828 # built for inclusion in a dll (and should export symbols for example).
6829 lt_prog_compiler_pic='-DDLL_EXPORT'
6832 hpux9* | hpux10* | hpux11*)
6833 lt_prog_compiler_wl='-Wl,'
6834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6835 # not for PA HP-UX.
6836 case $host_cpu in
6837 hppa*64*|ia64*)
6838 # +Z the default
6841 lt_prog_compiler_pic='+Z'
6843 esac
6844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6845 lt_prog_compiler_static='${wl}-a ${wl}archive'
6848 irix5* | irix6* | nonstopux*)
6849 lt_prog_compiler_wl='-Wl,'
6850 # PIC (with -KPIC) is the default.
6851 lt_prog_compiler_static='-non_shared'
6854 linux* | k*bsd*-gnu)
6855 case $cc_basename in
6856 # old Intel for x86_64 which still supported -KPIC.
6857 ecc*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-KPIC'
6860 lt_prog_compiler_static='-static'
6862 # icc used to be incompatible with GCC.
6863 # ICC 10 doesn't accept -KPIC any more.
6864 icc* | ifort*)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-fPIC'
6867 lt_prog_compiler_static='-static'
6869 # Lahey Fortran 8.1.
6870 lf95*)
6871 lt_prog_compiler_wl='-Wl,'
6872 lt_prog_compiler_pic='--shared'
6873 lt_prog_compiler_static='--static'
6875 pgcc* | pgf77* | pgf90* | pgf95*)
6876 # Portland Group compilers (*not* the Pentium gcc compiler,
6877 # which looks to be a dead project)
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_pic='-fpic'
6880 lt_prog_compiler_static='-Bstatic'
6882 ccc*)
6883 lt_prog_compiler_wl='-Wl,'
6884 # All Alpha code is PIC.
6885 lt_prog_compiler_static='-non_shared'
6887 xl*)
6888 # IBM XL C 8.0/Fortran 10.1 on PPC
6889 lt_prog_compiler_wl='-Wl,'
6890 lt_prog_compiler_pic='-qpic'
6891 lt_prog_compiler_static='-qstaticlink'
6894 case `$CC -V 2>&1 | sed 5q` in
6895 *Sun\ C*)
6896 # Sun C 5.9
6897 lt_prog_compiler_pic='-KPIC'
6898 lt_prog_compiler_static='-Bstatic'
6899 lt_prog_compiler_wl='-Wl,'
6901 *Sun\ F*)
6902 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6903 lt_prog_compiler_pic='-KPIC'
6904 lt_prog_compiler_static='-Bstatic'
6905 lt_prog_compiler_wl=''
6907 esac
6909 esac
6912 newsos6)
6913 lt_prog_compiler_pic='-KPIC'
6914 lt_prog_compiler_static='-Bstatic'
6917 *nto* | *qnx*)
6918 # QNX uses GNU C++, but need to define -shared option too, otherwise
6919 # it will coredump.
6920 lt_prog_compiler_pic='-fPIC -shared'
6923 osf3* | osf4* | osf5*)
6924 lt_prog_compiler_wl='-Wl,'
6925 # All OSF/1 code is PIC.
6926 lt_prog_compiler_static='-non_shared'
6929 rdos*)
6930 lt_prog_compiler_static='-non_shared'
6933 solaris*)
6934 lt_prog_compiler_pic='-KPIC'
6935 lt_prog_compiler_static='-Bstatic'
6936 case $cc_basename in
6937 f77* | f90* | f95*)
6938 lt_prog_compiler_wl='-Qoption ld ';;
6940 lt_prog_compiler_wl='-Wl,';;
6941 esac
6944 sunos4*)
6945 lt_prog_compiler_wl='-Qoption ld '
6946 lt_prog_compiler_pic='-PIC'
6947 lt_prog_compiler_static='-Bstatic'
6950 sysv4 | sysv4.2uw2* | sysv4.3*)
6951 lt_prog_compiler_wl='-Wl,'
6952 lt_prog_compiler_pic='-KPIC'
6953 lt_prog_compiler_static='-Bstatic'
6956 sysv4*MP*)
6957 if test -d /usr/nec ;then
6958 lt_prog_compiler_pic='-Kconform_pic'
6959 lt_prog_compiler_static='-Bstatic'
6963 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6964 lt_prog_compiler_wl='-Wl,'
6965 lt_prog_compiler_pic='-KPIC'
6966 lt_prog_compiler_static='-Bstatic'
6969 unicos*)
6970 lt_prog_compiler_wl='-Wl,'
6971 lt_prog_compiler_can_build_shared=no
6974 uts4*)
6975 lt_prog_compiler_pic='-pic'
6976 lt_prog_compiler_static='-Bstatic'
6980 lt_prog_compiler_can_build_shared=no
6982 esac
6985 case $host_os in
6986 # For platforms which do not support PIC, -DPIC is meaningless:
6987 *djgpp*)
6988 lt_prog_compiler_pic=
6991 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6993 esac
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6995 $as_echo "$lt_prog_compiler_pic" >&6; }
7003 # Check to make sure the PIC flag actually works.
7005 if test -n "$lt_prog_compiler_pic"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7007 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7008 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7009 $as_echo_n "(cached) " >&6
7010 else
7011 lt_cv_prog_compiler_pic_works=no
7012 ac_outfile=conftest.$ac_objext
7013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7014 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7015 # Insert the option either (1) after the last *FLAGS variable, or
7016 # (2) before a word containing "conftest.", or (3) at the end.
7017 # Note that $ac_compile itself does not contain backslashes and begins
7018 # with a dollar sign (not a hyphen), so the echo should work correctly.
7019 # The option is referenced via a variable to avoid confusing sed.
7020 lt_compile=`echo "$ac_compile" | $SED \
7021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7023 -e 's:$: $lt_compiler_flag:'`
7024 (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
7025 (eval "$lt_compile" 2>conftest.err)
7026 ac_status=$?
7027 cat conftest.err >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 if (exit $ac_status) && test -s "$ac_outfile"; then
7030 # The compiler can only warn and ignore the option if not recognized
7031 # So say no if there are warnings other than the usual output.
7032 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7033 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7034 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7035 lt_cv_prog_compiler_pic_works=yes
7038 $RM conftest*
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7042 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7044 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7045 case $lt_prog_compiler_pic in
7046 "" | " "*) ;;
7047 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7048 esac
7049 else
7050 lt_prog_compiler_pic=
7051 lt_prog_compiler_can_build_shared=no
7062 # Check to make sure the static flag actually works.
7064 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7066 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7067 if ${lt_cv_prog_compiler_static_works+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 lt_cv_prog_compiler_static_works=no
7071 save_LDFLAGS="$LDFLAGS"
7072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7075 # The linker can only warn and ignore the option if not recognized
7076 # So say no if there are warnings
7077 if test -s conftest.err; then
7078 # Append any errors to the config.log.
7079 cat conftest.err 1>&5
7080 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7082 if diff conftest.exp conftest.er2 >/dev/null; then
7083 lt_cv_prog_compiler_static_works=yes
7085 else
7086 lt_cv_prog_compiler_static_works=yes
7089 $RM -r conftest*
7090 LDFLAGS="$save_LDFLAGS"
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7094 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7096 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7098 else
7099 lt_prog_compiler_static=
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7109 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7110 if ${lt_cv_prog_compiler_c_o+:} false; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 lt_cv_prog_compiler_c_o=no
7114 $RM -r conftest 2>/dev/null
7115 mkdir conftest
7116 cd conftest
7117 mkdir out
7118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7120 lt_compiler_flag="-o out/conftest2.$ac_objext"
7121 # Insert the option either (1) after the last *FLAGS variable, or
7122 # (2) before a word containing "conftest.", or (3) at the end.
7123 # Note that $ac_compile itself does not contain backslashes and begins
7124 # with a dollar sign (not a hyphen), so the echo should work correctly.
7125 lt_compile=`echo "$ac_compile" | $SED \
7126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7128 -e 's:$: $lt_compiler_flag:'`
7129 (eval echo "\"\$as_me:7129: $lt_compile\"" >&5)
7130 (eval "$lt_compile" 2>out/conftest.err)
7131 ac_status=$?
7132 cat out/conftest.err >&5
7133 echo "$as_me:7133: \$? = $ac_status" >&5
7134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7135 then
7136 # The compiler can only warn and ignore the option if not recognized
7137 # So say no if there are warnings
7138 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7141 lt_cv_prog_compiler_c_o=yes
7144 chmod u+w . 2>&5
7145 $RM conftest*
7146 # SGI C++ compiler will create directory out/ii_files/ for
7147 # template instantiation
7148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7149 $RM out/* && rmdir out
7150 cd ..
7151 $RM -r conftest
7152 $RM conftest*
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7156 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7164 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7165 if ${lt_cv_prog_compiler_c_o+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 lt_cv_prog_compiler_c_o=no
7169 $RM -r conftest 2>/dev/null
7170 mkdir conftest
7171 cd conftest
7172 mkdir out
7173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7175 lt_compiler_flag="-o out/conftest2.$ac_objext"
7176 # Insert the option either (1) after the last *FLAGS variable, or
7177 # (2) before a word containing "conftest.", or (3) at the end.
7178 # Note that $ac_compile itself does not contain backslashes and begins
7179 # with a dollar sign (not a hyphen), so the echo should work correctly.
7180 lt_compile=`echo "$ac_compile" | $SED \
7181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7183 -e 's:$: $lt_compiler_flag:'`
7184 (eval echo "\"\$as_me:7184: $lt_compile\"" >&5)
7185 (eval "$lt_compile" 2>out/conftest.err)
7186 ac_status=$?
7187 cat out/conftest.err >&5
7188 echo "$as_me:7188: \$? = $ac_status" >&5
7189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7190 then
7191 # The compiler can only warn and ignore the option if not recognized
7192 # So say no if there are warnings
7193 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7196 lt_cv_prog_compiler_c_o=yes
7199 chmod u+w . 2>&5
7200 $RM conftest*
7201 # SGI C++ compiler will create directory out/ii_files/ for
7202 # template instantiation
7203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7204 $RM out/* && rmdir out
7205 cd ..
7206 $RM -r conftest
7207 $RM conftest*
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7211 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7216 hard_links="nottested"
7217 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7218 # do not overwrite the value of need_locks provided by the user
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7220 $as_echo_n "checking if we can lock with hard links... " >&6; }
7221 hard_links=yes
7222 $RM conftest*
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224 touch conftest.a
7225 ln conftest.a conftest.b 2>&5 || hard_links=no
7226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7228 $as_echo "$hard_links" >&6; }
7229 if test "$hard_links" = no; then
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7231 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7232 need_locks=warn
7234 else
7235 need_locks=no
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7244 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7246 runpath_var=
7247 allow_undefined_flag=
7248 always_export_symbols=no
7249 archive_cmds=
7250 archive_expsym_cmds=
7251 compiler_needs_object=no
7252 enable_shared_with_static_runtimes=no
7253 export_dynamic_flag_spec=
7254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7255 hardcode_automatic=no
7256 hardcode_direct=no
7257 hardcode_direct_absolute=no
7258 hardcode_libdir_flag_spec=
7259 hardcode_libdir_flag_spec_ld=
7260 hardcode_libdir_separator=
7261 hardcode_minus_L=no
7262 hardcode_shlibpath_var=unsupported
7263 inherit_rpath=no
7264 link_all_deplibs=unknown
7265 module_cmds=
7266 module_expsym_cmds=
7267 old_archive_from_new_cmds=
7268 old_archive_from_expsyms_cmds=
7269 thread_safe_flag_spec=
7270 whole_archive_flag_spec=
7271 # include_expsyms should be a list of space-separated symbols to be *always*
7272 # included in the symbol list
7273 include_expsyms=
7274 # exclude_expsyms can be an extended regexp of symbols to exclude
7275 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7276 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7277 # as well as any symbol that contains `d'.
7278 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7279 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7280 # platforms (ab)use it in PIC code, but their linkers get confused if
7281 # the symbol is explicitly referenced. Since portable code cannot
7282 # rely on this symbol name, it's probably fine to never include it in
7283 # preloaded symbol tables.
7284 # Exclude shared library initialization/finalization symbols.
7285 extract_expsyms_cmds=
7287 case $host_os in
7288 cygwin* | mingw* | pw32* | cegcc*)
7289 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7290 # When not using gcc, we currently assume that we are using
7291 # Microsoft Visual C++.
7292 if test "$GCC" != yes; then
7293 with_gnu_ld=no
7296 interix*)
7297 # we just hope/assume this is gcc and not c89 (= MSVC++)
7298 with_gnu_ld=yes
7300 openbsd*)
7301 with_gnu_ld=no
7303 esac
7305 ld_shlibs=yes
7306 if test "$with_gnu_ld" = yes; then
7307 # If archive_cmds runs LD, not CC, wlarc should be empty
7308 wlarc='${wl}'
7310 # Set some defaults for GNU ld with shared library support. These
7311 # are reset later if shared libraries are not supported. Putting them
7312 # here allows them to be overridden if necessary.
7313 runpath_var=LD_RUN_PATH
7314 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7315 export_dynamic_flag_spec='${wl}--export-dynamic'
7316 # ancient GNU ld didn't support --whole-archive et. al.
7317 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7318 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7319 else
7320 whole_archive_flag_spec=
7322 supports_anon_versioning=no
7323 case `$LD -v 2>&1` in
7324 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7325 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7326 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7327 *\ 2.11.*) ;; # other 2.11 versions
7328 *) supports_anon_versioning=yes ;;
7329 esac
7331 # See if GNU ld supports shared libraries.
7332 case $host_os in
7333 aix[3-9]*)
7334 # On AIX/PPC, the GNU linker is very broken
7335 if test "$host_cpu" != ia64; then
7336 ld_shlibs=no
7337 cat <<_LT_EOF 1>&2
7339 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7340 *** to be unable to reliably create shared libraries on AIX.
7341 *** Therefore, libtool is disabling shared libraries support. If you
7342 *** really care for shared libraries, you may want to modify your PATH
7343 *** so that a non-GNU linker is found, and then restart.
7345 _LT_EOF
7349 amigaos*)
7350 case $host_cpu in
7351 powerpc)
7352 # see comment about AmigaOS4 .so support
7353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354 archive_expsym_cmds=''
7356 m68k)
7357 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)'
7358 hardcode_libdir_flag_spec='-L$libdir'
7359 hardcode_minus_L=yes
7361 esac
7364 beos*)
7365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7366 allow_undefined_flag=unsupported
7367 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7368 # support --undefined. This deserves some investigation. FIXME
7369 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7370 else
7371 ld_shlibs=no
7375 cygwin* | mingw* | pw32* | cegcc*)
7376 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7377 # as there is no search path for DLLs.
7378 hardcode_libdir_flag_spec='-L$libdir'
7379 allow_undefined_flag=unsupported
7380 always_export_symbols=no
7381 enable_shared_with_static_runtimes=yes
7382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7384 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7386 # If the export-symbols file already is a .def file (1st line
7387 # is EXPORTS), use it as is; otherwise, prepend...
7388 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7389 cp $export_symbols $output_objdir/$soname.def;
7390 else
7391 echo EXPORTS > $output_objdir/$soname.def;
7392 cat $export_symbols >> $output_objdir/$soname.def;
7394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7395 else
7396 ld_shlibs=no
7400 interix[3-9]*)
7401 hardcode_direct=no
7402 hardcode_shlibpath_var=no
7403 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7404 export_dynamic_flag_spec='${wl}-E'
7405 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7406 # Instead, shared libraries are loaded at an image base (0x10000000 by
7407 # default) and relocated if they conflict, which is a slow very memory
7408 # consuming and fragmenting process. To avoid this, we pick a random,
7409 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7410 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7411 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7412 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'
7415 gnu* | linux* | tpf* | k*bsd*-gnu)
7416 tmp_diet=no
7417 if test "$host_os" = linux-dietlibc; then
7418 case $cc_basename in
7419 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7420 esac
7422 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7423 && test "$tmp_diet" = no
7424 then
7425 tmp_addflag=
7426 tmp_sharedflag='-shared'
7427 case $cc_basename,$host_cpu in
7428 pgcc*) # Portland Group C compiler
7429 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'
7430 tmp_addflag=' $pic_flag'
7432 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7433 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'
7434 tmp_addflag=' $pic_flag -Mnomain' ;;
7435 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7436 tmp_addflag=' -i_dynamic' ;;
7437 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7438 tmp_addflag=' -i_dynamic -nofor_main' ;;
7439 ifc* | ifort*) # Intel Fortran compiler
7440 tmp_addflag=' -nofor_main' ;;
7441 lf95*) # Lahey Fortran 8.1
7442 whole_archive_flag_spec=
7443 tmp_sharedflag='--shared' ;;
7444 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7445 tmp_sharedflag='-qmkshrobj'
7446 tmp_addflag= ;;
7447 esac
7448 case `$CC -V 2>&1 | sed 5q` in
7449 *Sun\ C*) # Sun C 5.9
7450 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'
7451 compiler_needs_object=yes
7452 tmp_sharedflag='-G' ;;
7453 *Sun\ F*) # Sun Fortran 8.3
7454 tmp_sharedflag='-G' ;;
7455 esac
7456 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7458 if test "x$supports_anon_versioning" = xyes; then
7459 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7460 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7461 echo "local: *; };" >> $output_objdir/$libname.ver~
7462 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7465 case $cc_basename in
7466 xlf*)
7467 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7468 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7469 hardcode_libdir_flag_spec=
7470 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7471 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7472 if test "x$supports_anon_versioning" = xyes; then
7473 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7475 echo "local: *; };" >> $output_objdir/$libname.ver~
7476 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7479 esac
7480 else
7481 ld_shlibs=no
7485 netbsd*)
7486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7487 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7488 wlarc=
7489 else
7490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7491 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7495 solaris*)
7496 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7497 ld_shlibs=no
7498 cat <<_LT_EOF 1>&2
7500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7501 *** create shared libraries on Solaris systems. Therefore, libtool
7502 *** is disabling shared libraries support. We urge you to upgrade GNU
7503 *** binutils to release 2.9.1 or newer. Another option is to modify
7504 *** your PATH or compiler configuration so that the native linker is
7505 *** used, and then restart.
7507 _LT_EOF
7508 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7511 else
7512 ld_shlibs=no
7516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7517 case `$LD -v 2>&1` in
7518 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7519 ld_shlibs=no
7520 cat <<_LT_EOF 1>&2
7522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7523 *** reliably create shared libraries on SCO systems. Therefore, libtool
7524 *** is disabling shared libraries support. We urge you to upgrade GNU
7525 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7526 *** your PATH or compiler configuration so that the native linker is
7527 *** used, and then restart.
7529 _LT_EOF
7532 # For security reasons, it is highly recommended that you always
7533 # use absolute paths for naming shared libraries, and exclude the
7534 # DT_RUNPATH tag from executables and libraries. But doing so
7535 # requires that you compile everything twice, which is a pain.
7536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7540 else
7541 ld_shlibs=no
7544 esac
7547 sunos4*)
7548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7549 wlarc=
7550 hardcode_direct=yes
7551 hardcode_shlibpath_var=no
7555 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7558 else
7559 ld_shlibs=no
7562 esac
7564 if test "$ld_shlibs" = no; then
7565 runpath_var=
7566 hardcode_libdir_flag_spec=
7567 export_dynamic_flag_spec=
7568 whole_archive_flag_spec=
7570 else
7571 # PORTME fill in a description of your system's linker (not GNU ld)
7572 case $host_os in
7573 aix3*)
7574 allow_undefined_flag=unsupported
7575 always_export_symbols=yes
7576 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'
7577 # Note: this linker hardcodes the directories in LIBPATH if there
7578 # are no directories specified by -L.
7579 hardcode_minus_L=yes
7580 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7581 # Neither direct hardcoding nor static linking is supported with a
7582 # broken collect2.
7583 hardcode_direct=unsupported
7587 aix[4-9]*)
7588 if test "$host_cpu" = ia64; then
7589 # On IA64, the linker does run time linking by default, so we don't
7590 # have to do anything special.
7591 aix_use_runtimelinking=no
7592 exp_sym_flag='-Bexport'
7593 no_entry_flag=""
7594 else
7595 # If we're using GNU nm, then we don't want the "-C" option.
7596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7597 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7598 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'
7599 else
7600 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'
7602 aix_use_runtimelinking=no
7604 # Test if we are trying to use run time linking or normal
7605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7606 # need to do runtime linking.
7607 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7608 for ld_flag in $LDFLAGS; do
7609 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7610 aix_use_runtimelinking=yes
7611 break
7613 done
7615 esac
7617 exp_sym_flag='-bexport'
7618 no_entry_flag='-bnoentry'
7621 # When large executables or shared objects are built, AIX ld can
7622 # have problems creating the table of contents. If linking a library
7623 # or program results in "error TOC overflow" add -mminimal-toc to
7624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7627 archive_cmds=''
7628 hardcode_direct=yes
7629 hardcode_direct_absolute=yes
7630 hardcode_libdir_separator=':'
7631 link_all_deplibs=yes
7632 file_list_spec='${wl}-f,'
7634 if test "$GCC" = yes; then
7635 case $host_os in aix4.[012]|aix4.[012].*)
7636 # We only want to do this on AIX 4.2 and lower, the check
7637 # below for broken collect2 doesn't work under 4.3+
7638 collect2name=`${CC} -print-prog-name=collect2`
7639 if test -f "$collect2name" &&
7640 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7641 then
7642 # We have reworked collect2
7644 else
7645 # We have old collect2
7646 hardcode_direct=unsupported
7647 # It fails to find uninstalled libraries when the uninstalled
7648 # path is not listed in the libpath. Setting hardcode_minus_L
7649 # to unsupported forces relinking
7650 hardcode_minus_L=yes
7651 hardcode_libdir_flag_spec='-L$libdir'
7652 hardcode_libdir_separator=
7655 esac
7656 shared_flag='-shared'
7657 if test "$aix_use_runtimelinking" = yes; then
7658 shared_flag="$shared_flag "'${wl}-G'
7660 else
7661 # not using gcc
7662 if test "$host_cpu" = ia64; then
7663 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7664 # chokes on -Wl,-G. The following line is correct:
7665 shared_flag='-G'
7666 else
7667 if test "$aix_use_runtimelinking" = yes; then
7668 shared_flag='${wl}-G'
7669 else
7670 shared_flag='${wl}-bM:SRE'
7675 export_dynamic_flag_spec='${wl}-bexpall'
7676 # It seems that -bexpall does not export symbols beginning with
7677 # underscore (_), so it is better to generate a list of symbols to export.
7678 always_export_symbols=yes
7679 if test "$aix_use_runtimelinking" = yes; then
7680 # Warning - without using the other runtime loading flags (-brtl),
7681 # -berok will link without error, but may produce a broken library.
7682 allow_undefined_flag='-berok'
7683 # Determine the default libpath from the value encoded in an
7684 # empty executable.
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7689 main ()
7693 return 0;
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7698 lt_aix_libpath_sed='
7699 /Import File Strings/,/^$/ {
7700 /^0/ {
7701 s/^0 *\(.*\)$/\1/
7705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7706 # Check for a 64-bit object if we didn't find anything.
7707 if test -z "$aix_libpath"; then
7708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7711 rm -f core conftest.err conftest.$ac_objext \
7712 conftest$ac_exeext conftest.$ac_ext
7713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7715 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7716 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"
7717 else
7718 if test "$host_cpu" = ia64; then
7719 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7720 allow_undefined_flag="-z nodefs"
7721 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"
7722 else
7723 # Determine the default libpath from the value encoded in an
7724 # empty executable.
7725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726 /* end confdefs.h. */
7729 main ()
7733 return 0;
7735 _ACEOF
7736 if ac_fn_c_try_link "$LINENO"; then :
7738 lt_aix_libpath_sed='
7739 /Import File Strings/,/^$/ {
7740 /^0/ {
7741 s/^0 *\(.*\)$/\1/
7745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7746 # Check for a 64-bit object if we didn't find anything.
7747 if test -z "$aix_libpath"; then
7748 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7751 rm -f core conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7753 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7755 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7756 # Warning - without using the other run time loading flags,
7757 # -berok will link without error, but may produce a broken library.
7758 no_undefined_flag=' ${wl}-bernotok'
7759 allow_undefined_flag=' ${wl}-berok'
7760 # Exported symbols can be pulled into shared objects from archives
7761 whole_archive_flag_spec='$convenience'
7762 archive_cmds_need_lc=yes
7763 # This is similar to how AIX traditionally builds its shared libraries.
7764 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'
7769 amigaos*)
7770 case $host_cpu in
7771 powerpc)
7772 # see comment about AmigaOS4 .so support
7773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7774 archive_expsym_cmds=''
7776 m68k)
7777 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)'
7778 hardcode_libdir_flag_spec='-L$libdir'
7779 hardcode_minus_L=yes
7781 esac
7784 bsdi[45]*)
7785 export_dynamic_flag_spec=-rdynamic
7788 cygwin* | mingw* | pw32* | cegcc*)
7789 # When not using gcc, we currently assume that we are using
7790 # Microsoft Visual C++.
7791 # hardcode_libdir_flag_spec is actually meaningless, as there is
7792 # no search path for DLLs.
7793 hardcode_libdir_flag_spec=' '
7794 allow_undefined_flag=unsupported
7795 # Tell ltmain to make .lib files, not .a files.
7796 libext=lib
7797 # Tell ltmain to make .dll files, not .so files.
7798 shrext_cmds=".dll"
7799 # FIXME: Setting linknames here is a bad hack.
7800 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7801 # The linker will automatically build a .lib file if we build a DLL.
7802 old_archive_from_new_cmds='true'
7803 # FIXME: Should let the user specify the lib program.
7804 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7805 fix_srcfile_path='`cygpath -w "$srcfile"`'
7806 enable_shared_with_static_runtimes=yes
7809 darwin* | rhapsody*)
7812 archive_cmds_need_lc=no
7813 hardcode_direct=no
7814 hardcode_automatic=yes
7815 hardcode_shlibpath_var=unsupported
7816 whole_archive_flag_spec=''
7817 link_all_deplibs=yes
7818 allow_undefined_flag="$_lt_dar_allow_undefined"
7819 case $cc_basename in
7820 ifort*) _lt_dar_can_shared=yes ;;
7821 *) _lt_dar_can_shared=$GCC ;;
7822 esac
7823 if test "$_lt_dar_can_shared" = "yes"; then
7824 output_verbose_link_cmd=echo
7825 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7826 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7827 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}"
7828 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}"
7830 else
7831 ld_shlibs=no
7836 dgux*)
7837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7838 hardcode_libdir_flag_spec='-L$libdir'
7839 hardcode_shlibpath_var=no
7842 freebsd1*)
7843 ld_shlibs=no
7846 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7847 # support. Future versions do this automatically, but an explicit c++rt0.o
7848 # does not break anything, and helps significantly (at the cost of a little
7849 # extra space).
7850 freebsd2.2*)
7851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7852 hardcode_libdir_flag_spec='-R$libdir'
7853 hardcode_direct=yes
7854 hardcode_shlibpath_var=no
7857 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7858 freebsd2*)
7859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7860 hardcode_direct=yes
7861 hardcode_minus_L=yes
7862 hardcode_shlibpath_var=no
7865 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7866 freebsd* | dragonfly*)
7867 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7868 hardcode_libdir_flag_spec='-R$libdir'
7869 hardcode_direct=yes
7870 hardcode_shlibpath_var=no
7873 hpux9*)
7874 if test "$GCC" = yes; then
7875 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'
7876 else
7877 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'
7879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7880 hardcode_libdir_separator=:
7881 hardcode_direct=yes
7883 # hardcode_minus_L: Not really in the search PATH,
7884 # but as the default location of the library.
7885 hardcode_minus_L=yes
7886 export_dynamic_flag_spec='${wl}-E'
7889 hpux10*)
7890 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7891 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7892 else
7893 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7895 if test "$with_gnu_ld" = no; then
7896 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7897 hardcode_libdir_flag_spec_ld='+b $libdir'
7898 hardcode_libdir_separator=:
7899 hardcode_direct=yes
7900 hardcode_direct_absolute=yes
7901 export_dynamic_flag_spec='${wl}-E'
7902 # hardcode_minus_L: Not really in the search PATH,
7903 # but as the default location of the library.
7904 hardcode_minus_L=yes
7908 hpux11*)
7909 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7910 case $host_cpu in
7911 hppa*64*)
7912 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7914 ia64*)
7915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7918 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7920 esac
7921 else
7922 case $host_cpu in
7923 hppa*64*)
7924 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7926 ia64*)
7927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7930 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7932 esac
7934 if test "$with_gnu_ld" = no; then
7935 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7936 hardcode_libdir_separator=:
7938 case $host_cpu in
7939 hppa*64*|ia64*)
7940 hardcode_direct=no
7941 hardcode_shlibpath_var=no
7944 hardcode_direct=yes
7945 hardcode_direct_absolute=yes
7946 export_dynamic_flag_spec='${wl}-E'
7948 # hardcode_minus_L: Not really in the search PATH,
7949 # but as the default location of the library.
7950 hardcode_minus_L=yes
7952 esac
7956 irix5* | irix6* | nonstopux*)
7957 if test "$GCC" = yes; then
7958 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'
7959 # Try to use the -exported_symbol ld option, if it does not
7960 # work, assume that -exports_file does not work either and
7961 # implicitly export all symbols.
7962 save_LDFLAGS="$LDFLAGS"
7963 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 int foo(void) {}
7967 _ACEOF
7968 if ac_fn_c_try_link "$LINENO"; then :
7969 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'
7972 rm -f core conftest.err conftest.$ac_objext \
7973 conftest$ac_exeext conftest.$ac_ext
7974 LDFLAGS="$save_LDFLAGS"
7975 else
7976 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'
7977 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'
7979 archive_cmds_need_lc='no'
7980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7981 hardcode_libdir_separator=:
7982 inherit_rpath=yes
7983 link_all_deplibs=yes
7986 netbsd*)
7987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7988 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7989 else
7990 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7992 hardcode_libdir_flag_spec='-R$libdir'
7993 hardcode_direct=yes
7994 hardcode_shlibpath_var=no
7997 newsos6)
7998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7999 hardcode_direct=yes
8000 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8001 hardcode_libdir_separator=:
8002 hardcode_shlibpath_var=no
8005 *nto* | *qnx*)
8008 openbsd*)
8009 if test -f /usr/libexec/ld.so; then
8010 hardcode_direct=yes
8011 hardcode_shlibpath_var=no
8012 hardcode_direct_absolute=yes
8013 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8015 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8017 export_dynamic_flag_spec='${wl}-E'
8018 else
8019 case $host_os in
8020 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8022 hardcode_libdir_flag_spec='-R$libdir'
8025 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8026 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8028 esac
8030 else
8031 ld_shlibs=no
8035 os2*)
8036 hardcode_libdir_flag_spec='-L$libdir'
8037 hardcode_minus_L=yes
8038 allow_undefined_flag=unsupported
8039 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'
8040 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8043 osf3*)
8044 if test "$GCC" = yes; then
8045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8046 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'
8047 else
8048 allow_undefined_flag=' -expect_unresolved \*'
8049 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'
8051 archive_cmds_need_lc='no'
8052 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8053 hardcode_libdir_separator=:
8056 osf4* | osf5*) # as osf3* with the addition of -msym flag
8057 if test "$GCC" = yes; then
8058 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8059 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'
8060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8061 else
8062 allow_undefined_flag=' -expect_unresolved \*'
8063 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'
8064 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~
8065 $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'
8067 # Both c and cxx compiler support -rpath directly
8068 hardcode_libdir_flag_spec='-rpath $libdir'
8070 archive_cmds_need_lc='no'
8071 hardcode_libdir_separator=:
8074 solaris*)
8075 no_undefined_flag=' -z defs'
8076 if test "$GCC" = yes; then
8077 wlarc='${wl}'
8078 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8080 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8081 else
8082 case `$CC -V 2>&1` in
8083 *"Compilers 5.0"*)
8084 wlarc=''
8085 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8086 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8087 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8090 wlarc='${wl}'
8091 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8092 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8093 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8095 esac
8097 hardcode_libdir_flag_spec='-R$libdir'
8098 hardcode_shlibpath_var=no
8099 case $host_os in
8100 solaris2.[0-5] | solaris2.[0-5].*) ;;
8102 # The compiler driver will combine and reorder linker options,
8103 # but understands `-z linker_flag'. GCC discards it without `$wl',
8104 # but is careful enough not to reorder.
8105 # Supported since Solaris 2.6 (maybe 2.5.1?)
8106 if test "$GCC" = yes; then
8107 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8108 else
8109 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8112 esac
8113 link_all_deplibs=yes
8116 sunos4*)
8117 if test "x$host_vendor" = xsequent; then
8118 # Use $CC to link under sequent, because it throws in some extra .o
8119 # files that make .init and .fini sections work.
8120 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8121 else
8122 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8124 hardcode_libdir_flag_spec='-L$libdir'
8125 hardcode_direct=yes
8126 hardcode_minus_L=yes
8127 hardcode_shlibpath_var=no
8130 sysv4)
8131 case $host_vendor in
8132 sni)
8133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_direct=yes # is this really true???
8136 siemens)
8137 ## LD is ld it makes a PLAMLIB
8138 ## CC just makes a GrossModule.
8139 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8140 reload_cmds='$CC -r -o $output$reload_objs'
8141 hardcode_direct=no
8143 motorola)
8144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8147 esac
8148 runpath_var='LD_RUN_PATH'
8149 hardcode_shlibpath_var=no
8152 sysv4.3*)
8153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8154 hardcode_shlibpath_var=no
8155 export_dynamic_flag_spec='-Bexport'
8158 sysv4*MP*)
8159 if test -d /usr/nec; then
8160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_shlibpath_var=no
8162 runpath_var=LD_RUN_PATH
8163 hardcode_runpath_var=yes
8164 ld_shlibs=yes
8168 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8169 no_undefined_flag='${wl}-z,text'
8170 archive_cmds_need_lc=no
8171 hardcode_shlibpath_var=no
8172 runpath_var='LD_RUN_PATH'
8174 if test "$GCC" = yes; then
8175 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8177 else
8178 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8179 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8183 sysv5* | sco3.2v5* | sco5v6*)
8184 # Note: We can NOT use -z defs as we might desire, because we do not
8185 # link with -lc, and that would cause any symbols used from libc to
8186 # always be unresolved, which means just about no library would
8187 # ever link correctly. If we're not using GNU ld we use -z text
8188 # though, which does catch some bad symbols but isn't as heavy-handed
8189 # as -z defs.
8190 no_undefined_flag='${wl}-z,text'
8191 allow_undefined_flag='${wl}-z,nodefs'
8192 archive_cmds_need_lc=no
8193 hardcode_shlibpath_var=no
8194 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8195 hardcode_libdir_separator=':'
8196 link_all_deplibs=yes
8197 export_dynamic_flag_spec='${wl}-Bexport'
8198 runpath_var='LD_RUN_PATH'
8200 if test "$GCC" = yes; then
8201 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8202 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8203 else
8204 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8205 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8209 uts4*)
8210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_libdir_flag_spec='-L$libdir'
8212 hardcode_shlibpath_var=no
8216 ld_shlibs=no
8218 esac
8220 if test x$host_vendor = xsni; then
8221 case $host in
8222 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8223 export_dynamic_flag_spec='${wl}-Blargedynsym'
8225 esac
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8230 $as_echo "$ld_shlibs" >&6; }
8231 test "$ld_shlibs" = no && can_build_shared=no
8233 with_gnu_ld=$with_gnu_ld
8250 # Do we need to explicitly link libc?
8252 case "x$archive_cmds_need_lc" in
8253 x|xyes)
8254 # Assume -lc should be added
8255 archive_cmds_need_lc=yes
8257 if test "$enable_shared" = yes && test "$GCC" = yes; then
8258 case $archive_cmds in
8259 *'~'*)
8260 # FIXME: we may have to deal with multi-command sequences.
8262 '$CC '*)
8263 # Test whether the compiler implicitly links with -lc since on some
8264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8265 # to ld, don't add -lc before -lgcc.
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8267 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8268 $RM conftest*
8269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8272 (eval $ac_compile) 2>&5
8273 ac_status=$?
8274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8275 test $ac_status = 0; } 2>conftest.err; then
8276 soname=conftest
8277 lib=conftest
8278 libobjs=conftest.$ac_objext
8279 deplibs=
8280 wl=$lt_prog_compiler_wl
8281 pic_flag=$lt_prog_compiler_pic
8282 compiler_flags=-v
8283 linker_flags=-v
8284 verstring=
8285 output_objdir=.
8286 libname=conftest
8287 lt_save_allow_undefined_flag=$allow_undefined_flag
8288 allow_undefined_flag=
8289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8290 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8291 ac_status=$?
8292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8293 test $ac_status = 0; }
8294 then
8295 archive_cmds_need_lc=no
8296 else
8297 archive_cmds_need_lc=yes
8299 allow_undefined_flag=$lt_save_allow_undefined_flag
8300 else
8301 cat conftest.err 1>&5
8303 $RM conftest*
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8305 $as_echo "$archive_cmds_need_lc" >&6; }
8307 esac
8310 esac
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8469 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8471 if test "$GCC" = yes; then
8472 case $host_os in
8473 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8474 *) lt_awk_arg="/^libraries:/" ;;
8475 esac
8476 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8477 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8478 # if the path contains ";" then we assume it to be the separator
8479 # otherwise default to the standard path separator (i.e. ":") - it is
8480 # assumed that no part of a normal pathname contains ";" but that should
8481 # okay in the real world where ";" in dirpaths is itself problematic.
8482 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8483 else
8484 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8486 # Ok, now we have the path, separated by spaces, we can step through it
8487 # and add multilib dir if necessary.
8488 lt_tmp_lt_search_path_spec=
8489 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8490 for lt_sys_path in $lt_search_path_spec; do
8491 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8493 else
8494 test -d "$lt_sys_path" && \
8495 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8497 done
8498 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8499 BEGIN {RS=" "; FS="/|\n";} {
8500 lt_foo="";
8501 lt_count=0;
8502 for (lt_i = NF; lt_i > 0; lt_i--) {
8503 if ($lt_i != "" && $lt_i != ".") {
8504 if ($lt_i == "..") {
8505 lt_count++;
8506 } else {
8507 if (lt_count == 0) {
8508 lt_foo="/" $lt_i lt_foo;
8509 } else {
8510 lt_count--;
8515 if (lt_foo != "") { lt_freq[lt_foo]++; }
8516 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8518 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8519 else
8520 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8522 library_names_spec=
8523 libname_spec='lib$name'
8524 soname_spec=
8525 shrext_cmds=".so"
8526 postinstall_cmds=
8527 postuninstall_cmds=
8528 finish_cmds=
8529 finish_eval=
8530 shlibpath_var=
8531 shlibpath_overrides_runpath=unknown
8532 version_type=none
8533 dynamic_linker="$host_os ld.so"
8534 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8535 need_lib_prefix=unknown
8536 hardcode_into_libs=no
8538 # when you set need_version to no, make sure it does not cause -set_version
8539 # flags to be left without arguments
8540 need_version=unknown
8542 case $host_os in
8543 aix3*)
8544 version_type=linux
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8546 shlibpath_var=LIBPATH
8548 # AIX 3 has no versioning support, so we append a major version to the name.
8549 soname_spec='${libname}${release}${shared_ext}$major'
8552 aix[4-9]*)
8553 version_type=linux
8554 need_lib_prefix=no
8555 need_version=no
8556 hardcode_into_libs=yes
8557 if test "$host_cpu" = ia64; then
8558 # AIX 5 supports IA64
8559 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8560 shlibpath_var=LD_LIBRARY_PATH
8561 else
8562 # With GCC up to 2.95.x, collect2 would create an import file
8563 # for dependence libraries. The import file would start with
8564 # the line `#! .'. This would cause the generated library to
8565 # depend on `.', always an invalid library. This was fixed in
8566 # development snapshots of GCC prior to 3.0.
8567 case $host_os in
8568 aix4 | aix4.[01] | aix4.[01].*)
8569 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8570 echo ' yes '
8571 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8573 else
8574 can_build_shared=no
8577 esac
8578 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8579 # soname into executable. Probably we can add versioning support to
8580 # collect2, so additional links can be useful in future.
8581 if test "$aix_use_runtimelinking" = yes; then
8582 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8583 # instead of lib<name>.a to let people know that these are not
8584 # typical AIX shared libraries.
8585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586 else
8587 # We preserve .a as extension for shared libraries through AIX4.2
8588 # and later when we are not doing run time linking.
8589 library_names_spec='${libname}${release}.a $libname.a'
8590 soname_spec='${libname}${release}${shared_ext}$major'
8592 shlibpath_var=LIBPATH
8596 amigaos*)
8597 case $host_cpu in
8598 powerpc)
8599 # Since July 2007 AmigaOS4 officially supports .so libraries.
8600 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8603 m68k)
8604 library_names_spec='$libname.ixlibrary $libname.a'
8605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8606 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'
8608 esac
8611 beos*)
8612 library_names_spec='${libname}${shared_ext}'
8613 dynamic_linker="$host_os ld.so"
8614 shlibpath_var=LIBRARY_PATH
8617 bsdi[45]*)
8618 version_type=linux
8619 need_version=no
8620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8621 soname_spec='${libname}${release}${shared_ext}$major'
8622 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8623 shlibpath_var=LD_LIBRARY_PATH
8624 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8625 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8626 # the default ld.so.conf also contains /usr/contrib/lib and
8627 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8628 # libtool to hard-code these into programs
8631 cygwin* | mingw* | pw32* | cegcc*)
8632 version_type=windows
8633 shrext_cmds=".dll"
8634 need_version=no
8635 need_lib_prefix=no
8637 case $GCC,$host_os in
8638 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8639 library_names_spec='$libname.dll.a'
8640 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8641 postinstall_cmds='base_file=`basename \${file}`~
8642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8643 dldir=$destdir/`dirname \$dlpath`~
8644 test -d \$dldir || mkdir -p \$dldir~
8645 $install_prog $dir/$dlname \$dldir/$dlname~
8646 chmod a+x \$dldir/$dlname~
8647 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8648 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8650 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8651 dlpath=$dir/\$dldll~
8652 $RM \$dlpath'
8653 shlibpath_overrides_runpath=yes
8655 case $host_os in
8656 cygwin*)
8657 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8658 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8659 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8661 mingw* | cegcc*)
8662 # MinGW DLLs use traditional 'lib' prefix
8663 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8664 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8665 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8666 # It is most probably a Windows format PATH printed by
8667 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8668 # path with ; separators, and with drive letters. We can handle the
8669 # drive letters (cygwin fileutils understands them), so leave them,
8670 # especially as we might pass files found there to a mingw objdump,
8671 # which wouldn't understand a cygwinified path. Ahh.
8672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8673 else
8674 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8677 pw32*)
8678 # pw32 DLLs use 'pw' prefix rather than 'lib'
8679 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8681 esac
8685 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8687 esac
8688 dynamic_linker='Win32 ld.exe'
8689 # FIXME: first we should search . and the directory the executable is in
8690 shlibpath_var=PATH
8693 darwin* | rhapsody*)
8694 dynamic_linker="$host_os dyld"
8695 version_type=darwin
8696 need_lib_prefix=no
8697 need_version=no
8698 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8699 soname_spec='${libname}${release}${major}$shared_ext'
8700 shlibpath_overrides_runpath=yes
8701 shlibpath_var=DYLD_LIBRARY_PATH
8702 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8704 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8705 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8708 dgux*)
8709 version_type=linux
8710 need_lib_prefix=no
8711 need_version=no
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8713 soname_spec='${libname}${release}${shared_ext}$major'
8714 shlibpath_var=LD_LIBRARY_PATH
8717 freebsd1*)
8718 dynamic_linker=no
8721 freebsd* | dragonfly*)
8722 # DragonFly does not have aout. When/if they implement a new
8723 # versioning mechanism, adjust this.
8724 if test -x /usr/bin/objformat; then
8725 objformat=`/usr/bin/objformat`
8726 else
8727 case $host_os in
8728 freebsd[123]*) objformat=aout ;;
8729 *) objformat=elf ;;
8730 esac
8732 # Handle Gentoo/FreeBSD as it was Linux
8733 case $host_vendor in
8734 gentoo)
8735 version_type=linux ;;
8737 version_type=freebsd-$objformat ;;
8738 esac
8740 case $version_type in
8741 freebsd-elf*)
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8743 need_version=no
8744 need_lib_prefix=no
8746 freebsd-*)
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8748 need_version=yes
8750 linux)
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 need_lib_prefix=no
8754 need_version=no
8756 esac
8757 shlibpath_var=LD_LIBRARY_PATH
8758 case $host_os in
8759 freebsd2*)
8760 shlibpath_overrides_runpath=yes
8762 freebsd3.[01]* | freebsdelf3.[01]*)
8763 shlibpath_overrides_runpath=yes
8764 hardcode_into_libs=yes
8766 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8767 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8768 shlibpath_overrides_runpath=no
8769 hardcode_into_libs=yes
8771 *) # from 4.6 on, and DragonFly
8772 shlibpath_overrides_runpath=yes
8773 hardcode_into_libs=yes
8775 esac
8778 gnu*)
8779 version_type=linux
8780 need_lib_prefix=no
8781 need_version=no
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8783 soname_spec='${libname}${release}${shared_ext}$major'
8784 shlibpath_var=LD_LIBRARY_PATH
8785 hardcode_into_libs=yes
8788 hpux9* | hpux10* | hpux11*)
8789 # Give a soname corresponding to the major version so that dld.sl refuses to
8790 # link against other versions.
8791 version_type=sunos
8792 need_lib_prefix=no
8793 need_version=no
8794 case $host_cpu in
8795 ia64*)
8796 shrext_cmds='.so'
8797 hardcode_into_libs=yes
8798 dynamic_linker="$host_os dld.so"
8799 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 if test "X$HPUX_IA64_MODE" = X32; then
8804 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8805 else
8806 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810 hppa*64*)
8811 shrext_cmds='.sl'
8812 hardcode_into_libs=yes
8813 dynamic_linker="$host_os dld.sl"
8814 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8822 shrext_cmds='.sl'
8823 dynamic_linker="$host_os dld.sl"
8824 shlibpath_var=SHLIB_PATH
8825 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8829 esac
8830 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8831 postinstall_cmds='chmod 555 $lib'
8834 interix[3-9]*)
8835 version_type=linux
8836 need_lib_prefix=no
8837 need_version=no
8838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8839 soname_spec='${libname}${release}${shared_ext}$major'
8840 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8841 shlibpath_var=LD_LIBRARY_PATH
8842 shlibpath_overrides_runpath=no
8843 hardcode_into_libs=yes
8846 irix5* | irix6* | nonstopux*)
8847 case $host_os in
8848 nonstopux*) version_type=nonstopux ;;
8850 if test "$lt_cv_prog_gnu_ld" = yes; then
8851 version_type=linux
8852 else
8853 version_type=irix
8854 fi ;;
8855 esac
8856 need_lib_prefix=no
8857 need_version=no
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8860 case $host_os in
8861 irix5* | nonstopux*)
8862 libsuff= shlibsuff=
8865 case $LD in # libtool.m4 will add one of these switches to LD
8866 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8867 libsuff= shlibsuff= libmagic=32-bit;;
8868 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8869 libsuff=32 shlibsuff=N32 libmagic=N32;;
8870 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8871 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8872 *) libsuff= shlibsuff= libmagic=never-match;;
8873 esac
8875 esac
8876 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8877 shlibpath_overrides_runpath=no
8878 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8879 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8880 hardcode_into_libs=yes
8883 # No shared lib support for Linux oldld, aout, or coff.
8884 linux*oldld* | linux*aout* | linux*coff*)
8885 dynamic_linker=no
8888 # This must be Linux ELF.
8889 linux* | k*bsd*-gnu)
8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8896 shlibpath_var=LD_LIBRARY_PATH
8897 shlibpath_overrides_runpath=no
8898 # Some binutils ld are patched to set DT_RUNPATH
8899 save_LDFLAGS=$LDFLAGS
8900 save_libdir=$libdir
8901 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8902 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8907 main ()
8911 return 0;
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"; then :
8915 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8916 shlibpath_overrides_runpath=yes
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 LDFLAGS=$save_LDFLAGS
8922 libdir=$save_libdir
8924 # This implies no fast_install, which is unacceptable.
8925 # Some rework will be needed to allow for fast_install
8926 # before this can be enabled.
8927 hardcode_into_libs=yes
8929 # Append ld.so.conf contents to the search path
8930 if test -f /etc/ld.so.conf; then
8931 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' ' '`
8932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8935 # We used to test for /lib/ld.so.1 and disable shared libraries on
8936 # powerpc, because MkLinux only supported shared libraries with the
8937 # GNU dynamic linker. Since this was broken with cross compilers,
8938 # most powerpc-linux boxes support dynamic linking these days and
8939 # people can always --disable-shared, the test was removed, and we
8940 # assume the GNU/Linux dynamic linker is in use.
8941 dynamic_linker='GNU/Linux ld.so'
8944 netbsd*)
8945 version_type=sunos
8946 need_lib_prefix=no
8947 need_version=no
8948 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8951 dynamic_linker='NetBSD (a.out) ld.so'
8952 else
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 dynamic_linker='NetBSD ld.elf_so'
8957 shlibpath_var=LD_LIBRARY_PATH
8958 shlibpath_overrides_runpath=yes
8959 hardcode_into_libs=yes
8962 newsos6)
8963 version_type=linux
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 shlibpath_overrides_runpath=yes
8969 *nto* | *qnx*)
8970 version_type=qnx
8971 need_lib_prefix=no
8972 need_version=no
8973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8974 soname_spec='${libname}${release}${shared_ext}$major'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=no
8977 hardcode_into_libs=yes
8978 dynamic_linker='ldqnx.so'
8981 openbsd*)
8982 version_type=sunos
8983 sys_lib_dlsearch_path_spec="/usr/lib"
8984 need_lib_prefix=no
8985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8986 case $host_os in
8987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8988 *) need_version=no ;;
8989 esac
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8994 case $host_os in
8995 openbsd2.[89] | openbsd2.[89].*)
8996 shlibpath_overrides_runpath=no
8999 shlibpath_overrides_runpath=yes
9001 esac
9002 else
9003 shlibpath_overrides_runpath=yes
9007 os2*)
9008 libname_spec='$name'
9009 shrext_cmds=".dll"
9010 need_lib_prefix=no
9011 library_names_spec='$libname${shared_ext} $libname.a'
9012 dynamic_linker='OS/2 ld.exe'
9013 shlibpath_var=LIBPATH
9016 osf3* | osf4* | osf5*)
9017 version_type=osf
9018 need_lib_prefix=no
9019 need_version=no
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9027 rdos*)
9028 dynamic_linker=no
9031 solaris*)
9032 version_type=linux
9033 need_lib_prefix=no
9034 need_version=no
9035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9036 soname_spec='${libname}${release}${shared_ext}$major'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 hardcode_into_libs=yes
9040 # ldd complains unless libraries are executable
9041 postinstall_cmds='chmod +x $lib'
9044 sunos4*)
9045 version_type=sunos
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9047 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes
9050 if test "$with_gnu_ld" = yes; then
9051 need_lib_prefix=no
9053 need_version=yes
9056 sysv4 | sysv4.3*)
9057 version_type=linux
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 case $host_vendor in
9062 sni)
9063 shlibpath_overrides_runpath=no
9064 need_lib_prefix=no
9065 runpath_var=LD_RUN_PATH
9067 siemens)
9068 need_lib_prefix=no
9070 motorola)
9071 need_lib_prefix=no
9072 need_version=no
9073 shlibpath_overrides_runpath=no
9074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9076 esac
9079 sysv4*MP*)
9080 if test -d /usr/nec ;then
9081 version_type=linux
9082 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9083 soname_spec='$libname${shared_ext}.$major'
9084 shlibpath_var=LD_LIBRARY_PATH
9088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9089 version_type=freebsd-elf
9090 need_lib_prefix=no
9091 need_version=no
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath=yes
9096 hardcode_into_libs=yes
9097 if test "$with_gnu_ld" = yes; then
9098 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9099 else
9100 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9101 case $host_os in
9102 sco3.2v5*)
9103 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9105 esac
9107 sys_lib_dlsearch_path_spec='/usr/lib'
9110 tpf*)
9111 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 shlibpath_var=LD_LIBRARY_PATH
9117 shlibpath_overrides_runpath=no
9118 hardcode_into_libs=yes
9121 uts4*)
9122 version_type=linux
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9129 dynamic_linker=no
9131 esac
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9133 $as_echo "$dynamic_linker" >&6; }
9134 test "$dynamic_linker" = no && can_build_shared=no
9136 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9137 if test "$GCC" = yes; then
9138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9141 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9142 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9144 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9145 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9236 hardcode_action=
9237 if test -n "$hardcode_libdir_flag_spec" ||
9238 test -n "$runpath_var" ||
9239 test "X$hardcode_automatic" = "Xyes" ; then
9241 # We can hardcode non-existent directories.
9242 if test "$hardcode_direct" != no &&
9243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9244 # have to relink, otherwise we might link with an installed library
9245 # when we should be linking with a yet-to-be-installed one
9246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9247 test "$hardcode_minus_L" != no; then
9248 # Linking always hardcodes the temporary library directory.
9249 hardcode_action=relink
9250 else
9251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9252 hardcode_action=immediate
9254 else
9255 # We cannot hardcode anything, or else we can only hardcode existing
9256 # directories.
9257 hardcode_action=unsupported
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9260 $as_echo "$hardcode_action" >&6; }
9262 if test "$hardcode_action" = relink ||
9263 test "$inherit_rpath" = yes; then
9264 # Fast installation is not supported
9265 enable_fast_install=no
9266 elif test "$shlibpath_overrides_runpath" = yes ||
9267 test "$enable_shared" = no; then
9268 # Fast installation is not necessary
9269 enable_fast_install=needless
9277 if test "x$enable_dlopen" != xyes; then
9278 enable_dlopen=unknown
9279 enable_dlopen_self=unknown
9280 enable_dlopen_self_static=unknown
9281 else
9282 lt_cv_dlopen=no
9283 lt_cv_dlopen_libs=
9285 case $host_os in
9286 beos*)
9287 lt_cv_dlopen="load_add_on"
9288 lt_cv_dlopen_libs=
9289 lt_cv_dlopen_self=yes
9292 mingw* | pw32* | cegcc*)
9293 lt_cv_dlopen="LoadLibrary"
9294 lt_cv_dlopen_libs=
9297 cygwin*)
9298 lt_cv_dlopen="dlopen"
9299 lt_cv_dlopen_libs=
9302 darwin*)
9303 # if libdl is installed we need to link against it
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9306 if ${ac_cv_lib_dl_dlopen+:} false; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 ac_check_lib_save_LIBS=$LIBS
9310 LIBS="-ldl $LIBS"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9317 #ifdef __cplusplus
9318 extern "C"
9319 #endif
9320 char dlopen ();
9322 main ()
9324 return dlopen ();
9326 return 0;
9328 _ACEOF
9329 if ac_fn_c_try_link "$LINENO"; then :
9330 ac_cv_lib_dl_dlopen=yes
9331 else
9332 ac_cv_lib_dl_dlopen=no
9334 rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 LIBS=$ac_check_lib_save_LIBS
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9342 else
9344 lt_cv_dlopen="dyld"
9345 lt_cv_dlopen_libs=
9346 lt_cv_dlopen_self=yes
9353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9354 if test "x$ac_cv_func_shl_load" = xyes; then :
9355 lt_cv_dlopen="shl_load"
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9359 if ${ac_cv_lib_dld_shl_load+:} false; then :
9360 $as_echo_n "(cached) " >&6
9361 else
9362 ac_check_lib_save_LIBS=$LIBS
9363 LIBS="-ldld $LIBS"
9364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9365 /* end confdefs.h. */
9367 /* Override any GCC internal prototype to avoid an error.
9368 Use char because int might match the return type of a GCC
9369 builtin and then its argument prototype would still apply. */
9370 #ifdef __cplusplus
9371 extern "C"
9372 #endif
9373 char shl_load ();
9375 main ()
9377 return shl_load ();
9379 return 0;
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383 ac_cv_lib_dld_shl_load=yes
9384 else
9385 ac_cv_lib_dld_shl_load=no
9387 rm -f core conftest.err conftest.$ac_objext \
9388 conftest$ac_exeext conftest.$ac_ext
9389 LIBS=$ac_check_lib_save_LIBS
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9394 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9395 else
9396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9397 if test "x$ac_cv_func_dlopen" = xyes; then :
9398 lt_cv_dlopen="dlopen"
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9402 if ${ac_cv_lib_dl_dlopen+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 ac_check_lib_save_LIBS=$LIBS
9406 LIBS="-ldl $LIBS"
9407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h. */
9410 /* Override any GCC internal prototype to avoid an error.
9411 Use char because int might match the return type of a GCC
9412 builtin and then its argument prototype would still apply. */
9413 #ifdef __cplusplus
9414 extern "C"
9415 #endif
9416 char dlopen ();
9418 main ()
9420 return dlopen ();
9422 return 0;
9424 _ACEOF
9425 if ac_fn_c_try_link "$LINENO"; then :
9426 ac_cv_lib_dl_dlopen=yes
9427 else
9428 ac_cv_lib_dl_dlopen=no
9430 rm -f core conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 LIBS=$ac_check_lib_save_LIBS
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9438 else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9441 if ${ac_cv_lib_svld_dlopen+:} false; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-lsvld $LIBS"
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9449 /* Override any GCC internal prototype to avoid an error.
9450 Use char because int might match the return type of a GCC
9451 builtin and then its argument prototype would still apply. */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 char dlopen ();
9457 main ()
9459 return dlopen ();
9461 return 0;
9463 _ACEOF
9464 if ac_fn_c_try_link "$LINENO"; then :
9465 ac_cv_lib_svld_dlopen=yes
9466 else
9467 ac_cv_lib_svld_dlopen=no
9469 rm -f core conftest.err conftest.$ac_objext \
9470 conftest$ac_exeext conftest.$ac_ext
9471 LIBS=$ac_check_lib_save_LIBS
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9477 else
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9480 if ${ac_cv_lib_dld_dld_link+:} false; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 ac_check_lib_save_LIBS=$LIBS
9484 LIBS="-ldld $LIBS"
9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9486 /* end confdefs.h. */
9488 /* Override any GCC internal prototype to avoid an error.
9489 Use char because int might match the return type of a GCC
9490 builtin and then its argument prototype would still apply. */
9491 #ifdef __cplusplus
9492 extern "C"
9493 #endif
9494 char dld_link ();
9496 main ()
9498 return dld_link ();
9500 return 0;
9502 _ACEOF
9503 if ac_fn_c_try_link "$LINENO"; then :
9504 ac_cv_lib_dld_dld_link=yes
9505 else
9506 ac_cv_lib_dld_dld_link=no
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 LIBS=$ac_check_lib_save_LIBS
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9534 esac
9536 if test "x$lt_cv_dlopen" != xno; then
9537 enable_dlopen=yes
9538 else
9539 enable_dlopen=no
9542 case $lt_cv_dlopen in
9543 dlopen)
9544 save_CPPFLAGS="$CPPFLAGS"
9545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9547 save_LDFLAGS="$LDFLAGS"
9548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9550 save_LIBS="$LIBS"
9551 LIBS="$lt_cv_dlopen_libs $LIBS"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9555 if ${lt_cv_dlopen_self+:} false; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 if test "$cross_compiling" = yes; then :
9559 lt_cv_dlopen_self=cross
9560 else
9561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9562 lt_status=$lt_dlunknown
9563 cat > conftest.$ac_ext <<_LT_EOF
9564 #line 9564 "configure"
9565 #include "confdefs.h"
9567 #if HAVE_DLFCN_H
9568 #include <dlfcn.h>
9569 #endif
9571 #include <stdio.h>
9573 #ifdef RTLD_GLOBAL
9574 # define LT_DLGLOBAL RTLD_GLOBAL
9575 #else
9576 # ifdef DL_GLOBAL
9577 # define LT_DLGLOBAL DL_GLOBAL
9578 # else
9579 # define LT_DLGLOBAL 0
9580 # endif
9581 #endif
9583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9584 find out it does not work in some platform. */
9585 #ifndef LT_DLLAZY_OR_NOW
9586 # ifdef RTLD_LAZY
9587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9588 # else
9589 # ifdef DL_LAZY
9590 # define LT_DLLAZY_OR_NOW DL_LAZY
9591 # else
9592 # ifdef RTLD_NOW
9593 # define LT_DLLAZY_OR_NOW RTLD_NOW
9594 # else
9595 # ifdef DL_NOW
9596 # define LT_DLLAZY_OR_NOW DL_NOW
9597 # else
9598 # define LT_DLLAZY_OR_NOW 0
9599 # endif
9600 # endif
9601 # endif
9602 # endif
9603 #endif
9605 void fnord() { int i=42;}
9606 int main ()
9608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9609 int status = $lt_dlunknown;
9611 if (self)
9613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9615 /* dlclose (self); */
9617 else
9618 puts (dlerror ());
9620 return status;
9622 _LT_EOF
9623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9624 (eval $ac_link) 2>&5
9625 ac_status=$?
9626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9627 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9628 (./conftest; exit; ) >&5 2>/dev/null
9629 lt_status=$?
9630 case x$lt_status in
9631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9633 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9634 esac
9635 else :
9636 # compilation failed
9637 lt_cv_dlopen_self=no
9640 rm -fr conftest*
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9645 $as_echo "$lt_cv_dlopen_self" >&6; }
9647 if test "x$lt_cv_dlopen_self" = xyes; then
9648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9650 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9651 if ${lt_cv_dlopen_self_static+:} false; then :
9652 $as_echo_n "(cached) " >&6
9653 else
9654 if test "$cross_compiling" = yes; then :
9655 lt_cv_dlopen_self_static=cross
9656 else
9657 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9658 lt_status=$lt_dlunknown
9659 cat > conftest.$ac_ext <<_LT_EOF
9660 #line 9660 "configure"
9661 #include "confdefs.h"
9663 #if HAVE_DLFCN_H
9664 #include <dlfcn.h>
9665 #endif
9667 #include <stdio.h>
9669 #ifdef RTLD_GLOBAL
9670 # define LT_DLGLOBAL RTLD_GLOBAL
9671 #else
9672 # ifdef DL_GLOBAL
9673 # define LT_DLGLOBAL DL_GLOBAL
9674 # else
9675 # define LT_DLGLOBAL 0
9676 # endif
9677 #endif
9679 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9680 find out it does not work in some platform. */
9681 #ifndef LT_DLLAZY_OR_NOW
9682 # ifdef RTLD_LAZY
9683 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9684 # else
9685 # ifdef DL_LAZY
9686 # define LT_DLLAZY_OR_NOW DL_LAZY
9687 # else
9688 # ifdef RTLD_NOW
9689 # define LT_DLLAZY_OR_NOW RTLD_NOW
9690 # else
9691 # ifdef DL_NOW
9692 # define LT_DLLAZY_OR_NOW DL_NOW
9693 # else
9694 # define LT_DLLAZY_OR_NOW 0
9695 # endif
9696 # endif
9697 # endif
9698 # endif
9699 #endif
9701 void fnord() { int i=42;}
9702 int main ()
9704 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9705 int status = $lt_dlunknown;
9707 if (self)
9709 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9710 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9711 /* dlclose (self); */
9713 else
9714 puts (dlerror ());
9716 return status;
9718 _LT_EOF
9719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9720 (eval $ac_link) 2>&5
9721 ac_status=$?
9722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9723 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9724 (./conftest; exit; ) >&5 2>/dev/null
9725 lt_status=$?
9726 case x$lt_status in
9727 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9728 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9729 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9730 esac
9731 else :
9732 # compilation failed
9733 lt_cv_dlopen_self_static=no
9736 rm -fr conftest*
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9741 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9744 CPPFLAGS="$save_CPPFLAGS"
9745 LDFLAGS="$save_LDFLAGS"
9746 LIBS="$save_LIBS"
9748 esac
9750 case $lt_cv_dlopen_self in
9751 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9752 *) enable_dlopen_self=unknown ;;
9753 esac
9755 case $lt_cv_dlopen_self_static in
9756 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9757 *) enable_dlopen_self_static=unknown ;;
9758 esac
9777 striplib=
9778 old_striplib=
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9780 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9781 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9782 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9783 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9785 $as_echo "yes" >&6; }
9786 else
9787 # FIXME - insert some real tests, host_os isn't really good enough
9788 case $host_os in
9789 darwin*)
9790 if test -n "$STRIP" ; then
9791 striplib="$STRIP -x"
9792 old_striplib="$STRIP -S"
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9794 $as_echo "yes" >&6; }
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797 $as_echo "no" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9804 esac
9818 # Report which library types will actually be built
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9820 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9822 $as_echo "$can_build_shared" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9825 $as_echo_n "checking whether to build shared libraries... " >&6; }
9826 test "$can_build_shared" = "no" && enable_shared=no
9828 # On AIX, shared libraries and static libraries use the same namespace, and
9829 # are all built from PIC.
9830 case $host_os in
9831 aix3*)
9832 test "$enable_shared" = yes && enable_static=no
9833 if test -n "$RANLIB"; then
9834 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9835 postinstall_cmds='$RANLIB $lib'
9839 aix[4-9]*)
9840 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9841 test "$enable_shared" = yes && enable_static=no
9844 esac
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9846 $as_echo "$enable_shared" >&6; }
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9849 $as_echo_n "checking whether to build static libraries... " >&6; }
9850 # Make sure either enable_shared or enable_static is yes.
9851 test "$enable_shared" = yes || enable_static=yes
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9853 $as_echo "$enable_static" >&6; }
9859 ac_ext=c
9860 ac_cpp='$CPP $CPPFLAGS'
9861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9865 CC="$lt_save_CC"
9879 ac_config_commands="$ac_config_commands libtool"
9884 # Only expand once:
9887 # Find a good install program. We prefer a C program (faster),
9888 # so one script is as good as another. But avoid the broken or
9889 # incompatible versions:
9890 # SysV /etc/install, /usr/sbin/install
9891 # SunOS /usr/etc/install
9892 # IRIX /sbin/install
9893 # AIX /bin/install
9894 # AmigaOS /C/install, which installs bootblocks on floppy discs
9895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9898 # OS/2's system install, which has a completely different semantic
9899 # ./install, which can be erroneously created by make from ./install.sh.
9900 # Reject install programs that cannot install multiple files.
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9902 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9903 if test -z "$INSTALL"; then
9904 if ${ac_cv_path_install+:} false; then :
9905 $as_echo_n "(cached) " >&6
9906 else
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
9912 # Account for people who put trailing slashes in PATH elements.
9913 case $as_dir/ in #((
9914 ./ | .// | /[cC]/* | \
9915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9916 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9917 /usr/ucb/* ) ;;
9919 # OSF1 and SCO ODT 3.0 have their own names for install.
9920 # Don't use installbsd from OSF since it installs stuff as root
9921 # by default.
9922 for ac_prog in ginstall scoinst install; do
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9925 if test $ac_prog = install &&
9926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9927 # AIX install. It has an incompatible calling convention.
9929 elif test $ac_prog = install &&
9930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9931 # program-specific install script used by HP pwplus--don't use.
9933 else
9934 rm -rf conftest.one conftest.two conftest.dir
9935 echo one > conftest.one
9936 echo two > conftest.two
9937 mkdir conftest.dir
9938 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9939 test -s conftest.one && test -s conftest.two &&
9940 test -s conftest.dir/conftest.one &&
9941 test -s conftest.dir/conftest.two
9942 then
9943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9944 break 3
9948 done
9949 done
9951 esac
9953 done
9954 IFS=$as_save_IFS
9956 rm -rf conftest.one conftest.two conftest.dir
9959 if test "${ac_cv_path_install+set}" = set; then
9960 INSTALL=$ac_cv_path_install
9961 else
9962 # As a last resort, use the slow shell script. Don't cache a
9963 # value for INSTALL within a source directory, because that will
9964 # break other packages using the cache if that directory is
9965 # removed, or if the value is a relative name.
9966 INSTALL=$ac_install_sh
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9970 $as_echo "$INSTALL" >&6; }
9972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9973 # It thinks the first close brace ends the variable substitution.
9974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9981 #########
9982 # Enable large file support (if special flags are necessary)
9984 # Check whether --enable-largefile was given.
9985 if test "${enable_largefile+set}" = set; then :
9986 enableval=$enable_largefile;
9989 if test "$enable_largefile" != no; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9992 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9993 if ${ac_cv_sys_largefile_CC+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 ac_cv_sys_largefile_CC=no
9997 if test "$GCC" != yes; then
9998 ac_save_CC=$CC
9999 while :; do
10000 # IRIX 6.2 and later do not support large files by default,
10001 # so use the C compiler's -n32 option if that helps.
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 #include <sys/types.h>
10005 /* Check that off_t can represent 2**63 - 1 correctly.
10006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10007 since some C++ compilers masquerading as C compilers
10008 incorrectly reject 9223372036854775807. */
10009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10011 && LARGE_OFF_T % 2147483647 == 1)
10012 ? 1 : -1];
10014 main ()
10018 return 0;
10020 _ACEOF
10021 if ac_fn_c_try_compile "$LINENO"; then :
10022 break
10024 rm -f core conftest.err conftest.$ac_objext
10025 CC="$CC -n32"
10026 if ac_fn_c_try_compile "$LINENO"; then :
10027 ac_cv_sys_largefile_CC=' -n32'; break
10029 rm -f core conftest.err conftest.$ac_objext
10030 break
10031 done
10032 CC=$ac_save_CC
10033 rm -f conftest.$ac_ext
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10037 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10038 if test "$ac_cv_sys_largefile_CC" != no; then
10039 CC=$CC$ac_cv_sys_largefile_CC
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10043 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10044 if ${ac_cv_sys_file_offset_bits+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 while :; do
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 #include <sys/types.h>
10051 /* Check that off_t can represent 2**63 - 1 correctly.
10052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10053 since some C++ compilers masquerading as C compilers
10054 incorrectly reject 9223372036854775807. */
10055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10057 && LARGE_OFF_T % 2147483647 == 1)
10058 ? 1 : -1];
10060 main ()
10064 return 0;
10066 _ACEOF
10067 if ac_fn_c_try_compile "$LINENO"; then :
10068 ac_cv_sys_file_offset_bits=no; break
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 #define _FILE_OFFSET_BITS 64
10074 #include <sys/types.h>
10075 /* Check that off_t can represent 2**63 - 1 correctly.
10076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10077 since some C++ compilers masquerading as C compilers
10078 incorrectly reject 9223372036854775807. */
10079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10081 && LARGE_OFF_T % 2147483647 == 1)
10082 ? 1 : -1];
10084 main ()
10088 return 0;
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 ac_cv_sys_file_offset_bits=64; break
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 ac_cv_sys_file_offset_bits=unknown
10096 break
10097 done
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10100 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10101 case $ac_cv_sys_file_offset_bits in #(
10102 no | unknown) ;;
10104 cat >>confdefs.h <<_ACEOF
10105 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10106 _ACEOF
10108 esac
10109 rm -rf conftest*
10110 if test $ac_cv_sys_file_offset_bits = unknown; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10112 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10113 if ${ac_cv_sys_large_files+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 while :; do
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 #include <sys/types.h>
10120 /* Check that off_t can represent 2**63 - 1 correctly.
10121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10122 since some C++ compilers masquerading as C compilers
10123 incorrectly reject 9223372036854775807. */
10124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10127 ? 1 : -1];
10129 main ()
10133 return 0;
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"; then :
10137 ac_cv_sys_large_files=no; break
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 #define _LARGE_FILES 1
10143 #include <sys/types.h>
10144 /* Check that off_t can represent 2**63 - 1 correctly.
10145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10146 since some C++ compilers masquerading as C compilers
10147 incorrectly reject 9223372036854775807. */
10148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10150 && LARGE_OFF_T % 2147483647 == 1)
10151 ? 1 : -1];
10153 main ()
10157 return 0;
10159 _ACEOF
10160 if ac_fn_c_try_compile "$LINENO"; then :
10161 ac_cv_sys_large_files=1; break
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 ac_cv_sys_large_files=unknown
10165 break
10166 done
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10169 $as_echo "$ac_cv_sys_large_files" >&6; }
10170 case $ac_cv_sys_large_files in #(
10171 no | unknown) ;;
10173 cat >>confdefs.h <<_ACEOF
10174 #define _LARGE_FILES $ac_cv_sys_large_files
10175 _ACEOF
10177 esac
10178 rm -rf conftest*
10185 #########
10186 # Check for needed/wanted data types
10187 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10188 if test "x$ac_cv_type_int8_t" = xyes; then :
10190 cat >>confdefs.h <<_ACEOF
10191 #define HAVE_INT8_T 1
10192 _ACEOF
10196 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10197 if test "x$ac_cv_type_int16_t" = xyes; then :
10199 cat >>confdefs.h <<_ACEOF
10200 #define HAVE_INT16_T 1
10201 _ACEOF
10205 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10206 if test "x$ac_cv_type_int32_t" = xyes; then :
10208 cat >>confdefs.h <<_ACEOF
10209 #define HAVE_INT32_T 1
10210 _ACEOF
10214 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10215 if test "x$ac_cv_type_int64_t" = xyes; then :
10217 cat >>confdefs.h <<_ACEOF
10218 #define HAVE_INT64_T 1
10219 _ACEOF
10223 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10224 if test "x$ac_cv_type_intptr_t" = xyes; then :
10226 cat >>confdefs.h <<_ACEOF
10227 #define HAVE_INTPTR_T 1
10228 _ACEOF
10232 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10233 if test "x$ac_cv_type_uint8_t" = xyes; then :
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_UINT8_T 1
10237 _ACEOF
10241 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10242 if test "x$ac_cv_type_uint16_t" = xyes; then :
10244 cat >>confdefs.h <<_ACEOF
10245 #define HAVE_UINT16_T 1
10246 _ACEOF
10250 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10251 if test "x$ac_cv_type_uint32_t" = xyes; then :
10253 cat >>confdefs.h <<_ACEOF
10254 #define HAVE_UINT32_T 1
10255 _ACEOF
10259 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10260 if test "x$ac_cv_type_uint64_t" = xyes; then :
10262 cat >>confdefs.h <<_ACEOF
10263 #define HAVE_UINT64_T 1
10264 _ACEOF
10268 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10269 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10271 cat >>confdefs.h <<_ACEOF
10272 #define HAVE_UINTPTR_T 1
10273 _ACEOF
10279 #########
10280 # Check for needed/wanted headers
10281 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10282 do :
10283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10284 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10286 cat >>confdefs.h <<_ACEOF
10287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10288 _ACEOF
10292 done
10295 #########
10296 # Figure out whether or not we have these functions
10298 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
10299 do :
10300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10302 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10305 _ACEOF
10308 done
10311 #########
10312 # By default, we use the amalgamation (this may be changed below...)
10314 USE_AMALGAMATION=1
10316 #########
10317 # See whether we can run specific tclsh versions known to work well;
10318 # if not, then we fall back to plain tclsh.
10319 # TODO: try other versions before falling back?
10321 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
10323 # Extract the first word of "$ac_prog", so it can be a program name with args.
10324 set dummy $ac_prog; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330 if test -n "$TCLSH_CMD"; then
10331 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10332 else
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10336 IFS=$as_save_IFS
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_TCLSH_CMD="$ac_prog"
10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10342 break 2
10344 done
10345 done
10346 IFS=$as_save_IFS
10350 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10351 if test -n "$TCLSH_CMD"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10353 $as_echo "$TCLSH_CMD" >&6; }
10354 else
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10360 test -n "$TCLSH_CMD" && break
10361 done
10362 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10364 if test "$TCLSH_CMD" = "none"; then
10365 # If we can't find a local tclsh, then building the amalgamation will fail.
10366 # We act as though --disable-amalgamation has been used.
10367 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10368 USE_AMALGAMATION=0
10369 TCLSH_CMD="tclsh"
10374 if test "x${TCLLIBDIR+set}" != "xset" ; then
10375 TCLLIBDIR='$(libdir)'
10376 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10377 if test -d $i ; then
10378 TCLLIBDIR=$i
10379 break
10381 done
10382 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10386 #########
10387 # Set up an appropriate program prefix
10389 if test "$program_prefix" = "NONE"; then
10390 program_prefix=""
10394 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10396 $as_echo "$as_me: Version set to $VERSION" >&6;}
10398 RELEASE=`cat $srcdir/VERSION`
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10400 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10403 ##########
10404 # Handle --with-wasi-sdk=DIR
10406 # This must be early because it changes the toolchain.
10409 # Check whether --with-wasi-sdk was given.
10410 if test "${with_wasi_sdk+set}" = set; then :
10411 withval=$with_wasi_sdk; with_wasisdk=${withval}
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
10415 $as_echo_n "checking for WASI SDK directory... " >&6; }
10416 if ${ac_cv_c_wasi_sdk+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10420 # First check to see if --with-tcl was specified.
10421 if test x"${with_wasi_sdk}" != x ; then
10422 if ! test -d "${with_wasi_sdk}" ; then
10423 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
10426 $as_echo "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
10427 use_wasi_sdk=yes
10428 else
10429 use_wasi_sdk=no
10434 if test "${use_wasi_sdk}" = "no" ; then
10435 HAVE_WASI_SDK=""
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 else
10439 HAVE_WASI_SDK=1
10440 # Changing --host and --target have no effect here except to possibly
10441 # cause confusion. autoconf has finished processing them by this
10442 # point.
10444 # host_alias=wasm32-wasi
10445 # target=wasm32-wasi
10447 # Merely changing CC and LD to the wasi-sdk's is enough to get
10448 # sqlite3.o building in WASM format.
10449 CC="${with_wasi_sdk}/bin/clang"
10450 LD="${with_wasi_sdk}/bin/wasm-ld"
10451 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
10452 cross_compiling=yes
10453 enable_threadsafe=no
10454 use_tcl=no
10455 enable_tcl=no
10456 # libtool is apparently hard-coded to use gcc for linking DLLs, so
10457 # we disable the DLL build...
10458 enable_shared=no
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10460 $as_echo "yes" >&6; }
10465 #########
10466 # Locate a compiler for the build machine. This compiler should
10467 # generate command-line programs that run on the build machine.
10469 if test x"$cross_compiling" = xno; then
10470 BUILD_CC=$CC
10471 BUILD_CFLAGS=$CFLAGS
10472 else
10473 if test "${BUILD_CC+set}" != set; then
10474 for ac_prog in gcc cc cl
10476 # Extract the first word of "$ac_prog", so it can be a program name with args.
10477 set dummy $ac_prog; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_prog_BUILD_CC+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 if test -n "$BUILD_CC"; then
10484 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10485 else
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10493 ac_cv_prog_BUILD_CC="$ac_prog"
10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10497 done
10498 done
10499 IFS=$as_save_IFS
10503 BUILD_CC=$ac_cv_prog_BUILD_CC
10504 if test -n "$BUILD_CC"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10506 $as_echo "$BUILD_CC" >&6; }
10507 else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10513 test -n "$BUILD_CC" && break
10514 done
10517 if test "${BUILD_CFLAGS+set}" != set; then
10518 BUILD_CFLAGS="-g"
10523 ##########
10524 # Do we want to support multithreaded use of sqlite
10526 # Check whether --enable-threadsafe was given.
10527 if test "${enable_threadsafe+set}" = set; then :
10528 enableval=$enable_threadsafe;
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10532 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10533 if test "$enable_threadsafe" = "no"; then
10534 SQLITE_THREADSAFE=0
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 else
10538 SQLITE_THREADSAFE=1
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10540 $as_echo "yes" >&6; }
10544 if test "$SQLITE_THREADSAFE" = "1"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10546 $as_echo_n "checking for library containing pthread_create... " >&6; }
10547 if ${ac_cv_search_pthread_create+:} false; then :
10548 $as_echo_n "(cached) " >&6
10549 else
10550 ac_func_search_save_LIBS=$LIBS
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 char pthread_create ();
10562 main ()
10564 return pthread_create ();
10566 return 0;
10568 _ACEOF
10569 for ac_lib in '' pthread; do
10570 if test -z "$ac_lib"; then
10571 ac_res="none required"
10572 else
10573 ac_res=-l$ac_lib
10574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10576 if ac_fn_c_try_link "$LINENO"; then :
10577 ac_cv_search_pthread_create=$ac_res
10579 rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext
10581 if ${ac_cv_search_pthread_create+:} false; then :
10582 break
10584 done
10585 if ${ac_cv_search_pthread_create+:} false; then :
10587 else
10588 ac_cv_search_pthread_create=no
10590 rm conftest.$ac_ext
10591 LIBS=$ac_func_search_save_LIBS
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10594 $as_echo "$ac_cv_search_pthread_create" >&6; }
10595 ac_res=$ac_cv_search_pthread_create
10596 if test "$ac_res" != no; then :
10597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10602 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10603 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10604 $as_echo_n "(cached) " >&6
10605 else
10606 ac_func_search_save_LIBS=$LIBS
10607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10608 /* end confdefs.h. */
10610 /* Override any GCC internal prototype to avoid an error.
10611 Use char because int might match the return type of a GCC
10612 builtin and then its argument prototype would still apply. */
10613 #ifdef __cplusplus
10614 extern "C"
10615 #endif
10616 char pthread_mutexattr_init ();
10618 main ()
10620 return pthread_mutexattr_init ();
10622 return 0;
10624 _ACEOF
10625 for ac_lib in '' pthread; do
10626 if test -z "$ac_lib"; then
10627 ac_res="none required"
10628 else
10629 ac_res=-l$ac_lib
10630 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10632 if ac_fn_c_try_link "$LINENO"; then :
10633 ac_cv_search_pthread_mutexattr_init=$ac_res
10635 rm -f core conftest.err conftest.$ac_objext \
10636 conftest$ac_exeext
10637 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10638 break
10640 done
10641 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10643 else
10644 ac_cv_search_pthread_mutexattr_init=no
10646 rm conftest.$ac_ext
10647 LIBS=$ac_func_search_save_LIBS
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10650 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10651 ac_res=$ac_cv_search_pthread_mutexattr_init
10652 if test "$ac_res" != no; then :
10653 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10659 ##########
10660 # Do we want to support release
10662 # Check whether --enable-releasemode was given.
10663 if test "${enable_releasemode+set}" = set; then :
10664 enableval=$enable_releasemode;
10665 else
10666 enable_releasemode=no
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10670 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10671 if test "$enable_releasemode" = "no"; then
10672 ALLOWRELEASE=""
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 else
10676 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10682 ##########
10683 # Do we want temporary databases in memory
10685 # Check whether --enable-tempstore was given.
10686 if test "${enable_tempstore+set}" = set; then :
10687 enableval=$enable_tempstore;
10688 else
10689 enable_tempstore=no
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10693 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10694 case "$enable_tempstore" in
10695 never )
10696 TEMP_STORE=0
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10698 $as_echo "never" >&6; }
10700 no )
10701 TEMP_STORE=1
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10705 yes )
10706 TEMP_STORE=2
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10708 $as_echo "yes" >&6; }
10710 always )
10711 TEMP_STORE=3
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10713 $as_echo "always" >&6; }
10716 TEMP_STORE=1
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10718 $as_echo "no" >&6; }
10720 esac
10724 ###########
10725 # Lots of things are different if we are compiling for Windows using
10726 # the CYGWIN environment. So check for that special case and handle
10727 # things accordingly.
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10730 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10731 if test "$config_BUILD_EXEEXT" = ".exe"; then
10732 CYGWIN=yes
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10734 $as_echo "yes" >&6; }
10735 else
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10737 $as_echo "unknown" >&6; }
10739 if test "$CYGWIN" != "yes"; then
10741 case $host_os in
10742 *cygwin* ) CYGWIN=yes;;
10743 * ) CYGWIN=no;;
10744 esac
10747 if test "$CYGWIN" = "yes"; then
10748 BUILD_EXEEXT=.exe
10749 else
10750 BUILD_EXEEXT=$EXEEXT
10752 if test x"$cross_compiling" = xno; then
10753 TARGET_EXEEXT=$BUILD_EXEEXT
10754 else
10755 TARGET_EXEEXT=$config_TARGET_EXEEXT
10757 if test "$TARGET_EXEEXT" = ".exe"; then
10758 SQLITE_OS_UNIX=0
10759 SQLITE_OS_WIN=1
10760 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10761 else
10762 SQLITE_OS_UNIX=1
10763 SQLITE_OS_WIN=0
10764 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10772 ##########
10773 # Figure out all the parameters needed to compile against Tcl.
10775 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10776 # macros in the in the tcl.m4 file of the standard TCL distribution.
10777 # Those macros could not be used directly since we have to make some
10778 # minor changes to accomodate systems that do not have TCL installed.
10780 # Check whether --enable-tcl was given.
10781 if test "${enable_tcl+set}" = set; then :
10782 enableval=$enable_tcl; use_tcl=$enableval
10783 else
10784 use_tcl=yes
10787 if test "${use_tcl}" = "yes" ; then
10789 # Check whether --with-tcl was given.
10790 if test "${with_tcl+set}" = set; then :
10791 withval=$with_tcl; with_tclconfig=${withval}
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10795 $as_echo_n "checking for Tcl configuration... " >&6; }
10796 if ${ac_cv_c_tclconfig+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10800 # First check to see if --with-tcl was specified.
10801 if test x"${with_tclconfig}" != x ; then
10802 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10803 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10804 else
10805 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10809 # Start autosearch by asking tclsh
10810 if test x"${ac_cv_c_tclconfig}" = x ; then
10811 if test x"$cross_compiling" = xno; then
10812 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10814 if test -f "$i/tclConfig.sh" ; then
10815 ac_cv_c_tclconfig="$i"
10816 break
10818 done
10822 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10823 # So try again after applying corrections.
10824 if test x"${ac_cv_c_tclconfig}" = x ; then
10825 if test x"$cross_compiling" = xno; then
10826 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10828 if test -f "$i/tclConfig.sh" ; then
10829 ac_cv_c_tclconfig="$i"
10830 break
10832 done
10836 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10837 # in a strange place.
10838 if test x"${ac_cv_c_tclconfig}" = x ; then
10839 if test x"$cross_compiling" = xno; then
10840 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10842 if test -f "$i/tclConfig.sh" ; then
10843 ac_cv_c_tclconfig="$i"
10844 break
10846 done
10850 # then check for a private Tcl installation
10851 if test x"${ac_cv_c_tclconfig}" = x ; then
10852 for i in \
10853 ../tcl \
10854 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10855 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10856 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10857 ../../tcl \
10858 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10859 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10860 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10861 ../../../tcl \
10862 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10863 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10864 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10866 if test -f "$i/unix/tclConfig.sh" ; then
10867 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10868 break
10870 done
10873 # check in a few common install locations
10874 if test x"${ac_cv_c_tclconfig}" = x ; then
10875 for i in \
10876 `ls -d ${libdir} 2>/dev/null` \
10877 `ls -d /usr/local/lib 2>/dev/null` \
10878 `ls -d /usr/contrib/lib 2>/dev/null` \
10879 `ls -d /usr/lib 2>/dev/null`
10881 if test -f "$i/tclConfig.sh" ; then
10882 ac_cv_c_tclconfig=`(cd $i; pwd)`
10883 break
10885 done
10888 # check in a few other private locations
10889 if test x"${ac_cv_c_tclconfig}" = x ; then
10890 for i in \
10891 ${srcdir}/../tcl \
10892 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10893 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10894 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10896 if test -f "$i/unix/tclConfig.sh" ; then
10897 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10898 break
10900 done
10906 if test x"${ac_cv_c_tclconfig}" = x ; then
10907 use_tcl=no
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10909 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10911 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10913 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10914 else
10915 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10917 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10920 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10921 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10923 $as_echo "loading" >&6; }
10924 . $TCL_BIN_DIR/tclConfig.sh
10925 else
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10927 $as_echo "file not found" >&6; }
10931 # If the TCL_BIN_DIR is the build directory (not the install directory),
10932 # then set the common variable name to the value of the build variables.
10933 # For example, the variable TCL_LIB_SPEC will be set to the value
10934 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10935 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10936 # installed and uninstalled version of Tcl.
10939 if test -f $TCL_BIN_DIR/Makefile ; then
10940 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10941 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10942 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10946 # eval is required to do the TCL_DBGX substitution
10949 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10950 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10951 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10953 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10954 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10955 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10972 if test "${use_tcl}" = "no" ; then
10973 HAVE_TCL=""
10974 else
10975 HAVE_TCL=1
10979 ##########
10980 # Figure out what C libraries are required to compile programs
10981 # that use "readline()" library.
10983 TARGET_READLINE_LIBS=""
10984 TARGET_READLINE_INC=""
10985 TARGET_HAVE_READLINE=0
10986 TARGET_HAVE_EDITLINE=0
10987 # Check whether --enable-editline was given.
10988 if test "${enable_editline+set}" = set; then :
10989 enableval=$enable_editline; with_editline=$enableval
10990 else
10991 with_editline=auto
10994 # Check whether --enable-readline was given.
10995 if test "${enable_readline+set}" = set; then :
10996 enableval=$enable_readline; with_readline=$enableval
10997 else
10998 with_readline=auto
11002 if test x"$with_editline" != xno; then
11003 sLIBS=$LIBS
11004 LIBS=""
11005 TARGET_HAVE_EDITLINE=1
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11007 $as_echo_n "checking for library containing readline... " >&6; }
11008 if ${ac_cv_search_readline+:} false; then :
11009 $as_echo_n "(cached) " >&6
11010 else
11011 ac_func_search_save_LIBS=$LIBS
11012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11013 /* end confdefs.h. */
11015 /* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11018 #ifdef __cplusplus
11019 extern "C"
11020 #endif
11021 char readline ();
11023 main ()
11025 return readline ();
11027 return 0;
11029 _ACEOF
11030 for ac_lib in '' edit; do
11031 if test -z "$ac_lib"; then
11032 ac_res="none required"
11033 else
11034 ac_res=-l$ac_lib
11035 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11037 if ac_fn_c_try_link "$LINENO"; then :
11038 ac_cv_search_readline=$ac_res
11040 rm -f core conftest.err conftest.$ac_objext \
11041 conftest$ac_exeext
11042 if ${ac_cv_search_readline+:} false; then :
11043 break
11045 done
11046 if ${ac_cv_search_readline+:} false; then :
11048 else
11049 ac_cv_search_readline=no
11051 rm conftest.$ac_ext
11052 LIBS=$ac_func_search_save_LIBS
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
11055 $as_echo "$ac_cv_search_readline" >&6; }
11056 ac_res=$ac_cv_search_readline
11057 if test "$ac_res" != no; then :
11058 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11059 with_readline=no
11060 else
11061 TARGET_HAVE_EDITLINE=0
11064 TARGET_READLINE_LIBS=$LIBS
11065 LIBS=$sLIBS
11067 if test x"$with_readline" != xno; then
11068 found="yes"
11071 # Check whether --with-readline-lib was given.
11072 if test "${with_readline_lib+set}" = set; then :
11073 withval=$with_readline_lib; with_readline_lib=$withval
11074 else
11075 with_readline_lib="auto"
11078 if test "x$with_readline_lib" = xauto; then
11079 save_LIBS="$LIBS"
11080 LIBS=""
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11082 $as_echo_n "checking for library containing tgetent... " >&6; }
11083 if ${ac_cv_search_tgetent+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 ac_func_search_save_LIBS=$LIBS
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11090 /* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11093 #ifdef __cplusplus
11094 extern "C"
11095 #endif
11096 char tgetent ();
11098 main ()
11100 return tgetent ();
11102 return 0;
11104 _ACEOF
11105 for ac_lib in '' readline ncurses curses termcap; do
11106 if test -z "$ac_lib"; then
11107 ac_res="none required"
11108 else
11109 ac_res=-l$ac_lib
11110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11112 if ac_fn_c_try_link "$LINENO"; then :
11113 ac_cv_search_tgetent=$ac_res
11115 rm -f core conftest.err conftest.$ac_objext \
11116 conftest$ac_exeext
11117 if ${ac_cv_search_tgetent+:} false; then :
11118 break
11120 done
11121 if ${ac_cv_search_tgetent+:} false; then :
11123 else
11124 ac_cv_search_tgetent=no
11126 rm conftest.$ac_ext
11127 LIBS=$ac_func_search_save_LIBS
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11130 $as_echo "$ac_cv_search_tgetent" >&6; }
11131 ac_res=$ac_cv_search_tgetent
11132 if test "$ac_res" != no; then :
11133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11134 term_LIBS="$LIBS"
11135 else
11136 term_LIBS=""
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11140 $as_echo_n "checking for readline in -lreadline... " >&6; }
11141 if ${ac_cv_lib_readline_readline+:} false; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-lreadline $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11152 #ifdef __cplusplus
11153 extern "C"
11154 #endif
11155 char readline ();
11157 main ()
11159 return readline ();
11161 return 0;
11163 _ACEOF
11164 if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_readline_readline=yes
11166 else
11167 ac_cv_lib_readline_readline=no
11169 rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11174 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11175 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11176 TARGET_READLINE_LIBS="-lreadline"
11177 else
11178 found="no"
11181 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11182 LIBS="$save_LIBS"
11183 else
11184 TARGET_READLINE_LIBS="$with_readline_lib"
11188 # Check whether --with-readline-inc was given.
11189 if test "${with_readline_inc+set}" = set; then :
11190 withval=$with_readline_inc; with_readline_inc=$withval
11191 else
11192 with_readline_inc="auto"
11195 if test "x$with_readline_inc" = xauto; then
11196 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11197 if test "x$ac_cv_header_readline_h" = xyes; then :
11198 found="yes"
11199 else
11201 found="no"
11202 if test "$cross_compiling" != yes; then
11203 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11204 for subdir in include include/readline; do
11205 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11207 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11208 if eval \${$as_ac_File+:} false; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 test "$cross_compiling" = yes &&
11212 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11213 if test -r "$dir/$subdir/readline.h"; then
11214 eval "$as_ac_File=yes"
11215 else
11216 eval "$as_ac_File=no"
11219 eval ac_res=\$$as_ac_File
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11221 $as_echo "$ac_res" >&6; }
11222 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11223 found=yes
11226 if test "$found" = "yes"; then
11227 TARGET_READLINE_INC="-I$dir/$subdir"
11228 break
11230 done
11231 test "$found" = "yes" && break
11232 done
11238 else
11239 TARGET_READLINE_INC="$with_readline_inc"
11242 if test x"$found" = xno; then
11243 TARGET_READLINE_LIBS=""
11244 TARGET_READLINE_INC=""
11245 TARGET_HAVE_READLINE=0
11246 else
11247 TARGET_HAVE_READLINE=1
11251 # Check whether --with-linenoise was given.
11252 if test "${with_linenoise+set}" = set; then :
11253 withval=$with_linenoise; with_linenoise=$withval
11254 else
11255 with_linenoise="no"
11258 if test "x$with_linenoise" != "xno"; then
11259 TARGET_HAVE_READLINE=0
11260 TARGET_HAVE_EDITLINE=0
11261 TARGET_HAVE_LINENOISE=1
11262 TARGET_READLINE_INC="-I${with_linenoise}"
11263 TARGET_READLINE_LIBS="${with_linenoise}/linenoise.c"
11264 echo "using linenoise source code at ${with_linenoise}"
11265 else
11266 TARGET_HAVE_LINENOISE=0
11267 echo "not using linenoise"
11277 ##########
11278 # Figure out what C libraries are required to compile programs
11279 # that use "fdatasync()" function.
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11282 $as_echo_n "checking for library containing fdatasync... " >&6; }
11283 if ${ac_cv_search_fdatasync+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 ac_func_search_save_LIBS=$LIBS
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11290 /* Override any GCC internal prototype to avoid an error.
11291 Use char because int might match the return type of a GCC
11292 builtin and then its argument prototype would still apply. */
11293 #ifdef __cplusplus
11294 extern "C"
11295 #endif
11296 char fdatasync ();
11298 main ()
11300 return fdatasync ();
11302 return 0;
11304 _ACEOF
11305 for ac_lib in '' rt; do
11306 if test -z "$ac_lib"; then
11307 ac_res="none required"
11308 else
11309 ac_res=-l$ac_lib
11310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11312 if ac_fn_c_try_link "$LINENO"; then :
11313 ac_cv_search_fdatasync=$ac_res
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext
11317 if ${ac_cv_search_fdatasync+:} false; then :
11318 break
11320 done
11321 if ${ac_cv_search_fdatasync+:} false; then :
11323 else
11324 ac_cv_search_fdatasync=no
11326 rm conftest.$ac_ext
11327 LIBS=$ac_func_search_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11330 $as_echo "$ac_cv_search_fdatasync" >&6; }
11331 ac_res=$ac_cv_search_fdatasync
11332 if test "$ac_res" != no; then :
11333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11338 #########
11339 # check for debug enabled
11340 # Check whether --enable-debug was given.
11341 if test "${enable_debug+set}" = set; then :
11342 enableval=$enable_debug;
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11346 $as_echo_n "checking build type... " >&6; }
11347 if test "${enable_debug}" = "yes" ; then
11348 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0 -Wall"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11350 $as_echo "debug" >&6; }
11351 else
11352 TARGET_DEBUG="-DNDEBUG"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11354 $as_echo "release" >&6; }
11358 #########
11359 # See whether we should use the amalgamation to build
11361 # Check whether --enable-amalgamation was given.
11362 if test "${enable_amalgamation+set}" = set; then :
11363 enableval=$enable_amalgamation;
11366 if test "${enable_amalgamation}" = "no" ; then
11367 USE_AMALGAMATION=0
11371 #########
11372 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11373 for ac_header in zlib.h
11374 do :
11375 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11376 if test "x$ac_cv_header_zlib_h" = xyes; then :
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_ZLIB_H 1
11379 _ACEOF
11383 done
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11386 $as_echo_n "checking for library containing deflate... " >&6; }
11387 if ${ac_cv_search_deflate+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_func_search_save_LIBS=$LIBS
11391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11394 /* Override any GCC internal prototype to avoid an error.
11395 Use char because int might match the return type of a GCC
11396 builtin and then its argument prototype would still apply. */
11397 #ifdef __cplusplus
11398 extern "C"
11399 #endif
11400 char deflate ();
11402 main ()
11404 return deflate ();
11406 return 0;
11408 _ACEOF
11409 for ac_lib in '' z; do
11410 if test -z "$ac_lib"; then
11411 ac_res="none required"
11412 else
11413 ac_res=-l$ac_lib
11414 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 ac_cv_search_deflate=$ac_res
11419 rm -f core conftest.err conftest.$ac_objext \
11420 conftest$ac_exeext
11421 if ${ac_cv_search_deflate+:} false; then :
11422 break
11424 done
11425 if ${ac_cv_search_deflate+:} false; then :
11427 else
11428 ac_cv_search_deflate=no
11430 rm conftest.$ac_ext
11431 LIBS=$ac_func_search_save_LIBS
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11434 $as_echo "$ac_cv_search_deflate" >&6; }
11435 ac_res=$ac_cv_search_deflate
11436 if test "$ac_res" != no; then :
11437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11438 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11439 else
11440 HAVE_ZLIB=""
11445 #########
11446 # See whether we should allow loadable extensions
11447 # Check whether --enable-load-extension was given.
11448 if test "${enable_load_extension+set}" = set; then :
11449 enableval=$enable_load_extension;
11450 else
11451 enable_load_extension=yes
11454 if test "${enable_load_extension}" = "yes" ; then
11455 OPT_FEATURE_FLAGS=""
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11457 $as_echo_n "checking for library containing dlopen... " >&6; }
11458 if ${ac_cv_search_dlopen+:} false; then :
11459 $as_echo_n "(cached) " >&6
11460 else
11461 ac_func_search_save_LIBS=$LIBS
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11473 main ()
11475 return dlopen ();
11477 return 0;
11479 _ACEOF
11480 for ac_lib in '' dl; do
11481 if test -z "$ac_lib"; then
11482 ac_res="none required"
11483 else
11484 ac_res=-l$ac_lib
11485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11487 if ac_fn_c_try_link "$LINENO"; then :
11488 ac_cv_search_dlopen=$ac_res
11490 rm -f core conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext
11492 if ${ac_cv_search_dlopen+:} false; then :
11493 break
11495 done
11496 if ${ac_cv_search_dlopen+:} false; then :
11498 else
11499 ac_cv_search_dlopen=no
11501 rm conftest.$ac_ext
11502 LIBS=$ac_func_search_save_LIBS
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11505 $as_echo "$ac_cv_search_dlopen" >&6; }
11506 ac_res=$ac_cv_search_dlopen
11507 if test "$ac_res" != no; then :
11508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11512 else
11513 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11516 ##########
11517 # Do we want to support math functions
11519 # Check whether --enable-math was given.
11520 if test "${enable_math+set}" = set; then :
11521 enableval=$enable_math;
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11525 $as_echo_n "checking whether to support math functions... " >&6; }
11526 if test "$enable_math" = "no"; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528 $as_echo "no" >&6; }
11529 else
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531 $as_echo "yes" >&6; }
11532 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11534 $as_echo_n "checking for library containing ceil... " >&6; }
11535 if ${ac_cv_search_ceil+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_func_search_save_LIBS=$LIBS
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11542 /* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 char ceil ();
11550 main ()
11552 return ceil ();
11554 return 0;
11556 _ACEOF
11557 for ac_lib in '' m; do
11558 if test -z "$ac_lib"; then
11559 ac_res="none required"
11560 else
11561 ac_res=-l$ac_lib
11562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11564 if ac_fn_c_try_link "$LINENO"; then :
11565 ac_cv_search_ceil=$ac_res
11567 rm -f core conftest.err conftest.$ac_objext \
11568 conftest$ac_exeext
11569 if ${ac_cv_search_ceil+:} false; then :
11570 break
11572 done
11573 if ${ac_cv_search_ceil+:} false; then :
11575 else
11576 ac_cv_search_ceil=no
11578 rm conftest.$ac_ext
11579 LIBS=$ac_func_search_save_LIBS
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11582 $as_echo "$ac_cv_search_ceil" >&6; }
11583 ac_res=$ac_cv_search_ceil
11584 if test "$ac_res" != no; then :
11585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11591 ##########
11592 # Do we want to support JSON functions
11594 # Check whether --enable-json was given.
11595 if test "${enable_json+set}" = set; then :
11596 enableval=$enable_json;
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
11600 $as_echo_n "checking whether to support JSON functions... " >&6; }
11601 if test "$enable_json" = "no"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603 $as_echo "no" >&6; }
11604 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
11605 else
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11610 ########
11611 # The --enable-all argument is short-hand to enable
11612 # multiple extensions.
11613 # Check whether --enable-all was given.
11614 if test "${enable_all+set}" = set; then :
11615 enableval=$enable_all;
11619 ##########
11620 # Do we want to support memsys3 and/or memsys5
11622 # Check whether --enable-memsys5 was given.
11623 if test "${enable_memsys5+set}" = set; then :
11624 enableval=$enable_memsys5;
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11628 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
11629 if test "${enable_memsys5}" = "yes"; then
11630 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11633 else
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11637 # Check whether --enable-memsys3 was given.
11638 if test "${enable_memsys3+set}" = set; then :
11639 enableval=$enable_memsys3;
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11643 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
11644 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
11645 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11648 else
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11653 #########
11654 # See whether we should enable Full Text Search extensions
11655 # Check whether --enable-fts3 was given.
11656 if test "${enable_fts3+set}" = set; then :
11657 enableval=$enable_fts3;
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11661 $as_echo_n "checking whether to support FTS3... " >&6; }
11662 if test "${enable_fts3}" = "yes" ; then
11663 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11665 $as_echo "yes" >&6; }
11666 else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11670 # Check whether --enable-fts4 was given.
11671 if test "${enable_fts4+set}" = set; then :
11672 enableval=$enable_fts4;
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11676 $as_echo_n "checking whether to support FTS4... " >&6; }
11677 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11679 $as_echo "yes" >&6; }
11680 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11682 $as_echo_n "checking for library containing log... " >&6; }
11683 if ${ac_cv_search_log+:} false; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 ac_func_search_save_LIBS=$LIBS
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 /* Override any GCC internal prototype to avoid an error.
11691 Use char because int might match the return type of a GCC
11692 builtin and then its argument prototype would still apply. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 char log ();
11698 main ()
11700 return log ();
11702 return 0;
11704 _ACEOF
11705 for ac_lib in '' m; do
11706 if test -z "$ac_lib"; then
11707 ac_res="none required"
11708 else
11709 ac_res=-l$ac_lib
11710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 ac_cv_search_log=$ac_res
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext
11717 if ${ac_cv_search_log+:} false; then :
11718 break
11720 done
11721 if ${ac_cv_search_log+:} false; then :
11723 else
11724 ac_cv_search_log=no
11726 rm conftest.$ac_ext
11727 LIBS=$ac_func_search_save_LIBS
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11730 $as_echo "$ac_cv_search_log" >&6; }
11731 ac_res=$ac_cv_search_log
11732 if test "$ac_res" != no; then :
11733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11737 else
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11741 # Check whether --enable-fts5 was given.
11742 if test "${enable_fts5+set}" = set; then :
11743 enableval=$enable_fts5;
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11747 $as_echo_n "checking whether to support FTS5... " >&6; }
11748 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11751 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11753 $as_echo_n "checking for library containing log... " >&6; }
11754 if ${ac_cv_search_log+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 ac_func_search_save_LIBS=$LIBS
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11761 /* Override any GCC internal prototype to avoid an error.
11762 Use char because int might match the return type of a GCC
11763 builtin and then its argument prototype would still apply. */
11764 #ifdef __cplusplus
11765 extern "C"
11766 #endif
11767 char log ();
11769 main ()
11771 return log ();
11773 return 0;
11775 _ACEOF
11776 for ac_lib in '' m; do
11777 if test -z "$ac_lib"; then
11778 ac_res="none required"
11779 else
11780 ac_res=-l$ac_lib
11781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11783 if ac_fn_c_try_link "$LINENO"; then :
11784 ac_cv_search_log=$ac_res
11786 rm -f core conftest.err conftest.$ac_objext \
11787 conftest$ac_exeext
11788 if ${ac_cv_search_log+:} false; then :
11789 break
11791 done
11792 if ${ac_cv_search_log+:} false; then :
11794 else
11795 ac_cv_search_log=no
11797 rm conftest.$ac_ext
11798 LIBS=$ac_func_search_save_LIBS
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11801 $as_echo "$ac_cv_search_log" >&6; }
11802 ac_res=$ac_cv_search_log
11803 if test "$ac_res" != no; then :
11804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11813 #########
11814 # See whether we should enable the LIMIT clause on UPDATE and DELETE
11815 # statements.
11816 # Check whether --enable-update-limit was given.
11817 if test "${enable_update_limit+set}" = set; then :
11818 enableval=$enable_update_limit;
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11822 $as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
11823 if test "${enable_update_limit}" = "yes" ; then
11824 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11826 $as_echo "yes" >&6; }
11827 else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11832 #########
11833 # See whether we should enable GEOPOLY
11834 # Check whether --enable-geopoly was given.
11835 if test "${enable_geopoly+set}" = set; then :
11836 enableval=$enable_geopoly; enable_geopoly=yes
11837 else
11838 enable_geopoly=no
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11842 $as_echo_n "checking whether to support GEOPOLY... " >&6; }
11843 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
11844 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11845 enable_rtree=yes
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11847 $as_echo "yes" >&6; }
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11853 #########
11854 # See whether we should enable RTREE
11855 # Check whether --enable-rtree was given.
11856 if test "${enable_rtree+set}" = set; then :
11857 enableval=$enable_rtree;
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11861 $as_echo_n "checking whether to support RTREE... " >&6; }
11862 if test "${enable_rtree}" = "yes" ; then
11863 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865 $as_echo "yes" >&6; }
11866 else
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11871 #########
11872 # See whether we should enable the SESSION extension
11873 # Check whether --enable-session was given.
11874 if test "${enable_session+set}" = set; then :
11875 enableval=$enable_session;
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11879 $as_echo_n "checking whether to support SESSION... " >&6; }
11880 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
11881 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11882 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11884 $as_echo "yes" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11890 #########
11891 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
11892 for option in $CFLAGS $CPPFLAGS
11894 case $option in
11895 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11896 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11897 esac
11898 done
11902 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11903 ac_temp_CFLAGS=""
11904 for option in $CFLAGS
11906 case $option in
11907 -DSQLITE_OMIT*) ;;
11908 -DSQLITE_ENABLE*) ;;
11909 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11910 esac
11911 done
11912 CFLAGS=$ac_temp_CFLAGS
11915 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11916 ac_temp_CPPFLAGS=""
11917 for option in $CPPFLAGS
11919 case $option in
11920 -DSQLITE_OMIT*) ;;
11921 -DSQLITE_ENABLE*) ;;
11922 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11923 esac
11924 done
11925 CPPFLAGS=$ac_temp_CPPFLAGS
11928 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11929 ac_temp_BUILD_CFLAGS=""
11930 for option in $BUILD_CFLAGS
11932 case $option in
11933 -DSQLITE_OMIT*) ;;
11934 -DSQLITE_ENABLE*) ;;
11935 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11936 esac
11937 done
11938 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11941 #########
11942 # See whether we should use GCOV
11943 # Check whether --enable-gcov was given.
11944 if test "${enable_gcov+set}" = set; then :
11945 enableval=$enable_gcov;
11948 if test "${use_gcov}" = "yes" ; then
11949 USE_GCOV=1
11950 else
11951 USE_GCOV=0
11955 #########
11956 # Enable/disabled amalagamation line macros
11957 ########
11958 AMALGAMATION_LINE_MACROS=--linemacros=0
11959 if test "${amalgamation_line_macros}" = "yes" ; then
11960 AMALGAMATION_LINE_MACROS=--linemacros=1
11962 if test "${amalgamation_line_macros}" = "no" ; then
11963 AMALGAMATION_LINE_MACROS=--linemacros=0
11967 #########
11968 # Output the config header
11969 ac_config_headers="$ac_config_headers sqlite_cfg.h"
11972 #########
11973 # Generate the output files.
11976 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11978 cat >confcache <<\_ACEOF
11979 # This file is a shell script that caches the results of configure
11980 # tests run on this system so they can be shared between configure
11981 # scripts and configure runs, see configure's option --config-cache.
11982 # It is not useful on other systems. If it contains results you don't
11983 # want to keep, you may remove or edit it.
11985 # config.status only pays attention to the cache file if you give it
11986 # the --recheck option to rerun configure.
11988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11990 # following values.
11992 _ACEOF
11994 # The following way of writing the cache mishandles newlines in values,
11995 # but we know of no workaround that is simple, portable, and efficient.
11996 # So, we kill variables containing newlines.
11997 # Ultrix sh set writes to stderr and can't be redirected directly,
11998 # and sets the high bit in the cache file unless we assign to the vars.
12000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12001 eval ac_val=\$$ac_var
12002 case $ac_val in #(
12003 *${as_nl}*)
12004 case $ac_var in #(
12005 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12007 esac
12008 case $ac_var in #(
12009 _ | IFS | as_nl) ;; #(
12010 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12011 *) { eval $ac_var=; unset $ac_var;} ;;
12012 esac ;;
12013 esac
12014 done
12016 (set) 2>&1 |
12017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12018 *${as_nl}ac_space=\ *)
12019 # `set' does not quote correctly, so add quotes: double-quote
12020 # substitution turns \\\\ into \\, and sed turns \\ into \.
12021 sed -n \
12022 "s/'/'\\\\''/g;
12023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12024 ;; #(
12026 # `set' quotes correctly as required by POSIX, so do not add quotes.
12027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12029 esac |
12030 sort
12032 sed '
12033 /^ac_cv_env_/b end
12034 t clear
12035 :clear
12036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12037 t end
12038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12039 :end' >>confcache
12040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12041 if test -w "$cache_file"; then
12042 if test "x$cache_file" != "x/dev/null"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12044 $as_echo "$as_me: updating cache $cache_file" >&6;}
12045 if test ! -f "$cache_file" || test -h "$cache_file"; then
12046 cat confcache >"$cache_file"
12047 else
12048 case $cache_file in #(
12049 */* | ?:*)
12050 mv -f confcache "$cache_file"$$ &&
12051 mv -f "$cache_file"$$ "$cache_file" ;; #(
12053 mv -f confcache "$cache_file" ;;
12054 esac
12057 else
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12062 rm -f confcache
12064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12065 # Let make expand exec_prefix.
12066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12068 DEFS=-DHAVE_CONFIG_H
12070 ac_libobjs=
12071 ac_ltlibobjs=
12073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12074 # 1. Remove the extension, and $U if already installed.
12075 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12078 # will be set to the directory where LIBOBJS objects are built.
12079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12081 done
12082 LIBOBJS=$ac_libobjs
12084 LTLIBOBJS=$ac_ltlibobjs
12088 : "${CONFIG_STATUS=./config.status}"
12089 ac_write_fail=0
12090 ac_clean_files_save=$ac_clean_files
12091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12094 as_write_fail=0
12095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12096 #! $SHELL
12097 # Generated by $as_me.
12098 # Run this file to recreate the current configuration.
12099 # Compiler output produced by configure, useful for debugging
12100 # configure, is in config.log if it exists.
12102 debug=false
12103 ac_cs_recheck=false
12104 ac_cs_silent=false
12106 SHELL=\${CONFIG_SHELL-$SHELL}
12107 export SHELL
12108 _ASEOF
12109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12110 ## -------------------- ##
12111 ## M4sh Initialization. ##
12112 ## -------------------- ##
12114 # Be more Bourne compatible
12115 DUALCASE=1; export DUALCASE # for MKS sh
12116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12117 emulate sh
12118 NULLCMD=:
12119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12120 # is contrary to our usage. Disable this feature.
12121 alias -g '${1+"$@"}'='"$@"'
12122 setopt NO_GLOB_SUBST
12123 else
12124 case `(set -o) 2>/dev/null` in #(
12125 *posix*) :
12126 set -o posix ;; #(
12127 *) :
12129 esac
12133 as_nl='
12135 export as_nl
12136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12140 # Prefer a ksh shell builtin over an external printf program on Solaris,
12141 # but without wasting forks for bash or zsh.
12142 if test -z "$BASH_VERSION$ZSH_VERSION" \
12143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12144 as_echo='print -r --'
12145 as_echo_n='print -rn --'
12146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12147 as_echo='printf %s\n'
12148 as_echo_n='printf %s'
12149 else
12150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12151 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12152 as_echo_n='/usr/ucb/echo -n'
12153 else
12154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12155 as_echo_n_body='eval
12156 arg=$1;
12157 case $arg in #(
12158 *"$as_nl"*)
12159 expr "X$arg" : "X\\(.*\\)$as_nl";
12160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12161 esac;
12162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12164 export as_echo_n_body
12165 as_echo_n='sh -c $as_echo_n_body as_echo'
12167 export as_echo_body
12168 as_echo='sh -c $as_echo_body as_echo'
12171 # The user is always right.
12172 if test "${PATH_SEPARATOR+set}" != set; then
12173 PATH_SEPARATOR=:
12174 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12175 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12176 PATH_SEPARATOR=';'
12181 # IFS
12182 # We need space, tab and new line, in precisely that order. Quoting is
12183 # there to prevent editors from complaining about space-tab.
12184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12185 # splitting by setting IFS to empty value.)
12186 IFS=" "" $as_nl"
12188 # Find who we are. Look in the path if we contain no directory separator.
12189 as_myself=
12190 case $0 in #((
12191 *[\\/]* ) as_myself=$0 ;;
12192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12198 done
12199 IFS=$as_save_IFS
12202 esac
12203 # We did not find ourselves, most probably we were run as `sh COMMAND'
12204 # in which case we are not to be found in the path.
12205 if test "x$as_myself" = x; then
12206 as_myself=$0
12208 if test ! -f "$as_myself"; then
12209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12210 exit 1
12213 # Unset variables that we do not need and which cause bugs (e.g. in
12214 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12215 # suppresses any "Segmentation fault" message there. '((' could
12216 # trigger a bug in pdksh 5.2.14.
12217 for as_var in BASH_ENV ENV MAIL MAILPATH
12218 do eval test x\${$as_var+set} = xset \
12219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12220 done
12221 PS1='$ '
12222 PS2='> '
12223 PS4='+ '
12225 # NLS nuisances.
12226 LC_ALL=C
12227 export LC_ALL
12228 LANGUAGE=C
12229 export LANGUAGE
12231 # CDPATH.
12232 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12236 # ----------------------------------------
12237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12239 # script with STATUS, using 1 if that was 0.
12240 as_fn_error ()
12242 as_status=$1; test $as_status -eq 0 && as_status=1
12243 if test "$4"; then
12244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12247 $as_echo "$as_me: error: $2" >&2
12248 as_fn_exit $as_status
12249 } # as_fn_error
12252 # as_fn_set_status STATUS
12253 # -----------------------
12254 # Set $? to STATUS, without forking.
12255 as_fn_set_status ()
12257 return $1
12258 } # as_fn_set_status
12260 # as_fn_exit STATUS
12261 # -----------------
12262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12263 as_fn_exit ()
12265 set +e
12266 as_fn_set_status $1
12267 exit $1
12268 } # as_fn_exit
12270 # as_fn_unset VAR
12271 # ---------------
12272 # Portably unset VAR.
12273 as_fn_unset ()
12275 { eval $1=; unset $1;}
12277 as_unset=as_fn_unset
12278 # as_fn_append VAR VALUE
12279 # ----------------------
12280 # Append the text in VALUE to the end of the definition contained in VAR. Take
12281 # advantage of any shell optimizations that allow amortized linear growth over
12282 # repeated appends, instead of the typical quadratic growth present in naive
12283 # implementations.
12284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12285 eval 'as_fn_append ()
12287 eval $1+=\$2
12289 else
12290 as_fn_append ()
12292 eval $1=\$$1\$2
12294 fi # as_fn_append
12296 # as_fn_arith ARG...
12297 # ------------------
12298 # Perform arithmetic evaluation on the ARGs, and store the result in the
12299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12300 # must be portable across $(()) and expr.
12301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12302 eval 'as_fn_arith ()
12304 as_val=$(( $* ))
12306 else
12307 as_fn_arith ()
12309 as_val=`expr "$@" || test $? -eq 1`
12311 fi # as_fn_arith
12314 if expr a : '\(a\)' >/dev/null 2>&1 &&
12315 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12316 as_expr=expr
12317 else
12318 as_expr=false
12321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12322 as_basename=basename
12323 else
12324 as_basename=false
12327 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12328 as_dirname=dirname
12329 else
12330 as_dirname=false
12333 as_me=`$as_basename -- "$0" ||
12334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12335 X"$0" : 'X\(//\)$' \| \
12336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12337 $as_echo X/"$0" |
12338 sed '/^.*\/\([^/][^/]*\)\/*$/{
12339 s//\1/
12342 /^X\/\(\/\/\)$/{
12343 s//\1/
12346 /^X\/\(\/\).*/{
12347 s//\1/
12350 s/.*/./; q'`
12352 # Avoid depending upon Character Ranges.
12353 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12354 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12355 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12356 as_cr_digits='0123456789'
12357 as_cr_alnum=$as_cr_Letters$as_cr_digits
12359 ECHO_C= ECHO_N= ECHO_T=
12360 case `echo -n x` in #(((((
12361 -n*)
12362 case `echo 'xy\c'` in
12363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12364 xy) ECHO_C='\c';;
12365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12366 ECHO_T=' ';;
12367 esac;;
12369 ECHO_N='-n';;
12370 esac
12372 rm -f conf$$ conf$$.exe conf$$.file
12373 if test -d conf$$.dir; then
12374 rm -f conf$$.dir/conf$$.file
12375 else
12376 rm -f conf$$.dir
12377 mkdir conf$$.dir 2>/dev/null
12379 if (echo >conf$$.file) 2>/dev/null; then
12380 if ln -s conf$$.file conf$$ 2>/dev/null; then
12381 as_ln_s='ln -s'
12382 # ... but there are two gotchas:
12383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12385 # In both cases, we have to default to `cp -pR'.
12386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12387 as_ln_s='cp -pR'
12388 elif ln conf$$.file conf$$ 2>/dev/null; then
12389 as_ln_s=ln
12390 else
12391 as_ln_s='cp -pR'
12393 else
12394 as_ln_s='cp -pR'
12396 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12397 rmdir conf$$.dir 2>/dev/null
12400 # as_fn_mkdir_p
12401 # -------------
12402 # Create "$as_dir" as a directory, including parents if necessary.
12403 as_fn_mkdir_p ()
12406 case $as_dir in #(
12407 -*) as_dir=./$as_dir;;
12408 esac
12409 test -d "$as_dir" || eval $as_mkdir_p || {
12410 as_dirs=
12411 while :; do
12412 case $as_dir in #(
12413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12414 *) as_qdir=$as_dir;;
12415 esac
12416 as_dirs="'$as_qdir' $as_dirs"
12417 as_dir=`$as_dirname -- "$as_dir" ||
12418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12419 X"$as_dir" : 'X\(//\)[^/]' \| \
12420 X"$as_dir" : 'X\(//\)$' \| \
12421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12422 $as_echo X"$as_dir" |
12423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12424 s//\1/
12427 /^X\(\/\/\)[^/].*/{
12428 s//\1/
12431 /^X\(\/\/\)$/{
12432 s//\1/
12435 /^X\(\/\).*/{
12436 s//\1/
12439 s/.*/./; q'`
12440 test -d "$as_dir" && break
12441 done
12442 test -z "$as_dirs" || eval "mkdir $as_dirs"
12443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12446 } # as_fn_mkdir_p
12447 if mkdir -p . 2>/dev/null; then
12448 as_mkdir_p='mkdir -p "$as_dir"'
12449 else
12450 test -d ./-p && rmdir ./-p
12451 as_mkdir_p=false
12455 # as_fn_executable_p FILE
12456 # -----------------------
12457 # Test if FILE is an executable regular file.
12458 as_fn_executable_p ()
12460 test -f "$1" && test -x "$1"
12461 } # as_fn_executable_p
12462 as_test_x='test -x'
12463 as_executable_p=as_fn_executable_p
12465 # Sed expression to map a string onto a valid CPP name.
12466 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12468 # Sed expression to map a string onto a valid variable name.
12469 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12472 exec 6>&1
12473 ## ----------------------------------- ##
12474 ## Main body of $CONFIG_STATUS script. ##
12475 ## ----------------------------------- ##
12476 _ASEOF
12477 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12480 # Save the log message, to keep $0 and so on meaningful, and to
12481 # report actual input values of CONFIG_FILES etc. instead of their
12482 # values after options handling.
12483 ac_log="
12484 This file was extended by sqlite $as_me 3.45.1, which was
12485 generated by GNU Autoconf 2.69. Invocation command line was
12487 CONFIG_FILES = $CONFIG_FILES
12488 CONFIG_HEADERS = $CONFIG_HEADERS
12489 CONFIG_LINKS = $CONFIG_LINKS
12490 CONFIG_COMMANDS = $CONFIG_COMMANDS
12491 $ $0 $@
12493 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12496 _ACEOF
12498 case $ac_config_files in *"
12499 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12500 esac
12502 case $ac_config_headers in *"
12503 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12504 esac
12507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12508 # Files that config.status was made for.
12509 config_files="$ac_config_files"
12510 config_headers="$ac_config_headers"
12511 config_commands="$ac_config_commands"
12513 _ACEOF
12515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12516 ac_cs_usage="\
12517 \`$as_me' instantiates files and other configuration actions
12518 from templates according to the current configuration. Unless the files
12519 and actions are specified as TAGs, all are instantiated by default.
12521 Usage: $0 [OPTION]... [TAG]...
12523 -h, --help print this help, then exit
12524 -V, --version print version number and configuration settings, then exit
12525 --config print configuration, then exit
12526 -q, --quiet, --silent
12527 do not print progress messages
12528 -d, --debug don't remove temporary files
12529 --recheck update $as_me by reconfiguring in the same conditions
12530 --file=FILE[:TEMPLATE]
12531 instantiate the configuration file FILE
12532 --header=FILE[:TEMPLATE]
12533 instantiate the configuration header FILE
12535 Configuration files:
12536 $config_files
12538 Configuration headers:
12539 $config_headers
12541 Configuration commands:
12542 $config_commands
12544 Report bugs to the package provider."
12546 _ACEOF
12547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12548 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12549 ac_cs_version="\\
12550 sqlite config.status 3.45.1
12551 configured by $0, generated by GNU Autoconf 2.69,
12552 with options \\"\$ac_cs_config\\"
12554 Copyright (C) 2012 Free Software Foundation, Inc.
12555 This config.status script is free software; the Free Software Foundation
12556 gives unlimited permission to copy, distribute and modify it."
12558 ac_pwd='$ac_pwd'
12559 srcdir='$srcdir'
12560 INSTALL='$INSTALL'
12561 test -n "\$AWK" || AWK=awk
12562 _ACEOF
12564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12565 # The default lists apply if the user does not specify any file.
12566 ac_need_defaults=:
12567 while test $# != 0
12569 case $1 in
12570 --*=?*)
12571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12573 ac_shift=:
12575 --*=)
12576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12577 ac_optarg=
12578 ac_shift=:
12581 ac_option=$1
12582 ac_optarg=$2
12583 ac_shift=shift
12585 esac
12587 case $ac_option in
12588 # Handling of the options.
12589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12590 ac_cs_recheck=: ;;
12591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12592 $as_echo "$ac_cs_version"; exit ;;
12593 --config | --confi | --conf | --con | --co | --c )
12594 $as_echo "$ac_cs_config"; exit ;;
12595 --debug | --debu | --deb | --de | --d | -d )
12596 debug=: ;;
12597 --file | --fil | --fi | --f )
12598 $ac_shift
12599 case $ac_optarg in
12600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12601 '') as_fn_error $? "missing file argument" ;;
12602 esac
12603 as_fn_append CONFIG_FILES " '$ac_optarg'"
12604 ac_need_defaults=false;;
12605 --header | --heade | --head | --hea )
12606 $ac_shift
12607 case $ac_optarg in
12608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12609 esac
12610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12611 ac_need_defaults=false;;
12612 --he | --h)
12613 # Conflict between --help and --header
12614 as_fn_error $? "ambiguous option: \`$1'
12615 Try \`$0 --help' for more information.";;
12616 --help | --hel | -h )
12617 $as_echo "$ac_cs_usage"; exit ;;
12618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12620 ac_cs_silent=: ;;
12622 # This is an error.
12623 -*) as_fn_error $? "unrecognized option: \`$1'
12624 Try \`$0 --help' for more information." ;;
12626 *) as_fn_append ac_config_targets " $1"
12627 ac_need_defaults=false ;;
12629 esac
12630 shift
12631 done
12633 ac_configure_extra_args=
12635 if $ac_cs_silent; then
12636 exec 6>/dev/null
12637 ac_configure_extra_args="$ac_configure_extra_args --silent"
12640 _ACEOF
12641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12642 if \$ac_cs_recheck; then
12643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12644 shift
12645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12646 CONFIG_SHELL='$SHELL'
12647 export CONFIG_SHELL
12648 exec "\$@"
12651 _ACEOF
12652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12653 exec 5>>config.log
12655 echo
12656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12657 ## Running $as_me. ##
12658 _ASBOX
12659 $as_echo "$ac_log"
12660 } >&5
12662 _ACEOF
12663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12665 # INIT-COMMANDS
12669 # The HP-UX ksh and POSIX shell print the target directory to stdout
12670 # if CDPATH is set.
12671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12673 sed_quote_subst='$sed_quote_subst'
12674 double_quote_subst='$double_quote_subst'
12675 delay_variable_subst='$delay_variable_subst'
12676 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12677 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12678 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12679 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12680 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12681 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12682 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12683 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12684 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12685 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12686 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12687 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12688 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12689 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12690 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12691 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12692 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12693 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12694 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12695 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12696 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12697 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12698 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12699 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12700 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12701 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12702 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12703 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12704 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12705 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12706 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12707 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12708 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12709 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12710 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12711 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12712 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12713 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12714 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12715 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12716 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12717 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12718 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12719 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12720 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"`'
12721 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"`'
12722 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12723 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12724 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12725 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12726 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12727 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12728 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12729 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12730 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12731 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12732 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12733 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12734 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12735 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12736 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12737 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12738 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12739 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12740 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12741 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12742 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12743 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12744 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12745 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12746 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12747 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12748 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12749 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12750 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12751 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12752 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12753 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12754 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12755 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12756 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12757 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12758 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12759 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12760 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12761 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12762 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12763 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12764 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12765 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12766 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12767 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12768 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12769 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12770 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12771 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12772 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12773 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12774 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12775 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12776 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12777 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12778 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12779 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12780 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12781 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12782 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12783 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12784 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12785 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12786 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12787 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12788 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12789 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12790 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12791 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12792 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12793 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12795 LTCC='$LTCC'
12796 LTCFLAGS='$LTCFLAGS'
12797 compiler='$compiler_DEFAULT'
12799 # Quote evaled strings.
12800 for var in SED \
12801 GREP \
12802 EGREP \
12803 FGREP \
12804 LD \
12805 NM \
12806 LN_S \
12807 lt_SP2NL \
12808 lt_NL2SP \
12809 reload_flag \
12810 OBJDUMP \
12811 deplibs_check_method \
12812 file_magic_cmd \
12813 AR \
12814 AR_FLAGS \
12815 STRIP \
12816 RANLIB \
12817 CC \
12818 CFLAGS \
12819 compiler \
12820 lt_cv_sys_global_symbol_pipe \
12821 lt_cv_sys_global_symbol_to_cdecl \
12822 lt_cv_sys_global_symbol_to_c_name_address \
12823 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12824 SHELL \
12825 ECHO \
12826 lt_prog_compiler_no_builtin_flag \
12827 lt_prog_compiler_wl \
12828 lt_prog_compiler_pic \
12829 lt_prog_compiler_static \
12830 lt_cv_prog_compiler_c_o \
12831 need_locks \
12832 DSYMUTIL \
12833 NMEDIT \
12834 LIPO \
12835 OTOOL \
12836 OTOOL64 \
12837 shrext_cmds \
12838 export_dynamic_flag_spec \
12839 whole_archive_flag_spec \
12840 compiler_needs_object \
12841 with_gnu_ld \
12842 allow_undefined_flag \
12843 no_undefined_flag \
12844 hardcode_libdir_flag_spec \
12845 hardcode_libdir_flag_spec_ld \
12846 hardcode_libdir_separator \
12847 fix_srcfile_path \
12848 exclude_expsyms \
12849 include_expsyms \
12850 file_list_spec \
12851 variables_saved_for_relink \
12852 libname_spec \
12853 library_names_spec \
12854 soname_spec \
12855 finish_eval \
12856 old_striplib \
12857 striplib; do
12858 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12859 *[\\\\\\\`\\"\\\$]*)
12860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12865 esac
12866 done
12868 # Double-quote double-evaled strings.
12869 for var in reload_cmds \
12870 old_postinstall_cmds \
12871 old_postuninstall_cmds \
12872 old_archive_cmds \
12873 extract_expsyms_cmds \
12874 old_archive_from_new_cmds \
12875 old_archive_from_expsyms_cmds \
12876 archive_cmds \
12877 archive_expsym_cmds \
12878 module_cmds \
12879 module_expsym_cmds \
12880 export_symbols_cmds \
12881 prelink_cmds \
12882 postinstall_cmds \
12883 postuninstall_cmds \
12884 finish_cmds \
12885 sys_lib_search_path_spec \
12886 sys_lib_dlsearch_path_spec; do
12887 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12888 *[\\\\\\\`\\"\\\$]*)
12889 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12892 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12894 esac
12895 done
12897 # Fix-up fallback echo if it was mangled by the above quoting rules.
12898 case \$lt_ECHO in
12899 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12901 esac
12903 ac_aux_dir='$ac_aux_dir'
12904 xsi_shell='$xsi_shell'
12905 lt_shell_append='$lt_shell_append'
12907 # See if we are running on zsh, and set the options which allow our
12908 # commands through without removal of \ escapes INIT.
12909 if test -n "\${ZSH_VERSION+set}" ; then
12910 setopt NO_GLOB_SUBST
12914 PACKAGE='$PACKAGE'
12915 VERSION='$VERSION'
12916 TIMESTAMP='$TIMESTAMP'
12917 RM='$RM'
12918 ofile='$ofile'
12923 _ACEOF
12925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12927 # Handling of arguments.
12928 for ac_config_target in $ac_config_targets
12930 case $ac_config_target in
12931 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12932 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
12933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12934 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12936 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12937 esac
12938 done
12941 # If the user did not use the arguments to specify the items to instantiate,
12942 # then the envvar interface is used. Set only those that are not.
12943 # We use the long form for the default assignment because of an extremely
12944 # bizarre bug on SunOS 4.1.3.
12945 if $ac_need_defaults; then
12946 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12947 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12948 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12951 # Have a temporary directory for convenience. Make it in the build tree
12952 # simply because there is no reason against having it here, and in addition,
12953 # creating and moving files from /tmp can sometimes cause problems.
12954 # Hook for its removal unless debugging.
12955 # Note that there is a small window in which the directory will not be cleaned:
12956 # after its creation but before its name has been assigned to `$tmp'.
12957 $debug ||
12959 tmp= ac_tmp=
12960 trap 'exit_status=$?
12961 : "${ac_tmp:=$tmp}"
12962 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12964 trap 'as_fn_exit 1' 1 2 13 15
12966 # Create a (secure) tmp directory for tmp files.
12969 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12970 test -d "$tmp"
12971 } ||
12973 tmp=./conf$$-$RANDOM
12974 (umask 077 && mkdir "$tmp")
12975 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12976 ac_tmp=$tmp
12978 # Set up the scripts for CONFIG_FILES section.
12979 # No need to generate them if there are no CONFIG_FILES.
12980 # This happens for instance with `./config.status config.h'.
12981 if test -n "$CONFIG_FILES"; then
12984 ac_cr=`echo X | tr X '\015'`
12985 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12986 # But we know of no other shell where ac_cr would be empty at this
12987 # point, so we can use a bashism as a fallback.
12988 if test "x$ac_cr" = x; then
12989 eval ac_cr=\$\'\\r\'
12991 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12992 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12993 ac_cs_awk_cr='\\r'
12994 else
12995 ac_cs_awk_cr=$ac_cr
12998 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12999 _ACEOF
13003 echo "cat >conf$$subs.awk <<_ACEOF" &&
13004 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13005 echo "_ACEOF"
13006 } >conf$$subs.sh ||
13007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13008 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13009 ac_delim='%!_!# '
13010 for ac_last_try in false false false false false :; do
13011 . ./conf$$subs.sh ||
13012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13014 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13015 if test $ac_delim_n = $ac_delim_num; then
13016 break
13017 elif $ac_last_try; then
13018 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13019 else
13020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13022 done
13023 rm -f conf$$subs.sh
13025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13026 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13027 _ACEOF
13028 sed -n '
13030 s/^/S["/; s/!.*/"]=/
13033 s/^[^!]*!//
13034 :repl
13035 t repl
13036 s/'"$ac_delim"'$//
13037 t delim
13040 s/\(.\{148\}\)..*/\1/
13041 t more1
13042 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13045 b repl
13046 :more1
13047 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13050 s/.\{148\}//
13051 t nl
13052 :delim
13054 s/\(.\{148\}\)..*/\1/
13055 t more2
13056 s/["\\]/\\&/g; s/^/"/; s/$/"/
13059 :more2
13060 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13063 s/.\{148\}//
13064 t delim
13065 ' <conf$$subs.awk | sed '
13066 /^[^""]/{
13068 s/\n//
13070 ' >>$CONFIG_STATUS || ac_write_fail=1
13071 rm -f conf$$subs.awk
13072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13073 _ACAWK
13074 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13075 for (key in S) S_is_set[key] = 1
13076 FS = "\a"
13080 line = $ 0
13081 nfields = split(line, field, "@")
13082 substed = 0
13083 len = length(field[1])
13084 for (i = 2; i < nfields; i++) {
13085 key = field[i]
13086 keylen = length(key)
13087 if (S_is_set[key]) {
13088 value = S[key]
13089 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13090 len += length(value) + length(field[++i])
13091 substed = 1
13092 } else
13093 len += 1 + keylen
13096 print line
13099 _ACAWK
13100 _ACEOF
13101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13102 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13103 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13104 else
13106 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13107 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13108 _ACEOF
13110 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13111 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13112 # trailing colons and then remove the whole line if VPATH becomes empty
13113 # (actually we leave an empty line to preserve line numbers).
13114 if test "x$srcdir" = x.; then
13115 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13117 s///
13118 s/^/:/
13119 s/[ ]*$/:/
13120 s/:\$(srcdir):/:/g
13121 s/:\${srcdir}:/:/g
13122 s/:@srcdir@:/:/g
13123 s/^:*//
13124 s/:*$//
13126 s/\(=[ ]*\).*/\1/
13128 s/\n//
13129 s/^[^=]*=[ ]*$//
13133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13134 fi # test -n "$CONFIG_FILES"
13136 # Set up the scripts for CONFIG_HEADERS section.
13137 # No need to generate them if there are no CONFIG_HEADERS.
13138 # This happens for instance with `./config.status Makefile'.
13139 if test -n "$CONFIG_HEADERS"; then
13140 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13141 BEGIN {
13142 _ACEOF
13144 # Transform confdefs.h into an awk script `defines.awk', embedded as
13145 # here-document in config.status, that substitutes the proper values into
13146 # config.h.in to produce config.h.
13148 # Create a delimiter string that does not exist in confdefs.h, to ease
13149 # handling of long lines.
13150 ac_delim='%!_!# '
13151 for ac_last_try in false false :; do
13152 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13153 if test -z "$ac_tt"; then
13154 break
13155 elif $ac_last_try; then
13156 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13157 else
13158 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13160 done
13162 # For the awk script, D is an array of macro values keyed by name,
13163 # likewise P contains macro parameters if any. Preserve backslash
13164 # newline sequences.
13166 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13167 sed -n '
13168 s/.\{148\}/&'"$ac_delim"'/g
13169 t rset
13170 :rset
13171 s/^[ ]*#[ ]*define[ ][ ]*/ /
13172 t def
13174 :def
13175 s/\\$//
13176 t bsnl
13177 s/["\\]/\\&/g
13178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13179 D["\1"]=" \3"/p
13180 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13182 :bsnl
13183 s/["\\]/\\&/g
13184 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13185 D["\1"]=" \3\\\\\\n"\\/p
13186 t cont
13187 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13188 t cont
13190 :cont
13192 s/.\{148\}/&'"$ac_delim"'/g
13193 t clear
13194 :clear
13195 s/\\$//
13196 t bsnlc
13197 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13199 :bsnlc
13200 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13201 b cont
13202 ' <confdefs.h | sed '
13203 s/'"$ac_delim"'/"\\\
13204 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 for (key in D) D_is_set[key] = 1
13208 FS = "\a"
13210 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13211 line = \$ 0
13212 split(line, arg, " ")
13213 if (arg[1] == "#") {
13214 defundef = arg[2]
13215 mac1 = arg[3]
13216 } else {
13217 defundef = substr(arg[1], 2)
13218 mac1 = arg[2]
13220 split(mac1, mac2, "(") #)
13221 macro = mac2[1]
13222 prefix = substr(line, 1, index(line, defundef) - 1)
13223 if (D_is_set[macro]) {
13224 # Preserve the white space surrounding the "#".
13225 print prefix "define", macro P[macro] D[macro]
13226 next
13227 } else {
13228 # Replace #undef with comments. This is necessary, for example,
13229 # in the case of _POSIX_SOURCE, which is predefined and required
13230 # on some systems where configure will not decide to define it.
13231 if (defundef == "undef") {
13232 print "/*", prefix defundef, macro, "*/"
13233 next
13237 { print }
13238 _ACAWK
13239 _ACEOF
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13242 fi # test -n "$CONFIG_HEADERS"
13245 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13246 shift
13247 for ac_tag
13249 case $ac_tag in
13250 :[FHLC]) ac_mode=$ac_tag; continue;;
13251 esac
13252 case $ac_mode$ac_tag in
13253 :[FHL]*:*);;
13254 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13255 :[FH]-) ac_tag=-:-;;
13256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13257 esac
13258 ac_save_IFS=$IFS
13259 IFS=:
13260 set x $ac_tag
13261 IFS=$ac_save_IFS
13262 shift
13263 ac_file=$1
13264 shift
13266 case $ac_mode in
13267 :L) ac_source=$1;;
13268 :[FH])
13269 ac_file_inputs=
13270 for ac_f
13272 case $ac_f in
13273 -) ac_f="$ac_tmp/stdin";;
13274 *) # Look for the file first in the build tree, then in the source tree
13275 # (if the path is not absolute). The absolute path cannot be DOS-style,
13276 # because $ac_f cannot contain `:'.
13277 test -f "$ac_f" ||
13278 case $ac_f in
13279 [\\/$]*) false;;
13280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13281 esac ||
13282 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13283 esac
13284 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13285 as_fn_append ac_file_inputs " '$ac_f'"
13286 done
13288 # Let's still pretend it is `configure' which instantiates (i.e., don't
13289 # use $as_me), people would be surprised to read:
13290 # /* config.h. Generated by config.status. */
13291 configure_input='Generated from '`
13292 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13293 `' by configure.'
13294 if test x"$ac_file" != x-; then
13295 configure_input="$ac_file. $configure_input"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13297 $as_echo "$as_me: creating $ac_file" >&6;}
13299 # Neutralize special characters interpreted by sed in replacement strings.
13300 case $configure_input in #(
13301 *\&* | *\|* | *\\* )
13302 ac_sed_conf_input=`$as_echo "$configure_input" |
13303 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13304 *) ac_sed_conf_input=$configure_input;;
13305 esac
13307 case $ac_tag in
13308 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13309 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13310 esac
13312 esac
13314 ac_dir=`$as_dirname -- "$ac_file" ||
13315 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13316 X"$ac_file" : 'X\(//\)[^/]' \| \
13317 X"$ac_file" : 'X\(//\)$' \| \
13318 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13319 $as_echo X"$ac_file" |
13320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13321 s//\1/
13324 /^X\(\/\/\)[^/].*/{
13325 s//\1/
13328 /^X\(\/\/\)$/{
13329 s//\1/
13332 /^X\(\/\).*/{
13333 s//\1/
13336 s/.*/./; q'`
13337 as_dir="$ac_dir"; as_fn_mkdir_p
13338 ac_builddir=.
13340 case "$ac_dir" in
13341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13344 # A ".." for each directory in $ac_dir_suffix.
13345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13346 case $ac_top_builddir_sub in
13347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13349 esac ;;
13350 esac
13351 ac_abs_top_builddir=$ac_pwd
13352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13353 # for backward compatibility:
13354 ac_top_builddir=$ac_top_build_prefix
13356 case $srcdir in
13357 .) # We are building in place.
13358 ac_srcdir=.
13359 ac_top_srcdir=$ac_top_builddir_sub
13360 ac_abs_top_srcdir=$ac_pwd ;;
13361 [\\/]* | ?:[\\/]* ) # Absolute name.
13362 ac_srcdir=$srcdir$ac_dir_suffix;
13363 ac_top_srcdir=$srcdir
13364 ac_abs_top_srcdir=$srcdir ;;
13365 *) # Relative name.
13366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13367 ac_top_srcdir=$ac_top_build_prefix$srcdir
13368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13369 esac
13370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13373 case $ac_mode in
13376 # CONFIG_FILE
13379 case $INSTALL in
13380 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13381 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13382 esac
13383 _ACEOF
13385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386 # If the template does not know about datarootdir, expand it.
13387 # FIXME: This hack should be removed a few years after 2.60.
13388 ac_datarootdir_hack=; ac_datarootdir_seen=
13389 ac_sed_dataroot='
13390 /datarootdir/ {
13394 /@datadir@/p
13395 /@docdir@/p
13396 /@infodir@/p
13397 /@localedir@/p
13398 /@mandir@/p'
13399 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13400 *datarootdir*) ac_datarootdir_seen=yes;;
13401 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13403 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13404 _ACEOF
13405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13406 ac_datarootdir_hack='
13407 s&@datadir@&$datadir&g
13408 s&@docdir@&$docdir&g
13409 s&@infodir@&$infodir&g
13410 s&@localedir@&$localedir&g
13411 s&@mandir@&$mandir&g
13412 s&\\\${datarootdir}&$datarootdir&g' ;;
13413 esac
13414 _ACEOF
13416 # Neutralize VPATH when `$srcdir' = `.'.
13417 # Shell code in configure.ac might set extrasub.
13418 # FIXME: do we really want to maintain this feature?
13419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13420 ac_sed_extra="$ac_vpsub
13421 $extrasub
13422 _ACEOF
13423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13426 s|@configure_input@|$ac_sed_conf_input|;t t
13427 s&@top_builddir@&$ac_top_builddir_sub&;t t
13428 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13429 s&@srcdir@&$ac_srcdir&;t t
13430 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13431 s&@top_srcdir@&$ac_top_srcdir&;t t
13432 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13433 s&@builddir@&$ac_builddir&;t t
13434 s&@abs_builddir@&$ac_abs_builddir&;t t
13435 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13436 s&@INSTALL@&$ac_INSTALL&;t t
13437 $ac_datarootdir_hack
13439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13440 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13443 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13445 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13447 which seems to be undefined. Please make sure it is defined" >&5
13448 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13449 which seems to be undefined. Please make sure it is defined" >&2;}
13451 rm -f "$ac_tmp/stdin"
13452 case $ac_file in
13453 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13454 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13455 esac \
13456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13460 # CONFIG_HEADER
13462 if test x"$ac_file" != x-; then
13464 $as_echo "/* $configure_input */" \
13465 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13466 } >"$ac_tmp/config.h" \
13467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13468 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13470 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13471 else
13472 rm -f "$ac_file"
13473 mv "$ac_tmp/config.h" "$ac_file" \
13474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13476 else
13477 $as_echo "/* $configure_input */" \
13478 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13479 || as_fn_error $? "could not create -" "$LINENO" 5
13483 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13484 $as_echo "$as_me: executing $ac_file commands" >&6;}
13486 esac
13489 case $ac_file$ac_mode in
13490 "libtool":C)
13492 # See if we are running on zsh, and set the options which allow our
13493 # commands through without removal of \ escapes.
13494 if test -n "${ZSH_VERSION+set}" ; then
13495 setopt NO_GLOB_SUBST
13498 cfgfile="${ofile}T"
13499 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13500 $RM "$cfgfile"
13502 cat <<_LT_EOF >> "$cfgfile"
13503 #! $SHELL
13505 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13506 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13507 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13508 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13510 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13511 # 2006, 2007, 2008 Free Software Foundation, Inc.
13512 # Written by Gordon Matzigkeit, 1996
13514 # This file is part of GNU Libtool.
13516 # GNU Libtool is free software; you can redistribute it and/or
13517 # modify it under the terms of the GNU General Public License as
13518 # published by the Free Software Foundation; either version 2 of
13519 # the License, or (at your option) any later version.
13521 # As a special exception to the GNU General Public License,
13522 # if you distribute this file as part of a program or library that
13523 # is built using GNU Libtool, you may include this file under the
13524 # same distribution terms that you use for the rest of that program.
13526 # GNU Libtool is distributed in the hope that it will be useful,
13527 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13528 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13529 # GNU General Public License for more details.
13531 # You should have received a copy of the GNU General Public License
13532 # along with GNU Libtool; see the file COPYING. If not, a copy
13533 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13534 # obtained by writing to the Free Software Foundation, Inc.,
13535 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13538 # The names of the tagged configurations supported by this script.
13539 available_tags=""
13541 # ### BEGIN LIBTOOL CONFIG
13543 # Which release of libtool.m4 was used?
13544 macro_version=$macro_version
13545 macro_revision=$macro_revision
13547 # Whether or not to build shared libraries.
13548 build_libtool_libs=$enable_shared
13550 # Whether or not to build static libraries.
13551 build_old_libs=$enable_static
13553 # What type of objects to build.
13554 pic_mode=$pic_mode
13556 # Whether or not to optimize for fast installation.
13557 fast_install=$enable_fast_install
13559 # The host system.
13560 host_alias=$host_alias
13561 host=$host
13562 host_os=$host_os
13564 # The build system.
13565 build_alias=$build_alias
13566 build=$build
13567 build_os=$build_os
13569 # A sed program that does not truncate output.
13570 SED=$lt_SED
13572 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13573 Xsed="\$SED -e 1s/^X//"
13575 # A grep program that handles long lines.
13576 GREP=$lt_GREP
13578 # An ERE matcher.
13579 EGREP=$lt_EGREP
13581 # A literal string matcher.
13582 FGREP=$lt_FGREP
13584 # A BSD- or MS-compatible name lister.
13585 NM=$lt_NM
13587 # Whether we need soft or hard links.
13588 LN_S=$lt_LN_S
13590 # What is the maximum length of a command?
13591 max_cmd_len=$max_cmd_len
13593 # Object file suffix (normally "o").
13594 objext=$ac_objext
13596 # Executable file suffix (normally "").
13597 exeext=$exeext
13599 # whether the shell understands "unset".
13600 lt_unset=$lt_unset
13602 # turn spaces into newlines.
13603 SP2NL=$lt_lt_SP2NL
13605 # turn newlines into spaces.
13606 NL2SP=$lt_lt_NL2SP
13608 # How to create reloadable object files.
13609 reload_flag=$lt_reload_flag
13610 reload_cmds=$lt_reload_cmds
13612 # An object symbol dumper.
13613 OBJDUMP=$lt_OBJDUMP
13615 # Method to check whether dependent libraries are shared objects.
13616 deplibs_check_method=$lt_deplibs_check_method
13618 # Command to use when deplibs_check_method == "file_magic".
13619 file_magic_cmd=$lt_file_magic_cmd
13621 # The archiver.
13622 AR=$lt_AR
13623 AR_FLAGS=$lt_AR_FLAGS
13625 # A symbol stripping program.
13626 STRIP=$lt_STRIP
13628 # Commands used to install an old-style archive.
13629 RANLIB=$lt_RANLIB
13630 old_postinstall_cmds=$lt_old_postinstall_cmds
13631 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13633 # A C compiler.
13634 LTCC=$lt_CC
13636 # LTCC compiler flags.
13637 LTCFLAGS=$lt_CFLAGS
13639 # Take the output of nm and produce a listing of raw symbols and C names.
13640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13642 # Transform the output of nm in a proper C declaration.
13643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13645 # Transform the output of nm in a C name address pair.
13646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13648 # Transform the output of nm in a C name address pair when lib prefix is needed.
13649 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13651 # The name of the directory that contains temporary libtool files.
13652 objdir=$objdir
13654 # Shell to use when invoking shell scripts.
13655 SHELL=$lt_SHELL
13657 # An echo program that does not interpret backslashes.
13658 ECHO=$lt_ECHO
13660 # Used to examine libraries when file_magic_cmd begins with "file".
13661 MAGIC_CMD=$MAGIC_CMD
13663 # Must we lock files when doing compilation?
13664 need_locks=$lt_need_locks
13666 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13667 DSYMUTIL=$lt_DSYMUTIL
13669 # Tool to change global to local symbols on Mac OS X.
13670 NMEDIT=$lt_NMEDIT
13672 # Tool to manipulate fat objects and archives on Mac OS X.
13673 LIPO=$lt_LIPO
13675 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13676 OTOOL=$lt_OTOOL
13678 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13679 OTOOL64=$lt_OTOOL64
13681 # Old archive suffix (normally "a").
13682 libext=$libext
13684 # Shared library suffix (normally ".so").
13685 shrext_cmds=$lt_shrext_cmds
13687 # The commands to extract the exported symbol list from a shared archive.
13688 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13690 # Variables whose values should be saved in libtool wrapper scripts and
13691 # restored at link time.
13692 variables_saved_for_relink=$lt_variables_saved_for_relink
13694 # Do we need the "lib" prefix for modules?
13695 need_lib_prefix=$need_lib_prefix
13697 # Do we need a version for libraries?
13698 need_version=$need_version
13700 # Library versioning type.
13701 version_type=$version_type
13703 # Shared library runtime path variable.
13704 runpath_var=$runpath_var
13706 # Shared library path variable.
13707 shlibpath_var=$shlibpath_var
13709 # Is shlibpath searched before the hard-coded library search path?
13710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13712 # Format of library name prefix.
13713 libname_spec=$lt_libname_spec
13715 # List of archive names. First name is the real one, the rest are links.
13716 # The last name is the one that the linker finds with -lNAME
13717 library_names_spec=$lt_library_names_spec
13719 # The coded name of the library, if different from the real name.
13720 soname_spec=$lt_soname_spec
13722 # Command to use after installation of a shared archive.
13723 postinstall_cmds=$lt_postinstall_cmds
13725 # Command to use after uninstallation of a shared archive.
13726 postuninstall_cmds=$lt_postuninstall_cmds
13728 # Commands used to finish a libtool library installation in a directory.
13729 finish_cmds=$lt_finish_cmds
13731 # As "finish_cmds", except a single script fragment to be evaled but
13732 # not shown.
13733 finish_eval=$lt_finish_eval
13735 # Whether we should hardcode library paths into libraries.
13736 hardcode_into_libs=$hardcode_into_libs
13738 # Compile-time system search path for libraries.
13739 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13741 # Run-time system search path for libraries.
13742 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13744 # Whether dlopen is supported.
13745 dlopen_support=$enable_dlopen
13747 # Whether dlopen of programs is supported.
13748 dlopen_self=$enable_dlopen_self
13750 # Whether dlopen of statically linked programs is supported.
13751 dlopen_self_static=$enable_dlopen_self_static
13753 # Commands to strip libraries.
13754 old_striplib=$lt_old_striplib
13755 striplib=$lt_striplib
13758 # The linker used to build libraries.
13759 LD=$lt_LD
13761 # Commands used to build an old-style archive.
13762 old_archive_cmds=$lt_old_archive_cmds
13764 # A language specific compiler.
13765 CC=$lt_compiler
13767 # Is the compiler the GNU compiler?
13768 with_gcc=$GCC
13770 # Compiler flag to turn off builtin functions.
13771 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13773 # How to pass a linker flag through the compiler.
13774 wl=$lt_lt_prog_compiler_wl
13776 # Additional compiler flags for building library objects.
13777 pic_flag=$lt_lt_prog_compiler_pic
13779 # Compiler flag to prevent dynamic linking.
13780 link_static_flag=$lt_lt_prog_compiler_static
13782 # Does compiler simultaneously support -c and -o options?
13783 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13785 # Whether or not to add -lc for building shared libraries.
13786 build_libtool_need_lc=$archive_cmds_need_lc
13788 # Whether or not to disallow shared libs when runtime libs are static.
13789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13791 # Compiler flag to allow reflexive dlopens.
13792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13794 # Compiler flag to generate shared objects directly from archives.
13795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13797 # Whether the compiler copes with passing no objects directly.
13798 compiler_needs_object=$lt_compiler_needs_object
13800 # Create an old-style archive from a shared archive.
13801 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13803 # Create a temporary old-style archive to link instead of a shared archive.
13804 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13806 # Commands used to build a shared archive.
13807 archive_cmds=$lt_archive_cmds
13808 archive_expsym_cmds=$lt_archive_expsym_cmds
13810 # Commands used to build a loadable module if different from building
13811 # a shared archive.
13812 module_cmds=$lt_module_cmds
13813 module_expsym_cmds=$lt_module_expsym_cmds
13815 # Whether we are building with GNU ld or not.
13816 with_gnu_ld=$lt_with_gnu_ld
13818 # Flag that allows shared libraries with undefined symbols to be built.
13819 allow_undefined_flag=$lt_allow_undefined_flag
13821 # Flag that enforces no undefined symbols.
13822 no_undefined_flag=$lt_no_undefined_flag
13824 # Flag to hardcode \$libdir into a binary during linking.
13825 # This must work even if \$libdir does not exist
13826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13828 # If ld is used when linking, flag to hardcode \$libdir into a binary
13829 # during linking. This must work even if \$libdir does not exist.
13830 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13832 # Whether we need a single "-rpath" flag with a separated argument.
13833 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13835 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13836 # DIR into the resulting binary.
13837 hardcode_direct=$hardcode_direct
13839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13840 # DIR into the resulting binary and the resulting library dependency is
13841 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13842 # library is relocated.
13843 hardcode_direct_absolute=$hardcode_direct_absolute
13845 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13846 # into the resulting binary.
13847 hardcode_minus_L=$hardcode_minus_L
13849 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13850 # into the resulting binary.
13851 hardcode_shlibpath_var=$hardcode_shlibpath_var
13853 # Set to "yes" if building a shared library automatically hardcodes DIR
13854 # into the library and all subsequent libraries and executables linked
13855 # against it.
13856 hardcode_automatic=$hardcode_automatic
13858 # Set to yes if linker adds runtime paths of dependent libraries
13859 # to runtime path list.
13860 inherit_rpath=$inherit_rpath
13862 # Whether libtool must link a program against all its dependency libraries.
13863 link_all_deplibs=$link_all_deplibs
13865 # Fix the shell variable \$srcfile for the compiler.
13866 fix_srcfile_path=$lt_fix_srcfile_path
13868 # Set to "yes" if exported symbols are required.
13869 always_export_symbols=$always_export_symbols
13871 # The commands to list exported symbols.
13872 export_symbols_cmds=$lt_export_symbols_cmds
13874 # Symbols that should not be listed in the preloaded symbols.
13875 exclude_expsyms=$lt_exclude_expsyms
13877 # Symbols that must always be exported.
13878 include_expsyms=$lt_include_expsyms
13880 # Commands necessary for linking programs (against libraries) with templates.
13881 prelink_cmds=$lt_prelink_cmds
13883 # Specify filename containing input files.
13884 file_list_spec=$lt_file_list_spec
13886 # How to hardcode a shared library path into an executable.
13887 hardcode_action=$hardcode_action
13889 # ### END LIBTOOL CONFIG
13891 _LT_EOF
13893 case $host_os in
13894 aix3*)
13895 cat <<\_LT_EOF >> "$cfgfile"
13896 # AIX sometimes has problems with the GCC collect2 program. For some
13897 # reason, if we set the COLLECT_NAMES environment variable, the problems
13898 # vanish in a puff of smoke.
13899 if test "X${COLLECT_NAMES+set}" != Xset; then
13900 COLLECT_NAMES=
13901 export COLLECT_NAMES
13903 _LT_EOF
13905 esac
13908 ltmain="$ac_aux_dir/ltmain.sh"
13911 # We use sed instead of cat because bash on DJGPP gets confused if
13912 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13913 # text mode, it properly converts lines to CR/LF. This bash problem
13914 # is reportedly fixed, but why not run on old versions too?
13915 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13916 || (rm -f "$cfgfile"; exit 1)
13918 case $xsi_shell in
13919 yes)
13920 cat << \_LT_EOF >> "$cfgfile"
13922 # func_dirname file append nondir_replacement
13923 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13924 # otherwise set result to NONDIR_REPLACEMENT.
13925 func_dirname ()
13927 case ${1} in
13928 */*) func_dirname_result="${1%/*}${2}" ;;
13929 * ) func_dirname_result="${3}" ;;
13930 esac
13933 # func_basename file
13934 func_basename ()
13936 func_basename_result="${1##*/}"
13939 # func_dirname_and_basename file append nondir_replacement
13940 # perform func_basename and func_dirname in a single function
13941 # call:
13942 # dirname: Compute the dirname of FILE. If nonempty,
13943 # add APPEND to the result, otherwise set result
13944 # to NONDIR_REPLACEMENT.
13945 # value returned in "$func_dirname_result"
13946 # basename: Compute filename of FILE.
13947 # value retuned in "$func_basename_result"
13948 # Implementation must be kept synchronized with func_dirname
13949 # and func_basename. For efficiency, we do not delegate to
13950 # those functions but instead duplicate the functionality here.
13951 func_dirname_and_basename ()
13953 case ${1} in
13954 */*) func_dirname_result="${1%/*}${2}" ;;
13955 * ) func_dirname_result="${3}" ;;
13956 esac
13957 func_basename_result="${1##*/}"
13960 # func_stripname prefix suffix name
13961 # strip PREFIX and SUFFIX off of NAME.
13962 # PREFIX and SUFFIX must not contain globbing or regex special
13963 # characters, hashes, percent signs, but SUFFIX may contain a leading
13964 # dot (in which case that matches only a dot).
13965 func_stripname ()
13967 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13968 # positional parameters, so assign one to ordinary parameter first.
13969 func_stripname_result=${3}
13970 func_stripname_result=${func_stripname_result#"${1}"}
13971 func_stripname_result=${func_stripname_result%"${2}"}
13974 # func_opt_split
13975 func_opt_split ()
13977 func_opt_split_opt=${1%%=*}
13978 func_opt_split_arg=${1#*=}
13981 # func_lo2o object
13982 func_lo2o ()
13984 case ${1} in
13985 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13986 *) func_lo2o_result=${1} ;;
13987 esac
13990 # func_xform libobj-or-source
13991 func_xform ()
13993 func_xform_result=${1%.*}.lo
13996 # func_arith arithmetic-term...
13997 func_arith ()
13999 func_arith_result=$(( $* ))
14002 # func_len string
14003 # STRING may not start with a hyphen.
14004 func_len ()
14006 func_len_result=${#1}
14009 _LT_EOF
14011 *) # Bourne compatible functions.
14012 cat << \_LT_EOF >> "$cfgfile"
14014 # func_dirname file append nondir_replacement
14015 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14016 # otherwise set result to NONDIR_REPLACEMENT.
14017 func_dirname ()
14019 # Extract subdirectory from the argument.
14020 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14021 if test "X$func_dirname_result" = "X${1}"; then
14022 func_dirname_result="${3}"
14023 else
14024 func_dirname_result="$func_dirname_result${2}"
14028 # func_basename file
14029 func_basename ()
14031 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14035 # func_stripname prefix suffix name
14036 # strip PREFIX and SUFFIX off of NAME.
14037 # PREFIX and SUFFIX must not contain globbing or regex special
14038 # characters, hashes, percent signs, but SUFFIX may contain a leading
14039 # dot (in which case that matches only a dot).
14040 # func_strip_suffix prefix name
14041 func_stripname ()
14043 case ${2} in
14044 .*) func_stripname_result=`$ECHO "X${3}" \
14045 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14046 *) func_stripname_result=`$ECHO "X${3}" \
14047 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14048 esac
14051 # sed scripts:
14052 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14053 my_sed_long_arg='1s/^-[^=]*=//'
14055 # func_opt_split
14056 func_opt_split ()
14058 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14059 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14062 # func_lo2o object
14063 func_lo2o ()
14065 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14068 # func_xform libobj-or-source
14069 func_xform ()
14071 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14074 # func_arith arithmetic-term...
14075 func_arith ()
14077 func_arith_result=`expr "$@"`
14080 # func_len string
14081 # STRING may not start with a hyphen.
14082 func_len ()
14084 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14087 _LT_EOF
14088 esac
14090 case $lt_shell_append in
14091 yes)
14092 cat << \_LT_EOF >> "$cfgfile"
14094 # func_append var value
14095 # Append VALUE to the end of shell variable VAR.
14096 func_append ()
14098 eval "$1+=\$2"
14100 _LT_EOF
14103 cat << \_LT_EOF >> "$cfgfile"
14105 # func_append var value
14106 # Append VALUE to the end of shell variable VAR.
14107 func_append ()
14109 eval "$1=\$$1\$2"
14112 _LT_EOF
14114 esac
14117 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14118 || (rm -f "$cfgfile"; exit 1)
14120 mv -f "$cfgfile" "$ofile" ||
14121 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14122 chmod +x "$ofile"
14126 esac
14127 done # for ac_tag
14130 as_fn_exit 0
14131 _ACEOF
14132 ac_clean_files=$ac_clean_files_save
14134 test $ac_write_fail = 0 ||
14135 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14138 # configure is writing to config.log, and then calls config.status.
14139 # config.status does its own redirection, appending to config.log.
14140 # Unfortunately, on DOS this fails, as config.log is still kept open
14141 # by configure, so config.status won't be able to write to it; its
14142 # output is simply discarded. So we exec the FD to /dev/null,
14143 # effectively closing config.log, so it can be properly (re)opened and
14144 # appended to by config.status. When coming back to configure, we
14145 # need to make the FD available again.
14146 if test "$no_create" != yes; then
14147 ac_cs_success=:
14148 ac_config_status_args=
14149 test "$silent" = yes &&
14150 ac_config_status_args="$ac_config_status_args --quiet"
14151 exec 5>/dev/null
14152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14153 exec 5>>config.log
14154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14155 # would make configure fail if this is the last instruction.
14156 $ac_cs_success || as_fn_exit 1
14158 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14160 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}