Update README.md
[sqlcipher.git] / configure
bloba2909ce0e9c8778917a1c4c46b926aa533125483
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlcipher 3.37.2.
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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='sqlcipher'
589 PACKAGE_TARNAME='sqlcipher'
590 PACKAGE_VERSION='3.37.2'
591 PACKAGE_STRING='sqlcipher 3.37.2'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='LTLIBOBJS
632 LIBOBJS
633 BUILD_CFLAGS
634 USE_GCOV
635 OPT_FEATURE_FLAGS
636 HAVE_ZLIB
637 AMALGAMATION_LINE_MACROS
638 amalgamation_line_macros
639 USE_AMALGAMATION
640 TARGET_DEBUG
641 TARGET_HAVE_EDITLINE
642 TARGET_HAVE_READLINE
643 TARGET_READLINE_INC
644 TARGET_READLINE_LIBS
645 HAVE_TCL
646 TCL_SHLIB_SUFFIX
647 TCL_STUB_LIB_SPEC
648 TCL_STUB_LIB_FLAG
649 TCL_STUB_LIB_FILE
650 TCL_LIB_SPEC
651 TCL_LIB_FLAG
652 TCL_LIB_FILE
653 TCL_INCLUDE_SPEC
654 TCL_SRC_DIR
655 TCL_BIN_DIR
656 TCL_VERSION
657 TARGET_EXEEXT
658 SQLITE_OS_WIN
659 SQLITE_OS_UNIX
660 BUILD_EXEEXT
661 TEMP_STORE
662 ALLOWRELEASE
663 XTHREADCONNECT
664 SQLITE_THREADSAFE
665 BUILD_CC
666 RELEASE
667 VERSION
668 program_prefix
669 TCLLIBDIR
670 TCLSH_CMD
671 INSTALL_DATA
672 INSTALL_SCRIPT
673 INSTALL_PROGRAM
675 LT_SYS_LIBRARY_PATH
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
683 RANLIB
684 STRIP
685 ac_ct_AR
687 DLLTOOL
688 OBJDUMP
689 LN_S
691 ac_ct_DUMPBIN
692 DUMPBIN
694 FGREP
695 EGREP
696 GREP
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
705 host_os
706 host_vendor
707 host_cpu
708 host
709 build_os
710 build_vendor
711 build_cpu
712 build
713 LIBTOOL
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 runstatedir
734 localstatedir
735 sharedstatedir
736 sysconfdir
737 datadir
738 datarootdir
739 libexecdir
740 sbindir
741 bindir
742 program_transform_name
743 prefix
744 exec_prefix
745 PACKAGE_URL
746 PACKAGE_BUGREPORT
747 PACKAGE_STRING
748 PACKAGE_VERSION
749 PACKAGE_TARNAME
750 PACKAGE_NAME
751 PATH_SEPARATOR
752 SHELL'
753 ac_subst_files=''
754 ac_user_opts='
755 enable_option_checking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_aix_soname
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 enable_largefile
765 enable_threadsafe
766 with_crypto_lib
767 enable_cross_thread_connections
768 enable_releasemode
769 enable_tempstore
770 enable_tcl
771 with_tcl
772 enable_editline
773 enable_readline
774 with_readline_lib
775 with_readline_inc
776 enable_debug
777 enable_amalgamation
778 enable_load_extension
779 enable_math
780 enable_all
781 enable_memsys5
782 enable_memsys3
783 enable_fts3
784 enable_fts4
785 enable_fts5
786 enable_json1
787 enable_update_limit
788 enable_geopoly
789 enable_rtree
790 enable_session
791 enable_gcov
793 ac_precious_vars='build_alias
794 host_alias
795 target_alias
797 CFLAGS
798 LDFLAGS
799 LIBS
800 CPPFLAGS
801 LT_SYS_LIBRARY_PATH
803 TCLLIBDIR
804 amalgamation_line_macros'
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 runstatedir='${localstatedir}/run'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
856 ac_prev=
857 ac_dashdash=
858 for ac_option
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
877 ac_dashdash=yes ;;
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
880 ac_prev=bindir ;;
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 bindir=$ac_optarg ;;
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
896 --config-cache | -C)
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
900 ac_prev=datadir ;;
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=no ;;
927 -docdir | --docdir | --docdi | --doc | --do)
928 ac_prev=docdir ;;
929 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 docdir=$ac_optarg ;;
932 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933 ac_prev=dvidir ;;
934 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 dvidir=$ac_optarg ;;
937 -enable-* | --enable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error $? "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=\$ac_optarg ;;
953 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955 | --exec | --exe | --ex)
956 ac_prev=exec_prefix ;;
957 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959 | --exec=* | --exe=* | --ex=*)
960 exec_prefix=$ac_optarg ;;
962 -gas | --gas | --ga | --g)
963 # Obsolete; use --with-gas.
964 with_gas=yes ;;
966 -help | --help | --hel | --he | -h)
967 ac_init_help=long ;;
968 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969 ac_init_help=recursive ;;
970 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971 ac_init_help=short ;;
973 -host | --host | --hos | --ho)
974 ac_prev=host_alias ;;
975 -host=* | --host=* | --hos=* | --ho=*)
976 host_alias=$ac_optarg ;;
978 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979 ac_prev=htmldir ;;
980 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981 | --ht=*)
982 htmldir=$ac_optarg ;;
984 -includedir | --includedir | --includedi | --included | --include \
985 | --includ | --inclu | --incl | --inc)
986 ac_prev=includedir ;;
987 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988 | --includ=* | --inclu=* | --incl=* | --inc=*)
989 includedir=$ac_optarg ;;
991 -infodir | --infodir | --infodi | --infod | --info | --inf)
992 ac_prev=infodir ;;
993 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994 infodir=$ac_optarg ;;
996 -libdir | --libdir | --libdi | --libd)
997 ac_prev=libdir ;;
998 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 libdir=$ac_optarg ;;
1001 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002 | --libexe | --libex | --libe)
1003 ac_prev=libexecdir ;;
1004 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005 | --libexe=* | --libex=* | --libe=*)
1006 libexecdir=$ac_optarg ;;
1008 -localedir | --localedir | --localedi | --localed | --locale)
1009 ac_prev=localedir ;;
1010 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011 localedir=$ac_optarg ;;
1013 -localstatedir | --localstatedir | --localstatedi | --localstated \
1014 | --localstate | --localstat | --localsta | --localst | --locals)
1015 ac_prev=localstatedir ;;
1016 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018 localstatedir=$ac_optarg ;;
1020 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021 ac_prev=mandir ;;
1022 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023 mandir=$ac_optarg ;;
1025 -nfp | --nfp | --nf)
1026 # Obsolete; use --without-fp.
1027 with_fp=no ;;
1029 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030 | --no-cr | --no-c | -n)
1031 no_create=yes ;;
1033 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 no_recursion=yes ;;
1037 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039 | --oldin | --oldi | --old | --ol | --o)
1040 ac_prev=oldincludedir ;;
1041 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044 oldincludedir=$ac_optarg ;;
1046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047 ac_prev=prefix ;;
1048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049 prefix=$ac_optarg ;;
1051 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052 | --program-pre | --program-pr | --program-p)
1053 ac_prev=program_prefix ;;
1054 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056 program_prefix=$ac_optarg ;;
1058 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059 | --program-suf | --program-su | --program-s)
1060 ac_prev=program_suffix ;;
1061 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063 program_suffix=$ac_optarg ;;
1065 -program-transform-name | --program-transform-name \
1066 | --program-transform-nam | --program-transform-na \
1067 | --program-transform-n | --program-transform- \
1068 | --program-transform | --program-transfor \
1069 | --program-transfo | --program-transf \
1070 | --program-trans | --program-tran \
1071 | --progr-tra | --program-tr | --program-t)
1072 ac_prev=program_transform_name ;;
1073 -program-transform-name=* | --program-transform-name=* \
1074 | --program-transform-nam=* | --program-transform-na=* \
1075 | --program-transform-n=* | --program-transform-=* \
1076 | --program-transform=* | --program-transfor=* \
1077 | --program-transfo=* | --program-transf=* \
1078 | --program-trans=* | --program-tran=* \
1079 | --progr-tra=* | --program-tr=* | --program-t=*)
1080 program_transform_name=$ac_optarg ;;
1082 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083 ac_prev=pdfdir ;;
1084 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085 pdfdir=$ac_optarg ;;
1087 -psdir | --psdir | --psdi | --psd | --ps)
1088 ac_prev=psdir ;;
1089 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 psdir=$ac_optarg ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 silent=yes ;;
1096 -runstatedir | --runstatedir | --runstatedi | --runstated \
1097 | --runstate | --runstat | --runsta | --runst | --runs \
1098 | --run | --ru | --r)
1099 ac_prev=runstatedir ;;
1100 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1101 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1102 | --run=* | --ru=* | --r=*)
1103 runstatedir=$ac_optarg ;;
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201 Try \`$0 --help' for more information"
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 esac
1223 done
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error $? "missing argument to $ac_option"
1230 if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1238 # Check all directory arguments for consistency.
1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir runstatedir
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 done
1259 # There might be people who depend on the old broken behavior: `$host'
1260 # used to hold the argument of --host etc.
1261 # FIXME: To remove some day.
1262 build=$build_alias
1263 host=$host_alias
1264 target=$target_alias
1266 # FIXME: To remove some day.
1267 if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 elif test "x$build_alias" != "x$host_alias"; then
1271 cross_compiling=yes
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278 test "$silent" = yes && exec 6>/dev/null
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284 as_fn_error $? "working directory cannot be determined"
1285 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286 as_fn_error $? "pwd does not report name of working directory"
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291 ac_srcdir_defaulted=yes
1292 # Try the directory containing this script, then the parent directory.
1293 ac_confdir=`$as_dirname -- "$as_myself" ||
1294 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295 X"$as_myself" : 'X\(//\)[^/]' \| \
1296 X"$as_myself" : 'X\(//\)$' \| \
1297 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298 $as_echo X"$as_myself" |
1299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 s//\1/
1303 /^X\(\/\/\)[^/].*/{
1304 s//\1/
1307 /^X\(\/\/\)$/{
1308 s//\1/
1311 /^X\(\/\).*/{
1312 s//\1/
1315 s/.*/./; q'`
1316 srcdir=$ac_confdir
1317 if test ! -r "$srcdir/$ac_unique_file"; then
1318 srcdir=..
1320 else
1321 ac_srcdir_defaulted=no
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1327 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328 ac_abs_confdir=`(
1329 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330 pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 srcdir=.
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_env_${ac_var}_value=\$${ac_var}
1344 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1349 # Report the --help message.
1351 if test "$ac_init_help" = "long"; then
1352 # Omit some internal or obsolete options to make the list less imposing.
1353 # This message is too long to be a string in the A/UX 3.1 sh.
1354 cat <<_ACEOF
1355 \`configure' configures sqlcipher 3.37.2 to adapt to many kinds of systems.
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE. See below for descriptions of some of the useful variables.
1362 Defaults for the options are specified in brackets.
1364 Configuration:
1365 -h, --help display this help and exit
1366 --help=short display options specific to this package
1367 --help=recursive display the short help of all the included packages
1368 -V, --version display version information and exit
1369 -q, --quiet, --silent do not print \`checking ...' messages
1370 --cache-file=FILE cache test results in FILE [disabled]
1371 -C, --config-cache alias for \`--cache-file=config.cache'
1372 -n, --no-create do not create output files
1373 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375 Installation directories:
1376 --prefix=PREFIX install architecture-independent files in PREFIX
1377 [$ac_default_prefix]
1378 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 [PREFIX]
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1386 For better control, use the options below.
1388 Fine tuning of the installation directories:
1389 --bindir=DIR user executables [EPREFIX/bin]
1390 --sbindir=DIR system admin executables [EPREFIX/sbin]
1391 --libexecdir=DIR program executables [EPREFIX/libexec]
1392 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1393 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1394 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1395 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlcipher]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
1409 _ACEOF
1411 cat <<\_ACEOF
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of sqlcipher 3.37.2:";;
1422 esac
1423 cat <<\_ACEOF
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-shared[=PKGS] build shared libraries [default=yes]
1430 --enable-static[=PKGS] build static libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
1434 --disable-largefile omit support for large files
1435 --disable-threadsafe Disable mutexing
1436 --enable-cross-thread-connections
1437 Allow connection sharing across threads
1438 --enable-releasemode Support libtool link to release mode
1439 --enable-tempstore Use an in-ram database for temporary tables
1440 (never,no,yes,always)
1441 --disable-tcl do not build TCL extension
1442 --enable-editline enable BSD editline support
1443 --disable-readline disable readline support
1444 --enable-debug enable debugging & verbose explain
1445 --disable-amalgamation Disable the amalgamation and instead build all files
1446 separately
1447 --disable-load-extension
1448 Disable loading of external extensions
1449 --disable-math Disable math functions
1450 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
1451 --enable-memsys5 Enable MEMSYS5
1452 --enable-memsys3 Enable MEMSYS3
1453 --enable-fts3 Enable the FTS3 extension
1454 --enable-fts4 Enable the FTS4 extension
1455 --enable-fts5 Enable the FTS5 extension
1456 --enable-json1 Enable the JSON1 extension
1457 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1458 --enable-geopoly Enable the GEOPOLY extension
1459 --enable-rtree Enable the RTREE extension
1460 --enable-session Enable the SESSION extension
1461 --enable-gcov Enable coverage testing using gcov
1463 Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1466 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-aix-soname=aix|svr4|both
1469 shared library versioning (aka "SONAME") variant to
1470 provide on AIX, [default=aix].
1471 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1472 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1473 compiler's sysroot if not specified).
1474 --with-crypto-lib Specify which crypto library to use
1475 --with-tcl=DIR directory containing tcl configuration
1476 (tclConfig.sh)
1477 --with-readline-lib specify readline library
1478 --with-readline-inc specify readline include paths
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 LIBS libraries to pass to the linker, e.g. -l<library>
1486 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 LT_SYS_LIBRARY_PATH
1489 User-defined run-time library search path.
1490 CPP C preprocessor
1491 TCLLIBDIR Where to install tcl plugin
1492 amalgamation_line_macros
1495 Use these variables to override the choices made by `configure' or to help
1496 it to find libraries and programs with nonstandard names/locations.
1498 Report bugs to the package provider.
1499 _ACEOF
1500 ac_status=$?
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 sqlcipher configure 3.37.2
1562 generated by GNU Autoconf 2.69
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_link ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 test -x conftest$ac_exeext
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_header_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1731 ac_fn_c_try_run ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
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_run
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1797 #undef $2
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1814 main ()
1816 return $2 ();
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_func
1836 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1837 # -------------------------------------------
1838 # Tests whether TYPE exists after having included INCLUDES, setting cache
1839 # variable VAR accordingly.
1840 ac_fn_c_check_type ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 eval "$3=no"
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1853 main ()
1855 if (sizeof ($2))
1856 return 0;
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1866 main ()
1868 if (sizeof (($2)))
1869 return 0;
1871 return 0;
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1876 else
1877 eval "$3=yes"
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_type
1890 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1891 # -------------------------------------------------------
1892 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1893 # the include files in INCLUDES and setting the cache variable VAR
1894 # accordingly.
1895 ac_fn_c_check_header_mongrel ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if eval \${$3+:} false; then :
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1904 eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906 $as_echo "$ac_res" >&6; }
1907 else
1908 # Is the header compilable?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1910 $as_echo_n "checking $2 usability... " >&6; }
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1914 #include <$2>
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 ac_header_compiler=yes
1918 else
1919 ac_header_compiler=no
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1923 $as_echo "$ac_header_compiler" >&6; }
1925 # Is the header present?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1927 $as_echo_n "checking $2 presence... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_cpp "$LINENO"; then :
1933 ac_header_preproc=yes
1934 else
1935 ac_header_preproc=no
1937 rm -f conftest.err conftest.i conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1939 $as_echo "$ac_header_preproc" >&6; }
1941 # So? What about this header?
1942 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1943 yes:no: )
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1945 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1949 no:yes:* )
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1951 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1953 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1955 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1957 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 esac
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 eval "$3=\$ac_header_compiler"
1969 eval ac_res=\$$3
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975 } # ac_fn_c_check_header_mongrel
1976 cat >config.log <<_ACEOF
1977 This file contains any messages produced by compilers while
1978 running configure, to aid debugging if configure makes a mistake.
1980 It was created by sqlcipher $as_me 3.37.2, which was
1981 generated by GNU Autoconf 2.69. Invocation command line was
1983 $ $0 $@
1985 _ACEOF
1986 exec 5>>config.log
1988 cat <<_ASUNAME
1989 ## --------- ##
1990 ## Platform. ##
1991 ## --------- ##
1993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2005 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2010 _ASUNAME
2012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 for as_dir in $PATH
2015 IFS=$as_save_IFS
2016 test -z "$as_dir" && as_dir=.
2017 $as_echo "PATH: $as_dir"
2018 done
2019 IFS=$as_save_IFS
2021 } >&5
2023 cat >&5 <<_ACEOF
2026 ## ----------- ##
2027 ## Core tests. ##
2028 ## ----------- ##
2030 _ACEOF
2033 # Keep a trace of the command line.
2034 # Strip out --no-create and --no-recursion so they do not pile up.
2035 # Strip out --silent because we don't want to record it for future runs.
2036 # Also quote any args containing shell meta-characters.
2037 # Make two passes to allow for proper duplicate-argument suppression.
2038 ac_configure_args=
2039 ac_configure_args0=
2040 ac_configure_args1=
2041 ac_must_keep_next=false
2042 for ac_pass in 1 2
2044 for ac_arg
2046 case $ac_arg in
2047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2049 | -silent | --silent | --silen | --sile | --sil)
2050 continue ;;
2051 *\'*)
2052 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2053 esac
2054 case $ac_pass in
2055 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2057 as_fn_append ac_configure_args1 " '$ac_arg'"
2058 if test $ac_must_keep_next = true; then
2059 ac_must_keep_next=false # Got value, back to normal.
2060 else
2061 case $ac_arg in
2062 *=* | --config-cache | -C | -disable-* | --disable-* \
2063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2065 | -with-* | --with-* | -without-* | --without-* | --x)
2066 case "$ac_configure_args0 " in
2067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2068 esac
2070 -* ) ac_must_keep_next=true ;;
2071 esac
2073 as_fn_append ac_configure_args " '$ac_arg'"
2075 esac
2076 done
2077 done
2078 { ac_configure_args0=; unset ac_configure_args0;}
2079 { ac_configure_args1=; unset ac_configure_args1;}
2081 # When interrupted or exit'd, cleanup temporary files, and complete
2082 # config.log. We remove comments because anyway the quotes in there
2083 # would cause problems or look ugly.
2084 # WARNING: Use '\'' to represent an apostrophe within the trap.
2085 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2086 trap 'exit_status=$?
2087 # Save into config.log some information that might help in debugging.
2089 echo
2091 $as_echo "## ---------------- ##
2092 ## Cache variables. ##
2093 ## ---------------- ##"
2094 echo
2095 # The following way of writing the cache mishandles newlines in values,
2097 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2098 eval ac_val=\$$ac_var
2099 case $ac_val in #(
2100 *${as_nl}*)
2101 case $ac_var in #(
2102 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2103 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2104 esac
2105 case $ac_var in #(
2106 _ | IFS | as_nl) ;; #(
2107 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2108 *) { eval $ac_var=; unset $ac_var;} ;;
2109 esac ;;
2110 esac
2111 done
2112 (set) 2>&1 |
2113 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2114 *${as_nl}ac_space=\ *)
2115 sed -n \
2116 "s/'\''/'\''\\\\'\'''\''/g;
2117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2118 ;; #(
2120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 esac |
2123 sort
2125 echo
2127 $as_echo "## ----------------- ##
2128 ## Output variables. ##
2129 ## ----------------- ##"
2130 echo
2131 for ac_var in $ac_subst_vars
2133 eval ac_val=\$$ac_var
2134 case $ac_val in
2135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 esac
2137 $as_echo "$ac_var='\''$ac_val'\''"
2138 done | sort
2139 echo
2141 if test -n "$ac_subst_files"; then
2142 $as_echo "## ------------------- ##
2143 ## File substitutions. ##
2144 ## ------------------- ##"
2145 echo
2146 for ac_var in $ac_subst_files
2148 eval ac_val=\$$ac_var
2149 case $ac_val in
2150 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 esac
2152 $as_echo "$ac_var='\''$ac_val'\''"
2153 done | sort
2154 echo
2157 if test -s confdefs.h; then
2158 $as_echo "## ----------- ##
2159 ## confdefs.h. ##
2160 ## ----------- ##"
2161 echo
2162 cat confdefs.h
2163 echo
2165 test "$ac_signal" != 0 &&
2166 $as_echo "$as_me: caught signal $ac_signal"
2167 $as_echo "$as_me: exit $exit_status"
2168 } >&5
2169 rm -f core *.core core.conftest.* &&
2170 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2171 exit $exit_status
2173 for ac_signal in 1 2 13 15; do
2174 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2175 done
2176 ac_signal=0
2178 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2179 rm -f -r conftest* confdefs.h
2181 $as_echo "/* confdefs.h */" > confdefs.h
2183 # Predefined preprocessor variables.
2185 cat >>confdefs.h <<_ACEOF
2186 #define PACKAGE_NAME "$PACKAGE_NAME"
2187 _ACEOF
2189 cat >>confdefs.h <<_ACEOF
2190 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2191 _ACEOF
2193 cat >>confdefs.h <<_ACEOF
2194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2195 _ACEOF
2197 cat >>confdefs.h <<_ACEOF
2198 #define PACKAGE_STRING "$PACKAGE_STRING"
2199 _ACEOF
2201 cat >>confdefs.h <<_ACEOF
2202 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2203 _ACEOF
2205 cat >>confdefs.h <<_ACEOF
2206 #define PACKAGE_URL "$PACKAGE_URL"
2207 _ACEOF
2210 # Let the site file select an alternate cache file if it wants to.
2211 # Prefer an explicitly selected file to automatically selected ones.
2212 ac_site_file1=NONE
2213 ac_site_file2=NONE
2214 if test -n "$CONFIG_SITE"; then
2215 # We do not want a PATH search for config.site.
2216 case $CONFIG_SITE in #((
2217 -*) ac_site_file1=./$CONFIG_SITE;;
2218 */*) ac_site_file1=$CONFIG_SITE;;
2219 *) ac_site_file1=./$CONFIG_SITE;;
2220 esac
2221 elif test "x$prefix" != xNONE; then
2222 ac_site_file1=$prefix/share/config.site
2223 ac_site_file2=$prefix/etc/config.site
2224 else
2225 ac_site_file1=$ac_default_prefix/share/config.site
2226 ac_site_file2=$ac_default_prefix/etc/config.site
2228 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2230 test "x$ac_site_file" = xNONE && continue
2231 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2233 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2234 sed 's/^/| /' "$ac_site_file" >&5
2235 . "$ac_site_file" \
2236 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 as_fn_error $? "failed to load site script $ac_site_file
2239 See \`config.log' for more details" "$LINENO" 5; }
2241 done
2243 if test -r "$cache_file"; then
2244 # Some versions of bash will fail to source /dev/null (special files
2245 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2246 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2248 $as_echo "$as_me: loading cache $cache_file" >&6;}
2249 case $cache_file in
2250 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2251 *) . "./$cache_file";;
2252 esac
2254 else
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2256 $as_echo "$as_me: creating cache $cache_file" >&6;}
2257 >$cache_file
2260 # Check that the precious variables saved in the cache have kept the same
2261 # value.
2262 ac_cache_corrupted=false
2263 for ac_var in $ac_precious_vars; do
2264 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2265 eval ac_new_set=\$ac_env_${ac_var}_set
2266 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2267 eval ac_new_val=\$ac_env_${ac_var}_value
2268 case $ac_old_set,$ac_new_set in
2269 set,)
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2272 ac_cache_corrupted=: ;;
2273 ,set)
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2276 ac_cache_corrupted=: ;;
2277 ,);;
2279 if test "x$ac_old_val" != "x$ac_new_val"; then
2280 # differences in whitespace do not lead to failure.
2281 ac_old_val_w=`echo x $ac_old_val`
2282 ac_new_val_w=`echo x $ac_new_val`
2283 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2285 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2286 ac_cache_corrupted=:
2287 else
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2289 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2290 eval $ac_var=\$ac_old_val
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2293 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2295 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2296 fi;;
2297 esac
2298 # Pass precious variables to config.status.
2299 if test "$ac_new_set" = set; then
2300 case $ac_new_val in
2301 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 *) ac_arg=$ac_var=$ac_new_val ;;
2303 esac
2304 case " $ac_configure_args " in
2305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2306 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2307 esac
2309 done
2310 if $ac_cache_corrupted; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2314 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2315 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2317 ## -------------------- ##
2318 ## Main body of script. ##
2319 ## -------------------- ##
2321 ac_ext=c
2322 ac_cpp='$CPP $CPPFLAGS'
2323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2330 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2331 as_fn_error $? "configure script is out of date:
2332 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2333 top level VERSION file = $sqlite_version_sanity_check
2334 please regen with autoconf" "$LINENO" 5
2337 #########
2338 # Programs needed
2340 ac_aux_dir=
2341 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2342 if test -f "$ac_dir/install-sh"; then
2343 ac_aux_dir=$ac_dir
2344 ac_install_sh="$ac_aux_dir/install-sh -c"
2345 break
2346 elif test -f "$ac_dir/install.sh"; then
2347 ac_aux_dir=$ac_dir
2348 ac_install_sh="$ac_aux_dir/install.sh -c"
2349 break
2350 elif test -f "$ac_dir/shtool"; then
2351 ac_aux_dir=$ac_dir
2352 ac_install_sh="$ac_aux_dir/shtool install -c"
2353 break
2355 done
2356 if test -z "$ac_aux_dir"; then
2357 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2360 # These three variables are undocumented and unsupported,
2361 # and are intended to be withdrawn in a future Autoconf release.
2362 # They can cause serious problems if a builder's source tree is in a directory
2363 # whose full name contains unusual characters.
2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2366 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2369 case `pwd` in
2370 *\ * | *\ *)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2372 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2373 esac
2377 macro_version='2.4.6'
2378 macro_revision='2.4.6'
2392 ltmain=$ac_aux_dir/ltmain.sh
2394 # Make sure we can run config.sub.
2395 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2396 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2399 $as_echo_n "checking build system type... " >&6; }
2400 if ${ac_cv_build+:} false; then :
2401 $as_echo_n "(cached) " >&6
2402 else
2403 ac_build_alias=$build_alias
2404 test "x$ac_build_alias" = x &&
2405 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2406 test "x$ac_build_alias" = x &&
2407 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2408 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2409 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2413 $as_echo "$ac_cv_build" >&6; }
2414 case $ac_cv_build in
2415 *-*-*) ;;
2416 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2417 esac
2418 build=$ac_cv_build
2419 ac_save_IFS=$IFS; IFS='-'
2420 set x $ac_cv_build
2421 shift
2422 build_cpu=$1
2423 build_vendor=$2
2424 shift; shift
2425 # Remember, the first character of IFS is used to create $*,
2426 # except with old shells:
2427 build_os=$*
2428 IFS=$ac_save_IFS
2429 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2433 $as_echo_n "checking host system type... " >&6; }
2434 if ${ac_cv_host+:} false; then :
2435 $as_echo_n "(cached) " >&6
2436 else
2437 if test "x$host_alias" = x; then
2438 ac_cv_host=$ac_cv_build
2439 else
2440 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2441 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2446 $as_echo "$ac_cv_host" >&6; }
2447 case $ac_cv_host in
2448 *-*-*) ;;
2449 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2450 esac
2451 host=$ac_cv_host
2452 ac_save_IFS=$IFS; IFS='-'
2453 set x $ac_cv_host
2454 shift
2455 host_cpu=$1
2456 host_vendor=$2
2457 shift; shift
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2460 host_os=$*
2461 IFS=$ac_save_IFS
2462 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2465 # Backslashify metacharacters that are still active within
2466 # double-quoted strings.
2467 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2469 # Same as above, but do not quote variable references.
2470 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2472 # Sed substitution to delay expansion of an escaped shell variable in a
2473 # double_quote_subst'ed string.
2474 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2476 # Sed substitution to delay expansion of an escaped single quote.
2477 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2479 # Sed substitution to avoid accidental globbing in evaled expressions
2480 no_glob_subst='s/\*/\\\*/g'
2482 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2483 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2484 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2487 $as_echo_n "checking how to print strings... " >&6; }
2488 # Test print first, because it will be a builtin if present.
2489 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2490 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2491 ECHO='print -r --'
2492 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2493 ECHO='printf %s\n'
2494 else
2495 # Use this function as a fallback that always works.
2496 func_fallback_echo ()
2498 eval 'cat <<_LTECHO_EOF
2500 _LTECHO_EOF'
2502 ECHO='func_fallback_echo'
2505 # func_echo_all arg...
2506 # Invoke $ECHO with all args, space-separated.
2507 func_echo_all ()
2509 $ECHO ""
2512 case $ECHO in
2513 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2514 $as_echo "printf" >&6; } ;;
2515 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2516 $as_echo "print -r" >&6; } ;;
2517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2518 $as_echo "cat" >&6; } ;;
2519 esac
2534 ac_ext=c
2535 ac_cpp='$CPP $CPPFLAGS'
2536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2543 $as_echo_n "checking for $ac_word... " >&6; }
2544 if ${ac_cv_prog_CC+:} false; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
2556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2561 done
2562 done
2563 IFS=$as_save_IFS
2567 CC=$ac_cv_prog_CC
2568 if test -n "$CC"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2570 $as_echo "$CC" >&6; }
2571 else
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2573 $as_echo "no" >&6; }
2578 if test -z "$ac_cv_prog_CC"; then
2579 ac_ct_CC=$CC
2580 # Extract the first word of "gcc", so it can be a program name with args.
2581 set dummy gcc; ac_word=$2
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2583 $as_echo_n "checking for $ac_word... " >&6; }
2584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 if test -n "$ac_ct_CC"; then
2588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2589 else
2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 for as_dir in $PATH
2593 IFS=$as_save_IFS
2594 test -z "$as_dir" && as_dir=.
2595 for ac_exec_ext in '' $ac_executable_extensions; do
2596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2597 ac_cv_prog_ac_ct_CC="gcc"
2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2599 break 2
2601 done
2602 done
2603 IFS=$as_save_IFS
2607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2608 if test -n "$ac_ct_CC"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2610 $as_echo "$ac_ct_CC" >&6; }
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2613 $as_echo "no" >&6; }
2616 if test "x$ac_ct_CC" = x; then
2617 CC=""
2618 else
2619 case $cross_compiling:$ac_tool_warned in
2620 yes:)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2623 ac_tool_warned=yes ;;
2624 esac
2625 CC=$ac_ct_CC
2627 else
2628 CC="$ac_cv_prog_CC"
2631 if test -z "$CC"; then
2632 if test -n "$ac_tool_prefix"; then
2633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2634 set dummy ${ac_tool_prefix}cc; ac_word=$2
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2636 $as_echo_n "checking for $ac_word... " >&6; }
2637 if ${ac_cv_prog_CC+:} false; then :
2638 $as_echo_n "(cached) " >&6
2639 else
2640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 else
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 for as_dir in $PATH
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2650 ac_cv_prog_CC="${ac_tool_prefix}cc"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2654 done
2655 done
2656 IFS=$as_save_IFS
2660 CC=$ac_cv_prog_CC
2661 if test -n "$CC"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2663 $as_echo "$CC" >&6; }
2664 else
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2666 $as_echo "no" >&6; }
2672 if test -z "$CC"; then
2673 # Extract the first word of "cc", so it can be a program name with args.
2674 set dummy cc; ac_word=$2
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2676 $as_echo_n "checking for $ac_word... " >&6; }
2677 if ${ac_cv_prog_CC+:} false; then :
2678 $as_echo_n "(cached) " >&6
2679 else
2680 if test -n "$CC"; then
2681 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 else
2683 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2692 ac_prog_rejected=yes
2693 continue
2695 ac_cv_prog_CC="cc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2703 if test $ac_prog_rejected = yes; then
2704 # We found a bogon in the path, so make sure we never use it.
2705 set dummy $ac_cv_prog_CC
2706 shift
2707 if test $# != 0; then
2708 # We chose a different compiler from the bogus one.
2709 # However, it has the same basename, so the bogon will be chosen
2710 # first if we set CC to just the basename; use the full file name.
2711 shift
2712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2717 CC=$ac_cv_prog_CC
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2721 else
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2728 if test -z "$CC"; then
2729 if test -n "$ac_tool_prefix"; then
2730 for ac_prog in cl.exe
2732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$CC"; then
2740 ac_cv_prog_CC="$CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2753 done
2754 done
2755 IFS=$as_save_IFS
2759 CC=$ac_cv_prog_CC
2760 if test -n "$CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2762 $as_echo "$CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2769 test -n "$CC" && break
2770 done
2772 if test -z "$CC"; then
2773 ac_ct_CC=$CC
2774 for ac_prog in cl.exe
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777 set dummy $ac_prog; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$ac_ct_CC"; then
2784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2793 ac_cv_prog_ac_ct_CC="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2804 if test -n "$ac_ct_CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2806 $as_echo "$ac_ct_CC" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2813 test -n "$ac_ct_CC" && break
2814 done
2816 if test "x$ac_ct_CC" = x; then
2817 CC=""
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825 CC=$ac_ct_CC
2832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2834 as_fn_error $? "no acceptable C compiler found in \$PATH
2835 See \`config.log' for more details" "$LINENO" 5; }
2837 # Provide some information about the compiler.
2838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2839 set X $ac_compile
2840 ac_compiler=$2
2841 for ac_option in --version -v -V -qversion; do
2842 { { ac_try="$ac_compiler $ac_option >&5"
2843 case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846 esac
2847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2848 $as_echo "$ac_try_echo"; } >&5
2849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2850 ac_status=$?
2851 if test -s conftest.err; then
2852 sed '10a\
2853 ... rest of stderr output deleted ...
2854 10q' conftest.err >conftest.er1
2855 cat conftest.er1 >&5
2857 rm -f conftest.er1 conftest.err
2858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2859 test $ac_status = 0; }
2860 done
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2866 main ()
2870 return 0;
2872 _ACEOF
2873 ac_clean_files_save=$ac_clean_files
2874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2875 # Try to create an executable without -o first, disregard a.out.
2876 # It will help us diagnose broken compilers, and finding out an intuition
2877 # of exeext.
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2879 $as_echo_n "checking whether the C compiler works... " >&6; }
2880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2882 # The possible output files:
2883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2885 ac_rmfiles=
2886 for ac_file in $ac_files
2888 case $ac_file in
2889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2891 esac
2892 done
2893 rm -f $ac_rmfiles
2895 if { { ac_try="$ac_link_default"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link_default") 2>&5
2903 ac_status=$?
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }; then :
2906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2909 # so that the user can short-circuit this test for compilers unknown to
2910 # Autoconf.
2911 for ac_file in $ac_files ''
2913 test -f "$ac_file" || continue
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2917 [ab].out )
2918 # We found the default executable, but exeext='' is most
2919 # certainly right.
2920 break;;
2921 *.* )
2922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2923 then :; else
2924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2926 # We set ac_cv_exeext here because the later test for it is not
2927 # safe: cross compilers may not add the suffix if given an `-o'
2928 # argument, so we may need to know it at that point already.
2929 # Even if this section looks crufty: it has the advantage of
2930 # actually working.
2931 break;;
2933 break;;
2934 esac
2935 done
2936 test "$ac_cv_exeext" = no && ac_cv_exeext=
2938 else
2939 ac_file=''
2941 if test -z "$ac_file"; then :
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error 77 "C compiler cannot create executables
2950 See \`config.log' for more details" "$LINENO" 5; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2956 $as_echo_n "checking for C compiler default output file name... " >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2958 $as_echo "$ac_file" >&6; }
2959 ac_exeext=$ac_cv_exeext
2961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2962 ac_clean_files=$ac_clean_files_save
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2964 $as_echo_n "checking for suffix of executables... " >&6; }
2965 if { { ac_try="$ac_link"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_link") 2>&5
2973 ac_status=$?
2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975 test $ac_status = 0; }; then :
2976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2978 # work properly (i.e., refer to `conftest.exe'), while it won't with
2979 # `rm'.
2980 for ac_file in conftest.exe conftest conftest.*; do
2981 test -f "$ac_file" || continue
2982 case $ac_file in
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2985 break;;
2986 * ) break;;
2987 esac
2988 done
2989 else
2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2993 See \`config.log' for more details" "$LINENO" 5; }
2995 rm -f conftest conftest$ac_cv_exeext
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2997 $as_echo "$ac_cv_exeext" >&6; }
2999 rm -f conftest.$ac_ext
3000 EXEEXT=$ac_cv_exeext
3001 ac_exeext=$EXEEXT
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3004 #include <stdio.h>
3006 main ()
3008 FILE *f = fopen ("conftest.out", "w");
3009 return ferror (f) || fclose (f) != 0;
3012 return 0;
3014 _ACEOF
3015 ac_clean_files="$ac_clean_files conftest.out"
3016 # Check that the compiler produces executables we can run. If not, either
3017 # the compiler is broken, or we cross compile.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3019 $as_echo_n "checking whether we are cross compiling... " >&6; }
3020 if test "$cross_compiling" != yes; then
3021 { { ac_try="$ac_link"
3022 case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025 esac
3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3027 $as_echo "$ac_try_echo"; } >&5
3028 (eval "$ac_link") 2>&5
3029 ac_status=$?
3030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3031 test $ac_status = 0; }
3032 if { ac_try='./conftest$ac_cv_exeext'
3033 { { case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; }; then
3043 cross_compiling=no
3044 else
3045 if test "$cross_compiling" = maybe; then
3046 cross_compiling=yes
3047 else
3048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $? "cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \`config.log' for more details" "$LINENO" 5; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3057 $as_echo "$cross_compiling" >&6; }
3059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3060 ac_clean_files=$ac_clean_files_save
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3062 $as_echo_n "checking for suffix of object files... " >&6; }
3063 if ${ac_cv_objext+:} false; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3070 main ()
3074 return 0;
3076 _ACEOF
3077 rm -f conftest.o conftest.obj
3078 if { { ac_try="$ac_compile"
3079 case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compile") 2>&5
3086 ac_status=$?
3087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088 test $ac_status = 0; }; then :
3089 for ac_file in conftest.o conftest.obj conftest.*; do
3090 test -f "$ac_file" || continue;
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094 break;;
3095 esac
3096 done
3097 else
3098 $as_echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 as_fn_error $? "cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details" "$LINENO" 5; }
3106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3109 $as_echo "$ac_cv_objext" >&6; }
3110 OBJEXT=$ac_cv_objext
3111 ac_objext=$OBJEXT
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3114 if ${ac_cv_c_compiler_gnu+:} false; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3121 main ()
3123 #ifndef __GNUC__
3124 choke me
3125 #endif
3128 return 0;
3130 _ACEOF
3131 if ac_fn_c_try_compile "$LINENO"; then :
3132 ac_compiler_gnu=yes
3133 else
3134 ac_compiler_gnu=no
3136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3142 if test $ac_compiler_gnu = yes; then
3143 GCC=yes
3144 else
3145 GCC=
3147 ac_test_CFLAGS=${CFLAGS+set}
3148 ac_save_CFLAGS=$CFLAGS
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3151 if ${ac_cv_prog_cc_g+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 ac_save_c_werror_flag=$ac_c_werror_flag
3155 ac_c_werror_flag=yes
3156 ac_cv_prog_cc_g=no
3157 CFLAGS="-g"
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3162 main ()
3166 return 0;
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170 ac_cv_prog_cc_g=yes
3171 else
3172 CFLAGS=""
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3177 main ()
3181 return 0;
3183 _ACEOF
3184 if ac_fn_c_try_compile "$LINENO"; then :
3186 else
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188 CFLAGS="-g"
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3193 main ()
3197 return 0;
3199 _ACEOF
3200 if ac_fn_c_try_compile "$LINENO"; then :
3201 ac_cv_prog_cc_g=yes
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3211 $as_echo "$ac_cv_prog_cc_g" >&6; }
3212 if test "$ac_test_CFLAGS" = set; then
3213 CFLAGS=$ac_save_CFLAGS
3214 elif test $ac_cv_prog_cc_g = yes; then
3215 if test "$GCC" = yes; then
3216 CFLAGS="-g -O2"
3217 else
3218 CFLAGS="-g"
3220 else
3221 if test "$GCC" = yes; then
3222 CFLAGS="-O2"
3223 else
3224 CFLAGS=
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3229 if ${ac_cv_prog_cc_c89+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 ac_cv_prog_cc_c89=no
3233 ac_save_CC=$CC
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3236 #include <stdarg.h>
3237 #include <stdio.h>
3238 struct stat;
3239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3240 struct buf { int x; };
3241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3242 static char *e (p, i)
3243 char **p;
3244 int i;
3246 return p[i];
3248 static char *f (char * (*g) (char **, int), char **p, ...)
3250 char *s;
3251 va_list v;
3252 va_start (v,p);
3253 s = g (p, va_arg (v,int));
3254 va_end (v);
3255 return s;
3258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3259 function prototypes and stuff, but not '\xHH' hex character constants.
3260 These don't provoke an error unfortunately, instead are silently treated
3261 as 'x'. The following induces an error, until -std is added to get
3262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3263 array size at least. It's necessary to write '\x00'==0 to get something
3264 that's true only with -std. */
3265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3268 inside strings and character constants. */
3269 #define FOO(x) 'x'
3270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272 int test (int i, double x);
3273 struct s1 {int (*f) (int a);};
3274 struct s2 {int (*f) (double a);};
3275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 int argc;
3277 char **argv;
3279 main ()
3281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 return 0;
3285 _ACEOF
3286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3289 CC="$ac_save_CC $ac_arg"
3290 if ac_fn_c_try_compile "$LINENO"; then :
3291 ac_cv_prog_cc_c89=$ac_arg
3293 rm -f core conftest.err conftest.$ac_objext
3294 test "x$ac_cv_prog_cc_c89" != "xno" && break
3295 done
3296 rm -f conftest.$ac_ext
3297 CC=$ac_save_CC
3300 # AC_CACHE_VAL
3301 case "x$ac_cv_prog_cc_c89" in
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3304 $as_echo "none needed" >&6; } ;;
3305 xno)
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3307 $as_echo "unsupported" >&6; } ;;
3309 CC="$CC $ac_cv_prog_cc_c89"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3312 esac
3313 if test "x$ac_cv_prog_cc_c89" != xno; then :
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3324 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3325 if ${ac_cv_path_SED+:} false; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3329 for ac_i in 1 2 3 4 5 6 7; do
3330 ac_script="$ac_script$as_nl$ac_script"
3331 done
3332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3333 { ac_script=; unset ac_script;}
3334 if test -z "$SED"; then
3335 ac_path_SED_found=false
3336 # Loop through the user's path and test for each of PROGNAME-LIST
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3340 IFS=$as_save_IFS
3341 test -z "$as_dir" && as_dir=.
3342 for ac_prog in sed gsed; do
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3345 as_fn_executable_p "$ac_path_SED" || continue
3346 # Check for GNU ac_path_SED and select it if it is found.
3347 # Check for GNU $ac_path_SED
3348 case `"$ac_path_SED" --version 2>&1` in
3349 *GNU*)
3350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3352 ac_count=0
3353 $as_echo_n 0123456789 >"conftest.in"
3354 while :
3356 cat "conftest.in" "conftest.in" >"conftest.tmp"
3357 mv "conftest.tmp" "conftest.in"
3358 cp "conftest.in" "conftest.nl"
3359 $as_echo '' >> "conftest.nl"
3360 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3362 as_fn_arith $ac_count + 1 && ac_count=$as_val
3363 if test $ac_count -gt ${ac_path_SED_max-0}; then
3364 # Best one so far, save it but keep looking for a better one
3365 ac_cv_path_SED="$ac_path_SED"
3366 ac_path_SED_max=$ac_count
3368 # 10*(2^10) chars as input seems more than enough
3369 test $ac_count -gt 10 && break
3370 done
3371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3372 esac
3374 $ac_path_SED_found && break 3
3375 done
3376 done
3377 done
3378 IFS=$as_save_IFS
3379 if test -z "$ac_cv_path_SED"; then
3380 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3382 else
3383 ac_cv_path_SED=$SED
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3388 $as_echo "$ac_cv_path_SED" >&6; }
3389 SED="$ac_cv_path_SED"
3390 rm -f conftest.sed
3392 test -z "$SED" && SED=sed
3393 Xsed="$SED -e 1s/^X//"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3406 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3407 if ${ac_cv_path_GREP+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -z "$GREP"; then
3411 ac_path_GREP_found=false
3412 # Loop through the user's path and test for each of PROGNAME-LIST
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_prog in grep ggrep; do
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3421 as_fn_executable_p "$ac_path_GREP" || continue
3422 # Check for GNU ac_path_GREP and select it if it is found.
3423 # Check for GNU $ac_path_GREP
3424 case `"$ac_path_GREP" --version 2>&1` in
3425 *GNU*)
3426 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3428 ac_count=0
3429 $as_echo_n 0123456789 >"conftest.in"
3430 while :
3432 cat "conftest.in" "conftest.in" >"conftest.tmp"
3433 mv "conftest.tmp" "conftest.in"
3434 cp "conftest.in" "conftest.nl"
3435 $as_echo 'GREP' >> "conftest.nl"
3436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3438 as_fn_arith $ac_count + 1 && ac_count=$as_val
3439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3440 # Best one so far, save it but keep looking for a better one
3441 ac_cv_path_GREP="$ac_path_GREP"
3442 ac_path_GREP_max=$ac_count
3444 # 10*(2^10) chars as input seems more than enough
3445 test $ac_count -gt 10 && break
3446 done
3447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3448 esac
3450 $ac_path_GREP_found && break 3
3451 done
3452 done
3453 done
3454 IFS=$as_save_IFS
3455 if test -z "$ac_cv_path_GREP"; then
3456 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3458 else
3459 ac_cv_path_GREP=$GREP
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3464 $as_echo "$ac_cv_path_GREP" >&6; }
3465 GREP="$ac_cv_path_GREP"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3469 $as_echo_n "checking for egrep... " >&6; }
3470 if ${ac_cv_path_EGREP+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3474 then ac_cv_path_EGREP="$GREP -E"
3475 else
3476 if test -z "$EGREP"; then
3477 ac_path_EGREP_found=false
3478 # Loop through the user's path and test for each of PROGNAME-LIST
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_prog in egrep; do
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3487 as_fn_executable_p "$ac_path_EGREP" || continue
3488 # Check for GNU ac_path_EGREP and select it if it is found.
3489 # Check for GNU $ac_path_EGREP
3490 case `"$ac_path_EGREP" --version 2>&1` in
3491 *GNU*)
3492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3494 ac_count=0
3495 $as_echo_n 0123456789 >"conftest.in"
3496 while :
3498 cat "conftest.in" "conftest.in" >"conftest.tmp"
3499 mv "conftest.tmp" "conftest.in"
3500 cp "conftest.in" "conftest.nl"
3501 $as_echo 'EGREP' >> "conftest.nl"
3502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3504 as_fn_arith $ac_count + 1 && ac_count=$as_val
3505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3506 # Best one so far, save it but keep looking for a better one
3507 ac_cv_path_EGREP="$ac_path_EGREP"
3508 ac_path_EGREP_max=$ac_count
3510 # 10*(2^10) chars as input seems more than enough
3511 test $ac_count -gt 10 && break
3512 done
3513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3514 esac
3516 $ac_path_EGREP_found && break 3
3517 done
3518 done
3519 done
3520 IFS=$as_save_IFS
3521 if test -z "$ac_cv_path_EGREP"; then
3522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3524 else
3525 ac_cv_path_EGREP=$EGREP
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3531 $as_echo "$ac_cv_path_EGREP" >&6; }
3532 EGREP="$ac_cv_path_EGREP"
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3536 $as_echo_n "checking for fgrep... " >&6; }
3537 if ${ac_cv_path_FGREP+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3541 then ac_cv_path_FGREP="$GREP -F"
3542 else
3543 if test -z "$FGREP"; then
3544 ac_path_FGREP_found=false
3545 # Loop through the user's path and test for each of PROGNAME-LIST
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_prog in fgrep; do
3552 for ac_exec_ext in '' $ac_executable_extensions; do
3553 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3554 as_fn_executable_p "$ac_path_FGREP" || continue
3555 # Check for GNU ac_path_FGREP and select it if it is found.
3556 # Check for GNU $ac_path_FGREP
3557 case `"$ac_path_FGREP" --version 2>&1` in
3558 *GNU*)
3559 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3561 ac_count=0
3562 $as_echo_n 0123456789 >"conftest.in"
3563 while :
3565 cat "conftest.in" "conftest.in" >"conftest.tmp"
3566 mv "conftest.tmp" "conftest.in"
3567 cp "conftest.in" "conftest.nl"
3568 $as_echo 'FGREP' >> "conftest.nl"
3569 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3570 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3571 as_fn_arith $ac_count + 1 && ac_count=$as_val
3572 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3573 # Best one so far, save it but keep looking for a better one
3574 ac_cv_path_FGREP="$ac_path_FGREP"
3575 ac_path_FGREP_max=$ac_count
3577 # 10*(2^10) chars as input seems more than enough
3578 test $ac_count -gt 10 && break
3579 done
3580 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3581 esac
3583 $ac_path_FGREP_found && break 3
3584 done
3585 done
3586 done
3587 IFS=$as_save_IFS
3588 if test -z "$ac_cv_path_FGREP"; then
3589 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3591 else
3592 ac_cv_path_FGREP=$FGREP
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3598 $as_echo "$ac_cv_path_FGREP" >&6; }
3599 FGREP="$ac_cv_path_FGREP"
3602 test -z "$GREP" && GREP=grep
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
3625 else
3626 with_gnu_ld=no
3629 ac_prog=ld
3630 if test yes = "$GCC"; then
3631 # Check if gcc -print-prog-name=ld gives a path.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3633 $as_echo_n "checking for ld used by $CC... " >&6; }
3634 case $host in
3635 *-*-mingw*)
3636 # gcc leaves a trailing carriage return, which upsets mingw
3637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3640 esac
3641 case $ac_prog in
3642 # Accept absolute paths.
3643 [\\/]* | ?:[\\/]*)
3644 re_direlt='/[^/][^/]*/\.\./'
3645 # Canonicalize the pathname of ld
3646 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3647 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3648 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3649 done
3650 test -z "$LD" && LD=$ac_prog
3653 # If it fails, then pretend we aren't using GCC.
3654 ac_prog=ld
3657 # If it is relative, then search for the first ld in PATH.
3658 with_gnu_ld=unknown
3660 esac
3661 elif test yes = "$with_gnu_ld"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3663 $as_echo_n "checking for GNU ld... " >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3666 $as_echo_n "checking for non-GNU ld... " >&6; }
3668 if ${lt_cv_path_LD+:} false; then :
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -z "$LD"; then
3672 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3673 for ac_dir in $PATH; do
3674 IFS=$lt_save_ifs
3675 test -z "$ac_dir" && ac_dir=.
3676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3677 lt_cv_path_LD=$ac_dir/$ac_prog
3678 # Check to see if the program is GNU ld. I'd rather use --version,
3679 # but apparently some variants of GNU ld only accept -v.
3680 # Break only if it was the GNU/non-GNU ld that we prefer.
3681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3682 *GNU* | *'with BFD'*)
3683 test no != "$with_gnu_ld" && break
3686 test yes != "$with_gnu_ld" && break
3688 esac
3690 done
3691 IFS=$lt_save_ifs
3692 else
3693 lt_cv_path_LD=$LD # Let the user override the test with a path.
3697 LD=$lt_cv_path_LD
3698 if test -n "$LD"; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3700 $as_echo "$LD" >&6; }
3701 else
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703 $as_echo "no" >&6; }
3705 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3707 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3708 if ${lt_cv_prog_gnu_ld+:} false; then :
3709 $as_echo_n "(cached) " >&6
3710 else
3711 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3712 case `$LD -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
3714 lt_cv_prog_gnu_ld=yes
3717 lt_cv_prog_gnu_ld=no
3719 esac
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3722 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3723 with_gnu_ld=$lt_cv_prog_gnu_ld
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3734 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3735 if ${lt_cv_path_NM+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$NM"; then
3739 # Let the user override the test.
3740 lt_cv_path_NM=$NM
3741 else
3742 lt_nm_to_check=${ac_tool_prefix}nm
3743 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3744 lt_nm_to_check="$lt_nm_to_check nm"
3746 for lt_tmp_nm in $lt_nm_to_check; do
3747 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3748 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3749 IFS=$lt_save_ifs
3750 test -z "$ac_dir" && ac_dir=.
3751 tmp_nm=$ac_dir/$lt_tmp_nm
3752 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3753 # Check to see if the nm accepts a BSD-compat flag.
3754 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3755 # nm: unknown option "B" ignored
3756 # Tru64's nm complains that /dev/null is an invalid object file
3757 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3758 case $build_os in
3759 mingw*) lt_bad_file=conftest.nm/nofile ;;
3760 *) lt_bad_file=/dev/null ;;
3761 esac
3762 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3763 *$lt_bad_file* | *'Invalid file or object type'*)
3764 lt_cv_path_NM="$tmp_nm -B"
3765 break 2
3768 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3769 */dev/null*)
3770 lt_cv_path_NM="$tmp_nm -p"
3771 break 2
3774 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3775 continue # so that we can try to find one that supports BSD flags
3777 esac
3779 esac
3781 done
3782 IFS=$lt_save_ifs
3783 done
3784 : ${lt_cv_path_NM=no}
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3788 $as_echo "$lt_cv_path_NM" >&6; }
3789 if test no != "$lt_cv_path_NM"; then
3790 NM=$lt_cv_path_NM
3791 else
3792 # Didn't find any BSD compatible name lister, look for dumpbin.
3793 if test -n "$DUMPBIN"; then :
3794 # Let the user override the test.
3795 else
3796 if test -n "$ac_tool_prefix"; then
3797 for ac_prog in dumpbin "link -dump"
3799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 $as_echo_n "checking for $ac_word... " >&6; }
3803 if ${ac_cv_prog_DUMPBIN+:} false; then :
3804 $as_echo_n "(cached) " >&6
3805 else
3806 if test -n "$DUMPBIN"; then
3807 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3808 else
3809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 for as_dir in $PATH
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3816 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3820 done
3821 done
3822 IFS=$as_save_IFS
3826 DUMPBIN=$ac_cv_prog_DUMPBIN
3827 if test -n "$DUMPBIN"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3829 $as_echo "$DUMPBIN" >&6; }
3830 else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832 $as_echo "no" >&6; }
3836 test -n "$DUMPBIN" && break
3837 done
3839 if test -z "$DUMPBIN"; then
3840 ac_ct_DUMPBIN=$DUMPBIN
3841 for ac_prog in dumpbin "link -dump"
3843 # Extract the first word of "$ac_prog", so it can be a program name with args.
3844 set dummy $ac_prog; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 if test -n "$ac_ct_DUMPBIN"; then
3851 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3866 IFS=$as_save_IFS
3870 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3871 if test -n "$ac_ct_DUMPBIN"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3873 $as_echo "$ac_ct_DUMPBIN" >&6; }
3874 else
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 test -n "$ac_ct_DUMPBIN" && break
3881 done
3883 if test "x$ac_ct_DUMPBIN" = x; then
3884 DUMPBIN=":"
3885 else
3886 case $cross_compiling:$ac_tool_warned in
3887 yes:)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3890 ac_tool_warned=yes ;;
3891 esac
3892 DUMPBIN=$ac_ct_DUMPBIN
3896 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3897 *COFF*)
3898 DUMPBIN="$DUMPBIN -symbols -headers"
3901 DUMPBIN=:
3903 esac
3906 if test : != "$DUMPBIN"; then
3907 NM=$DUMPBIN
3910 test -z "$NM" && NM=nm
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3918 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3919 if ${lt_cv_nm_interface+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 lt_cv_nm_interface="BSD nm"
3923 echo "int some_variable = 0;" > conftest.$ac_ext
3924 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3925 (eval "$ac_compile" 2>conftest.err)
3926 cat conftest.err >&5
3927 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3928 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3929 cat conftest.err >&5
3930 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3931 cat conftest.out >&5
3932 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3933 lt_cv_nm_interface="MS dumpbin"
3935 rm -f conftest*
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3938 $as_echo "$lt_cv_nm_interface" >&6; }
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3941 $as_echo_n "checking whether ln -s works... " >&6; }
3942 LN_S=$as_ln_s
3943 if test "$LN_S" = "ln -s"; then
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3945 $as_echo "yes" >&6; }
3946 else
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3948 $as_echo "no, using $LN_S" >&6; }
3951 # find the maximum length of command line arguments
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3953 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3954 if ${lt_cv_sys_max_cmd_len+:} false; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3958 teststring=ABCD
3960 case $build_os in
3961 msdosdjgpp*)
3962 # On DJGPP, this test can blow up pretty badly due to problems in libc
3963 # (any single argument exceeding 2000 bytes causes a buffer overrun
3964 # during glob expansion). Even if it were fixed, the result of this
3965 # check would be larger than it should be.
3966 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3969 gnu*)
3970 # Under GNU Hurd, this test is not required because there is
3971 # no limit to the length of command line arguments.
3972 # Libtool will interpret -1 as no limit whatsoever
3973 lt_cv_sys_max_cmd_len=-1;
3976 cygwin* | mingw* | cegcc*)
3977 # On Win9x/ME, this test blows up -- it succeeds, but takes
3978 # about 5 minutes as the teststring grows exponentially.
3979 # Worse, since 9x/ME are not pre-emptively multitasking,
3980 # you end up with a "frozen" computer, even though with patience
3981 # the test eventually succeeds (with a max line length of 256k).
3982 # Instead, let's just punt: use the minimum linelength reported by
3983 # all of the supported platforms: 8192 (on NT/2K/XP).
3984 lt_cv_sys_max_cmd_len=8192;
3987 mint*)
3988 # On MiNT this can take a long time and run out of memory.
3989 lt_cv_sys_max_cmd_len=8192;
3992 amigaos*)
3993 # On AmigaOS with pdksh, this test takes hours, literally.
3994 # So we just punt and use a minimum line length of 8192.
3995 lt_cv_sys_max_cmd_len=8192;
3998 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
3999 # This has been around since 386BSD, at least. Likely further.
4000 if test -x /sbin/sysctl; then
4001 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4002 elif test -x /usr/sbin/sysctl; then
4003 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4004 else
4005 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4007 # And add a safety zone
4008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4012 interix*)
4013 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4014 lt_cv_sys_max_cmd_len=196608
4017 os2*)
4018 # The test takes a long time on OS/2.
4019 lt_cv_sys_max_cmd_len=8192
4022 osf*)
4023 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4024 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4025 # nice to cause kernel panics so lets avoid the loop below.
4026 # First set a reasonable default.
4027 lt_cv_sys_max_cmd_len=16384
4029 if test -x /sbin/sysconfig; then
4030 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4031 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4032 esac
4035 sco3.2v5*)
4036 lt_cv_sys_max_cmd_len=102400
4038 sysv5* | sco5v6* | sysv4.2uw2*)
4039 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4040 if test -n "$kargmax"; then
4041 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4042 else
4043 lt_cv_sys_max_cmd_len=32768
4047 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4048 if test -n "$lt_cv_sys_max_cmd_len" && \
4049 test undefined != "$lt_cv_sys_max_cmd_len"; then
4050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4052 else
4053 # Make teststring a little bigger before we do anything with it.
4054 # a 1K string should be a reasonable start.
4055 for i in 1 2 3 4 5 6 7 8; do
4056 teststring=$teststring$teststring
4057 done
4058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4059 # If test is not a shell built-in, we'll probably end up computing a
4060 # maximum length that is only half of the actual maximum length, but
4061 # we can't tell.
4062 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4063 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4064 test 17 != "$i" # 1/2 MB should be enough
4066 i=`expr $i + 1`
4067 teststring=$teststring$teststring
4068 done
4069 # Only check the string length outside the loop.
4070 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4071 teststring=
4072 # Add a significant safety factor because C++ compilers can tack on
4073 # massive amounts of additional arguments before passing them to the
4074 # linker. It appears as though 1/2 is a usable value.
4075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4078 esac
4082 if test -n "$lt_cv_sys_max_cmd_len"; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4084 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4087 $as_echo "none" >&6; }
4089 max_cmd_len=$lt_cv_sys_max_cmd_len
4096 : ${CP="cp -f"}
4097 : ${MV="mv -f"}
4098 : ${RM="rm -f"}
4100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4101 lt_unset=unset
4102 else
4103 lt_unset=false
4110 # test EBCDIC or ASCII
4111 case `echo X|tr X '\101'` in
4112 A) # ASCII based system
4113 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4114 lt_SP2NL='tr \040 \012'
4115 lt_NL2SP='tr \015\012 \040\040'
4117 *) # EBCDIC based system
4118 lt_SP2NL='tr \100 \n'
4119 lt_NL2SP='tr \r\n \100\100'
4121 esac
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4132 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4133 if ${lt_cv_to_host_file_cmd+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 case $host in
4137 *-*-mingw* )
4138 case $build in
4139 *-*-mingw* ) # actually msys
4140 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4142 *-*-cygwin* )
4143 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4145 * ) # otherwise, assume *nix
4146 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4148 esac
4150 *-*-cygwin* )
4151 case $build in
4152 *-*-mingw* ) # actually msys
4153 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4155 *-*-cygwin* )
4156 lt_cv_to_host_file_cmd=func_convert_file_noop
4158 * ) # otherwise, assume *nix
4159 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4161 esac
4163 * ) # unhandled hosts (and "normal" native builds)
4164 lt_cv_to_host_file_cmd=func_convert_file_noop
4166 esac
4170 to_host_file_cmd=$lt_cv_to_host_file_cmd
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4172 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4179 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4180 if ${lt_cv_to_tool_file_cmd+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 #assume ordinary cross tools, or native build.
4184 lt_cv_to_tool_file_cmd=func_convert_file_noop
4185 case $host in
4186 *-*-mingw* )
4187 case $build in
4188 *-*-mingw* ) # actually msys
4189 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4191 esac
4193 esac
4197 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4199 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4206 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4207 if ${lt_cv_ld_reload_flag+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 lt_cv_ld_reload_flag='-r'
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4213 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4214 reload_flag=$lt_cv_ld_reload_flag
4215 case $reload_flag in
4216 "" | " "*) ;;
4217 *) reload_flag=" $reload_flag" ;;
4218 esac
4219 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4220 case $host_os in
4221 cygwin* | mingw* | pw32* | cegcc*)
4222 if test yes != "$GCC"; then
4223 reload_cmds=false
4226 darwin*)
4227 if test yes = "$GCC"; then
4228 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4229 else
4230 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4233 esac
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_OBJDUMP+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$OBJDUMP"; then
4252 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4265 done
4266 done
4267 IFS=$as_save_IFS
4271 OBJDUMP=$ac_cv_prog_OBJDUMP
4272 if test -n "$OBJDUMP"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4274 $as_echo "$OBJDUMP" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$ac_cv_prog_OBJDUMP"; then
4283 ac_ct_OBJDUMP=$OBJDUMP
4284 # Extract the first word of "objdump", so it can be a program name with args.
4285 set dummy objdump; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$ac_ct_OBJDUMP"; then
4292 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4312 if test -n "$ac_ct_OBJDUMP"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4314 $as_echo "$ac_ct_OBJDUMP" >&6; }
4315 else
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4320 if test "x$ac_ct_OBJDUMP" = x; then
4321 OBJDUMP="false"
4322 else
4323 case $cross_compiling:$ac_tool_warned in
4324 yes:)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4327 ac_tool_warned=yes ;;
4328 esac
4329 OBJDUMP=$ac_ct_OBJDUMP
4331 else
4332 OBJDUMP="$ac_cv_prog_OBJDUMP"
4335 test -z "$OBJDUMP" && OBJDUMP=objdump
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4346 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4347 if ${lt_cv_deplibs_check_method+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 lt_cv_file_magic_cmd='$MAGIC_CMD'
4351 lt_cv_file_magic_test_file=
4352 lt_cv_deplibs_check_method='unknown'
4353 # Need to set the preceding variable on all platforms that support
4354 # interlibrary dependencies.
4355 # 'none' -- dependencies not supported.
4356 # 'unknown' -- same as none, but documents that we really don't know.
4357 # 'pass_all' -- all dependencies passed with no checks.
4358 # 'test_compile' -- check by making test program.
4359 # 'file_magic [[regex]]' -- check by looking for files in library path
4360 # that responds to the $file_magic_cmd with a given extended regex.
4361 # If you have 'file' or equivalent on your system and you're not sure
4362 # whether 'pass_all' will *always* work, you probably want this one.
4364 case $host_os in
4365 aix[4-9]*)
4366 lt_cv_deplibs_check_method=pass_all
4369 beos*)
4370 lt_cv_deplibs_check_method=pass_all
4373 bsdi[45]*)
4374 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4375 lt_cv_file_magic_cmd='/usr/bin/file -L'
4376 lt_cv_file_magic_test_file=/shlib/libc.so
4379 cygwin*)
4380 # func_win32_libid is a shell function defined in ltmain.sh
4381 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4382 lt_cv_file_magic_cmd='func_win32_libid'
4385 mingw* | pw32*)
4386 # Base MSYS/MinGW do not provide the 'file' command needed by
4387 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4388 # unless we find 'file', for example because we are cross-compiling.
4389 if ( file / ) >/dev/null 2>&1; then
4390 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4391 lt_cv_file_magic_cmd='func_win32_libid'
4392 else
4393 # Keep this pattern in sync with the one in func_win32_libid.
4394 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4395 lt_cv_file_magic_cmd='$OBJDUMP -f'
4399 cegcc*)
4400 # use the weaker test based on 'objdump'. See mingw*.
4401 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4402 lt_cv_file_magic_cmd='$OBJDUMP -f'
4405 darwin* | rhapsody*)
4406 lt_cv_deplibs_check_method=pass_all
4409 freebsd* | dragonfly*)
4410 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4411 case $host_cpu in
4412 i*86 )
4413 # Not sure whether the presence of OpenBSD here was a mistake.
4414 # Let's accept both of them until this is cleared up.
4415 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4416 lt_cv_file_magic_cmd=/usr/bin/file
4417 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4419 esac
4420 else
4421 lt_cv_deplibs_check_method=pass_all
4425 haiku*)
4426 lt_cv_deplibs_check_method=pass_all
4429 hpux10.20* | hpux11*)
4430 lt_cv_file_magic_cmd=/usr/bin/file
4431 case $host_cpu in
4432 ia64*)
4433 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4434 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4436 hppa*64*)
4437 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4438 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4442 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4444 esac
4447 interix[3-9]*)
4448 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4449 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4452 irix5* | irix6* | nonstopux*)
4453 case $LD in
4454 *-32|*"-32 ") libmagic=32-bit;;
4455 *-n32|*"-n32 ") libmagic=N32;;
4456 *-64|*"-64 ") libmagic=64-bit;;
4457 *) libmagic=never-match;;
4458 esac
4459 lt_cv_deplibs_check_method=pass_all
4462 # This must be glibc/ELF.
4463 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4464 lt_cv_deplibs_check_method=pass_all
4467 netbsd* | netbsdelf*-gnu)
4468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4469 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4470 else
4471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4475 newos6*)
4476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4477 lt_cv_file_magic_cmd=/usr/bin/file
4478 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4481 *nto* | *qnx*)
4482 lt_cv_deplibs_check_method=pass_all
4485 openbsd* | bitrig*)
4486 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
4487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4488 else
4489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4493 osf3* | osf4* | osf5*)
4494 lt_cv_deplibs_check_method=pass_all
4497 rdos*)
4498 lt_cv_deplibs_check_method=pass_all
4501 solaris*)
4502 lt_cv_deplibs_check_method=pass_all
4505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4506 lt_cv_deplibs_check_method=pass_all
4509 sysv4 | sysv4.3*)
4510 case $host_vendor in
4511 motorola)
4512 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]'
4513 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4515 ncr)
4516 lt_cv_deplibs_check_method=pass_all
4518 sequent)
4519 lt_cv_file_magic_cmd='/bin/file'
4520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4522 sni)
4523 lt_cv_file_magic_cmd='/bin/file'
4524 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4525 lt_cv_file_magic_test_file=/lib/libc.so
4527 siemens)
4528 lt_cv_deplibs_check_method=pass_all
4531 lt_cv_deplibs_check_method=pass_all
4533 esac
4536 tpf*)
4537 lt_cv_deplibs_check_method=pass_all
4539 os2*)
4540 lt_cv_deplibs_check_method=pass_all
4542 esac
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4546 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4548 file_magic_glob=
4549 want_nocaseglob=no
4550 if test "$build" = "$host"; then
4551 case $host_os in
4552 mingw* | pw32*)
4553 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4554 want_nocaseglob=yes
4555 else
4556 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4559 esac
4562 file_magic_cmd=$lt_cv_file_magic_cmd
4563 deplibs_check_method=$lt_cv_deplibs_check_method
4564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 $as_echo_n "checking for $ac_word... " >&6; }
4592 if ${ac_cv_prog_DLLTOOL+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test -n "$DLLTOOL"; then
4596 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4609 done
4610 done
4611 IFS=$as_save_IFS
4615 DLLTOOL=$ac_cv_prog_DLLTOOL
4616 if test -n "$DLLTOOL"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4618 $as_echo "$DLLTOOL" >&6; }
4619 else
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4626 if test -z "$ac_cv_prog_DLLTOOL"; then
4627 ac_ct_DLLTOOL=$DLLTOOL
4628 # Extract the first word of "dlltool", so it can be a program name with args.
4629 set dummy dlltool; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$ac_ct_DLLTOOL"; then
4636 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4649 done
4650 done
4651 IFS=$as_save_IFS
4655 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4656 if test -n "$ac_ct_DLLTOOL"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4658 $as_echo "$ac_ct_DLLTOOL" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4664 if test "x$ac_ct_DLLTOOL" = x; then
4665 DLLTOOL="false"
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned=yes ;;
4672 esac
4673 DLLTOOL=$ac_ct_DLLTOOL
4675 else
4676 DLLTOOL="$ac_cv_prog_DLLTOOL"
4679 test -z "$DLLTOOL" && DLLTOOL=dlltool
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4691 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4692 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 lt_cv_sharedlib_from_linklib_cmd='unknown'
4697 case $host_os in
4698 cygwin* | mingw* | pw32* | cegcc*)
4699 # two different shell functions defined in ltmain.sh;
4700 # decide which one to use based on capabilities of $DLLTOOL
4701 case `$DLLTOOL --help 2>&1` in
4702 *--identify-strict*)
4703 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4706 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4708 esac
4711 # fallback: assume linklib IS sharedlib
4712 lt_cv_sharedlib_from_linklib_cmd=$ECHO
4714 esac
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4718 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4719 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4720 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4729 if test -n "$ac_tool_prefix"; then
4730 for ac_prog in ar
4732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if ${ac_cv_prog_AR+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 if test -n "$AR"; then
4740 ac_cv_prog_AR="$AR" # Let the user override the test.
4741 else
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743 for as_dir in $PATH
4745 IFS=$as_save_IFS
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4751 break 2
4753 done
4754 done
4755 IFS=$as_save_IFS
4759 AR=$ac_cv_prog_AR
4760 if test -n "$AR"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4762 $as_echo "$AR" >&6; }
4763 else
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4769 test -n "$AR" && break
4770 done
4772 if test -z "$AR"; then
4773 ac_ct_AR=$AR
4774 for ac_prog in ar
4776 # Extract the first word of "$ac_prog", so it can be a program name with args.
4777 set dummy $ac_prog; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_AR"; then
4784 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_AR="$ac_prog"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4804 if test -n "$ac_ct_AR"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4806 $as_echo "$ac_ct_AR" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4813 test -n "$ac_ct_AR" && break
4814 done
4816 if test "x$ac_ct_AR" = x; then
4817 AR="false"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820 yes:)
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823 ac_tool_warned=yes ;;
4824 esac
4825 AR=$ac_ct_AR
4829 : ${AR=ar}
4830 : ${AR_FLAGS=cr}
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4843 $as_echo_n "checking for archiver @FILE support... " >&6; }
4844 if ${lt_cv_ar_at_file+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 lt_cv_ar_at_file=no
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 main ()
4856 return 0;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 echo conftest.$ac_objext > conftest.lst
4861 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4863 (eval $lt_ar_try) 2>&5
4864 ac_status=$?
4865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4866 test $ac_status = 0; }
4867 if test 0 -eq "$ac_status"; then
4868 # Ensure the archiver fails upon bogus file names.
4869 rm -f conftest.$ac_objext libconftest.a
4870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4871 (eval $lt_ar_try) 2>&5
4872 ac_status=$?
4873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874 test $ac_status = 0; }
4875 if test 0 -ne "$ac_status"; then
4876 lt_cv_ar_at_file=@
4879 rm -f conftest.* libconftest.a
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4886 $as_echo "$lt_cv_ar_at_file" >&6; }
4888 if test no = "$lt_cv_ar_at_file"; then
4889 archiver_list_spec=
4890 else
4891 archiver_list_spec=$lt_cv_ar_at_file
4900 if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4902 set dummy ${ac_tool_prefix}strip; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_STRIP+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$STRIP"; then
4909 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4924 IFS=$as_save_IFS
4928 STRIP=$ac_cv_prog_STRIP
4929 if test -n "$STRIP"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4931 $as_echo "$STRIP" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4939 if test -z "$ac_cv_prog_STRIP"; then
4940 ac_ct_STRIP=$STRIP
4941 # Extract the first word of "strip", so it can be a program name with args.
4942 set dummy strip; ac_word=$2
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944 $as_echo_n "checking for $ac_word... " >&6; }
4945 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947 else
4948 if test -n "$ac_ct_STRIP"; then
4949 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4950 else
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_ac_ct_STRIP="strip"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4962 done
4963 done
4964 IFS=$as_save_IFS
4968 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4969 if test -n "$ac_ct_STRIP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4971 $as_echo "$ac_ct_STRIP" >&6; }
4972 else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4977 if test "x$ac_ct_STRIP" = x; then
4978 STRIP=":"
4979 else
4980 case $cross_compiling:$ac_tool_warned in
4981 yes:)
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4984 ac_tool_warned=yes ;;
4985 esac
4986 STRIP=$ac_ct_STRIP
4988 else
4989 STRIP="$ac_cv_prog_STRIP"
4992 test -z "$STRIP" && STRIP=:
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_RANLIB+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$RANLIB"; then
5008 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5021 done
5022 done
5023 IFS=$as_save_IFS
5027 RANLIB=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5030 $as_echo "$RANLIB" >&6; }
5031 else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_ac_ct_RANLIB="ranlib"
5058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5061 done
5062 done
5063 IFS=$as_save_IFS
5067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5070 $as_echo "$ac_ct_RANLIB" >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5076 if test "x$ac_ct_RANLIB" = x; then
5077 RANLIB=":"
5078 else
5079 case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085 RANLIB=$ac_ct_RANLIB
5087 else
5088 RANLIB="$ac_cv_prog_RANLIB"
5091 test -z "$RANLIB" && RANLIB=:
5098 # Determine commands to create old-style static archives.
5099 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5100 old_postinstall_cmds='chmod 644 $oldlib'
5101 old_postuninstall_cmds=
5103 if test -n "$RANLIB"; then
5104 case $host_os in
5105 bitrig* | openbsd*)
5106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5109 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5111 esac
5112 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5115 case $host_os in
5116 darwin*)
5117 lock_old_archive_extraction=yes ;;
5119 lock_old_archive_extraction=no ;;
5120 esac
5142 for ac_prog in gawk mawk nawk awk
5144 # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_prog_AWK+:} false; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$AWK"; then
5152 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_AWK="$ac_prog"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5171 AWK=$ac_cv_prog_AWK
5172 if test -n "$AWK"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5174 $as_echo "$AWK" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 test -n "$AWK" && break
5182 done
5202 # If no C compiler was specified, use CC.
5203 LTCC=${LTCC-"$CC"}
5205 # If no C compiler flags were specified, use CFLAGS.
5206 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5208 # Allow CC to be a program name with arguments.
5209 compiler=$CC
5212 # Check for command to grab the raw symbol name followed by C symbol from nm.
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5214 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5215 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5219 # These are sane defaults that work on at least a few old systems.
5220 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5222 # Character class describing NM global symbol codes.
5223 symcode='[BCDEGRST]'
5225 # Regexp to match symbols that can be accessed directly from C.
5226 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5228 # Define system-specific variables.
5229 case $host_os in
5230 aix*)
5231 symcode='[BCDT]'
5233 cygwin* | mingw* | pw32* | cegcc*)
5234 symcode='[ABCDGISTW]'
5236 hpux*)
5237 if test ia64 = "$host_cpu"; then
5238 symcode='[ABCDEGRST]'
5241 irix* | nonstopux*)
5242 symcode='[BCDEGRST]'
5244 osf*)
5245 symcode='[BCDEGQRST]'
5247 solaris*)
5248 symcode='[BDRT]'
5250 sco3.2v5*)
5251 symcode='[DT]'
5253 sysv4.2uw2*)
5254 symcode='[DT]'
5256 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5257 symcode='[ABDT]'
5259 sysv4)
5260 symcode='[DFNSTU]'
5262 esac
5264 # If we're using GNU nm, then use its standard symbol codes.
5265 case `$NM -V 2>&1` in
5266 *GNU* | *'with BFD'*)
5267 symcode='[ABCDGIRSTW]' ;;
5268 esac
5270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5271 # Gets list of data symbols to import.
5272 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5273 # Adjust the below global symbol transforms to fixup imported variables.
5274 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5275 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5276 lt_c_name_lib_hook="\
5277 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5278 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5279 else
5280 # Disable hooks by default.
5281 lt_cv_sys_global_symbol_to_import=
5282 lt_cdecl_hook=
5283 lt_c_name_hook=
5284 lt_c_name_lib_hook=
5287 # Transform an extracted symbol line into a proper C declaration.
5288 # Some systems (esp. on ia64) link data and code symbols differently,
5289 # so use this general approach.
5290 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5291 $lt_cdecl_hook\
5292 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5293 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5295 # Transform an extracted symbol line into symbol name and symbol address
5296 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5297 $lt_c_name_hook\
5298 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5299 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5301 # Transform an extracted symbol line into symbol name with lib prefix and
5302 # symbol address.
5303 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5304 $lt_c_name_lib_hook\
5305 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5306 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5307 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5309 # Handle CRLF in mingw tool chain
5310 opt_cr=
5311 case $build_os in
5312 mingw*)
5313 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5315 esac
5317 # Try without a prefix underscore, then with it.
5318 for ac_symprfx in "" "_"; do
5320 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5321 symxfrm="\\1 $ac_symprfx\\2 \\2"
5323 # Write the raw and C identifiers.
5324 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5325 # Fake it for dumpbin and say T for any non-static function,
5326 # D for any global variable and I for any imported variable.
5327 # Also find C++ and __fastcall symbols from MSVC++,
5328 # which start with @ or ?.
5329 lt_cv_sys_global_symbol_pipe="$AWK '"\
5330 " {last_section=section; section=\$ 3};"\
5331 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5332 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5333 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5334 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5335 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5336 " \$ 0!~/External *\|/{next};"\
5337 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5338 " {if(hide[section]) next};"\
5339 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5340 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5341 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5342 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5343 " ' prfx=^$ac_symprfx"
5344 else
5345 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5347 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5349 # Check to see that the pipe works correctly.
5350 pipe_works=no
5352 rm -f conftest*
5353 cat > conftest.$ac_ext <<_LT_EOF
5354 #ifdef __cplusplus
5355 extern "C" {
5356 #endif
5357 char nm_test_var;
5358 void nm_test_func(void);
5359 void nm_test_func(void){}
5360 #ifdef __cplusplus
5362 #endif
5363 int main(){nm_test_var='a';nm_test_func();return(0);}
5364 _LT_EOF
5366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5367 (eval $ac_compile) 2>&5
5368 ac_status=$?
5369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5370 test $ac_status = 0; }; then
5371 # Now try to grab the symbols.
5372 nlist=conftest.nm
5373 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
5374 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
5375 # Try sorting and uniquifying the output.
5376 if sort "$nlist" | uniq > "$nlist"T; then
5377 mv -f "$nlist"T "$nlist"
5378 else
5379 rm -f "$nlist"T
5382 # Make sure that we snagged all the symbols we need.
5383 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5384 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5385 cat <<_LT_EOF > conftest.$ac_ext
5386 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5387 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5388 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5389 relocations are performed -- see ld's documentation on pseudo-relocs. */
5390 # define LT_DLSYM_CONST
5391 #elif defined __osf__
5392 /* This system does not cope well with relocations in const data. */
5393 # define LT_DLSYM_CONST
5394 #else
5395 # define LT_DLSYM_CONST const
5396 #endif
5398 #ifdef __cplusplus
5399 extern "C" {
5400 #endif
5402 _LT_EOF
5403 # Now generate the symbol file.
5404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5406 cat <<_LT_EOF >> conftest.$ac_ext
5408 /* The mapping between symbol names and symbols. */
5409 LT_DLSYM_CONST struct {
5410 const char *name;
5411 void *address;
5413 lt__PROGRAM__LTX_preloaded_symbols[] =
5415 { "@PROGRAM@", (void *) 0 },
5416 _LT_EOF
5417 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5418 cat <<\_LT_EOF >> conftest.$ac_ext
5419 {0, (void *) 0}
5422 /* This works around a problem in FreeBSD linker */
5423 #ifdef FREEBSD_WORKAROUND
5424 static const void *lt_preloaded_setup() {
5425 return lt__PROGRAM__LTX_preloaded_symbols;
5427 #endif
5429 #ifdef __cplusplus
5431 #endif
5432 _LT_EOF
5433 # Now try linking the two files.
5434 mv conftest.$ac_objext conftstm.$ac_objext
5435 lt_globsym_save_LIBS=$LIBS
5436 lt_globsym_save_CFLAGS=$CFLAGS
5437 LIBS=conftstm.$ac_objext
5438 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5440 (eval $ac_link) 2>&5
5441 ac_status=$?
5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5443 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5444 pipe_works=yes
5446 LIBS=$lt_globsym_save_LIBS
5447 CFLAGS=$lt_globsym_save_CFLAGS
5448 else
5449 echo "cannot find nm_test_func in $nlist" >&5
5451 else
5452 echo "cannot find nm_test_var in $nlist" >&5
5454 else
5455 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5457 else
5458 echo "$progname: failed program was:" >&5
5459 cat conftest.$ac_ext >&5
5461 rm -rf conftest* conftst*
5463 # Do not use the global_symbol_pipe unless it works.
5464 if test yes = "$pipe_works"; then
5465 break
5466 else
5467 lt_cv_sys_global_symbol_pipe=
5469 done
5473 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5474 lt_cv_sys_global_symbol_to_cdecl=
5476 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5478 $as_echo "failed" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5481 $as_echo "ok" >&6; }
5484 # Response file support.
5485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5486 nm_file_list_spec='@'
5487 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5488 nm_file_list_spec='@'
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5528 $as_echo_n "checking for sysroot... " >&6; }
5530 # Check whether --with-sysroot was given.
5531 if test "${with_sysroot+set}" = set; then :
5532 withval=$with_sysroot;
5533 else
5534 with_sysroot=no
5538 lt_sysroot=
5539 case $with_sysroot in #(
5540 yes)
5541 if test yes = "$GCC"; then
5542 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5544 ;; #(
5546 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5547 ;; #(
5548 no|'')
5549 ;; #(
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
5552 $as_echo "$with_sysroot" >&6; }
5553 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5555 esac
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5558 $as_echo "${lt_sysroot:-no}" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
5565 $as_echo_n "checking for a working dd... " >&6; }
5566 if ${ac_cv_path_lt_DD+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 printf 0123456789abcdef0123456789abcdef >conftest.i
5570 cat conftest.i conftest.i >conftest2.i
5571 : ${lt_DD:=$DD}
5572 if test -z "$lt_DD"; then
5573 ac_path_lt_DD_found=false
5574 # Loop through the user's path and test for each of PROGNAME-LIST
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 for ac_prog in dd; do
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
5583 as_fn_executable_p "$ac_path_lt_DD" || continue
5584 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5585 cmp -s conftest.i conftest.out \
5586 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
5588 $ac_path_lt_DD_found && break 3
5589 done
5590 done
5591 done
5592 IFS=$as_save_IFS
5593 if test -z "$ac_cv_path_lt_DD"; then
5596 else
5597 ac_cv_path_lt_DD=$lt_DD
5600 rm -f conftest.i conftest2.i conftest.out
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
5603 $as_echo "$ac_cv_path_lt_DD" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
5607 $as_echo_n "checking how to truncate binary pipes... " >&6; }
5608 if ${lt_cv_truncate_bin+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 printf 0123456789abcdef0123456789abcdef >conftest.i
5612 cat conftest.i conftest.i >conftest2.i
5613 lt_cv_truncate_bin=
5614 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
5615 cmp -s conftest.i conftest.out \
5616 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
5618 rm -f conftest.i conftest2.i conftest.out
5619 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
5622 $as_echo "$lt_cv_truncate_bin" >&6; }
5630 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
5631 func_cc_basename ()
5633 for cc_temp in $*""; do
5634 case $cc_temp in
5635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5637 \-*) ;;
5638 *) break;;
5639 esac
5640 done
5641 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
5644 # Check whether --enable-libtool-lock was given.
5645 if test "${enable_libtool_lock+set}" = set; then :
5646 enableval=$enable_libtool_lock;
5649 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
5651 # Some flags need to be propagated to the compiler or linker for good
5652 # libtool support.
5653 case $host in
5654 ia64-*-hpux*)
5655 # Find out what ABI is being produced by ac_compile, and set mode
5656 # options accordingly.
5657 echo 'int i;' > conftest.$ac_ext
5658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5659 (eval $ac_compile) 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5662 test $ac_status = 0; }; then
5663 case `/usr/bin/file conftest.$ac_objext` in
5664 *ELF-32*)
5665 HPUX_IA64_MODE=32
5667 *ELF-64*)
5668 HPUX_IA64_MODE=64
5670 esac
5672 rm -rf conftest*
5674 *-*-irix6*)
5675 # Find out what ABI is being produced by ac_compile, and set linker
5676 # options accordingly.
5677 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5679 (eval $ac_compile) 2>&5
5680 ac_status=$?
5681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5682 test $ac_status = 0; }; then
5683 if test yes = "$lt_cv_prog_gnu_ld"; then
5684 case `/usr/bin/file conftest.$ac_objext` in
5685 *32-bit*)
5686 LD="${LD-ld} -melf32bsmip"
5688 *N32*)
5689 LD="${LD-ld} -melf32bmipn32"
5691 *64-bit*)
5692 LD="${LD-ld} -melf64bmip"
5694 esac
5695 else
5696 case `/usr/bin/file conftest.$ac_objext` in
5697 *32-bit*)
5698 LD="${LD-ld} -32"
5700 *N32*)
5701 LD="${LD-ld} -n32"
5703 *64-bit*)
5704 LD="${LD-ld} -64"
5706 esac
5709 rm -rf conftest*
5712 mips64*-*linux*)
5713 # Find out what ABI is being produced by ac_compile, and set linker
5714 # options accordingly.
5715 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5717 (eval $ac_compile) 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; }; then
5721 emul=elf
5722 case `/usr/bin/file conftest.$ac_objext` in
5723 *32-bit*)
5724 emul="${emul}32"
5726 *64-bit*)
5727 emul="${emul}64"
5729 esac
5730 case `/usr/bin/file conftest.$ac_objext` in
5731 *MSB*)
5732 emul="${emul}btsmip"
5734 *LSB*)
5735 emul="${emul}ltsmip"
5737 esac
5738 case `/usr/bin/file conftest.$ac_objext` in
5739 *N32*)
5740 emul="${emul}n32"
5742 esac
5743 LD="${LD-ld} -m $emul"
5745 rm -rf conftest*
5748 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5749 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5750 # Find out what ABI is being produced by ac_compile, and set linker
5751 # options accordingly. Note that the listed cases only cover the
5752 # situations where additional linker options are needed (such as when
5753 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
5754 # vice versa); the common cases where no linker options are needed do
5755 # not appear in the list.
5756 echo 'int i;' > conftest.$ac_ext
5757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5758 (eval $ac_compile) 2>&5
5759 ac_status=$?
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }; then
5762 case `/usr/bin/file conftest.o` in
5763 *32-bit*)
5764 case $host in
5765 x86_64-*kfreebsd*-gnu)
5766 LD="${LD-ld} -m elf_i386_fbsd"
5768 x86_64-*linux*)
5769 case `/usr/bin/file conftest.o` in
5770 *x86-64*)
5771 LD="${LD-ld} -m elf32_x86_64"
5774 LD="${LD-ld} -m elf_i386"
5776 esac
5778 powerpc64le-*linux*)
5779 LD="${LD-ld} -m elf32lppclinux"
5781 powerpc64-*linux*)
5782 LD="${LD-ld} -m elf32ppclinux"
5784 s390x-*linux*)
5785 LD="${LD-ld} -m elf_s390"
5787 sparc64-*linux*)
5788 LD="${LD-ld} -m elf32_sparc"
5790 esac
5792 *64-bit*)
5793 case $host in
5794 x86_64-*kfreebsd*-gnu)
5795 LD="${LD-ld} -m elf_x86_64_fbsd"
5797 x86_64-*linux*)
5798 LD="${LD-ld} -m elf_x86_64"
5800 powerpcle-*linux*)
5801 LD="${LD-ld} -m elf64lppc"
5803 powerpc-*linux*)
5804 LD="${LD-ld} -m elf64ppc"
5806 s390*-*linux*|s390*-*tpf*)
5807 LD="${LD-ld} -m elf64_s390"
5809 sparc*-*linux*)
5810 LD="${LD-ld} -m elf64_sparc"
5812 esac
5814 esac
5816 rm -rf conftest*
5819 *-*-sco3.2v5*)
5820 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5821 SAVE_CFLAGS=$CFLAGS
5822 CFLAGS="$CFLAGS -belf"
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5824 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5825 if ${lt_cv_cc_needs_belf+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 ac_ext=c
5829 ac_cpp='$CPP $CPPFLAGS'
5830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5838 main ()
5842 return 0;
5844 _ACEOF
5845 if ac_fn_c_try_link "$LINENO"; then :
5846 lt_cv_cc_needs_belf=yes
5847 else
5848 lt_cv_cc_needs_belf=no
5850 rm -f core conftest.err conftest.$ac_objext \
5851 conftest$ac_exeext conftest.$ac_ext
5852 ac_ext=c
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5860 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5861 if test yes != "$lt_cv_cc_needs_belf"; then
5862 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5863 CFLAGS=$SAVE_CFLAGS
5866 *-*solaris*)
5867 # Find out what ABI is being produced by ac_compile, and set linker
5868 # options accordingly.
5869 echo 'int i;' > conftest.$ac_ext
5870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871 (eval $ac_compile) 2>&5
5872 ac_status=$?
5873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874 test $ac_status = 0; }; then
5875 case `/usr/bin/file conftest.o` in
5876 *64-bit*)
5877 case $lt_cv_prog_gnu_ld in
5878 yes*)
5879 case $host in
5880 i?86-*-solaris*|x86_64-*-solaris*)
5881 LD="${LD-ld} -m elf_x86_64"
5883 sparc*-*-solaris*)
5884 LD="${LD-ld} -m elf64_sparc"
5886 esac
5887 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
5888 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5889 LD=${LD-ld}_sol2
5893 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5894 LD="${LD-ld} -64"
5897 esac
5899 esac
5901 rm -rf conftest*
5903 esac
5905 need_locks=$enable_libtool_lock
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}mt; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 if test -n "$MANIFEST_TOOL"; then
5916 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5929 done
5930 done
5931 IFS=$as_save_IFS
5935 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5936 if test -n "$MANIFEST_TOOL"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5938 $as_echo "$MANIFEST_TOOL" >&6; }
5939 else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5946 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5947 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5948 # Extract the first word of "mt", so it can be a program name with args.
5949 set dummy mt; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 if test -n "$ac_ct_MANIFEST_TOOL"; then
5956 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5969 done
5970 done
5971 IFS=$as_save_IFS
5975 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5976 if test -n "$ac_ct_MANIFEST_TOOL"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5978 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5979 else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5984 if test "x$ac_ct_MANIFEST_TOOL" = x; then
5985 MANIFEST_TOOL=":"
5986 else
5987 case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5995 else
5996 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5999 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6001 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6002 if ${lt_cv_path_mainfest_tool+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 lt_cv_path_mainfest_tool=no
6006 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6007 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6008 cat conftest.err >&5
6009 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6010 lt_cv_path_mainfest_tool=yes
6012 rm -f conftest*
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6015 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6016 if test yes != "$lt_cv_path_mainfest_tool"; then
6017 MANIFEST_TOOL=:
6025 case $host_os in
6026 rhapsody* | darwin*)
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$DSYMUTIL"; then
6036 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6049 done
6050 done
6051 IFS=$as_save_IFS
6055 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6056 if test -n "$DSYMUTIL"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6058 $as_echo "$DSYMUTIL" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6066 if test -z "$ac_cv_prog_DSYMUTIL"; then
6067 ac_ct_DSYMUTIL=$DSYMUTIL
6068 # Extract the first word of "dsymutil", so it can be a program name with args.
6069 set dummy dsymutil; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$ac_ct_DSYMUTIL"; then
6076 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6089 done
6090 done
6091 IFS=$as_save_IFS
6095 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6096 if test -n "$ac_ct_DSYMUTIL"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6098 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6104 if test "x$ac_ct_DSYMUTIL" = x; then
6105 DSYMUTIL=":"
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113 DSYMUTIL=$ac_ct_DSYMUTIL
6115 else
6116 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6119 if test -n "$ac_tool_prefix"; then
6120 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6121 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_NMEDIT+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$NMEDIT"; then
6128 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6141 done
6142 done
6143 IFS=$as_save_IFS
6147 NMEDIT=$ac_cv_prog_NMEDIT
6148 if test -n "$NMEDIT"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6150 $as_echo "$NMEDIT" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6158 if test -z "$ac_cv_prog_NMEDIT"; then
6159 ac_ct_NMEDIT=$NMEDIT
6160 # Extract the first word of "nmedit", so it can be a program name with args.
6161 set dummy nmedit; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$ac_ct_NMEDIT"; then
6168 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6181 done
6182 done
6183 IFS=$as_save_IFS
6187 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6188 if test -n "$ac_ct_NMEDIT"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6190 $as_echo "$ac_ct_NMEDIT" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6196 if test "x$ac_ct_NMEDIT" = x; then
6197 NMEDIT=":"
6198 else
6199 case $cross_compiling:$ac_tool_warned in
6200 yes:)
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6203 ac_tool_warned=yes ;;
6204 esac
6205 NMEDIT=$ac_ct_NMEDIT
6207 else
6208 NMEDIT="$ac_cv_prog_NMEDIT"
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if ${ac_cv_prog_LIPO+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 if test -n "$LIPO"; then
6220 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6229 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6233 done
6234 done
6235 IFS=$as_save_IFS
6239 LIPO=$ac_cv_prog_LIPO
6240 if test -n "$LIPO"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6242 $as_echo "$LIPO" >&6; }
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6250 if test -z "$ac_cv_prog_LIPO"; then
6251 ac_ct_LIPO=$LIPO
6252 # Extract the first word of "lipo", so it can be a program name with args.
6253 set dummy lipo; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$ac_ct_LIPO"; then
6260 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269 ac_cv_prog_ac_ct_LIPO="lipo"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6273 done
6274 done
6275 IFS=$as_save_IFS
6279 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6280 if test -n "$ac_ct_LIPO"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6282 $as_echo "$ac_ct_LIPO" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6288 if test "x$ac_ct_LIPO" = x; then
6289 LIPO=":"
6290 else
6291 case $cross_compiling:$ac_tool_warned in
6292 yes:)
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned=yes ;;
6296 esac
6297 LIPO=$ac_ct_LIPO
6299 else
6300 LIPO="$ac_cv_prog_LIPO"
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}otool; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_OTOOL+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$OTOOL"; then
6312 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6331 OTOOL=$ac_cv_prog_OTOOL
6332 if test -n "$OTOOL"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6334 $as_echo "$OTOOL" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6342 if test -z "$ac_cv_prog_OTOOL"; then
6343 ac_ct_OTOOL=$OTOOL
6344 # Extract the first word of "otool", so it can be a program name with args.
6345 set dummy otool; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$ac_ct_OTOOL"; then
6352 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361 ac_cv_prog_ac_ct_OTOOL="otool"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6365 done
6366 done
6367 IFS=$as_save_IFS
6371 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6372 if test -n "$ac_ct_OTOOL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6374 $as_echo "$ac_ct_OTOOL" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6380 if test "x$ac_ct_OTOOL" = x; then
6381 OTOOL=":"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389 OTOOL=$ac_ct_OTOOL
6391 else
6392 OTOOL="$ac_cv_prog_OTOOL"
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_OTOOL64+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$OTOOL64"; then
6404 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 OTOOL64=$ac_cv_prog_OTOOL64
6424 if test -n "$OTOOL64"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6426 $as_echo "$OTOOL64" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6434 if test -z "$ac_cv_prog_OTOOL64"; then
6435 ac_ct_OTOOL64=$OTOOL64
6436 # Extract the first word of "otool64", so it can be a program name with args.
6437 set dummy otool64; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_OTOOL64"; then
6444 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_OTOOL64="otool64"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6457 done
6458 done
6459 IFS=$as_save_IFS
6463 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6464 if test -n "$ac_ct_OTOOL64"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6466 $as_echo "$ac_ct_OTOOL64" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6472 if test "x$ac_ct_OTOOL64" = x; then
6473 OTOOL64=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481 OTOOL64=$ac_ct_OTOOL64
6483 else
6484 OTOOL64="$ac_cv_prog_OTOOL64"
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6514 $as_echo_n "checking for -single_module linker flag... " >&6; }
6515 if ${lt_cv_apple_cc_single_mod+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_apple_cc_single_mod=no
6519 if test -z "$LT_MULTI_MODULE"; then
6520 # By default we will add the -single_module flag. You can override
6521 # by either setting the environment variable LT_MULTI_MODULE
6522 # non-empty at configure time, or by adding -multi_module to the
6523 # link flags.
6524 rm -rf libconftest.dylib*
6525 echo "int foo(void){return 1;}" > conftest.c
6526 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6527 -dynamiclib -Wl,-single_module conftest.c" >&5
6528 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6529 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6530 _lt_result=$?
6531 # If there is a non-empty error log, and "single_module"
6532 # appears in it, assume the flag caused a linker warning
6533 if test -s conftest.err && $GREP single_module conftest.err; then
6534 cat conftest.err >&5
6535 # Otherwise, if the output was created with a 0 exit code from
6536 # the compiler, it worked.
6537 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
6538 lt_cv_apple_cc_single_mod=yes
6539 else
6540 cat conftest.err >&5
6542 rm -rf libconftest.dylib*
6543 rm -f conftest.*
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6550 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6551 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 lt_cv_ld_exported_symbols_list=no
6555 save_LDFLAGS=$LDFLAGS
6556 echo "_main" > conftest.sym
6557 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 main ()
6566 return 0;
6568 _ACEOF
6569 if ac_fn_c_try_link "$LINENO"; then :
6570 lt_cv_ld_exported_symbols_list=yes
6571 else
6572 lt_cv_ld_exported_symbols_list=no
6574 rm -f core conftest.err conftest.$ac_objext \
6575 conftest$ac_exeext conftest.$ac_ext
6576 LDFLAGS=$save_LDFLAGS
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6580 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6583 $as_echo_n "checking for -force_load linker flag... " >&6; }
6584 if ${lt_cv_ld_force_load+:} false; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 lt_cv_ld_force_load=no
6588 cat > conftest.c << _LT_EOF
6589 int forced_loaded() { return 2;}
6590 _LT_EOF
6591 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6592 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6593 echo "$AR cr libconftest.a conftest.o" >&5
6594 $AR cr libconftest.a conftest.o 2>&5
6595 echo "$RANLIB libconftest.a" >&5
6596 $RANLIB libconftest.a 2>&5
6597 cat > conftest.c << _LT_EOF
6598 int main() { return 0;}
6599 _LT_EOF
6600 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6601 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6602 _lt_result=$?
6603 if test -s conftest.err && $GREP force_load conftest.err; then
6604 cat conftest.err >&5
6605 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
6606 lt_cv_ld_force_load=yes
6607 else
6608 cat conftest.err >&5
6610 rm -f conftest.err libconftest.a conftest conftest.c
6611 rm -rf conftest.dSYM
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6615 $as_echo "$lt_cv_ld_force_load" >&6; }
6616 case $host_os in
6617 rhapsody* | darwin1.[012])
6618 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
6619 darwin1.*)
6620 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6621 darwin*) # darwin 5.x on
6622 # if running on 10.5 or later, the deployment target defaults
6623 # to the OS version, if on x86, and 10.4, the deployment
6624 # target defaults to 10.4. Don't you love it?
6625 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6626 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6627 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6628 10.[012][,.]*)
6629 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
6630 10.*)
6631 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
6632 esac
6634 esac
6635 if test yes = "$lt_cv_apple_cc_single_mod"; then
6636 _lt_dar_single_mod='$single_module'
6638 if test yes = "$lt_cv_ld_exported_symbols_list"; then
6639 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
6640 else
6641 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
6643 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
6644 _lt_dsymutil='~$DSYMUTIL $lib || :'
6645 else
6646 _lt_dsymutil=
6649 esac
6651 # func_munge_path_list VARIABLE PATH
6652 # -----------------------------------
6653 # VARIABLE is name of variable containing _space_ separated list of
6654 # directories to be munged by the contents of PATH, which is string
6655 # having a format:
6656 # "DIR[:DIR]:"
6657 # string "DIR[ DIR]" will be prepended to VARIABLE
6658 # ":DIR[:DIR]"
6659 # string "DIR[ DIR]" will be appended to VARIABLE
6660 # "DIRP[:DIRP]::[DIRA:]DIRA"
6661 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
6662 # "DIRA[ DIRA]" will be appended to VARIABLE
6663 # "DIR[:DIR]"
6664 # VARIABLE will be replaced by "DIR[ DIR]"
6665 func_munge_path_list ()
6667 case x$2 in
6671 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
6673 x:*)
6674 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
6676 *::*)
6677 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
6678 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
6681 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
6683 esac
6686 ac_ext=c
6687 ac_cpp='$CPP $CPPFLAGS'
6688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6692 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6693 # On Suns, sometimes $CPP names a directory.
6694 if test -n "$CPP" && test -d "$CPP"; then
6695 CPP=
6697 if test -z "$CPP"; then
6698 if ${ac_cv_prog_CPP+:} false; then :
6699 $as_echo_n "(cached) " >&6
6700 else
6701 # Double quotes because CPP needs to be expanded
6702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6704 ac_preproc_ok=false
6705 for ac_c_preproc_warn_flag in '' yes
6707 # Use a header file that comes with gcc, so configuring glibc
6708 # with a fresh cross-compiler works.
6709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6710 # <limits.h> exists even on freestanding compilers.
6711 # On the NeXT, cc -E runs the code through the compiler's parser,
6712 # not just through cpp. "Syntax error" is here to catch this case.
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 #ifdef __STDC__
6716 # include <limits.h>
6717 #else
6718 # include <assert.h>
6719 #endif
6720 Syntax error
6721 _ACEOF
6722 if ac_fn_c_try_cpp "$LINENO"; then :
6724 else
6725 # Broken: fails on valid input.
6726 continue
6728 rm -f conftest.err conftest.i conftest.$ac_ext
6730 # OK, works on sane cases. Now check whether nonexistent headers
6731 # can be detected and how.
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6734 #include <ac_nonexistent.h>
6735 _ACEOF
6736 if ac_fn_c_try_cpp "$LINENO"; then :
6737 # Broken: success on invalid input.
6738 continue
6739 else
6740 # Passes both tests.
6741 ac_preproc_ok=:
6742 break
6744 rm -f conftest.err conftest.i conftest.$ac_ext
6746 done
6747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6748 rm -f conftest.i conftest.err conftest.$ac_ext
6749 if $ac_preproc_ok; then :
6750 break
6753 done
6754 ac_cv_prog_CPP=$CPP
6757 CPP=$ac_cv_prog_CPP
6758 else
6759 ac_cv_prog_CPP=$CPP
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6762 $as_echo "$CPP" >&6; }
6763 ac_preproc_ok=false
6764 for ac_c_preproc_warn_flag in '' yes
6766 # Use a header file that comes with gcc, so configuring glibc
6767 # with a fresh cross-compiler works.
6768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6769 # <limits.h> exists even on freestanding compilers.
6770 # On the NeXT, cc -E runs the code through the compiler's parser,
6771 # not just through cpp. "Syntax error" is here to catch this case.
6772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6773 /* end confdefs.h. */
6774 #ifdef __STDC__
6775 # include <limits.h>
6776 #else
6777 # include <assert.h>
6778 #endif
6779 Syntax error
6780 _ACEOF
6781 if ac_fn_c_try_cpp "$LINENO"; then :
6783 else
6784 # Broken: fails on valid input.
6785 continue
6787 rm -f conftest.err conftest.i conftest.$ac_ext
6789 # OK, works on sane cases. Now check whether nonexistent headers
6790 # can be detected and how.
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 #include <ac_nonexistent.h>
6794 _ACEOF
6795 if ac_fn_c_try_cpp "$LINENO"; then :
6796 # Broken: success on invalid input.
6797 continue
6798 else
6799 # Passes both tests.
6800 ac_preproc_ok=:
6801 break
6803 rm -f conftest.err conftest.i conftest.$ac_ext
6805 done
6806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6807 rm -f conftest.i conftest.err conftest.$ac_ext
6808 if $ac_preproc_ok; then :
6810 else
6811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6813 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6814 See \`config.log' for more details" "$LINENO" 5; }
6817 ac_ext=c
6818 ac_cpp='$CPP $CPPFLAGS'
6819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6825 $as_echo_n "checking for ANSI C header files... " >&6; }
6826 if ${ac_cv_header_stdc+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828 else
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6831 #include <stdlib.h>
6832 #include <stdarg.h>
6833 #include <string.h>
6834 #include <float.h>
6837 main ()
6841 return 0;
6843 _ACEOF
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 ac_cv_header_stdc=yes
6846 else
6847 ac_cv_header_stdc=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 if test $ac_cv_header_stdc = yes; then
6852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 #include <string.h>
6857 _ACEOF
6858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6859 $EGREP "memchr" >/dev/null 2>&1; then :
6861 else
6862 ac_cv_header_stdc=no
6864 rm -f conftest*
6868 if test $ac_cv_header_stdc = yes; then
6869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <stdlib.h>
6874 _ACEOF
6875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6876 $EGREP "free" >/dev/null 2>&1; then :
6878 else
6879 ac_cv_header_stdc=no
6881 rm -f conftest*
6885 if test $ac_cv_header_stdc = yes; then
6886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6887 if test "$cross_compiling" = yes; then :
6889 else
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #include <ctype.h>
6893 #include <stdlib.h>
6894 #if ((' ' & 0x0FF) == 0x020)
6895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6897 #else
6898 # define ISLOWER(c) \
6899 (('a' <= (c) && (c) <= 'i') \
6900 || ('j' <= (c) && (c) <= 'r') \
6901 || ('s' <= (c) && (c) <= 'z'))
6902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6903 #endif
6905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6907 main ()
6909 int i;
6910 for (i = 0; i < 256; i++)
6911 if (XOR (islower (i), ISLOWER (i))
6912 || toupper (i) != TOUPPER (i))
6913 return 2;
6914 return 0;
6916 _ACEOF
6917 if ac_fn_c_try_run "$LINENO"; then :
6919 else
6920 ac_cv_header_stdc=no
6922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6923 conftest.$ac_objext conftest.beam conftest.$ac_ext
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6929 $as_echo "$ac_cv_header_stdc" >&6; }
6930 if test $ac_cv_header_stdc = yes; then
6932 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6936 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6937 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6938 inttypes.h stdint.h unistd.h
6939 do :
6940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6941 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6943 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6944 cat >>confdefs.h <<_ACEOF
6945 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6946 _ACEOF
6950 done
6953 for ac_header in dlfcn.h
6954 do :
6955 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6957 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6958 cat >>confdefs.h <<_ACEOF
6959 #define HAVE_DLFCN_H 1
6960 _ACEOF
6964 done
6970 # Set options
6974 enable_dlopen=no
6977 enable_win32_dll=no
6980 # Check whether --enable-shared was given.
6981 if test "${enable_shared+set}" = set; then :
6982 enableval=$enable_shared; p=${PACKAGE-default}
6983 case $enableval in
6984 yes) enable_shared=yes ;;
6985 no) enable_shared=no ;;
6987 enable_shared=no
6988 # Look at the argument we got. We use all the common list separators.
6989 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6990 for pkg in $enableval; do
6991 IFS=$lt_save_ifs
6992 if test "X$pkg" = "X$p"; then
6993 enable_shared=yes
6995 done
6996 IFS=$lt_save_ifs
6998 esac
6999 else
7000 enable_shared=yes
7011 # Check whether --enable-static was given.
7012 if test "${enable_static+set}" = set; then :
7013 enableval=$enable_static; p=${PACKAGE-default}
7014 case $enableval in
7015 yes) enable_static=yes ;;
7016 no) enable_static=no ;;
7018 enable_static=no
7019 # Look at the argument we got. We use all the common list separators.
7020 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7021 for pkg in $enableval; do
7022 IFS=$lt_save_ifs
7023 if test "X$pkg" = "X$p"; then
7024 enable_static=yes
7026 done
7027 IFS=$lt_save_ifs
7029 esac
7030 else
7031 enable_static=yes
7043 # Check whether --with-pic was given.
7044 if test "${with_pic+set}" = set; then :
7045 withval=$with_pic; lt_p=${PACKAGE-default}
7046 case $withval in
7047 yes|no) pic_mode=$withval ;;
7049 pic_mode=default
7050 # Look at the argument we got. We use all the common list separators.
7051 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7052 for lt_pkg in $withval; do
7053 IFS=$lt_save_ifs
7054 if test "X$lt_pkg" = "X$lt_p"; then
7055 pic_mode=yes
7057 done
7058 IFS=$lt_save_ifs
7060 esac
7061 else
7062 pic_mode=default
7072 # Check whether --enable-fast-install was given.
7073 if test "${enable_fast_install+set}" = set; then :
7074 enableval=$enable_fast_install; p=${PACKAGE-default}
7075 case $enableval in
7076 yes) enable_fast_install=yes ;;
7077 no) enable_fast_install=no ;;
7079 enable_fast_install=no
7080 # Look at the argument we got. We use all the common list separators.
7081 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7082 for pkg in $enableval; do
7083 IFS=$lt_save_ifs
7084 if test "X$pkg" = "X$p"; then
7085 enable_fast_install=yes
7087 done
7088 IFS=$lt_save_ifs
7090 esac
7091 else
7092 enable_fast_install=yes
7102 shared_archive_member_spec=
7103 case $host,$enable_shared in
7104 power*-*-aix[5-9]*,yes)
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7106 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7108 # Check whether --with-aix-soname was given.
7109 if test "${with_aix_soname+set}" = set; then :
7110 withval=$with_aix_soname; case $withval in
7111 aix|svr4|both)
7114 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7116 esac
7117 lt_cv_with_aix_soname=$with_aix_soname
7118 else
7119 if ${lt_cv_with_aix_soname+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7122 lt_cv_with_aix_soname=aix
7125 with_aix_soname=$lt_cv_with_aix_soname
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7129 $as_echo "$with_aix_soname" >&6; }
7130 if test aix != "$with_aix_soname"; then
7131 # For the AIX way of multilib, we name the shared archive member
7132 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7133 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7134 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7135 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7136 if test 64 = "${OBJECT_MODE-32}"; then
7137 shared_archive_member_spec=shr_64
7138 else
7139 shared_archive_member_spec=shr
7144 with_aix_soname=aix
7146 esac
7157 # This can be used to rebuild libtool when needed
7158 LIBTOOL_DEPS=$ltmain
7160 # Always use our own libtool.
7161 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7192 test -z "$LN_S" && LN_S="ln -s"
7207 if test -n "${ZSH_VERSION+set}"; then
7208 setopt NO_GLOB_SUBST
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7212 $as_echo_n "checking for objdir... " >&6; }
7213 if ${lt_cv_objdir+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 rm -f .libs 2>/dev/null
7217 mkdir .libs 2>/dev/null
7218 if test -d .libs; then
7219 lt_cv_objdir=.libs
7220 else
7221 # MS-DOS does not allow filenames that begin with a dot.
7222 lt_cv_objdir=_libs
7224 rmdir .libs 2>/dev/null
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7227 $as_echo "$lt_cv_objdir" >&6; }
7228 objdir=$lt_cv_objdir
7234 cat >>confdefs.h <<_ACEOF
7235 #define LT_OBJDIR "$lt_cv_objdir/"
7236 _ACEOF
7241 case $host_os in
7242 aix3*)
7243 # AIX sometimes has problems with the GCC collect2 program. For some
7244 # reason, if we set the COLLECT_NAMES environment variable, the problems
7245 # vanish in a puff of smoke.
7246 if test set != "${COLLECT_NAMES+set}"; then
7247 COLLECT_NAMES=
7248 export COLLECT_NAMES
7251 esac
7253 # Global variables:
7254 ofile=libtool
7255 can_build_shared=yes
7257 # All known linkers require a '.a' archive for static linking (except MSVC,
7258 # which needs '.lib').
7259 libext=a
7261 with_gnu_ld=$lt_cv_prog_gnu_ld
7263 old_CC=$CC
7264 old_CFLAGS=$CFLAGS
7266 # Set sane defaults for various variables
7267 test -z "$CC" && CC=cc
7268 test -z "$LTCC" && LTCC=$CC
7269 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7270 test -z "$LD" && LD=ld
7271 test -z "$ac_objext" && ac_objext=o
7273 func_cc_basename $compiler
7274 cc_basename=$func_cc_basename_result
7277 # Only perform the check for file, if the check method requires it
7278 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7279 case $deplibs_check_method in
7280 file_magic*)
7281 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7283 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7284 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 case $MAGIC_CMD in
7288 [\\/*] | ?:[\\/]*)
7289 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7292 lt_save_MAGIC_CMD=$MAGIC_CMD
7293 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7294 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7295 for ac_dir in $ac_dummy; do
7296 IFS=$lt_save_ifs
7297 test -z "$ac_dir" && ac_dir=.
7298 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7299 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7300 if test -n "$file_magic_test_file"; then
7301 case $deplibs_check_method in
7302 "file_magic "*)
7303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7304 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7306 $EGREP "$file_magic_regex" > /dev/null; then
7308 else
7309 cat <<_LT_EOF 1>&2
7311 *** Warning: the command libtool uses to detect shared libraries,
7312 *** $file_magic_cmd, produces output that libtool cannot recognize.
7313 *** The result is that libtool may fail to recognize shared libraries
7314 *** as such. This will affect the creation of libtool libraries that
7315 *** depend on shared libraries, but programs linked with such libtool
7316 *** libraries will work regardless of this problem. Nevertheless, you
7317 *** may want to report the problem to your system manager and/or to
7318 *** bug-libtool@gnu.org
7320 _LT_EOF
7321 fi ;;
7322 esac
7324 break
7326 done
7327 IFS=$lt_save_ifs
7328 MAGIC_CMD=$lt_save_MAGIC_CMD
7330 esac
7333 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7334 if test -n "$MAGIC_CMD"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7336 $as_echo "$MAGIC_CMD" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7346 if test -z "$lt_cv_path_MAGIC_CMD"; then
7347 if test -n "$ac_tool_prefix"; then
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7349 $as_echo_n "checking for file... " >&6; }
7350 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7351 $as_echo_n "(cached) " >&6
7352 else
7353 case $MAGIC_CMD in
7354 [\\/*] | ?:[\\/]*)
7355 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7358 lt_save_MAGIC_CMD=$MAGIC_CMD
7359 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7360 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7361 for ac_dir in $ac_dummy; do
7362 IFS=$lt_save_ifs
7363 test -z "$ac_dir" && ac_dir=.
7364 if test -f "$ac_dir/file"; then
7365 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7366 if test -n "$file_magic_test_file"; then
7367 case $deplibs_check_method in
7368 "file_magic "*)
7369 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7370 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7371 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7372 $EGREP "$file_magic_regex" > /dev/null; then
7374 else
7375 cat <<_LT_EOF 1>&2
7377 *** Warning: the command libtool uses to detect shared libraries,
7378 *** $file_magic_cmd, produces output that libtool cannot recognize.
7379 *** The result is that libtool may fail to recognize shared libraries
7380 *** as such. This will affect the creation of libtool libraries that
7381 *** depend on shared libraries, but programs linked with such libtool
7382 *** libraries will work regardless of this problem. Nevertheless, you
7383 *** may want to report the problem to your system manager and/or to
7384 *** bug-libtool@gnu.org
7386 _LT_EOF
7387 fi ;;
7388 esac
7390 break
7392 done
7393 IFS=$lt_save_ifs
7394 MAGIC_CMD=$lt_save_MAGIC_CMD
7396 esac
7399 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7400 if test -n "$MAGIC_CMD"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7402 $as_echo "$MAGIC_CMD" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7409 else
7410 MAGIC_CMD=:
7416 esac
7418 # Use C for the default configuration in the libtool script
7420 lt_save_CC=$CC
7421 ac_ext=c
7422 ac_cpp='$CPP $CPPFLAGS'
7423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7428 # Source file extension for C test sources.
7429 ac_ext=c
7431 # Object file extension for compiled C test sources.
7432 objext=o
7433 objext=$objext
7435 # Code to be used in simple compile tests
7436 lt_simple_compile_test_code="int some_variable = 0;"
7438 # Code to be used in simple link tests
7439 lt_simple_link_test_code='int main(){return(0);}'
7447 # If no C compiler was specified, use CC.
7448 LTCC=${LTCC-"$CC"}
7450 # If no C compiler flags were specified, use CFLAGS.
7451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7453 # Allow CC to be a program name with arguments.
7454 compiler=$CC
7456 # Save the default compiler, since it gets overwritten when the other
7457 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7458 compiler_DEFAULT=$CC
7460 # save warnings/boilerplate of simple test code
7461 ac_outfile=conftest.$ac_objext
7462 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7463 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7464 _lt_compiler_boilerplate=`cat conftest.err`
7465 $RM conftest*
7467 ac_outfile=conftest.$ac_objext
7468 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7469 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7470 _lt_linker_boilerplate=`cat conftest.err`
7471 $RM -r conftest*
7474 if test -n "$compiler"; then
7476 lt_prog_compiler_no_builtin_flag=
7478 if test yes = "$GCC"; then
7479 case $cc_basename in
7480 nvcc*)
7481 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7483 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7484 esac
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7487 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7488 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 lt_cv_prog_compiler_rtti_exceptions=no
7492 ac_outfile=conftest.$ac_objext
7493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7494 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
7495 # Insert the option either (1) after the last *FLAGS variable, or
7496 # (2) before a word containing "conftest.", or (3) at the end.
7497 # Note that $ac_compile itself does not contain backslashes and begins
7498 # with a dollar sign (not a hyphen), so the echo should work correctly.
7499 # The option is referenced via a variable to avoid confusing sed.
7500 lt_compile=`echo "$ac_compile" | $SED \
7501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7503 -e 's:$: $lt_compiler_flag:'`
7504 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7505 (eval "$lt_compile" 2>conftest.err)
7506 ac_status=$?
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 if (exit $ac_status) && test -s "$ac_outfile"; then
7510 # The compiler can only warn and ignore the option if not recognized
7511 # So say no if there are warnings other than the usual output.
7512 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7513 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7514 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7515 lt_cv_prog_compiler_rtti_exceptions=yes
7518 $RM conftest*
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7522 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7524 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
7525 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7526 else
7537 lt_prog_compiler_wl=
7538 lt_prog_compiler_pic=
7539 lt_prog_compiler_static=
7542 if test yes = "$GCC"; then
7543 lt_prog_compiler_wl='-Wl,'
7544 lt_prog_compiler_static='-static'
7546 case $host_os in
7547 aix*)
7548 # All AIX code is PIC.
7549 if test ia64 = "$host_cpu"; then
7550 # AIX 5 now supports IA64 processor
7551 lt_prog_compiler_static='-Bstatic'
7553 lt_prog_compiler_pic='-fPIC'
7556 amigaos*)
7557 case $host_cpu in
7558 powerpc)
7559 # see comment about AmigaOS4 .so support
7560 lt_prog_compiler_pic='-fPIC'
7562 m68k)
7563 # FIXME: we need at least 68020 code to build shared libraries, but
7564 # adding the '-m68020' flag to GCC prevents building anything better,
7565 # like '-m68040'.
7566 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7568 esac
7571 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7572 # PIC is the default for these OSes.
7575 mingw* | cygwin* | pw32* | os2* | cegcc*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7579 # (--disable-auto-import) libraries
7580 lt_prog_compiler_pic='-DDLL_EXPORT'
7581 case $host_os in
7582 os2*)
7583 lt_prog_compiler_static='$wl-static'
7585 esac
7588 darwin* | rhapsody*)
7589 # PIC is the default on this platform
7590 # Common symbols not allowed in MH_DYLIB files
7591 lt_prog_compiler_pic='-fno-common'
7594 haiku*)
7595 # PIC is the default for Haiku.
7596 # The "-static" flag exists, but is broken.
7597 lt_prog_compiler_static=
7600 hpux*)
7601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7603 # sets the default TLS model and affects inlining.
7604 case $host_cpu in
7605 hppa*64*)
7606 # +Z the default
7609 lt_prog_compiler_pic='-fPIC'
7611 esac
7614 interix[3-9]*)
7615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7616 # Instead, we relocate shared libraries at runtime.
7619 msdosdjgpp*)
7620 # Just because we use GCC doesn't mean we suddenly get shared libraries
7621 # on systems that don't support them.
7622 lt_prog_compiler_can_build_shared=no
7623 enable_shared=no
7626 *nto* | *qnx*)
7627 # QNX uses GNU C++, but need to define -shared option too, otherwise
7628 # it will coredump.
7629 lt_prog_compiler_pic='-fPIC -shared'
7632 sysv4*MP*)
7633 if test -d /usr/nec; then
7634 lt_prog_compiler_pic=-Kconform_pic
7639 lt_prog_compiler_pic='-fPIC'
7641 esac
7643 case $cc_basename in
7644 nvcc*) # Cuda Compiler Driver 2.2
7645 lt_prog_compiler_wl='-Xlinker '
7646 if test -n "$lt_prog_compiler_pic"; then
7647 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7650 esac
7651 else
7652 # PORTME Check for flag to pass linker flags through the system compiler.
7653 case $host_os in
7654 aix*)
7655 lt_prog_compiler_wl='-Wl,'
7656 if test ia64 = "$host_cpu"; then
7657 # AIX 5 now supports IA64 processor
7658 lt_prog_compiler_static='-Bstatic'
7659 else
7660 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7664 darwin* | rhapsody*)
7665 # PIC is the default on this platform
7666 # Common symbols not allowed in MH_DYLIB files
7667 lt_prog_compiler_pic='-fno-common'
7668 case $cc_basename in
7669 nagfor*)
7670 # NAG Fortran compiler
7671 lt_prog_compiler_wl='-Wl,-Wl,,'
7672 lt_prog_compiler_pic='-PIC'
7673 lt_prog_compiler_static='-Bstatic'
7675 esac
7678 mingw* | cygwin* | pw32* | os2* | cegcc*)
7679 # This hack is so that the source file can tell whether it is being
7680 # built for inclusion in a dll (and should export symbols for example).
7681 lt_prog_compiler_pic='-DDLL_EXPORT'
7682 case $host_os in
7683 os2*)
7684 lt_prog_compiler_static='$wl-static'
7686 esac
7689 hpux9* | hpux10* | hpux11*)
7690 lt_prog_compiler_wl='-Wl,'
7691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7692 # not for PA HP-UX.
7693 case $host_cpu in
7694 hppa*64*|ia64*)
7695 # +Z the default
7698 lt_prog_compiler_pic='+Z'
7700 esac
7701 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7702 lt_prog_compiler_static='$wl-a ${wl}archive'
7705 irix5* | irix6* | nonstopux*)
7706 lt_prog_compiler_wl='-Wl,'
7707 # PIC (with -KPIC) is the default.
7708 lt_prog_compiler_static='-non_shared'
7711 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7712 case $cc_basename in
7713 # old Intel for x86_64, which still supported -KPIC.
7714 ecc*)
7715 lt_prog_compiler_wl='-Wl,'
7716 lt_prog_compiler_pic='-KPIC'
7717 lt_prog_compiler_static='-static'
7719 # flang / f18. f95 an alias for gfortran or flang on Debian
7720 flang* | f18* | f95*)
7721 lt_prog_compiler_wl='-Wl,'
7722 lt_prog_compiler_pic='-fPIC'
7723 lt_prog_compiler_static='-static'
7725 # icc used to be incompatible with GCC.
7726 # ICC 10 doesn't accept -KPIC any more.
7727 icc* | ifort*)
7728 lt_prog_compiler_wl='-Wl,'
7729 lt_prog_compiler_pic='-fPIC'
7730 lt_prog_compiler_static='-static'
7732 # Lahey Fortran 8.1.
7733 lf95*)
7734 lt_prog_compiler_wl='-Wl,'
7735 lt_prog_compiler_pic='--shared'
7736 lt_prog_compiler_static='--static'
7738 nagfor*)
7739 # NAG Fortran compiler
7740 lt_prog_compiler_wl='-Wl,-Wl,,'
7741 lt_prog_compiler_pic='-PIC'
7742 lt_prog_compiler_static='-Bstatic'
7744 tcc*)
7745 # Fabrice Bellard et al's Tiny C Compiler
7746 lt_prog_compiler_wl='-Wl,'
7747 lt_prog_compiler_pic='-fPIC'
7748 lt_prog_compiler_static='-static'
7750 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7751 # Portland Group compilers (*not* the Pentium gcc compiler,
7752 # which looks to be a dead project)
7753 lt_prog_compiler_wl='-Wl,'
7754 lt_prog_compiler_pic='-fpic'
7755 lt_prog_compiler_static='-Bstatic'
7757 ccc*)
7758 lt_prog_compiler_wl='-Wl,'
7759 # All Alpha code is PIC.
7760 lt_prog_compiler_static='-non_shared'
7762 xl* | bgxl* | bgf* | mpixl*)
7763 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7764 lt_prog_compiler_wl='-Wl,'
7765 lt_prog_compiler_pic='-qpic'
7766 lt_prog_compiler_static='-qstaticlink'
7769 case `$CC -V 2>&1 | sed 5q` in
7770 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7771 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7772 lt_prog_compiler_pic='-KPIC'
7773 lt_prog_compiler_static='-Bstatic'
7774 lt_prog_compiler_wl=''
7776 *Sun\ F* | *Sun*Fortran*)
7777 lt_prog_compiler_pic='-KPIC'
7778 lt_prog_compiler_static='-Bstatic'
7779 lt_prog_compiler_wl='-Qoption ld '
7781 *Sun\ C*)
7782 # Sun C 5.9
7783 lt_prog_compiler_pic='-KPIC'
7784 lt_prog_compiler_static='-Bstatic'
7785 lt_prog_compiler_wl='-Wl,'
7787 *Intel*\ [CF]*Compiler*)
7788 lt_prog_compiler_wl='-Wl,'
7789 lt_prog_compiler_pic='-fPIC'
7790 lt_prog_compiler_static='-static'
7792 *Portland\ Group*)
7793 lt_prog_compiler_wl='-Wl,'
7794 lt_prog_compiler_pic='-fpic'
7795 lt_prog_compiler_static='-Bstatic'
7797 esac
7799 esac
7802 newsos6)
7803 lt_prog_compiler_pic='-KPIC'
7804 lt_prog_compiler_static='-Bstatic'
7807 *nto* | *qnx*)
7808 # QNX uses GNU C++, but need to define -shared option too, otherwise
7809 # it will coredump.
7810 lt_prog_compiler_pic='-fPIC -shared'
7813 osf3* | osf4* | osf5*)
7814 lt_prog_compiler_wl='-Wl,'
7815 # All OSF/1 code is PIC.
7816 lt_prog_compiler_static='-non_shared'
7819 rdos*)
7820 lt_prog_compiler_static='-non_shared'
7823 solaris*)
7824 lt_prog_compiler_pic='-KPIC'
7825 lt_prog_compiler_static='-Bstatic'
7826 case $cc_basename in
7827 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7828 lt_prog_compiler_wl='-Qoption ld ';;
7830 lt_prog_compiler_wl='-Wl,';;
7831 esac
7834 sunos4*)
7835 lt_prog_compiler_wl='-Qoption ld '
7836 lt_prog_compiler_pic='-PIC'
7837 lt_prog_compiler_static='-Bstatic'
7840 sysv4 | sysv4.2uw2* | sysv4.3*)
7841 lt_prog_compiler_wl='-Wl,'
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-Bstatic'
7846 sysv4*MP*)
7847 if test -d /usr/nec; then
7848 lt_prog_compiler_pic='-Kconform_pic'
7849 lt_prog_compiler_static='-Bstatic'
7853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_pic='-KPIC'
7856 lt_prog_compiler_static='-Bstatic'
7859 unicos*)
7860 lt_prog_compiler_wl='-Wl,'
7861 lt_prog_compiler_can_build_shared=no
7864 uts4*)
7865 lt_prog_compiler_pic='-pic'
7866 lt_prog_compiler_static='-Bstatic'
7870 lt_prog_compiler_can_build_shared=no
7872 esac
7875 case $host_os in
7876 # For platforms that do not support PIC, -DPIC is meaningless:
7877 *djgpp*)
7878 lt_prog_compiler_pic=
7881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7883 esac
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7886 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7887 if ${lt_cv_prog_compiler_pic+:} false; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7893 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7894 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7897 # Check to make sure the PIC flag actually works.
7899 if test -n "$lt_prog_compiler_pic"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7901 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7902 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 lt_cv_prog_compiler_pic_works=no
7906 ac_outfile=conftest.$ac_objext
7907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7908 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
7909 # Insert the option either (1) after the last *FLAGS variable, or
7910 # (2) before a word containing "conftest.", or (3) at the end.
7911 # Note that $ac_compile itself does not contain backslashes and begins
7912 # with a dollar sign (not a hyphen), so the echo should work correctly.
7913 # The option is referenced via a variable to avoid confusing sed.
7914 lt_compile=`echo "$ac_compile" | $SED \
7915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7917 -e 's:$: $lt_compiler_flag:'`
7918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7919 (eval "$lt_compile" 2>conftest.err)
7920 ac_status=$?
7921 cat conftest.err >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 if (exit $ac_status) && test -s "$ac_outfile"; then
7924 # The compiler can only warn and ignore the option if not recognized
7925 # So say no if there are warnings other than the usual output.
7926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7929 lt_cv_prog_compiler_pic_works=yes
7932 $RM conftest*
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7936 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7938 if test yes = "$lt_cv_prog_compiler_pic_works"; then
7939 case $lt_prog_compiler_pic in
7940 "" | " "*) ;;
7941 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7942 esac
7943 else
7944 lt_prog_compiler_pic=
7945 lt_prog_compiler_can_build_shared=no
7961 # Check to make sure the static flag actually works.
7963 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7965 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7966 if ${lt_cv_prog_compiler_static_works+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 lt_cv_prog_compiler_static_works=no
7970 save_LDFLAGS=$LDFLAGS
7971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7974 # The linker can only warn and ignore the option if not recognized
7975 # So say no if there are warnings
7976 if test -s conftest.err; then
7977 # Append any errors to the config.log.
7978 cat conftest.err 1>&5
7979 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981 if diff conftest.exp conftest.er2 >/dev/null; then
7982 lt_cv_prog_compiler_static_works=yes
7984 else
7985 lt_cv_prog_compiler_static_works=yes
7988 $RM -r conftest*
7989 LDFLAGS=$save_LDFLAGS
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7993 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7995 if test yes = "$lt_cv_prog_compiler_static_works"; then
7997 else
7998 lt_prog_compiler_static=
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8008 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8009 if ${lt_cv_prog_compiler_c_o+:} false; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 lt_cv_prog_compiler_c_o=no
8013 $RM -r conftest 2>/dev/null
8014 mkdir conftest
8015 cd conftest
8016 mkdir out
8017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8019 lt_compiler_flag="-o out/conftest2.$ac_objext"
8020 # Insert the option either (1) after the last *FLAGS variable, or
8021 # (2) before a word containing "conftest.", or (3) at the end.
8022 # Note that $ac_compile itself does not contain backslashes and begins
8023 # with a dollar sign (not a hyphen), so the echo should work correctly.
8024 lt_compile=`echo "$ac_compile" | $SED \
8025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8027 -e 's:$: $lt_compiler_flag:'`
8028 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8029 (eval "$lt_compile" 2>out/conftest.err)
8030 ac_status=$?
8031 cat out/conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8034 then
8035 # The compiler can only warn and ignore the option if not recognized
8036 # So say no if there are warnings
8037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8038 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8039 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8040 lt_cv_prog_compiler_c_o=yes
8043 chmod u+w . 2>&5
8044 $RM conftest*
8045 # SGI C++ compiler will create directory out/ii_files/ for
8046 # template instantiation
8047 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8048 $RM out/* && rmdir out
8049 cd ..
8050 $RM -r conftest
8051 $RM conftest*
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8055 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8064 if ${lt_cv_prog_compiler_c_o+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_prog_compiler_c_o=no
8068 $RM -r conftest 2>/dev/null
8069 mkdir conftest
8070 cd conftest
8071 mkdir out
8072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8074 lt_compiler_flag="-o out/conftest2.$ac_objext"
8075 # Insert the option either (1) after the last *FLAGS variable, or
8076 # (2) before a word containing "conftest.", or (3) at the end.
8077 # Note that $ac_compile itself does not contain backslashes and begins
8078 # with a dollar sign (not a hyphen), so the echo should work correctly.
8079 lt_compile=`echo "$ac_compile" | $SED \
8080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8082 -e 's:$: $lt_compiler_flag:'`
8083 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8084 (eval "$lt_compile" 2>out/conftest.err)
8085 ac_status=$?
8086 cat out/conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8089 then
8090 # The compiler can only warn and ignore the option if not recognized
8091 # So say no if there are warnings
8092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8093 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8094 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8095 lt_cv_prog_compiler_c_o=yes
8098 chmod u+w . 2>&5
8099 $RM conftest*
8100 # SGI C++ compiler will create directory out/ii_files/ for
8101 # template instantiation
8102 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8103 $RM out/* && rmdir out
8104 cd ..
8105 $RM -r conftest
8106 $RM conftest*
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8110 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8115 hard_links=nottested
8116 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8117 # do not overwrite the value of need_locks provided by the user
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8119 $as_echo_n "checking if we can lock with hard links... " >&6; }
8120 hard_links=yes
8121 $RM conftest*
8122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8123 touch conftest.a
8124 ln conftest.a conftest.b 2>&5 || hard_links=no
8125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8127 $as_echo "$hard_links" >&6; }
8128 if test no = "$hard_links"; then
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8130 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8131 need_locks=warn
8133 else
8134 need_locks=no
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8143 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8145 runpath_var=
8146 allow_undefined_flag=
8147 always_export_symbols=no
8148 archive_cmds=
8149 archive_expsym_cmds=
8150 compiler_needs_object=no
8151 enable_shared_with_static_runtimes=no
8152 export_dynamic_flag_spec=
8153 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8154 hardcode_automatic=no
8155 hardcode_direct=no
8156 hardcode_direct_absolute=no
8157 hardcode_libdir_flag_spec=
8158 hardcode_libdir_separator=
8159 hardcode_minus_L=no
8160 hardcode_shlibpath_var=unsupported
8161 inherit_rpath=no
8162 link_all_deplibs=unknown
8163 module_cmds=
8164 module_expsym_cmds=
8165 old_archive_from_new_cmds=
8166 old_archive_from_expsyms_cmds=
8167 thread_safe_flag_spec=
8168 whole_archive_flag_spec=
8169 # include_expsyms should be a list of space-separated symbols to be *always*
8170 # included in the symbol list
8171 include_expsyms=
8172 # exclude_expsyms can be an extended regexp of symbols to exclude
8173 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8174 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8175 # as well as any symbol that contains 'd'.
8176 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8177 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8178 # platforms (ab)use it in PIC code, but their linkers get confused if
8179 # the symbol is explicitly referenced. Since portable code cannot
8180 # rely on this symbol name, it's probably fine to never include it in
8181 # preloaded symbol tables.
8182 # Exclude shared library initialization/finalization symbols.
8183 extract_expsyms_cmds=
8185 case $host_os in
8186 cygwin* | mingw* | pw32* | cegcc*)
8187 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8188 # When not using gcc, we currently assume that we are using
8189 # Microsoft Visual C++.
8190 if test yes != "$GCC"; then
8191 with_gnu_ld=no
8194 interix*)
8195 # we just hope/assume this is gcc and not c89 (= MSVC++)
8196 with_gnu_ld=yes
8198 openbsd* | bitrig*)
8199 with_gnu_ld=no
8201 linux* | k*bsd*-gnu | gnu*)
8202 link_all_deplibs=no
8204 esac
8206 ld_shlibs=yes
8208 # On some targets, GNU ld is compatible enough with the native linker
8209 # that we're better off using the native interface for both.
8210 lt_use_gnu_ld_interface=no
8211 if test yes = "$with_gnu_ld"; then
8212 case $host_os in
8213 aix*)
8214 # The AIX port of GNU ld has always aspired to compatibility
8215 # with the native linker. However, as the warning in the GNU ld
8216 # block says, versions before 2.19.5* couldn't really create working
8217 # shared libraries, regardless of the interface used.
8218 case `$LD -v 2>&1` in
8219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8221 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8223 lt_use_gnu_ld_interface=yes
8225 esac
8228 lt_use_gnu_ld_interface=yes
8230 esac
8233 if test yes = "$lt_use_gnu_ld_interface"; then
8234 # If archive_cmds runs LD, not CC, wlarc should be empty
8235 wlarc='$wl'
8237 # Set some defaults for GNU ld with shared library support. These
8238 # are reset later if shared libraries are not supported. Putting them
8239 # here allows them to be overridden if necessary.
8240 runpath_var=LD_RUN_PATH
8241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8242 export_dynamic_flag_spec='$wl--export-dynamic'
8243 # ancient GNU ld didn't support --whole-archive et. al.
8244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8245 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8246 else
8247 whole_archive_flag_spec=
8249 supports_anon_versioning=no
8250 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8251 *GNU\ gold*) supports_anon_versioning=yes ;;
8252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8255 *\ 2.11.*) ;; # other 2.11 versions
8256 *) supports_anon_versioning=yes ;;
8257 esac
8259 # See if GNU ld supports shared libraries.
8260 case $host_os in
8261 aix[3-9]*)
8262 # On AIX/PPC, the GNU linker is very broken
8263 if test ia64 != "$host_cpu"; then
8264 ld_shlibs=no
8265 cat <<_LT_EOF 1>&2
8267 *** Warning: the GNU linker, at least up to release 2.19, is reported
8268 *** to be unable to reliably create shared libraries on AIX.
8269 *** Therefore, libtool is disabling shared libraries support. If you
8270 *** really care for shared libraries, you may want to install binutils
8271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8272 *** You will then need to restart the configuration process.
8274 _LT_EOF
8278 amigaos*)
8279 case $host_cpu in
8280 powerpc)
8281 # see comment about AmigaOS4 .so support
8282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8283 archive_expsym_cmds=''
8285 m68k)
8286 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)'
8287 hardcode_libdir_flag_spec='-L$libdir'
8288 hardcode_minus_L=yes
8290 esac
8293 beos*)
8294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8295 allow_undefined_flag=unsupported
8296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8297 # support --undefined. This deserves some investigation. FIXME
8298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8299 else
8300 ld_shlibs=no
8304 cygwin* | mingw* | pw32* | cegcc*)
8305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8306 # as there is no search path for DLLs.
8307 hardcode_libdir_flag_spec='-L$libdir'
8308 export_dynamic_flag_spec='$wl--export-all-symbols'
8309 allow_undefined_flag=unsupported
8310 always_export_symbols=no
8311 enable_shared_with_static_runtimes=yes
8312 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8313 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8317 # If the export-symbols file already is a .def file, use it as
8318 # is; otherwise, prepend EXPORTS...
8319 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8320 cp $export_symbols $output_objdir/$soname.def;
8321 else
8322 echo EXPORTS > $output_objdir/$soname.def;
8323 cat $export_symbols >> $output_objdir/$soname.def;
8325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8326 else
8327 ld_shlibs=no
8331 haiku*)
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8333 link_all_deplibs=yes
8336 os2*)
8337 hardcode_libdir_flag_spec='-L$libdir'
8338 hardcode_minus_L=yes
8339 allow_undefined_flag=unsupported
8340 shrext_cmds=.dll
8341 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8342 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8343 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8344 $ECHO EXPORTS >> $output_objdir/$libname.def~
8345 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8346 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8347 emximp -o $lib $output_objdir/$libname.def'
8348 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8351 $ECHO EXPORTS >> $output_objdir/$libname.def~
8352 prefix_cmds="$SED"~
8353 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8354 prefix_cmds="$prefix_cmds -e 1d";
8356 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8357 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8359 emximp -o $lib $output_objdir/$libname.def'
8360 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8361 enable_shared_with_static_runtimes=yes
8364 interix[3-9]*)
8365 hardcode_direct=no
8366 hardcode_shlibpath_var=no
8367 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8368 export_dynamic_flag_spec='$wl-E'
8369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8370 # Instead, shared libraries are loaded at an image base (0x10000000 by
8371 # default) and relocated if they conflict, which is a slow very memory
8372 # consuming and fragmenting process. To avoid this, we pick a random,
8373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8376 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'
8379 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8380 tmp_diet=no
8381 if test linux-dietlibc = "$host_os"; then
8382 case $cc_basename in
8383 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8384 esac
8386 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8387 && test no = "$tmp_diet"
8388 then
8389 tmp_addflag=' $pic_flag'
8390 tmp_sharedflag='-shared'
8391 case $cc_basename,$host_cpu in
8392 pgcc*) # Portland Group C compiler
8393 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8394 tmp_addflag=' $pic_flag'
8396 pgf77* | pgf90* | pgf95* | pgfortran*)
8397 # Portland Group f77 and f90 compilers
8398 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8399 tmp_addflag=' $pic_flag -Mnomain' ;;
8400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8401 tmp_addflag=' -i_dynamic' ;;
8402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8403 tmp_addflag=' -i_dynamic -nofor_main' ;;
8404 ifc* | ifort*) # Intel Fortran compiler
8405 tmp_addflag=' -nofor_main' ;;
8406 lf95*) # Lahey Fortran 8.1
8407 whole_archive_flag_spec=
8408 tmp_sharedflag='--shared' ;;
8409 nagfor*) # NAGFOR 5.3
8410 tmp_sharedflag='-Wl,-shared' ;;
8411 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8412 tmp_sharedflag='-qmkshrobj'
8413 tmp_addflag= ;;
8414 nvcc*) # Cuda Compiler Driver 2.2
8415 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8416 compiler_needs_object=yes
8418 esac
8419 case `$CC -V 2>&1 | sed 5q` in
8420 *Sun\ C*) # Sun C 5.9
8421 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8422 compiler_needs_object=yes
8423 tmp_sharedflag='-G' ;;
8424 *Sun\ F*) # Sun Fortran 8.3
8425 tmp_sharedflag='-G' ;;
8426 esac
8427 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8429 if test yes = "$supports_anon_versioning"; then
8430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8432 echo "local: *; };" >> $output_objdir/$libname.ver~
8433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8436 case $cc_basename in
8437 tcc*)
8438 export_dynamic_flag_spec='-rdynamic'
8440 xlf* | bgf* | bgxlf* | mpixlf*)
8441 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8442 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8444 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8445 if test yes = "$supports_anon_versioning"; then
8446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8448 echo "local: *; };" >> $output_objdir/$libname.ver~
8449 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8452 esac
8453 else
8454 ld_shlibs=no
8458 netbsd* | netbsdelf*-gnu)
8459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8460 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8461 wlarc=
8462 else
8463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8468 solaris*)
8469 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8470 ld_shlibs=no
8471 cat <<_LT_EOF 1>&2
8473 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8474 *** create shared libraries on Solaris systems. Therefore, libtool
8475 *** is disabling shared libraries support. We urge you to upgrade GNU
8476 *** binutils to release 2.9.1 or newer. Another option is to modify
8477 *** your PATH or compiler configuration so that the native linker is
8478 *** used, and then restart.
8480 _LT_EOF
8481 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8483 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8484 else
8485 ld_shlibs=no
8489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8490 case `$LD -v 2>&1` in
8491 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8492 ld_shlibs=no
8493 cat <<_LT_EOF 1>&2
8495 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
8496 *** reliably create shared libraries on SCO systems. Therefore, libtool
8497 *** is disabling shared libraries support. We urge you to upgrade GNU
8498 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8499 *** your PATH or compiler configuration so that the native linker is
8500 *** used, and then restart.
8502 _LT_EOF
8505 # For security reasons, it is highly recommended that you always
8506 # use absolute paths for naming shared libraries, and exclude the
8507 # DT_RUNPATH tag from executables and libraries. But doing so
8508 # requires that you compile everything twice, which is a pain.
8509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8513 else
8514 ld_shlibs=no
8517 esac
8520 sunos4*)
8521 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522 wlarc=
8523 hardcode_direct=yes
8524 hardcode_shlibpath_var=no
8528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8530 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8531 else
8532 ld_shlibs=no
8535 esac
8537 if test no = "$ld_shlibs"; then
8538 runpath_var=
8539 hardcode_libdir_flag_spec=
8540 export_dynamic_flag_spec=
8541 whole_archive_flag_spec=
8543 else
8544 # PORTME fill in a description of your system's linker (not GNU ld)
8545 case $host_os in
8546 aix3*)
8547 allow_undefined_flag=unsupported
8548 always_export_symbols=yes
8549 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'
8550 # Note: this linker hardcodes the directories in LIBPATH if there
8551 # are no directories specified by -L.
8552 hardcode_minus_L=yes
8553 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
8554 # Neither direct hardcoding nor static linking is supported with a
8555 # broken collect2.
8556 hardcode_direct=unsupported
8560 aix[4-9]*)
8561 if test ia64 = "$host_cpu"; then
8562 # On IA64, the linker does run time linking by default, so we don't
8563 # have to do anything special.
8564 aix_use_runtimelinking=no
8565 exp_sym_flag='-Bexport'
8566 no_entry_flag=
8567 else
8568 # If we're using GNU nm, then we don't want the "-C" option.
8569 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
8570 # Without the "-l" option, or with the "-B" option, AIX nm treats
8571 # weak defined symbols like other global defined symbols, whereas
8572 # GNU nm marks them as "W".
8573 # While the 'weak' keyword is ignored in the Export File, we need
8574 # it in the Import File for the 'aix-soname' feature, so we have
8575 # to replace the "-B" option with "-P" for AIX nm.
8576 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8577 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
8578 else
8579 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
8581 aix_use_runtimelinking=no
8583 # Test if we are trying to use run time linking or normal
8584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8585 # have runtime linking enabled, and use it for executables.
8586 # For shared libraries, we enable/disable runtime linking
8587 # depending on the kind of the shared library created -
8588 # when "with_aix_soname,aix_use_runtimelinking" is:
8589 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
8590 # "aix,yes" lib.so shared, rtl:yes, for executables
8591 # lib.a static archive
8592 # "both,no" lib.so.V(shr.o) shared, rtl:yes
8593 # lib.a(lib.so.V) shared, rtl:no, for executables
8594 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
8595 # lib.a(lib.so.V) shared, rtl:no
8596 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
8597 # lib.a static archive
8598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8599 for ld_flag in $LDFLAGS; do
8600 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
8601 aix_use_runtimelinking=yes
8602 break
8604 done
8605 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
8606 # With aix-soname=svr4, we create the lib.so.V shared archives only,
8607 # so we don't have lib.a shared libs to link our executables.
8608 # We have to force runtime linking in this case.
8609 aix_use_runtimelinking=yes
8610 LDFLAGS="$LDFLAGS -Wl,-brtl"
8613 esac
8615 exp_sym_flag='-bexport'
8616 no_entry_flag='-bnoentry'
8619 # When large executables or shared objects are built, AIX ld can
8620 # have problems creating the table of contents. If linking a library
8621 # or program results in "error TOC overflow" add -mminimal-toc to
8622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8625 archive_cmds=''
8626 hardcode_direct=yes
8627 hardcode_direct_absolute=yes
8628 hardcode_libdir_separator=':'
8629 link_all_deplibs=yes
8630 file_list_spec='$wl-f,'
8631 case $with_aix_soname,$aix_use_runtimelinking in
8632 aix,*) ;; # traditional, no import file
8633 svr4,* | *,yes) # use import file
8634 # The Import File defines what to hardcode.
8635 hardcode_direct=no
8636 hardcode_direct_absolute=no
8638 esac
8640 if test yes = "$GCC"; then
8641 case $host_os in aix4.[012]|aix4.[012].*)
8642 # We only want to do this on AIX 4.2 and lower, the check
8643 # below for broken collect2 doesn't work under 4.3+
8644 collect2name=`$CC -print-prog-name=collect2`
8645 if test -f "$collect2name" &&
8646 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8647 then
8648 # We have reworked collect2
8650 else
8651 # We have old collect2
8652 hardcode_direct=unsupported
8653 # It fails to find uninstalled libraries when the uninstalled
8654 # path is not listed in the libpath. Setting hardcode_minus_L
8655 # to unsupported forces relinking
8656 hardcode_minus_L=yes
8657 hardcode_libdir_flag_spec='-L$libdir'
8658 hardcode_libdir_separator=
8661 esac
8662 shared_flag='-shared'
8663 if test yes = "$aix_use_runtimelinking"; then
8664 shared_flag="$shared_flag "'$wl-G'
8666 # Need to ensure runtime linking is disabled for the traditional
8667 # shared library, or the linker may eventually find shared libraries
8668 # /with/ Import File - we do not want to mix them.
8669 shared_flag_aix='-shared'
8670 shared_flag_svr4='-shared $wl-G'
8671 else
8672 # not using gcc
8673 if test ia64 = "$host_cpu"; then
8674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8675 # chokes on -Wl,-G. The following line is correct:
8676 shared_flag='-G'
8677 else
8678 if test yes = "$aix_use_runtimelinking"; then
8679 shared_flag='$wl-G'
8680 else
8681 shared_flag='$wl-bM:SRE'
8683 shared_flag_aix='$wl-bM:SRE'
8684 shared_flag_svr4='$wl-G'
8688 export_dynamic_flag_spec='$wl-bexpall'
8689 # It seems that -bexpall does not export symbols beginning with
8690 # underscore (_), so it is better to generate a list of symbols to export.
8691 always_export_symbols=yes
8692 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
8693 # Warning - without using the other runtime loading flags (-brtl),
8694 # -berok will link without error, but may produce a broken library.
8695 allow_undefined_flag='-berok'
8696 # Determine the default libpath from the value encoded in an
8697 # empty executable.
8698 if test set = "${lt_cv_aix_libpath+set}"; then
8699 aix_libpath=$lt_cv_aix_libpath
8700 else
8701 if ${lt_cv_aix_libpath_+:} false; then :
8702 $as_echo_n "(cached) " >&6
8703 else
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8708 main ()
8712 return 0;
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"; then :
8717 lt_aix_libpath_sed='
8718 /Import File Strings/,/^$/ {
8719 /^0/ {
8720 s/^0 *\([^ ]*\) *$/\1/
8724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8725 # Check for a 64-bit object if we didn't find anything.
8726 if test -z "$lt_cv_aix_libpath_"; then
8727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8730 rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 if test -z "$lt_cv_aix_libpath_"; then
8733 lt_cv_aix_libpath_=/usr/lib:/lib
8738 aix_libpath=$lt_cv_aix_libpath_
8741 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8742 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
8743 else
8744 if test ia64 = "$host_cpu"; then
8745 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
8746 allow_undefined_flag="-z nodefs"
8747 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"
8748 else
8749 # Determine the default libpath from the value encoded in an
8750 # empty executable.
8751 if test set = "${lt_cv_aix_libpath+set}"; then
8752 aix_libpath=$lt_cv_aix_libpath
8753 else
8754 if ${lt_cv_aix_libpath_+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758 /* end confdefs.h. */
8761 main ()
8765 return 0;
8767 _ACEOF
8768 if ac_fn_c_try_link "$LINENO"; then :
8770 lt_aix_libpath_sed='
8771 /Import File Strings/,/^$/ {
8772 /^0/ {
8773 s/^0 *\([^ ]*\) *$/\1/
8777 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8778 # Check for a 64-bit object if we didn't find anything.
8779 if test -z "$lt_cv_aix_libpath_"; then
8780 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 if test -z "$lt_cv_aix_libpath_"; then
8786 lt_cv_aix_libpath_=/usr/lib:/lib
8791 aix_libpath=$lt_cv_aix_libpath_
8794 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
8795 # Warning - without using the other run time loading flags,
8796 # -berok will link without error, but may produce a broken library.
8797 no_undefined_flag=' $wl-bernotok'
8798 allow_undefined_flag=' $wl-berok'
8799 if test yes = "$with_gnu_ld"; then
8800 # We only use this code for GNU lds that support --whole-archive.
8801 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
8802 else
8803 # Exported symbols can be pulled into shared objects from archives
8804 whole_archive_flag_spec='$convenience'
8806 archive_cmds_need_lc=yes
8807 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
8808 # -brtl affects multiple linker settings, -berok does not and is overridden later
8809 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
8810 if test svr4 != "$with_aix_soname"; then
8811 # This is similar to how AIX traditionally builds its shared libraries.
8812 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
8814 if test aix != "$with_aix_soname"; then
8815 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
8816 else
8817 # used by -dlpreopen to get the symbols
8818 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
8820 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
8825 amigaos*)
8826 case $host_cpu in
8827 powerpc)
8828 # see comment about AmigaOS4 .so support
8829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8830 archive_expsym_cmds=''
8832 m68k)
8833 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)'
8834 hardcode_libdir_flag_spec='-L$libdir'
8835 hardcode_minus_L=yes
8837 esac
8840 bsdi[45]*)
8841 export_dynamic_flag_spec=-rdynamic
8844 cygwin* | mingw* | pw32* | cegcc*)
8845 # When not using gcc, we currently assume that we are using
8846 # Microsoft Visual C++.
8847 # hardcode_libdir_flag_spec is actually meaningless, as there is
8848 # no search path for DLLs.
8849 case $cc_basename in
8850 cl*)
8851 # Native MSVC
8852 hardcode_libdir_flag_spec=' '
8853 allow_undefined_flag=unsupported
8854 always_export_symbols=yes
8855 file_list_spec='@'
8856 # Tell ltmain to make .lib files, not .a files.
8857 libext=lib
8858 # Tell ltmain to make .dll files, not .so files.
8859 shrext_cmds=.dll
8860 # FIXME: Setting linknames here is a bad hack.
8861 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
8862 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8863 cp "$export_symbols" "$output_objdir/$soname.def";
8864 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
8865 else
8866 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
8868 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8869 linknames='
8870 # The linker will not automatically build a static lib if we build a DLL.
8871 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8872 enable_shared_with_static_runtimes=yes
8873 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8874 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8875 # Don't use ranlib
8876 old_postinstall_cmds='chmod 644 $oldlib'
8877 postlink_cmds='lt_outputfile="@OUTPUT@"~
8878 lt_tool_outputfile="@TOOL_OUTPUT@"~
8879 case $lt_outputfile in
8880 *.exe|*.EXE) ;;
8882 lt_outputfile=$lt_outputfile.exe
8883 lt_tool_outputfile=$lt_tool_outputfile.exe
8885 esac~
8886 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
8887 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8888 $RM "$lt_outputfile.manifest";
8892 # Assume MSVC wrapper
8893 hardcode_libdir_flag_spec=' '
8894 allow_undefined_flag=unsupported
8895 # Tell ltmain to make .lib files, not .a files.
8896 libext=lib
8897 # Tell ltmain to make .dll files, not .so files.
8898 shrext_cmds=.dll
8899 # FIXME: Setting linknames here is a bad hack.
8900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8901 # The linker will automatically build a .lib file if we build a DLL.
8902 old_archive_from_new_cmds='true'
8903 # FIXME: Should let the user specify the lib program.
8904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8905 enable_shared_with_static_runtimes=yes
8907 esac
8910 darwin* | rhapsody*)
8913 archive_cmds_need_lc=no
8914 hardcode_direct=no
8915 hardcode_automatic=yes
8916 hardcode_shlibpath_var=unsupported
8917 if test yes = "$lt_cv_ld_force_load"; then
8918 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8920 else
8921 whole_archive_flag_spec=''
8923 link_all_deplibs=yes
8924 allow_undefined_flag=$_lt_dar_allow_undefined
8925 case $cc_basename in
8926 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
8927 *) _lt_dar_can_shared=$GCC ;;
8928 esac
8929 if test yes = "$_lt_dar_can_shared"; then
8930 output_verbose_link_cmd=func_echo_all
8931 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
8932 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
8933 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"
8934 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"
8936 else
8937 ld_shlibs=no
8942 dgux*)
8943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_libdir_flag_spec='-L$libdir'
8945 hardcode_shlibpath_var=no
8948 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8949 # support. Future versions do this automatically, but an explicit c++rt0.o
8950 # does not break anything, and helps significantly (at the cost of a little
8951 # extra space).
8952 freebsd2.2*)
8953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8954 hardcode_libdir_flag_spec='-R$libdir'
8955 hardcode_direct=yes
8956 hardcode_shlibpath_var=no
8959 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8960 freebsd2.*)
8961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8962 hardcode_direct=yes
8963 hardcode_minus_L=yes
8964 hardcode_shlibpath_var=no
8967 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8968 freebsd* | dragonfly*)
8969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8970 hardcode_libdir_flag_spec='-R$libdir'
8971 hardcode_direct=yes
8972 hardcode_shlibpath_var=no
8975 hpux9*)
8976 if test yes = "$GCC"; then
8977 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8978 else
8979 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
8981 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8982 hardcode_libdir_separator=:
8983 hardcode_direct=yes
8985 # hardcode_minus_L: Not really in the search PATH,
8986 # but as the default location of the library.
8987 hardcode_minus_L=yes
8988 export_dynamic_flag_spec='$wl-E'
8991 hpux10*)
8992 if test yes,no = "$GCC,$with_gnu_ld"; then
8993 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8994 else
8995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8997 if test no = "$with_gnu_ld"; then
8998 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
8999 hardcode_libdir_separator=:
9000 hardcode_direct=yes
9001 hardcode_direct_absolute=yes
9002 export_dynamic_flag_spec='$wl-E'
9003 # hardcode_minus_L: Not really in the search PATH,
9004 # but as the default location of the library.
9005 hardcode_minus_L=yes
9009 hpux11*)
9010 if test yes,no = "$GCC,$with_gnu_ld"; then
9011 case $host_cpu in
9012 hppa*64*)
9013 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9015 ia64*)
9016 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9019 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9021 esac
9022 else
9023 case $host_cpu in
9024 hppa*64*)
9025 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9027 ia64*)
9028 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9032 # Older versions of the 11.00 compiler do not understand -b yet
9033 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9035 $as_echo_n "checking if $CC understands -b... " >&6; }
9036 if ${lt_cv_prog_compiler__b+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_prog_compiler__b=no
9040 save_LDFLAGS=$LDFLAGS
9041 LDFLAGS="$LDFLAGS -b"
9042 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9044 # The linker can only warn and ignore the option if not recognized
9045 # So say no if there are warnings
9046 if test -s conftest.err; then
9047 # Append any errors to the config.log.
9048 cat conftest.err 1>&5
9049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051 if diff conftest.exp conftest.er2 >/dev/null; then
9052 lt_cv_prog_compiler__b=yes
9054 else
9055 lt_cv_prog_compiler__b=yes
9058 $RM -r conftest*
9059 LDFLAGS=$save_LDFLAGS
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9063 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9065 if test yes = "$lt_cv_prog_compiler__b"; then
9066 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9067 else
9068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9072 esac
9074 if test no = "$with_gnu_ld"; then
9075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9076 hardcode_libdir_separator=:
9078 case $host_cpu in
9079 hppa*64*|ia64*)
9080 hardcode_direct=no
9081 hardcode_shlibpath_var=no
9084 hardcode_direct=yes
9085 hardcode_direct_absolute=yes
9086 export_dynamic_flag_spec='$wl-E'
9088 # hardcode_minus_L: Not really in the search PATH,
9089 # but as the default location of the library.
9090 hardcode_minus_L=yes
9092 esac
9096 irix5* | irix6* | nonstopux*)
9097 if test yes = "$GCC"; then
9098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9099 # Try to use the -exported_symbol ld option, if it does not
9100 # work, assume that -exports_file does not work either and
9101 # implicitly export all symbols.
9102 # This should be the same for all languages, so no per-tag cache variable.
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9104 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9105 if ${lt_cv_irix_exported_symbol+:} false; then :
9106 $as_echo_n "(cached) " >&6
9107 else
9108 save_LDFLAGS=$LDFLAGS
9109 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 int foo (void) { return 0; }
9113 _ACEOF
9114 if ac_fn_c_try_link "$LINENO"; then :
9115 lt_cv_irix_exported_symbol=yes
9116 else
9117 lt_cv_irix_exported_symbol=no
9119 rm -f core conftest.err conftest.$ac_objext \
9120 conftest$ac_exeext conftest.$ac_ext
9121 LDFLAGS=$save_LDFLAGS
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9124 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9125 if test yes = "$lt_cv_irix_exported_symbol"; then
9126 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9128 link_all_deplibs=no
9129 else
9130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9133 archive_cmds_need_lc='no'
9134 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9135 hardcode_libdir_separator=:
9136 inherit_rpath=yes
9137 link_all_deplibs=yes
9140 linux*)
9141 case $cc_basename in
9142 tcc*)
9143 # Fabrice Bellard et al's Tiny C Compiler
9144 ld_shlibs=yes
9145 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9147 esac
9150 netbsd* | netbsdelf*-gnu)
9151 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9153 else
9154 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9156 hardcode_libdir_flag_spec='-R$libdir'
9157 hardcode_direct=yes
9158 hardcode_shlibpath_var=no
9161 newsos6)
9162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_direct=yes
9164 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9165 hardcode_libdir_separator=:
9166 hardcode_shlibpath_var=no
9169 *nto* | *qnx*)
9172 openbsd* | bitrig*)
9173 if test -f /usr/libexec/ld.so; then
9174 hardcode_direct=yes
9175 hardcode_shlibpath_var=no
9176 hardcode_direct_absolute=yes
9177 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9179 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9180 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9181 export_dynamic_flag_spec='$wl-E'
9182 else
9183 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9184 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9186 else
9187 ld_shlibs=no
9191 os2*)
9192 hardcode_libdir_flag_spec='-L$libdir'
9193 hardcode_minus_L=yes
9194 allow_undefined_flag=unsupported
9195 shrext_cmds=.dll
9196 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9197 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9198 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9199 $ECHO EXPORTS >> $output_objdir/$libname.def~
9200 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9201 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9202 emximp -o $lib $output_objdir/$libname.def'
9203 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9204 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9205 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9206 $ECHO EXPORTS >> $output_objdir/$libname.def~
9207 prefix_cmds="$SED"~
9208 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9209 prefix_cmds="$prefix_cmds -e 1d";
9211 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9212 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9213 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9214 emximp -o $lib $output_objdir/$libname.def'
9215 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9216 enable_shared_with_static_runtimes=yes
9219 osf3*)
9220 if test yes = "$GCC"; then
9221 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9222 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9223 else
9224 allow_undefined_flag=' -expect_unresolved \*'
9225 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9229 hardcode_libdir_separator=:
9232 osf4* | osf5*) # as osf3* with the addition of -msym flag
9233 if test yes = "$GCC"; then
9234 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9235 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9237 else
9238 allow_undefined_flag=' -expect_unresolved \*'
9239 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9240 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~
9241 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9243 # Both c and cxx compiler support -rpath directly
9244 hardcode_libdir_flag_spec='-rpath $libdir'
9246 archive_cmds_need_lc='no'
9247 hardcode_libdir_separator=:
9250 solaris*)
9251 no_undefined_flag=' -z defs'
9252 if test yes = "$GCC"; then
9253 wlarc='$wl'
9254 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9256 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9257 else
9258 case `$CC -V 2>&1` in
9259 *"Compilers 5.0"*)
9260 wlarc=''
9261 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9266 wlarc='$wl'
9267 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9271 esac
9273 hardcode_libdir_flag_spec='-R$libdir'
9274 hardcode_shlibpath_var=no
9275 case $host_os in
9276 solaris2.[0-5] | solaris2.[0-5].*) ;;
9278 # The compiler driver will combine and reorder linker options,
9279 # but understands '-z linker_flag'. GCC discards it without '$wl',
9280 # but is careful enough not to reorder.
9281 # Supported since Solaris 2.6 (maybe 2.5.1?)
9282 if test yes = "$GCC"; then
9283 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9284 else
9285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9288 esac
9289 link_all_deplibs=yes
9292 sunos4*)
9293 if test sequent = "$host_vendor"; then
9294 # Use $CC to link under sequent, because it throws in some extra .o
9295 # files that make .init and .fini sections work.
9296 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297 else
9298 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_direct=yes
9302 hardcode_minus_L=yes
9303 hardcode_shlibpath_var=no
9306 sysv4)
9307 case $host_vendor in
9308 sni)
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_direct=yes # is this really true???
9312 siemens)
9313 ## LD is ld it makes a PLAMLIB
9314 ## CC just makes a GrossModule.
9315 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316 reload_cmds='$CC -r -o $output$reload_objs'
9317 hardcode_direct=no
9319 motorola)
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9323 esac
9324 runpath_var='LD_RUN_PATH'
9325 hardcode_shlibpath_var=no
9328 sysv4.3*)
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_shlibpath_var=no
9331 export_dynamic_flag_spec='-Bexport'
9334 sysv4*MP*)
9335 if test -d /usr/nec; then
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var=no
9338 runpath_var=LD_RUN_PATH
9339 hardcode_runpath_var=yes
9340 ld_shlibs=yes
9344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9345 no_undefined_flag='$wl-z,text'
9346 archive_cmds_need_lc=no
9347 hardcode_shlibpath_var=no
9348 runpath_var='LD_RUN_PATH'
9350 if test yes = "$GCC"; then
9351 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9359 sysv5* | sco3.2v5* | sco5v6*)
9360 # Note: We CANNOT use -z defs as we might desire, because we do not
9361 # link with -lc, and that would cause any symbols used from libc to
9362 # always be unresolved, which means just about no library would
9363 # ever link correctly. If we're not using GNU ld we use -z text
9364 # though, which does catch some bad symbols but isn't as heavy-handed
9365 # as -z defs.
9366 no_undefined_flag='$wl-z,text'
9367 allow_undefined_flag='$wl-z,nodefs'
9368 archive_cmds_need_lc=no
9369 hardcode_shlibpath_var=no
9370 hardcode_libdir_flag_spec='$wl-R,$libdir'
9371 hardcode_libdir_separator=':'
9372 link_all_deplibs=yes
9373 export_dynamic_flag_spec='$wl-Bexport'
9374 runpath_var='LD_RUN_PATH'
9376 if test yes = "$GCC"; then
9377 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 else
9380 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 uts4*)
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_shlibpath_var=no
9392 ld_shlibs=no
9394 esac
9396 if test sni = "$host_vendor"; then
9397 case $host in
9398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9399 export_dynamic_flag_spec='$wl-Blargedynsym'
9401 esac
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9406 $as_echo "$ld_shlibs" >&6; }
9407 test no = "$ld_shlibs" && can_build_shared=no
9409 with_gnu_ld=$with_gnu_ld
9426 # Do we need to explicitly link libc?
9428 case "x$archive_cmds_need_lc" in
9429 x|xyes)
9430 # Assume -lc should be added
9431 archive_cmds_need_lc=yes
9433 if test yes,yes = "$GCC,$enable_shared"; then
9434 case $archive_cmds in
9435 *'~'*)
9436 # FIXME: we may have to deal with multi-command sequences.
9438 '$CC '*)
9439 # Test whether the compiler implicitly links with -lc since on some
9440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9441 # to ld, don't add -lc before -lgcc.
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9443 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9444 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9445 $as_echo_n "(cached) " >&6
9446 else
9447 $RM conftest*
9448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9451 (eval $ac_compile) 2>&5
9452 ac_status=$?
9453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9454 test $ac_status = 0; } 2>conftest.err; then
9455 soname=conftest
9456 lib=conftest
9457 libobjs=conftest.$ac_objext
9458 deplibs=
9459 wl=$lt_prog_compiler_wl
9460 pic_flag=$lt_prog_compiler_pic
9461 compiler_flags=-v
9462 linker_flags=-v
9463 verstring=
9464 output_objdir=.
9465 libname=conftest
9466 lt_save_allow_undefined_flag=$allow_undefined_flag
9467 allow_undefined_flag=
9468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9469 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9470 ac_status=$?
9471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9472 test $ac_status = 0; }
9473 then
9474 lt_cv_archive_cmds_need_lc=no
9475 else
9476 lt_cv_archive_cmds_need_lc=yes
9478 allow_undefined_flag=$lt_save_allow_undefined_flag
9479 else
9480 cat conftest.err 1>&5
9482 $RM conftest*
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9486 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9487 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9489 esac
9492 esac
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9646 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9648 if test yes = "$GCC"; then
9649 case $host_os in
9650 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
9651 *) lt_awk_arg='/^libraries:/' ;;
9652 esac
9653 case $host_os in
9654 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
9655 *) lt_sed_strip_eq='s|=/|/|g' ;;
9656 esac
9657 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9658 case $lt_search_path_spec in
9659 *\;*)
9660 # if the path contains ";" then we assume it to be the separator
9661 # otherwise default to the standard path separator (i.e. ":") - it is
9662 # assumed that no part of a normal pathname contains ";" but that should
9663 # okay in the real world where ";" in dirpaths is itself problematic.
9664 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9667 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9669 esac
9670 # Ok, now we have the path, separated by spaces, we can step through it
9671 # and add multilib dir if necessary...
9672 lt_tmp_lt_search_path_spec=
9673 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9674 # ...but if some path component already ends with the multilib dir we assume
9675 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
9676 case "$lt_multi_os_dir; $lt_search_path_spec " in
9677 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
9678 lt_multi_os_dir=
9680 esac
9681 for lt_sys_path in $lt_search_path_spec; do
9682 if test -d "$lt_sys_path$lt_multi_os_dir"; then
9683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
9684 elif test -n "$lt_multi_os_dir"; then
9685 test -d "$lt_sys_path" && \
9686 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9688 done
9689 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9690 BEGIN {RS = " "; FS = "/|\n";} {
9691 lt_foo = "";
9692 lt_count = 0;
9693 for (lt_i = NF; lt_i > 0; lt_i--) {
9694 if ($lt_i != "" && $lt_i != ".") {
9695 if ($lt_i == "..") {
9696 lt_count++;
9697 } else {
9698 if (lt_count == 0) {
9699 lt_foo = "/" $lt_i lt_foo;
9700 } else {
9701 lt_count--;
9706 if (lt_foo != "") { lt_freq[lt_foo]++; }
9707 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9709 # AWK program above erroneously prepends '/' to C:/dos/paths
9710 # for these hosts.
9711 case $host_os in
9712 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9713 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
9714 esac
9715 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9716 else
9717 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9719 library_names_spec=
9720 libname_spec='lib$name'
9721 soname_spec=
9722 shrext_cmds=.so
9723 postinstall_cmds=
9724 postuninstall_cmds=
9725 finish_cmds=
9726 finish_eval=
9727 shlibpath_var=
9728 shlibpath_overrides_runpath=unknown
9729 version_type=none
9730 dynamic_linker="$host_os ld.so"
9731 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9732 need_lib_prefix=unknown
9733 hardcode_into_libs=no
9735 # when you set need_version to no, make sure it does not cause -set_version
9736 # flags to be left without arguments
9737 need_version=unknown
9741 case $host_os in
9742 aix3*)
9743 version_type=linux # correct to gnu/linux during the next big refactor
9744 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
9745 shlibpath_var=LIBPATH
9747 # AIX 3 has no versioning support, so we append a major version to the name.
9748 soname_spec='$libname$release$shared_ext$major'
9751 aix[4-9]*)
9752 version_type=linux # correct to gnu/linux during the next big refactor
9753 need_lib_prefix=no
9754 need_version=no
9755 hardcode_into_libs=yes
9756 if test ia64 = "$host_cpu"; then
9757 # AIX 5 supports IA64
9758 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 else
9761 # With GCC up to 2.95.x, collect2 would create an import file
9762 # for dependence libraries. The import file would start with
9763 # the line '#! .'. This would cause the generated library to
9764 # depend on '.', always an invalid library. This was fixed in
9765 # development snapshots of GCC prior to 3.0.
9766 case $host_os in
9767 aix4 | aix4.[01] | aix4.[01].*)
9768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9769 echo ' yes '
9770 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
9772 else
9773 can_build_shared=no
9776 esac
9777 # Using Import Files as archive members, it is possible to support
9778 # filename-based versioning of shared library archives on AIX. While
9779 # this would work for both with and without runtime linking, it will
9780 # prevent static linking of such archives. So we do filename-based
9781 # shared library versioning with .so extension only, which is used
9782 # when both runtime linking and shared linking is enabled.
9783 # Unfortunately, runtime linking may impact performance, so we do
9784 # not want this to be the default eventually. Also, we use the
9785 # versioned .so libs for executables only if there is the -brtl
9786 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
9787 # To allow for filename-based versioning support, we need to create
9788 # libNAME.so.V as an archive file, containing:
9789 # *) an Import File, referring to the versioned filename of the
9790 # archive as well as the shared archive member, telling the
9791 # bitwidth (32 or 64) of that shared object, and providing the
9792 # list of exported symbols of that shared object, eventually
9793 # decorated with the 'weak' keyword
9794 # *) the shared object with the F_LOADONLY flag set, to really avoid
9795 # it being seen by the linker.
9796 # At run time we better use the real file rather than another symlink,
9797 # but for link time we create the symlink libNAME.so -> libNAME.so.V
9799 case $with_aix_soname,$aix_use_runtimelinking in
9800 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
9801 # soname into executable. Probably we can add versioning support to
9802 # collect2, so additional links can be useful in future.
9803 aix,yes) # traditional libtool
9804 dynamic_linker='AIX unversionable lib.so'
9805 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9806 # instead of lib<name>.a to let people know that these are not
9807 # typical AIX shared libraries.
9808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9810 aix,no) # traditional AIX only
9811 dynamic_linker='AIX lib.a(lib.so.V)'
9812 # We preserve .a as extension for shared libraries through AIX4.2
9813 # and later when we are not doing run time linking.
9814 library_names_spec='$libname$release.a $libname.a'
9815 soname_spec='$libname$release$shared_ext$major'
9817 svr4,*) # full svr4 only
9818 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
9819 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9820 # We do not specify a path in Import Files, so LIBPATH fires.
9821 shlibpath_overrides_runpath=yes
9823 *,yes) # both, prefer svr4
9824 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
9825 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
9826 # unpreferred sharedlib libNAME.a needs extra handling
9827 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
9828 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
9829 # We do not specify a path in Import Files, so LIBPATH fires.
9830 shlibpath_overrides_runpath=yes
9832 *,no) # both, prefer aix
9833 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
9834 library_names_spec='$libname$release.a $libname.a'
9835 soname_spec='$libname$release$shared_ext$major'
9836 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
9837 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
9838 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
9840 esac
9841 shlibpath_var=LIBPATH
9845 amigaos*)
9846 case $host_cpu in
9847 powerpc)
9848 # Since July 2007 AmigaOS4 officially supports .so libraries.
9849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9852 m68k)
9853 library_names_spec='$libname.ixlibrary $libname.a'
9854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9855 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
9857 esac
9860 beos*)
9861 library_names_spec='$libname$shared_ext'
9862 dynamic_linker="$host_os ld.so"
9863 shlibpath_var=LIBRARY_PATH
9866 bsdi[45]*)
9867 version_type=linux # correct to gnu/linux during the next big refactor
9868 need_version=no
9869 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
9870 soname_spec='$libname$release$shared_ext$major'
9871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9875 # the default ld.so.conf also contains /usr/contrib/lib and
9876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9877 # libtool to hard-code these into programs
9880 cygwin* | mingw* | pw32* | cegcc*)
9881 version_type=windows
9882 shrext_cmds=.dll
9883 need_version=no
9884 need_lib_prefix=no
9886 case $GCC,$cc_basename in
9887 yes,*)
9888 # gcc
9889 library_names_spec='$libname.dll.a'
9890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9891 postinstall_cmds='base_file=`basename \$file`~
9892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9893 dldir=$destdir/`dirname \$dlpath`~
9894 test -d \$dldir || mkdir -p \$dldir~
9895 $install_prog $dir/$dlname \$dldir/$dlname~
9896 chmod a+x \$dldir/$dlname~
9897 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9898 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9901 dlpath=$dir/\$dldll~
9902 $RM \$dlpath'
9903 shlibpath_overrides_runpath=yes
9905 case $host_os in
9906 cygwin*)
9907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9908 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9910 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9912 mingw* | cegcc*)
9913 # MinGW DLLs use traditional 'lib' prefix
9914 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9916 pw32*)
9917 # pw32 DLLs use 'pw' prefix rather than 'lib'
9918 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9920 esac
9921 dynamic_linker='Win32 ld.exe'
9924 *,cl*)
9925 # Native MSVC
9926 libname_spec='$name'
9927 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9928 library_names_spec='$libname.dll.lib'
9930 case $build_os in
9931 mingw*)
9932 sys_lib_search_path_spec=
9933 lt_save_ifs=$IFS
9934 IFS=';'
9935 for lt_path in $LIB
9937 IFS=$lt_save_ifs
9938 # Let DOS variable expansion print the short 8.3 style file name.
9939 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9940 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9941 done
9942 IFS=$lt_save_ifs
9943 # Convert to MSYS style.
9944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9946 cygwin*)
9947 # Convert to unix form, then to dos form, then back to unix form
9948 # but this time dos style (no spaces!) so that the unix form looks
9949 # like /cygdrive/c/PROGRA~1:/cygdr...
9950 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9951 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9952 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9955 sys_lib_search_path_spec=$LIB
9956 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9957 # It is most probably a Windows format PATH.
9958 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9959 else
9960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9962 # FIXME: find the short name or the path components, as spaces are
9963 # common. (e.g. "Program Files" -> "PROGRA~1")
9965 esac
9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9968 postinstall_cmds='base_file=`basename \$file`~
9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
9970 dldir=$destdir/`dirname \$dlpath`~
9971 test -d \$dldir || mkdir -p \$dldir~
9972 $install_prog $dir/$dlname \$dldir/$dlname'
9973 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9974 dlpath=$dir/\$dldll~
9975 $RM \$dlpath'
9976 shlibpath_overrides_runpath=yes
9977 dynamic_linker='Win32 link.exe'
9981 # Assume MSVC wrapper
9982 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
9983 dynamic_linker='Win32 ld.exe'
9985 esac
9986 # FIXME: first we should search . and the directory the executable is in
9987 shlibpath_var=PATH
9990 darwin* | rhapsody*)
9991 dynamic_linker="$host_os dyld"
9992 version_type=darwin
9993 need_lib_prefix=no
9994 need_version=no
9995 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
9996 soname_spec='$libname$release$major$shared_ext'
9997 shlibpath_overrides_runpath=yes
9998 shlibpath_var=DYLD_LIBRARY_PATH
9999 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10001 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10002 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10005 dgux*)
10006 version_type=linux # correct to gnu/linux during the next big refactor
10007 need_lib_prefix=no
10008 need_version=no
10009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10010 soname_spec='$libname$release$shared_ext$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10014 freebsd* | dragonfly*)
10015 # DragonFly does not have aout. When/if they implement a new
10016 # versioning mechanism, adjust this.
10017 if test -x /usr/bin/objformat; then
10018 objformat=`/usr/bin/objformat`
10019 else
10020 case $host_os in
10021 freebsd[23].*) objformat=aout ;;
10022 *) objformat=elf ;;
10023 esac
10025 version_type=freebsd-$objformat
10026 case $version_type in
10027 freebsd-elf*)
10028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10029 soname_spec='$libname$release$shared_ext$major'
10030 need_version=no
10031 need_lib_prefix=no
10033 freebsd-*)
10034 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10035 need_version=yes
10037 esac
10038 shlibpath_var=LD_LIBRARY_PATH
10039 case $host_os in
10040 freebsd2.*)
10041 shlibpath_overrides_runpath=yes
10043 freebsd3.[01]* | freebsdelf3.[01]*)
10044 shlibpath_overrides_runpath=yes
10045 hardcode_into_libs=yes
10047 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10048 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10049 shlibpath_overrides_runpath=no
10050 hardcode_into_libs=yes
10052 *) # from 4.6 on, and DragonFly
10053 shlibpath_overrides_runpath=yes
10054 hardcode_into_libs=yes
10056 esac
10059 haiku*)
10060 version_type=linux # correct to gnu/linux during the next big refactor
10061 need_lib_prefix=no
10062 need_version=no
10063 dynamic_linker="$host_os runtime_loader"
10064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10065 soname_spec='$libname$release$shared_ext$major'
10066 shlibpath_var=LIBRARY_PATH
10067 shlibpath_overrides_runpath=no
10068 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10069 hardcode_into_libs=yes
10072 hpux9* | hpux10* | hpux11*)
10073 # Give a soname corresponding to the major version so that dld.sl refuses to
10074 # link against other versions.
10075 version_type=sunos
10076 need_lib_prefix=no
10077 need_version=no
10078 case $host_cpu in
10079 ia64*)
10080 shrext_cmds='.so'
10081 hardcode_into_libs=yes
10082 dynamic_linker="$host_os dld.so"
10083 shlibpath_var=LD_LIBRARY_PATH
10084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10086 soname_spec='$libname$release$shared_ext$major'
10087 if test 32 = "$HPUX_IA64_MODE"; then
10088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10089 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10090 else
10091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10092 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10095 hppa*64*)
10096 shrext_cmds='.sl'
10097 hardcode_into_libs=yes
10098 dynamic_linker="$host_os dld.sl"
10099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10102 soname_spec='$libname$release$shared_ext$major'
10103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10107 shrext_cmds='.sl'
10108 dynamic_linker="$host_os dld.sl"
10109 shlibpath_var=SHLIB_PATH
10110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10112 soname_spec='$libname$release$shared_ext$major'
10114 esac
10115 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10116 postinstall_cmds='chmod 555 $lib'
10117 # or fails outright, so override atomically:
10118 install_override_mode=555
10121 interix[3-9]*)
10122 version_type=linux # correct to gnu/linux during the next big refactor
10123 need_lib_prefix=no
10124 need_version=no
10125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10126 soname_spec='$libname$release$shared_ext$major'
10127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=no
10130 hardcode_into_libs=yes
10133 irix5* | irix6* | nonstopux*)
10134 case $host_os in
10135 nonstopux*) version_type=nonstopux ;;
10137 if test yes = "$lt_cv_prog_gnu_ld"; then
10138 version_type=linux # correct to gnu/linux during the next big refactor
10139 else
10140 version_type=irix
10141 fi ;;
10142 esac
10143 need_lib_prefix=no
10144 need_version=no
10145 soname_spec='$libname$release$shared_ext$major'
10146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10147 case $host_os in
10148 irix5* | nonstopux*)
10149 libsuff= shlibsuff=
10152 case $LD in # libtool.m4 will add one of these switches to LD
10153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10154 libsuff= shlibsuff= libmagic=32-bit;;
10155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10156 libsuff=32 shlibsuff=N32 libmagic=N32;;
10157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10159 *) libsuff= shlibsuff= libmagic=never-match;;
10160 esac
10162 esac
10163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10164 shlibpath_overrides_runpath=no
10165 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10166 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10167 hardcode_into_libs=yes
10170 # No shared lib support for Linux oldld, aout, or coff.
10171 linux*oldld* | linux*aout* | linux*coff*)
10172 dynamic_linker=no
10175 linux*android*)
10176 version_type=none # Android doesn't support versioned libraries.
10177 need_lib_prefix=no
10178 need_version=no
10179 library_names_spec='$libname$release$shared_ext'
10180 soname_spec='$libname$release$shared_ext'
10181 finish_cmds=
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=yes
10185 # This implies no fast_install, which is unacceptable.
10186 # Some rework will be needed to allow for fast_install
10187 # before this can be enabled.
10188 hardcode_into_libs=yes
10190 dynamic_linker='Android linker'
10191 # Don't embed -rpath directories since the linker doesn't support them.
10192 hardcode_libdir_flag_spec='-L$libdir'
10195 # This must be glibc/ELF.
10196 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10197 version_type=linux # correct to gnu/linux during the next big refactor
10198 need_lib_prefix=no
10199 need_version=no
10200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10201 soname_spec='$libname$release$shared_ext$major'
10202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10206 # Some binutils ld are patched to set DT_RUNPATH
10207 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 lt_cv_shlibpath_overrides_runpath=no
10211 save_LDFLAGS=$LDFLAGS
10212 save_libdir=$libdir
10213 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10214 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10216 /* end confdefs.h. */
10219 main ()
10223 return 0;
10225 _ACEOF
10226 if ac_fn_c_try_link "$LINENO"; then :
10227 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10228 lt_cv_shlibpath_overrides_runpath=yes
10231 rm -f core conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LDFLAGS=$save_LDFLAGS
10234 libdir=$save_libdir
10238 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10240 # This implies no fast_install, which is unacceptable.
10241 # Some rework will be needed to allow for fast_install
10242 # before this can be enabled.
10243 hardcode_into_libs=yes
10245 # Ideally, we could use ldconfig to report *all* directores which are
10246 # searched for libraries, however this is still not possible. Aside from not
10247 # being certain /sbin/ldconfig is available, command
10248 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10249 # even though it is searched at run-time. Try to do the best guess by
10250 # appending ld.so.conf contents (and includes) to the search path.
10251 if test -f /etc/ld.so.conf; then
10252 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;s/"//g;/^$/d' | tr '\n' ' '`
10253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10256 # We used to test for /lib/ld.so.1 and disable shared libraries on
10257 # powerpc, because MkLinux only supported shared libraries with the
10258 # GNU dynamic linker. Since this was broken with cross compilers,
10259 # most powerpc-linux boxes support dynamic linking these days and
10260 # people can always --disable-shared, the test was removed, and we
10261 # assume the GNU/Linux dynamic linker is in use.
10262 dynamic_linker='GNU/Linux ld.so'
10265 netbsdelf*-gnu)
10266 version_type=linux
10267 need_lib_prefix=no
10268 need_version=no
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=no
10273 hardcode_into_libs=yes
10274 dynamic_linker='NetBSD ld.elf_so'
10277 netbsd*)
10278 version_type=sunos
10279 need_lib_prefix=no
10280 need_version=no
10281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10282 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10284 dynamic_linker='NetBSD (a.out) ld.so'
10285 else
10286 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10287 soname_spec='$libname$release$shared_ext$major'
10288 dynamic_linker='NetBSD ld.elf_so'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10295 newsos6)
10296 version_type=linux # correct to gnu/linux during the next big refactor
10297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=yes
10302 *nto* | *qnx*)
10303 version_type=qnx
10304 need_lib_prefix=no
10305 need_version=no
10306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10307 soname_spec='$libname$release$shared_ext$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=no
10310 hardcode_into_libs=yes
10311 dynamic_linker='ldqnx.so'
10314 openbsd* | bitrig*)
10315 version_type=sunos
10316 sys_lib_dlsearch_path_spec=/usr/lib
10317 need_lib_prefix=no
10318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10319 need_version=no
10320 else
10321 need_version=yes
10323 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10325 shlibpath_var=LD_LIBRARY_PATH
10326 shlibpath_overrides_runpath=yes
10329 os2*)
10330 libname_spec='$name'
10331 version_type=windows
10332 shrext_cmds=.dll
10333 need_version=no
10334 need_lib_prefix=no
10335 # OS/2 can only load a DLL with a base name of 8 characters or less.
10336 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10337 v=$($ECHO $release$versuffix | tr -d .-);
10338 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10339 $ECHO $n$v`$shared_ext'
10340 library_names_spec='${libname}_dll.$libext'
10341 dynamic_linker='OS/2 ld.exe'
10342 shlibpath_var=BEGINLIBPATH
10343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10345 postinstall_cmds='base_file=`basename \$file`~
10346 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10347 dldir=$destdir/`dirname \$dlpath`~
10348 test -d \$dldir || mkdir -p \$dldir~
10349 $install_prog $dir/$dlname \$dldir/$dlname~
10350 chmod a+x \$dldir/$dlname~
10351 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10352 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10355 dlpath=$dir/\$dldll~
10356 $RM \$dlpath'
10359 osf3* | osf4* | osf5*)
10360 version_type=osf
10361 need_lib_prefix=no
10362 need_version=no
10363 soname_spec='$libname$release$shared_ext$major'
10364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10370 rdos*)
10371 dynamic_linker=no
10374 solaris*)
10375 version_type=linux # correct to gnu/linux during the next big refactor
10376 need_lib_prefix=no
10377 need_version=no
10378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10379 soname_spec='$libname$release$shared_ext$major'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 hardcode_into_libs=yes
10383 # ldd complains unless libraries are executable
10384 postinstall_cmds='chmod +x $lib'
10387 sunos4*)
10388 version_type=sunos
10389 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 shlibpath_overrides_runpath=yes
10393 if test yes = "$with_gnu_ld"; then
10394 need_lib_prefix=no
10396 need_version=yes
10399 sysv4 | sysv4.3*)
10400 version_type=linux # correct to gnu/linux during the next big refactor
10401 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10402 soname_spec='$libname$release$shared_ext$major'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 case $host_vendor in
10405 sni)
10406 shlibpath_overrides_runpath=no
10407 need_lib_prefix=no
10408 runpath_var=LD_RUN_PATH
10410 siemens)
10411 need_lib_prefix=no
10413 motorola)
10414 need_lib_prefix=no
10415 need_version=no
10416 shlibpath_overrides_runpath=no
10417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10419 esac
10422 sysv4*MP*)
10423 if test -d /usr/nec; then
10424 version_type=linux # correct to gnu/linux during the next big refactor
10425 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10426 soname_spec='$libname$shared_ext.$major'
10427 shlibpath_var=LD_LIBRARY_PATH
10431 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10432 version_type=sco
10433 need_lib_prefix=no
10434 need_version=no
10435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10436 soname_spec='$libname$release$shared_ext$major'
10437 shlibpath_var=LD_LIBRARY_PATH
10438 shlibpath_overrides_runpath=yes
10439 hardcode_into_libs=yes
10440 if test yes = "$with_gnu_ld"; then
10441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10442 else
10443 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10444 case $host_os in
10445 sco3.2v5*)
10446 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10448 esac
10450 sys_lib_dlsearch_path_spec='/usr/lib'
10453 tpf*)
10454 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10455 version_type=linux # correct to gnu/linux during the next big refactor
10456 need_lib_prefix=no
10457 need_version=no
10458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath=no
10461 hardcode_into_libs=yes
10464 uts4*)
10465 version_type=linux # correct to gnu/linux during the next big refactor
10466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10467 soname_spec='$libname$release$shared_ext$major'
10468 shlibpath_var=LD_LIBRARY_PATH
10472 dynamic_linker=no
10474 esac
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10476 $as_echo "$dynamic_linker" >&6; }
10477 test no = "$dynamic_linker" && can_build_shared=no
10479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10480 if test yes = "$GCC"; then
10481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10484 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
10485 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
10488 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
10489 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
10492 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
10493 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
10495 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
10496 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
10498 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
10499 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10598 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10599 hardcode_action=
10600 if test -n "$hardcode_libdir_flag_spec" ||
10601 test -n "$runpath_var" ||
10602 test yes = "$hardcode_automatic"; then
10604 # We can hardcode non-existent directories.
10605 if test no != "$hardcode_direct" &&
10606 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10607 # have to relink, otherwise we might link with an installed library
10608 # when we should be linking with a yet-to-be-installed one
10609 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
10610 test no != "$hardcode_minus_L"; then
10611 # Linking always hardcodes the temporary library directory.
10612 hardcode_action=relink
10613 else
10614 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10615 hardcode_action=immediate
10617 else
10618 # We cannot hardcode anything, or else we can only hardcode existing
10619 # directories.
10620 hardcode_action=unsupported
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10623 $as_echo "$hardcode_action" >&6; }
10625 if test relink = "$hardcode_action" ||
10626 test yes = "$inherit_rpath"; then
10627 # Fast installation is not supported
10628 enable_fast_install=no
10629 elif test yes = "$shlibpath_overrides_runpath" ||
10630 test no = "$enable_shared"; then
10631 # Fast installation is not necessary
10632 enable_fast_install=needless
10640 if test yes != "$enable_dlopen"; then
10641 enable_dlopen=unknown
10642 enable_dlopen_self=unknown
10643 enable_dlopen_self_static=unknown
10644 else
10645 lt_cv_dlopen=no
10646 lt_cv_dlopen_libs=
10648 case $host_os in
10649 beos*)
10650 lt_cv_dlopen=load_add_on
10651 lt_cv_dlopen_libs=
10652 lt_cv_dlopen_self=yes
10655 mingw* | pw32* | cegcc*)
10656 lt_cv_dlopen=LoadLibrary
10657 lt_cv_dlopen_libs=
10660 cygwin*)
10661 lt_cv_dlopen=dlopen
10662 lt_cv_dlopen_libs=
10665 darwin*)
10666 # if libdl is installed we need to link against it
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10668 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10669 if ${ac_cv_lib_dl_dlopen+:} false; then :
10670 $as_echo_n "(cached) " >&6
10671 else
10672 ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-ldl $LIBS"
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10680 #ifdef __cplusplus
10681 extern "C"
10682 #endif
10683 char dlopen ();
10685 main ()
10687 return dlopen ();
10689 return 0;
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 ac_cv_lib_dl_dlopen=yes
10694 else
10695 ac_cv_lib_dl_dlopen=no
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10702 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10703 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10704 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10705 else
10707 lt_cv_dlopen=dyld
10708 lt_cv_dlopen_libs=
10709 lt_cv_dlopen_self=yes
10715 tpf*)
10716 # Don't try to run any link tests for TPF. We know it's impossible
10717 # because TPF is a cross-compiler, and we know how we open DSOs.
10718 lt_cv_dlopen=dlopen
10719 lt_cv_dlopen_libs=
10720 lt_cv_dlopen_self=no
10724 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10725 if test "x$ac_cv_func_shl_load" = xyes; then :
10726 lt_cv_dlopen=shl_load
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10729 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10730 if ${ac_cv_lib_dld_shl_load+:} false; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldld $LIBS"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char shl_load ();
10746 main ()
10748 return shl_load ();
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_dld_shl_load=yes
10755 else
10756 ac_cv_lib_dld_shl_load=no
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10763 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10764 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10765 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
10766 else
10767 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10768 if test "x$ac_cv_func_dlopen" = xyes; then :
10769 lt_cv_dlopen=dlopen
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10773 if ${ac_cv_lib_dl_dlopen+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-ldl $LIBS"
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char dlopen ();
10789 main ()
10791 return dlopen ();
10793 return 0;
10795 _ACEOF
10796 if ac_fn_c_try_link "$LINENO"; then :
10797 ac_cv_lib_dl_dlopen=yes
10798 else
10799 ac_cv_lib_dl_dlopen=no
10801 rm -f core conftest.err conftest.$ac_objext \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10806 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10807 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10808 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
10809 else
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10811 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10812 if ${ac_cv_lib_svld_dlopen+:} false; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815 ac_check_lib_save_LIBS=$LIBS
10816 LIBS="-lsvld $LIBS"
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10820 /* Override any GCC internal prototype to avoid an error.
10821 Use char because int might match the return type of a GCC
10822 builtin and then its argument prototype would still apply. */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char dlopen ();
10828 main ()
10830 return dlopen ();
10832 return 0;
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836 ac_cv_lib_svld_dlopen=yes
10837 else
10838 ac_cv_lib_svld_dlopen=no
10840 rm -f core conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10842 LIBS=$ac_check_lib_save_LIBS
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10845 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10846 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10847 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10850 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10851 if ${ac_cv_lib_dld_dld_link+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldld $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dld_link ();
10867 main ()
10869 return dld_link ();
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dld_dld_link=yes
10876 else
10877 ac_cv_lib_dld_dld_link=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10884 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10885 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10886 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
10905 esac
10907 if test no = "$lt_cv_dlopen"; then
10908 enable_dlopen=no
10909 else
10910 enable_dlopen=yes
10913 case $lt_cv_dlopen in
10914 dlopen)
10915 save_CPPFLAGS=$CPPFLAGS
10916 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10918 save_LDFLAGS=$LDFLAGS
10919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10921 save_LIBS=$LIBS
10922 LIBS="$lt_cv_dlopen_libs $LIBS"
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10925 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10926 if ${lt_cv_dlopen_self+:} false; then :
10927 $as_echo_n "(cached) " >&6
10928 else
10929 if test yes = "$cross_compiling"; then :
10930 lt_cv_dlopen_self=cross
10931 else
10932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10933 lt_status=$lt_dlunknown
10934 cat > conftest.$ac_ext <<_LT_EOF
10935 #line $LINENO "configure"
10936 #include "confdefs.h"
10938 #if HAVE_DLFCN_H
10939 #include <dlfcn.h>
10940 #endif
10942 #include <stdio.h>
10944 #ifdef RTLD_GLOBAL
10945 # define LT_DLGLOBAL RTLD_GLOBAL
10946 #else
10947 # ifdef DL_GLOBAL
10948 # define LT_DLGLOBAL DL_GLOBAL
10949 # else
10950 # define LT_DLGLOBAL 0
10951 # endif
10952 #endif
10954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10955 find out it does not work in some platform. */
10956 #ifndef LT_DLLAZY_OR_NOW
10957 # ifdef RTLD_LAZY
10958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10959 # else
10960 # ifdef DL_LAZY
10961 # define LT_DLLAZY_OR_NOW DL_LAZY
10962 # else
10963 # ifdef RTLD_NOW
10964 # define LT_DLLAZY_OR_NOW RTLD_NOW
10965 # else
10966 # ifdef DL_NOW
10967 # define LT_DLLAZY_OR_NOW DL_NOW
10968 # else
10969 # define LT_DLLAZY_OR_NOW 0
10970 # endif
10971 # endif
10972 # endif
10973 # endif
10974 #endif
10976 /* When -fvisibility=hidden is used, assume the code has been annotated
10977 correspondingly for the symbols needed. */
10978 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10979 int fnord () __attribute__((visibility("default")));
10980 #endif
10982 int fnord () { return 42; }
10983 int main ()
10985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10986 int status = $lt_dlunknown;
10988 if (self)
10990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10991 else
10993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10994 else puts (dlerror ());
10996 /* dlclose (self); */
10998 else
10999 puts (dlerror ());
11001 return status;
11003 _LT_EOF
11004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11005 (eval $ac_link) 2>&5
11006 ac_status=$?
11007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11008 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11009 (./conftest; exit; ) >&5 2>/dev/null
11010 lt_status=$?
11011 case x$lt_status in
11012 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11013 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11014 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11015 esac
11016 else :
11017 # compilation failed
11018 lt_cv_dlopen_self=no
11021 rm -fr conftest*
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11026 $as_echo "$lt_cv_dlopen_self" >&6; }
11028 if test yes = "$lt_cv_dlopen_self"; then
11029 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11031 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11032 if ${lt_cv_dlopen_self_static+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 if test yes = "$cross_compiling"; then :
11036 lt_cv_dlopen_self_static=cross
11037 else
11038 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11039 lt_status=$lt_dlunknown
11040 cat > conftest.$ac_ext <<_LT_EOF
11041 #line $LINENO "configure"
11042 #include "confdefs.h"
11044 #if HAVE_DLFCN_H
11045 #include <dlfcn.h>
11046 #endif
11048 #include <stdio.h>
11050 #ifdef RTLD_GLOBAL
11051 # define LT_DLGLOBAL RTLD_GLOBAL
11052 #else
11053 # ifdef DL_GLOBAL
11054 # define LT_DLGLOBAL DL_GLOBAL
11055 # else
11056 # define LT_DLGLOBAL 0
11057 # endif
11058 #endif
11060 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11061 find out it does not work in some platform. */
11062 #ifndef LT_DLLAZY_OR_NOW
11063 # ifdef RTLD_LAZY
11064 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11065 # else
11066 # ifdef DL_LAZY
11067 # define LT_DLLAZY_OR_NOW DL_LAZY
11068 # else
11069 # ifdef RTLD_NOW
11070 # define LT_DLLAZY_OR_NOW RTLD_NOW
11071 # else
11072 # ifdef DL_NOW
11073 # define LT_DLLAZY_OR_NOW DL_NOW
11074 # else
11075 # define LT_DLLAZY_OR_NOW 0
11076 # endif
11077 # endif
11078 # endif
11079 # endif
11080 #endif
11082 /* When -fvisibility=hidden is used, assume the code has been annotated
11083 correspondingly for the symbols needed. */
11084 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11085 int fnord () __attribute__((visibility("default")));
11086 #endif
11088 int fnord () { return 42; }
11089 int main ()
11091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092 int status = $lt_dlunknown;
11094 if (self)
11096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11097 else
11099 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11100 else puts (dlerror ());
11102 /* dlclose (self); */
11104 else
11105 puts (dlerror ());
11107 return status;
11109 _LT_EOF
11110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11111 (eval $ac_link) 2>&5
11112 ac_status=$?
11113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11114 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11115 (./conftest; exit; ) >&5 2>/dev/null
11116 lt_status=$?
11117 case x$lt_status in
11118 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11119 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11120 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11121 esac
11122 else :
11123 # compilation failed
11124 lt_cv_dlopen_self_static=no
11127 rm -fr conftest*
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11132 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11135 CPPFLAGS=$save_CPPFLAGS
11136 LDFLAGS=$save_LDFLAGS
11137 LIBS=$save_LIBS
11139 esac
11141 case $lt_cv_dlopen_self in
11142 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11143 *) enable_dlopen_self=unknown ;;
11144 esac
11146 case $lt_cv_dlopen_self_static in
11147 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11148 *) enable_dlopen_self_static=unknown ;;
11149 esac
11168 striplib=
11169 old_striplib=
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11171 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11172 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11173 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11174 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; }
11177 else
11178 # FIXME - insert some real tests, host_os isn't really good enough
11179 case $host_os in
11180 darwin*)
11181 if test -n "$STRIP"; then
11182 striplib="$STRIP -x"
11183 old_striplib="$STRIP -S"
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11185 $as_echo "yes" >&6; }
11186 else
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188 $as_echo "no" >&6; }
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193 $as_echo "no" >&6; }
11195 esac
11209 # Report what library types will actually be built
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11211 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11213 $as_echo "$can_build_shared" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11216 $as_echo_n "checking whether to build shared libraries... " >&6; }
11217 test no = "$can_build_shared" && enable_shared=no
11219 # On AIX, shared libraries and static libraries use the same namespace, and
11220 # are all built from PIC.
11221 case $host_os in
11222 aix3*)
11223 test yes = "$enable_shared" && enable_static=no
11224 if test -n "$RANLIB"; then
11225 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11226 postinstall_cmds='$RANLIB $lib'
11230 aix[4-9]*)
11231 if test ia64 != "$host_cpu"; then
11232 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11233 yes,aix,yes) ;; # shared object as lib.so file only
11234 yes,svr4,*) ;; # shared object as lib.so archive member only
11235 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11236 esac
11239 esac
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11241 $as_echo "$enable_shared" >&6; }
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11244 $as_echo_n "checking whether to build static libraries... " >&6; }
11245 # Make sure either enable_shared or enable_static is yes.
11246 test yes = "$enable_shared" || enable_static=yes
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11248 $as_echo "$enable_static" >&6; }
11254 ac_ext=c
11255 ac_cpp='$CPP $CPPFLAGS'
11256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11260 CC=$lt_save_CC
11276 ac_config_commands="$ac_config_commands libtool"
11281 # Only expand once:
11284 # Find a good install program. We prefer a C program (faster),
11285 # so one script is as good as another. But avoid the broken or
11286 # incompatible versions:
11287 # SysV /etc/install, /usr/sbin/install
11288 # SunOS /usr/etc/install
11289 # IRIX /sbin/install
11290 # AIX /bin/install
11291 # AmigaOS /C/install, which installs bootblocks on floppy discs
11292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11295 # OS/2's system install, which has a completely different semantic
11296 # ./install, which can be erroneously created by make from ./install.sh.
11297 # Reject install programs that cannot install multiple files.
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11300 if test -z "$INSTALL"; then
11301 if ${ac_cv_path_install+:} false; then :
11302 $as_echo_n "(cached) " >&6
11303 else
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305 for as_dir in $PATH
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 # Account for people who put trailing slashes in PATH elements.
11310 case $as_dir/ in #((
11311 ./ | .// | /[cC]/* | \
11312 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11313 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11314 /usr/ucb/* ) ;;
11316 # OSF1 and SCO ODT 3.0 have their own names for install.
11317 # Don't use installbsd from OSF since it installs stuff as root
11318 # by default.
11319 for ac_prog in ginstall scoinst install; do
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11322 if test $ac_prog = install &&
11323 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11324 # AIX install. It has an incompatible calling convention.
11326 elif test $ac_prog = install &&
11327 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11328 # program-specific install script used by HP pwplus--don't use.
11330 else
11331 rm -rf conftest.one conftest.two conftest.dir
11332 echo one > conftest.one
11333 echo two > conftest.two
11334 mkdir conftest.dir
11335 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11336 test -s conftest.one && test -s conftest.two &&
11337 test -s conftest.dir/conftest.one &&
11338 test -s conftest.dir/conftest.two
11339 then
11340 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11341 break 3
11345 done
11346 done
11348 esac
11350 done
11351 IFS=$as_save_IFS
11353 rm -rf conftest.one conftest.two conftest.dir
11356 if test "${ac_cv_path_install+set}" = set; then
11357 INSTALL=$ac_cv_path_install
11358 else
11359 # As a last resort, use the slow shell script. Don't cache a
11360 # value for INSTALL within a source directory, because that will
11361 # break other packages using the cache if that directory is
11362 # removed, or if the value is a relative name.
11363 INSTALL=$ac_install_sh
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11367 $as_echo "$INSTALL" >&6; }
11369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11370 # It thinks the first close brace ends the variable substitution.
11371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11378 #########
11379 # Enable large file support (if special flags are necessary)
11381 # Check whether --enable-largefile was given.
11382 if test "${enable_largefile+set}" = set; then :
11383 enableval=$enable_largefile;
11386 if test "$enable_largefile" != no; then
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11389 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11390 if ${ac_cv_sys_largefile_CC+:} false; then :
11391 $as_echo_n "(cached) " >&6
11392 else
11393 ac_cv_sys_largefile_CC=no
11394 if test "$GCC" != yes; then
11395 ac_save_CC=$CC
11396 while :; do
11397 # IRIX 6.2 and later do not support large files by default,
11398 # so use the C compiler's -n32 option if that helps.
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11401 #include <sys/types.h>
11402 /* Check that off_t can represent 2**63 - 1 correctly.
11403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11404 since some C++ compilers masquerading as C compilers
11405 incorrectly reject 9223372036854775807. */
11406 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11408 && LARGE_OFF_T % 2147483647 == 1)
11409 ? 1 : -1];
11411 main ()
11415 return 0;
11417 _ACEOF
11418 if ac_fn_c_try_compile "$LINENO"; then :
11419 break
11421 rm -f core conftest.err conftest.$ac_objext
11422 CC="$CC -n32"
11423 if ac_fn_c_try_compile "$LINENO"; then :
11424 ac_cv_sys_largefile_CC=' -n32'; break
11426 rm -f core conftest.err conftest.$ac_objext
11427 break
11428 done
11429 CC=$ac_save_CC
11430 rm -f conftest.$ac_ext
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11434 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11435 if test "$ac_cv_sys_largefile_CC" != no; then
11436 CC=$CC$ac_cv_sys_largefile_CC
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11440 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11441 if ${ac_cv_sys_file_offset_bits+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 while :; do
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11447 #include <sys/types.h>
11448 /* Check that off_t can represent 2**63 - 1 correctly.
11449 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11450 since some C++ compilers masquerading as C compilers
11451 incorrectly reject 9223372036854775807. */
11452 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11453 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11454 && LARGE_OFF_T % 2147483647 == 1)
11455 ? 1 : -1];
11457 main ()
11461 return 0;
11463 _ACEOF
11464 if ac_fn_c_try_compile "$LINENO"; then :
11465 ac_cv_sys_file_offset_bits=no; break
11467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470 #define _FILE_OFFSET_BITS 64
11471 #include <sys/types.h>
11472 /* Check that off_t can represent 2**63 - 1 correctly.
11473 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11474 since some C++ compilers masquerading as C compilers
11475 incorrectly reject 9223372036854775807. */
11476 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11478 && LARGE_OFF_T % 2147483647 == 1)
11479 ? 1 : -1];
11481 main ()
11485 return 0;
11487 _ACEOF
11488 if ac_fn_c_try_compile "$LINENO"; then :
11489 ac_cv_sys_file_offset_bits=64; break
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11492 ac_cv_sys_file_offset_bits=unknown
11493 break
11494 done
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11497 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11498 case $ac_cv_sys_file_offset_bits in #(
11499 no | unknown) ;;
11501 cat >>confdefs.h <<_ACEOF
11502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11503 _ACEOF
11505 esac
11506 rm -rf conftest*
11507 if test $ac_cv_sys_file_offset_bits = unknown; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11509 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11510 if ${ac_cv_sys_large_files+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 while :; do
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 #include <sys/types.h>
11517 /* Check that off_t can represent 2**63 - 1 correctly.
11518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11519 since some C++ compilers masquerading as C compilers
11520 incorrectly reject 9223372036854775807. */
11521 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11523 && LARGE_OFF_T % 2147483647 == 1)
11524 ? 1 : -1];
11526 main ()
11530 return 0;
11532 _ACEOF
11533 if ac_fn_c_try_compile "$LINENO"; then :
11534 ac_cv_sys_large_files=no; break
11536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h. */
11539 #define _LARGE_FILES 1
11540 #include <sys/types.h>
11541 /* Check that off_t can represent 2**63 - 1 correctly.
11542 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11543 since some C++ compilers masquerading as C compilers
11544 incorrectly reject 9223372036854775807. */
11545 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
11546 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11547 && LARGE_OFF_T % 2147483647 == 1)
11548 ? 1 : -1];
11550 main ()
11554 return 0;
11556 _ACEOF
11557 if ac_fn_c_try_compile "$LINENO"; then :
11558 ac_cv_sys_large_files=1; break
11560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561 ac_cv_sys_large_files=unknown
11562 break
11563 done
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11566 $as_echo "$ac_cv_sys_large_files" >&6; }
11567 case $ac_cv_sys_large_files in #(
11568 no | unknown) ;;
11570 cat >>confdefs.h <<_ACEOF
11571 #define _LARGE_FILES $ac_cv_sys_large_files
11572 _ACEOF
11574 esac
11575 rm -rf conftest*
11582 #########
11583 # Check for needed/wanted data types
11584 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
11585 if test "x$ac_cv_type_int8_t" = xyes; then :
11587 cat >>confdefs.h <<_ACEOF
11588 #define HAVE_INT8_T 1
11589 _ACEOF
11593 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
11594 if test "x$ac_cv_type_int16_t" = xyes; then :
11596 cat >>confdefs.h <<_ACEOF
11597 #define HAVE_INT16_T 1
11598 _ACEOF
11602 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
11603 if test "x$ac_cv_type_int32_t" = xyes; then :
11605 cat >>confdefs.h <<_ACEOF
11606 #define HAVE_INT32_T 1
11607 _ACEOF
11611 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11612 if test "x$ac_cv_type_int64_t" = xyes; then :
11614 cat >>confdefs.h <<_ACEOF
11615 #define HAVE_INT64_T 1
11616 _ACEOF
11620 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11621 if test "x$ac_cv_type_intptr_t" = xyes; then :
11623 cat >>confdefs.h <<_ACEOF
11624 #define HAVE_INTPTR_T 1
11625 _ACEOF
11629 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
11630 if test "x$ac_cv_type_uint8_t" = xyes; then :
11632 cat >>confdefs.h <<_ACEOF
11633 #define HAVE_UINT8_T 1
11634 _ACEOF
11638 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
11639 if test "x$ac_cv_type_uint16_t" = xyes; then :
11641 cat >>confdefs.h <<_ACEOF
11642 #define HAVE_UINT16_T 1
11643 _ACEOF
11647 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
11648 if test "x$ac_cv_type_uint32_t" = xyes; then :
11650 cat >>confdefs.h <<_ACEOF
11651 #define HAVE_UINT32_T 1
11652 _ACEOF
11656 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11657 if test "x$ac_cv_type_uint64_t" = xyes; then :
11659 cat >>confdefs.h <<_ACEOF
11660 #define HAVE_UINT64_T 1
11661 _ACEOF
11665 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
11666 if test "x$ac_cv_type_uintptr_t" = xyes; then :
11668 cat >>confdefs.h <<_ACEOF
11669 #define HAVE_UINTPTR_T 1
11670 _ACEOF
11676 #########
11677 # Check for needed/wanted headers
11678 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11679 do :
11680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11681 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11682 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11683 cat >>confdefs.h <<_ACEOF
11684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11685 _ACEOF
11689 done
11692 #########
11693 # Figure out whether or not we have these functions
11695 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
11696 do :
11697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11700 cat >>confdefs.h <<_ACEOF
11701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702 _ACEOF
11705 done
11708 #########
11709 # By default, we use the amalgamation (this may be changed below...)
11711 USE_AMALGAMATION=1
11713 #########
11714 # See whether we can run specific tclsh versions known to work well;
11715 # if not, then we fall back to plain tclsh.
11716 # TODO: try other versions before falling back?
11718 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
11720 # Extract the first word of "$ac_prog", so it can be a program name with args.
11721 set dummy $ac_prog; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 if test -n "$TCLSH_CMD"; then
11728 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
11729 else
11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731 for as_dir in $PATH
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11737 ac_cv_prog_TCLSH_CMD="$ac_prog"
11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11739 break 2
11741 done
11742 done
11743 IFS=$as_save_IFS
11747 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
11748 if test -n "$TCLSH_CMD"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
11750 $as_echo "$TCLSH_CMD" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 test -n "$TCLSH_CMD" && break
11758 done
11759 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
11761 if test "$TCLSH_CMD" = "none"; then
11762 # If we can't find a local tclsh, then building the amalgamation will fail.
11763 # We act as though --disable-amalgamation has been used.
11764 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
11765 USE_AMALGAMATION=0
11766 TCLSH_CMD="tclsh"
11771 if test "x${TCLLIBDIR+set}" != "xset" ; then
11772 TCLLIBDIR='$(libdir)'
11773 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
11774 if test -d $i ; then
11775 TCLLIBDIR=$i
11776 break
11778 done
11779 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
11782 #########
11783 # Set up an appropriate program prefix
11785 if test "$program_prefix" = "NONE"; then
11786 program_prefix=""
11790 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
11792 $as_echo "$as_me: Version set to $VERSION" >&6;}
11794 RELEASE=`cat $srcdir/VERSION`
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
11796 $as_echo "$as_me: Release set to $RELEASE" >&6;}
11799 #########
11800 # Locate a compiler for the build machine. This compiler should
11801 # generate command-line programs that run on the build machine.
11803 if test x"$cross_compiling" = xno; then
11804 BUILD_CC=$CC
11805 BUILD_CFLAGS=$CFLAGS
11806 else
11807 if test "${BUILD_CC+set}" != set; then
11808 for ac_prog in gcc cc cl
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811 set dummy $ac_prog; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_BUILD_CC+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 if test -n "$BUILD_CC"; then
11818 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11819 else
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_BUILD_CC="$ac_prog"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11829 break 2
11831 done
11832 done
11833 IFS=$as_save_IFS
11837 BUILD_CC=$ac_cv_prog_BUILD_CC
11838 if test -n "$BUILD_CC"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11840 $as_echo "$BUILD_CC" >&6; }
11841 else
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11847 test -n "$BUILD_CC" && break
11848 done
11851 if test "${BUILD_CFLAGS+set}" != set; then
11852 BUILD_CFLAGS="-g"
11857 ##########
11858 # Do we want to support multithreaded use of sqlite
11860 # Check whether --enable-threadsafe was given.
11861 if test "${enable_threadsafe+set}" = set; then :
11862 enableval=$enable_threadsafe;
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
11866 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
11867 if test "$enable_threadsafe" = "no"; then
11868 SQLITE_THREADSAFE=0
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 $as_echo "no" >&6; }
11871 else
11872 SQLITE_THREADSAFE=1
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11874 $as_echo "yes" >&6; }
11878 if test "$SQLITE_THREADSAFE" = "1"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
11880 $as_echo_n "checking for library containing pthread_create... " >&6; }
11881 if ${ac_cv_search_pthread_create+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 ac_func_search_save_LIBS=$LIBS
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char pthread_create ();
11896 main ()
11898 return pthread_create ();
11900 return 0;
11902 _ACEOF
11903 for ac_lib in '' pthread; do
11904 if test -z "$ac_lib"; then
11905 ac_res="none required"
11906 else
11907 ac_res=-l$ac_lib
11908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11910 if ac_fn_c_try_link "$LINENO"; then :
11911 ac_cv_search_pthread_create=$ac_res
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext
11915 if ${ac_cv_search_pthread_create+:} false; then :
11916 break
11918 done
11919 if ${ac_cv_search_pthread_create+:} false; then :
11921 else
11922 ac_cv_search_pthread_create=no
11924 rm conftest.$ac_ext
11925 LIBS=$ac_func_search_save_LIBS
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
11928 $as_echo "$ac_cv_search_pthread_create" >&6; }
11929 ac_res=$ac_cv_search_pthread_create
11930 if test "$ac_res" != no; then :
11931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
11936 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
11937 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 ac_func_search_save_LIBS=$LIBS
11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11942 /* end confdefs.h. */
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 #endif
11950 char pthread_mutexattr_init ();
11952 main ()
11954 return pthread_mutexattr_init ();
11956 return 0;
11958 _ACEOF
11959 for ac_lib in '' pthread; do
11960 if test -z "$ac_lib"; then
11961 ac_res="none required"
11962 else
11963 ac_res=-l$ac_lib
11964 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11966 if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_search_pthread_mutexattr_init=$ac_res
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext
11971 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11972 break
11974 done
11975 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
11977 else
11978 ac_cv_search_pthread_mutexattr_init=no
11980 rm conftest.$ac_ext
11981 LIBS=$ac_func_search_save_LIBS
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
11984 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
11985 ac_res=$ac_cv_search_pthread_mutexattr_init
11986 if test "$ac_res" != no; then :
11987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11993 ##########
11994 # Which crypto library do we use
11997 # Check whether --with-crypto-lib was given.
11998 if test "${with_crypto_lib+set}" = set; then :
11999 withval=$with_crypto_lib; crypto_lib=$withval
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto library to use" >&5
12003 $as_echo_n "checking for crypto library to use... " >&6; }
12004 if test "$crypto_lib" = "none"; then
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12006 $as_echo "none" >&6; }
12007 else
12008 if test "$crypto_lib" = "commoncrypto"; then
12009 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_CC"
12010 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_CC"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: commoncrypto" >&5
12012 $as_echo "commoncrypto" >&6; }
12013 else
12014 if test "$crypto_lib" = "libtomcrypt"; then
12015 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12016 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_LIBTOMCRYPT"
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libtomcrypt" >&5
12018 $as_echo "libtomcrypt" >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for register_cipher in -ltomcrypt" >&5
12020 $as_echo_n "checking for register_cipher in -ltomcrypt... " >&6; }
12021 if ${ac_cv_lib_tomcrypt_register_cipher+:} false; then :
12022 $as_echo_n "(cached) " >&6
12023 else
12024 ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-ltomcrypt $LIBS"
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12032 #ifdef __cplusplus
12033 extern "C"
12034 #endif
12035 char register_cipher ();
12037 main ()
12039 return register_cipher ();
12041 return 0;
12043 _ACEOF
12044 if ac_fn_c_try_link "$LINENO"; then :
12045 ac_cv_lib_tomcrypt_register_cipher=yes
12046 else
12047 ac_cv_lib_tomcrypt_register_cipher=no
12049 rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_lib_save_LIBS
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tomcrypt_register_cipher" >&5
12054 $as_echo "$ac_cv_lib_tomcrypt_register_cipher" >&6; }
12055 if test "x$ac_cv_lib_tomcrypt_register_cipher" = xyes; then :
12056 cat >>confdefs.h <<_ACEOF
12057 #define HAVE_LIBTOMCRYPT 1
12058 _ACEOF
12060 LIBS="-ltomcrypt $LIBS"
12062 else
12063 as_fn_error $? "Library crypto not found. Install libtomcrypt!\"" "$LINENO" 5
12066 else
12067 if test "$crypto_lib" = "nss"; then
12068 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12069 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_NSS"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nss3" >&5
12071 $as_echo "nss3" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_Decrypt in -lnss3" >&5
12073 $as_echo_n "checking for PK11_Decrypt in -lnss3... " >&6; }
12074 if ${ac_cv_lib_nss3_PK11_Decrypt+:} false; then :
12075 $as_echo_n "(cached) " >&6
12076 else
12077 ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-lnss3 $LIBS"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12082 /* Override any GCC internal prototype to avoid an error.
12083 Use char because int might match the return type of a GCC
12084 builtin and then its argument prototype would still apply. */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char PK11_Decrypt ();
12090 main ()
12092 return PK11_Decrypt ();
12094 return 0;
12096 _ACEOF
12097 if ac_fn_c_try_link "$LINENO"; then :
12098 ac_cv_lib_nss3_PK11_Decrypt=yes
12099 else
12100 ac_cv_lib_nss3_PK11_Decrypt=no
12102 rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_Decrypt" >&5
12107 $as_echo "$ac_cv_lib_nss3_PK11_Decrypt" >&6; }
12108 if test "x$ac_cv_lib_nss3_PK11_Decrypt" = xyes; then :
12109 cat >>confdefs.h <<_ACEOF
12110 #define HAVE_LIBNSS3 1
12111 _ACEOF
12113 LIBS="-lnss3 $LIBS"
12115 else
12116 as_fn_error $? "Library crypto not found. Install nss!\"" "$LINENO" 5
12119 else
12120 CFLAGS="$CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12121 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLCIPHER_CRYPTO_OPENSSL"
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: openssl" >&5
12123 $as_echo "openssl" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
12125 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
12126 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
12127 $as_echo_n "(cached) " >&6
12128 else
12129 ac_check_lib_save_LIBS=$LIBS
12130 LIBS="-lcrypto $LIBS"
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12134 /* Override any GCC internal prototype to avoid an error.
12135 Use char because int might match the return type of a GCC
12136 builtin and then its argument prototype would still apply. */
12137 #ifdef __cplusplus
12138 extern "C"
12139 #endif
12140 char HMAC_Init_ex ();
12142 main ()
12144 return HMAC_Init_ex ();
12146 return 0;
12148 _ACEOF
12149 if ac_fn_c_try_link "$LINENO"; then :
12150 ac_cv_lib_crypto_HMAC_Init_ex=yes
12151 else
12152 ac_cv_lib_crypto_HMAC_Init_ex=no
12154 rm -f core conftest.err conftest.$ac_objext \
12155 conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
12159 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
12160 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
12161 cat >>confdefs.h <<_ACEOF
12162 #define HAVE_LIBCRYPTO 1
12163 _ACEOF
12165 LIBS="-lcrypto $LIBS"
12167 else
12168 as_fn_error $? "Library crypto not found. Install openssl!\"" "$LINENO" 5
12176 ##########
12177 # Do we want to allow a connection created in one thread to be used
12178 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12179 # due to bugs in the threading implementations. This is thus off by default.
12181 # Check whether --enable-cross-thread-connections was given.
12182 if test "${enable_cross_thread_connections+set}" = set; then :
12183 enableval=$enable_cross_thread_connections;
12184 else
12185 enable_xthreadconnect=no
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
12189 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12190 if test "$enable_xthreadconnect" = "no"; then
12191 XTHREADCONNECT=''
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 else
12195 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197 $as_echo "yes" >&6; }
12201 ##########
12202 # Do we want to support release
12204 # Check whether --enable-releasemode was given.
12205 if test "${enable_releasemode+set}" = set; then :
12206 enableval=$enable_releasemode;
12207 else
12208 enable_releasemode=no
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
12212 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12213 if test "$enable_releasemode" = "no"; then
12214 ALLOWRELEASE=""
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 else
12218 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220 $as_echo "yes" >&6; }
12224 ##########
12225 # Do we want temporary databases in memory
12227 # Check whether --enable-tempstore was given.
12228 if test "${enable_tempstore+set}" = set; then :
12229 enableval=$enable_tempstore;
12230 else
12231 enable_tempstore=no
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
12235 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12236 case "$enable_tempstore" in
12237 never )
12238 TEMP_STORE=0
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
12240 $as_echo "never" >&6; }
12242 no )
12243 TEMP_STORE=1
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12247 yes )
12248 TEMP_STORE=2
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12250 $as_echo "yes" >&6; }
12252 always )
12253 TEMP_STORE=3
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
12255 $as_echo "always" >&6; }
12258 TEMP_STORE=1
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12262 esac
12266 ###########
12267 # Lots of things are different if we are compiling for Windows using
12268 # the CYGWIN environment. So check for that special case and handle
12269 # things accordingly.
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
12272 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12273 if test "$config_BUILD_EXEEXT" = ".exe"; then
12274 CYGWIN=yes
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276 $as_echo "yes" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12279 $as_echo "unknown" >&6; }
12281 if test "$CYGWIN" != "yes"; then
12283 case $host_os in
12284 *cygwin* ) CYGWIN=yes;;
12285 * ) CYGWIN=no;;
12286 esac
12289 if test "$CYGWIN" = "yes"; then
12290 BUILD_EXEEXT=.exe
12291 else
12292 BUILD_EXEEXT=$EXEEXT
12294 if test x"$cross_compiling" = xno; then
12295 TARGET_EXEEXT=$BUILD_EXEEXT
12296 else
12297 TARGET_EXEEXT=$config_TARGET_EXEEXT
12299 if test "$TARGET_EXEEXT" = ".exe"; then
12300 SQLITE_OS_UNIX=0
12301 SQLITE_OS_WIN=1
12302 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12303 else
12304 SQLITE_OS_UNIX=1
12305 SQLITE_OS_WIN=0
12306 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12314 ##########
12315 # Figure out all the parameters needed to compile against Tcl.
12317 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12318 # macros in the in the tcl.m4 file of the standard TCL distribution.
12319 # Those macros could not be used directly since we have to make some
12320 # minor changes to accomodate systems that do not have TCL installed.
12322 # Check whether --enable-tcl was given.
12323 if test "${enable_tcl+set}" = set; then :
12324 enableval=$enable_tcl; use_tcl=$enableval
12325 else
12326 use_tcl=yes
12329 if test "${use_tcl}" = "yes" ; then
12331 # Check whether --with-tcl was given.
12332 if test "${with_tcl+set}" = set; then :
12333 withval=$with_tcl; with_tclconfig=${withval}
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12337 $as_echo_n "checking for Tcl configuration... " >&6; }
12338 if ${ac_cv_c_tclconfig+:} false; then :
12339 $as_echo_n "(cached) " >&6
12340 else
12342 # First check to see if --with-tcl was specified.
12343 if test x"${with_tclconfig}" != x ; then
12344 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12345 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12346 else
12347 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12351 # Start autosearch by asking tclsh
12352 if test x"${ac_cv_c_tclconfig}" = x ; then
12353 if test x"$cross_compiling" = xno; then
12354 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12356 if test -f "$i/tclConfig.sh" ; then
12357 ac_cv_c_tclconfig="$i"
12358 break
12360 done
12364 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
12365 # So try again after applying corrections.
12366 if test x"${ac_cv_c_tclconfig}" = x ; then
12367 if test x"$cross_compiling" = xno; then
12368 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
12370 if test -f "$i/tclConfig.sh" ; then
12371 ac_cv_c_tclconfig="$i"
12372 break
12374 done
12378 # Recent versions of Xcode on Macs hid the tclConfig.sh file
12379 # in a strange place.
12380 if test x"${ac_cv_c_tclconfig}" = x ; then
12381 if test x"$cross_compiling" = xno; then
12382 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
12384 if test -f "$i/tclConfig.sh" ; then
12385 ac_cv_c_tclconfig="$i"
12386 break
12388 done
12392 # then check for a private Tcl installation
12393 if test x"${ac_cv_c_tclconfig}" = x ; then
12394 for i in \
12395 ../tcl \
12396 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12397 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12398 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12399 ../../tcl \
12400 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12401 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12402 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12403 ../../../tcl \
12404 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12405 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12406 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12408 if test -f "$i/unix/tclConfig.sh" ; then
12409 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12410 break
12412 done
12415 # check in a few common install locations
12416 if test x"${ac_cv_c_tclconfig}" = x ; then
12417 for i in \
12418 `ls -d ${libdir} 2>/dev/null` \
12419 `ls -d /usr/local/lib 2>/dev/null` \
12420 `ls -d /usr/contrib/lib 2>/dev/null` \
12421 `ls -d /usr/lib 2>/dev/null`
12423 if test -f "$i/tclConfig.sh" ; then
12424 ac_cv_c_tclconfig=`(cd $i; pwd)`
12425 break
12427 done
12430 # check in a few other private locations
12431 if test x"${ac_cv_c_tclconfig}" = x ; then
12432 for i in \
12433 ${srcdir}/../tcl \
12434 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12435 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12436 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12438 if test -f "$i/unix/tclConfig.sh" ; then
12439 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12440 break
12442 done
12448 if test x"${ac_cv_c_tclconfig}" = x ; then
12449 use_tcl=no
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12451 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12453 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12455 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12456 else
12457 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12459 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12462 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12463 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12465 $as_echo "loading" >&6; }
12466 . $TCL_BIN_DIR/tclConfig.sh
12467 else
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
12469 $as_echo "file not found" >&6; }
12473 # If the TCL_BIN_DIR is the build directory (not the install directory),
12474 # then set the common variable name to the value of the build variables.
12475 # For example, the variable TCL_LIB_SPEC will be set to the value
12476 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12477 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12478 # installed and uninstalled version of Tcl.
12481 if test -f $TCL_BIN_DIR/Makefile ; then
12482 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12483 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12484 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12488 # eval is required to do the TCL_DBGX substitution
12491 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12492 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12493 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12495 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12496 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12497 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12514 if test "${use_tcl}" = "no" ; then
12515 HAVE_TCL=""
12516 else
12517 HAVE_TCL=1
12521 ##########
12522 # Figure out what C libraries are required to compile programs
12523 # that use "readline()" library.
12525 TARGET_READLINE_LIBS=""
12526 TARGET_READLINE_INC=""
12527 TARGET_HAVE_READLINE=0
12528 TARGET_HAVE_EDITLINE=0
12529 # Check whether --enable-editline was given.
12530 if test "${enable_editline+set}" = set; then :
12531 enableval=$enable_editline; with_editline=$enableval
12532 else
12533 with_editline=auto
12536 # Check whether --enable-readline was given.
12537 if test "${enable_readline+set}" = set; then :
12538 enableval=$enable_readline; with_readline=$enableval
12539 else
12540 with_readline=auto
12544 if test x"$with_editline" != xno; then
12545 sLIBS=$LIBS
12546 LIBS=""
12547 TARGET_HAVE_EDITLINE=1
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12549 $as_echo_n "checking for library containing readline... " >&6; }
12550 if ${ac_cv_search_readline+:} false; then :
12551 $as_echo_n "(cached) " >&6
12552 else
12553 ac_func_search_save_LIBS=$LIBS
12554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h. */
12557 /* Override any GCC internal prototype to avoid an error.
12558 Use char because int might match the return type of a GCC
12559 builtin and then its argument prototype would still apply. */
12560 #ifdef __cplusplus
12561 extern "C"
12562 #endif
12563 char readline ();
12565 main ()
12567 return readline ();
12569 return 0;
12571 _ACEOF
12572 for ac_lib in '' edit; do
12573 if test -z "$ac_lib"; then
12574 ac_res="none required"
12575 else
12576 ac_res=-l$ac_lib
12577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12579 if ac_fn_c_try_link "$LINENO"; then :
12580 ac_cv_search_readline=$ac_res
12582 rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext
12584 if ${ac_cv_search_readline+:} false; then :
12585 break
12587 done
12588 if ${ac_cv_search_readline+:} false; then :
12590 else
12591 ac_cv_search_readline=no
12593 rm conftest.$ac_ext
12594 LIBS=$ac_func_search_save_LIBS
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12597 $as_echo "$ac_cv_search_readline" >&6; }
12598 ac_res=$ac_cv_search_readline
12599 if test "$ac_res" != no; then :
12600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12601 with_readline=no
12602 else
12603 TARGET_HAVE_EDITLINE=0
12606 TARGET_READLINE_LIBS=$LIBS
12607 LIBS=$sLIBS
12609 if test x"$with_readline" != xno; then
12610 found="yes"
12613 # Check whether --with-readline-lib was given.
12614 if test "${with_readline_lib+set}" = set; then :
12615 withval=$with_readline_lib; with_readline_lib=$withval
12616 else
12617 with_readline_lib="auto"
12620 if test "x$with_readline_lib" = xauto; then
12621 save_LIBS="$LIBS"
12622 LIBS=""
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12624 $as_echo_n "checking for library containing tgetent... " >&6; }
12625 if ${ac_cv_search_tgetent+:} false; then :
12626 $as_echo_n "(cached) " >&6
12627 else
12628 ac_func_search_save_LIBS=$LIBS
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char tgetent ();
12640 main ()
12642 return tgetent ();
12644 return 0;
12646 _ACEOF
12647 for ac_lib in '' readline ncurses curses termcap; do
12648 if test -z "$ac_lib"; then
12649 ac_res="none required"
12650 else
12651 ac_res=-l$ac_lib
12652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_search_tgetent=$ac_res
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext
12659 if ${ac_cv_search_tgetent+:} false; then :
12660 break
12662 done
12663 if ${ac_cv_search_tgetent+:} false; then :
12665 else
12666 ac_cv_search_tgetent=no
12668 rm conftest.$ac_ext
12669 LIBS=$ac_func_search_save_LIBS
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12672 $as_echo "$ac_cv_search_tgetent" >&6; }
12673 ac_res=$ac_cv_search_tgetent
12674 if test "$ac_res" != no; then :
12675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12676 term_LIBS="$LIBS"
12677 else
12678 term_LIBS=""
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
12682 $as_echo_n "checking for readline in -lreadline... " >&6; }
12683 if ${ac_cv_lib_readline_readline+:} false; then :
12684 $as_echo_n "(cached) " >&6
12685 else
12686 ac_check_lib_save_LIBS=$LIBS
12687 LIBS="-lreadline $LIBS"
12688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12689 /* end confdefs.h. */
12691 /* Override any GCC internal prototype to avoid an error.
12692 Use char because int might match the return type of a GCC
12693 builtin and then its argument prototype would still apply. */
12694 #ifdef __cplusplus
12695 extern "C"
12696 #endif
12697 char readline ();
12699 main ()
12701 return readline ();
12703 return 0;
12705 _ACEOF
12706 if ac_fn_c_try_link "$LINENO"; then :
12707 ac_cv_lib_readline_readline=yes
12708 else
12709 ac_cv_lib_readline_readline=no
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 LIBS=$ac_check_lib_save_LIBS
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
12716 $as_echo "$ac_cv_lib_readline_readline" >&6; }
12717 if test "x$ac_cv_lib_readline_readline" = xyes; then :
12718 TARGET_READLINE_LIBS="-lreadline"
12719 else
12720 found="no"
12723 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
12724 LIBS="$save_LIBS"
12725 else
12726 TARGET_READLINE_LIBS="$with_readline_lib"
12730 # Check whether --with-readline-inc was given.
12731 if test "${with_readline_inc+set}" = set; then :
12732 withval=$with_readline_inc; with_readline_inc=$withval
12733 else
12734 with_readline_inc="auto"
12737 if test "x$with_readline_inc" = xauto; then
12738 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
12739 if test "x$ac_cv_header_readline_h" = xyes; then :
12740 found="yes"
12741 else
12743 found="no"
12744 if test "$cross_compiling" != yes; then
12745 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
12746 for subdir in include include/readline; do
12747 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
12749 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
12750 if eval \${$as_ac_File+:} false; then :
12751 $as_echo_n "(cached) " >&6
12752 else
12753 test "$cross_compiling" = yes &&
12754 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12755 if test -r "$dir/$subdir/readline.h"; then
12756 eval "$as_ac_File=yes"
12757 else
12758 eval "$as_ac_File=no"
12761 eval ac_res=\$$as_ac_File
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12763 $as_echo "$ac_res" >&6; }
12764 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
12765 found=yes
12768 if test "$found" = "yes"; then
12769 TARGET_READLINE_INC="-I$dir/$subdir"
12770 break
12772 done
12773 test "$found" = "yes" && break
12774 done
12780 else
12781 TARGET_READLINE_INC="$with_readline_inc"
12784 if test x"$found" = xno; then
12785 TARGET_READLINE_LIBS=""
12786 TARGET_READLINE_INC=""
12787 TARGET_HAVE_READLINE=0
12788 else
12789 TARGET_HAVE_READLINE=1
12798 ##########
12799 # Figure out what C libraries are required to compile programs
12800 # that use "fdatasync()" function.
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
12803 $as_echo_n "checking for library containing fdatasync... " >&6; }
12804 if ${ac_cv_search_fdatasync+:} false; then :
12805 $as_echo_n "(cached) " >&6
12806 else
12807 ac_func_search_save_LIBS=$LIBS
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12811 /* Override any GCC internal prototype to avoid an error.
12812 Use char because int might match the return type of a GCC
12813 builtin and then its argument prototype would still apply. */
12814 #ifdef __cplusplus
12815 extern "C"
12816 #endif
12817 char fdatasync ();
12819 main ()
12821 return fdatasync ();
12823 return 0;
12825 _ACEOF
12826 for ac_lib in '' rt; do
12827 if test -z "$ac_lib"; then
12828 ac_res="none required"
12829 else
12830 ac_res=-l$ac_lib
12831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12833 if ac_fn_c_try_link "$LINENO"; then :
12834 ac_cv_search_fdatasync=$ac_res
12836 rm -f core conftest.err conftest.$ac_objext \
12837 conftest$ac_exeext
12838 if ${ac_cv_search_fdatasync+:} false; then :
12839 break
12841 done
12842 if ${ac_cv_search_fdatasync+:} false; then :
12844 else
12845 ac_cv_search_fdatasync=no
12847 rm conftest.$ac_ext
12848 LIBS=$ac_func_search_save_LIBS
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
12851 $as_echo "$ac_cv_search_fdatasync" >&6; }
12852 ac_res=$ac_cv_search_fdatasync
12853 if test "$ac_res" != no; then :
12854 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12859 #########
12860 # check for debug enabled
12861 # Check whether --enable-debug was given.
12862 if test "${enable_debug+set}" = set; then :
12863 enableval=$enable_debug;
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
12867 $as_echo_n "checking build type... " >&6; }
12868 if test "${enable_debug}" = "yes" ; then
12869 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
12871 $as_echo "debug" >&6; }
12872 else
12873 TARGET_DEBUG="-DNDEBUG"
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
12875 $as_echo "release" >&6; }
12879 #########
12880 # See whether we should use the amalgamation to build
12881 # Check whether --enable-amalgamation was given.
12882 if test "${enable_amalgamation+set}" = set; then :
12883 enableval=$enable_amalgamation;
12886 if test "${enable_amalgamation}" = "no" ; then
12887 USE_AMALGAMATION=0
12891 #########
12892 # By default, amalgamation sqlite3.c will have #line directives.
12893 # This is a build option not shown by ./configure --help
12894 # To control it, use configure option: amalgamation_line_macros=?
12895 # where ? is no to suppress #line directives or yes to create them.
12896 AMALGAMATION_LINE_MACROS=--linemacros=1
12899 if test "${amalgamation_line_macros+set}" = set; then :
12900 enableval=$amalgamation_line_macros;
12902 if test "${amalgamation_line_macros}" = "yes" ; then
12903 AMALGAMATION_LINE_MACROS=--linemacros=1
12905 if test "${amalgamation_line_macros}" = "no" ; then
12906 AMALGAMATION_LINE_MACROS=--linemacros=0
12909 #########
12910 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
12911 for ac_header in zlib.h
12912 do :
12913 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12914 if test "x$ac_cv_header_zlib_h" = xyes; then :
12915 cat >>confdefs.h <<_ACEOF
12916 #define HAVE_ZLIB_H 1
12917 _ACEOF
12921 done
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
12924 $as_echo_n "checking for library containing deflate... " >&6; }
12925 if ${ac_cv_search_deflate+:} false; then :
12926 $as_echo_n "(cached) " >&6
12927 else
12928 ac_func_search_save_LIBS=$LIBS
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12932 /* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
12935 #ifdef __cplusplus
12936 extern "C"
12937 #endif
12938 char deflate ();
12940 main ()
12942 return deflate ();
12944 return 0;
12946 _ACEOF
12947 for ac_lib in '' z; do
12948 if test -z "$ac_lib"; then
12949 ac_res="none required"
12950 else
12951 ac_res=-l$ac_lib
12952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12954 if ac_fn_c_try_link "$LINENO"; then :
12955 ac_cv_search_deflate=$ac_res
12957 rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext
12959 if ${ac_cv_search_deflate+:} false; then :
12960 break
12962 done
12963 if ${ac_cv_search_deflate+:} false; then :
12965 else
12966 ac_cv_search_deflate=no
12968 rm conftest.$ac_ext
12969 LIBS=$ac_func_search_save_LIBS
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
12972 $as_echo "$ac_cv_search_deflate" >&6; }
12973 ac_res=$ac_cv_search_deflate
12974 if test "$ac_res" != no; then :
12975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12976 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
12977 else
12978 HAVE_ZLIB=""
12983 #########
12984 # See whether we should allow loadable extensions
12985 # Check whether --enable-load-extension was given.
12986 if test "${enable_load_extension+set}" = set; then :
12987 enableval=$enable_load_extension;
12988 else
12989 enable_load_extension=yes
12992 if test "${enable_load_extension}" = "yes" ; then
12993 OPT_FEATURE_FLAGS=""
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12995 $as_echo_n "checking for library containing dlopen... " >&6; }
12996 if ${ac_cv_search_dlopen+:} false; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 ac_func_search_save_LIBS=$LIBS
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13003 /* Override any GCC internal prototype to avoid an error.
13004 Use char because int might match the return type of a GCC
13005 builtin and then its argument prototype would still apply. */
13006 #ifdef __cplusplus
13007 extern "C"
13008 #endif
13009 char dlopen ();
13011 main ()
13013 return dlopen ();
13015 return 0;
13017 _ACEOF
13018 for ac_lib in '' dl; do
13019 if test -z "$ac_lib"; then
13020 ac_res="none required"
13021 else
13022 ac_res=-l$ac_lib
13023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13025 if ac_fn_c_try_link "$LINENO"; then :
13026 ac_cv_search_dlopen=$ac_res
13028 rm -f core conftest.err conftest.$ac_objext \
13029 conftest$ac_exeext
13030 if ${ac_cv_search_dlopen+:} false; then :
13031 break
13033 done
13034 if ${ac_cv_search_dlopen+:} false; then :
13036 else
13037 ac_cv_search_dlopen=no
13039 rm conftest.$ac_ext
13040 LIBS=$ac_func_search_save_LIBS
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13043 $as_echo "$ac_cv_search_dlopen" >&6; }
13044 ac_res=$ac_cv_search_dlopen
13045 if test "$ac_res" != no; then :
13046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13050 else
13051 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13054 ##########
13055 # Do we want to support math functions
13057 # Check whether --enable-math was given.
13058 if test "${enable_math+set}" = set; then :
13059 enableval=$enable_math;
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
13063 $as_echo_n "checking whether to support math functions... " >&6; }
13064 if test "$enable_math" = "no"; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066 $as_echo "no" >&6; }
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13069 $as_echo "yes" >&6; }
13070 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13072 $as_echo_n "checking for library containing ceil... " >&6; }
13073 if ${ac_cv_search_ceil+:} false; then :
13074 $as_echo_n "(cached) " >&6
13075 else
13076 ac_func_search_save_LIBS=$LIBS
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13080 /* Override any GCC internal prototype to avoid an error.
13081 Use char because int might match the return type of a GCC
13082 builtin and then its argument prototype would still apply. */
13083 #ifdef __cplusplus
13084 extern "C"
13085 #endif
13086 char ceil ();
13088 main ()
13090 return ceil ();
13092 return 0;
13094 _ACEOF
13095 for ac_lib in '' m; do
13096 if test -z "$ac_lib"; then
13097 ac_res="none required"
13098 else
13099 ac_res=-l$ac_lib
13100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13102 if ac_fn_c_try_link "$LINENO"; then :
13103 ac_cv_search_ceil=$ac_res
13105 rm -f core conftest.err conftest.$ac_objext \
13106 conftest$ac_exeext
13107 if ${ac_cv_search_ceil+:} false; then :
13108 break
13110 done
13111 if ${ac_cv_search_ceil+:} false; then :
13113 else
13114 ac_cv_search_ceil=no
13116 rm conftest.$ac_ext
13117 LIBS=$ac_func_search_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13120 $as_echo "$ac_cv_search_ceil" >&6; }
13121 ac_res=$ac_cv_search_ceil
13122 if test "$ac_res" != no; then :
13123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13130 ########
13131 # The --enable-all argument is short-hand to enable
13132 # multiple extensions.
13133 # Check whether --enable-all was given.
13134 if test "${enable_all+set}" = set; then :
13135 enableval=$enable_all;
13139 ##########
13140 # Do we want to support memsys3 and/or memsys5
13142 # Check whether --enable-memsys5 was given.
13143 if test "${enable_memsys5+set}" = set; then :
13144 enableval=$enable_memsys5;
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
13148 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
13149 if test "${enable_memsys5}" = "yes"; then
13150 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13153 else
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13155 $as_echo "no" >&6; }
13157 # Check whether --enable-memsys3 was given.
13158 if test "${enable_memsys3+set}" = set; then :
13159 enableval=$enable_memsys3;
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
13163 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
13164 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
13165 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13167 $as_echo "yes" >&6; }
13168 else
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170 $as_echo "no" >&6; }
13173 #########
13174 # See whether we should enable Full Text Search extensions
13175 # Check whether --enable-fts3 was given.
13176 if test "${enable_fts3+set}" = set; then :
13177 enableval=$enable_fts3;
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
13181 $as_echo_n "checking whether to support FTS3... " >&6; }
13182 if test "${enable_fts3}" = "yes" ; then
13183 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13190 # Check whether --enable-fts4 was given.
13191 if test "${enable_fts4+set}" = set; then :
13192 enableval=$enable_fts4;
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
13196 $as_echo_n "checking whether to support FTS4... " >&6; }
13197 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13199 $as_echo "yes" >&6; }
13200 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13202 $as_echo_n "checking for library containing log... " >&6; }
13203 if ${ac_cv_search_log+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 ac_func_search_save_LIBS=$LIBS
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13213 #ifdef __cplusplus
13214 extern "C"
13215 #endif
13216 char log ();
13218 main ()
13220 return log ();
13222 return 0;
13224 _ACEOF
13225 for ac_lib in '' m; do
13226 if test -z "$ac_lib"; then
13227 ac_res="none required"
13228 else
13229 ac_res=-l$ac_lib
13230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_search_log=$ac_res
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext
13237 if ${ac_cv_search_log+:} false; then :
13238 break
13240 done
13241 if ${ac_cv_search_log+:} false; then :
13243 else
13244 ac_cv_search_log=no
13246 rm conftest.$ac_ext
13247 LIBS=$ac_func_search_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13250 $as_echo "$ac_cv_search_log" >&6; }
13251 ac_res=$ac_cv_search_log
13252 if test "$ac_res" != no; then :
13253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13261 # Check whether --enable-fts5 was given.
13262 if test "${enable_fts5+set}" = set; then :
13263 enableval=$enable_fts5;
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
13267 $as_echo_n "checking whether to support FTS5... " >&6; }
13268 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13270 $as_echo "yes" >&6; }
13271 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13273 $as_echo_n "checking for library containing log... " >&6; }
13274 if ${ac_cv_search_log+:} false; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277 ac_func_search_save_LIBS=$LIBS
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char log ();
13289 main ()
13291 return log ();
13293 return 0;
13295 _ACEOF
13296 for ac_lib in '' m; do
13297 if test -z "$ac_lib"; then
13298 ac_res="none required"
13299 else
13300 ac_res=-l$ac_lib
13301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_search_log=$ac_res
13306 rm -f core conftest.err conftest.$ac_objext \
13307 conftest$ac_exeext
13308 if ${ac_cv_search_log+:} false; then :
13309 break
13311 done
13312 if ${ac_cv_search_log+:} false; then :
13314 else
13315 ac_cv_search_log=no
13317 rm conftest.$ac_ext
13318 LIBS=$ac_func_search_save_LIBS
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13321 $as_echo "$ac_cv_search_log" >&6; }
13322 ac_res=$ac_cv_search_log
13323 if test "$ac_res" != no; then :
13324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13328 else
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330 $as_echo "no" >&6; }
13333 #########
13334 # See whether we should enable JSON1
13335 # Check whether --enable-json1 was given.
13336 if test "${enable_json1+set}" = set; then :
13337 enableval=$enable_json1;
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON" >&5
13341 $as_echo_n "checking whether to support JSON... " >&6; }
13342 if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
13343 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345 $as_echo "yes" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13351 #########
13352 # See whether we should enable the LIMIT clause on UPDATE and DELETE
13353 # statements.
13354 # Check whether --enable-update-limit was given.
13355 if test "${enable_update_limit+set}" = set; then :
13356 enableval=$enable_update_limit;
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
13360 $as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
13361 if test "${enable_update_limit}" = "yes" ; then
13362 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13364 $as_echo "yes" >&6; }
13365 else
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367 $as_echo "no" >&6; }
13370 #########
13371 # See whether we should enable GEOPOLY
13372 # Check whether --enable-geopoly was given.
13373 if test "${enable_geopoly+set}" = set; then :
13374 enableval=$enable_geopoly; enable_geopoly=yes
13375 else
13376 enable_geopoly=no
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
13380 $as_echo_n "checking whether to support GEOPOLY... " >&6; }
13381 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
13382 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
13383 enable_rtree=yes
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13385 $as_echo "yes" >&6; }
13386 else
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13388 $as_echo "no" >&6; }
13391 #########
13392 # See whether we should enable RTREE
13393 # Check whether --enable-rtree was given.
13394 if test "${enable_rtree+set}" = set; then :
13395 enableval=$enable_rtree;
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
13399 $as_echo_n "checking whether to support RTREE... " >&6; }
13400 if test "${enable_rtree}" = "yes" ; then
13401 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13403 $as_echo "yes" >&6; }
13404 else
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406 $as_echo "no" >&6; }
13409 #########
13410 # See whether we should enable the SESSION extension
13411 # Check whether --enable-session was given.
13412 if test "${enable_session+set}" = set; then :
13413 enableval=$enable_session;
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
13417 $as_echo_n "checking whether to support SESSION... " >&6; }
13418 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
13419 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
13420 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13422 $as_echo "yes" >&6; }
13423 else
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13428 #########
13429 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
13430 for option in $CFLAGS $CPPFLAGS
13432 case $option in
13433 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13434 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13435 esac
13436 done
13440 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13441 ac_temp_CFLAGS=""
13442 for option in $CFLAGS
13444 case $option in
13445 -DSQLITE_OMIT*) ;;
13446 -DSQLITE_ENABLE*) ;;
13447 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13448 esac
13449 done
13450 CFLAGS=$ac_temp_CFLAGS
13453 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13454 ac_temp_CPPFLAGS=""
13455 for option in $CPPFLAGS
13457 case $option in
13458 -DSQLITE_OMIT*) ;;
13459 -DSQLITE_ENABLE*) ;;
13460 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13461 esac
13462 done
13463 CPPFLAGS=$ac_temp_CPPFLAGS
13466 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13467 ac_temp_BUILD_CFLAGS=""
13468 for option in $BUILD_CFLAGS
13470 case $option in
13471 -DSQLITE_OMIT*) ;;
13472 -DSQLITE_ENABLE*) ;;
13473 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13474 esac
13475 done
13476 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13479 #########
13480 # See whether we should use GCOV
13481 # Check whether --enable-gcov was given.
13482 if test "${enable_gcov+set}" = set; then :
13483 enableval=$enable_gcov;
13486 if test "${use_gcov}" = "yes" ; then
13487 USE_GCOV=1
13488 else
13489 USE_GCOV=0
13493 #########
13494 # Enable/disabled amalagamation line macros
13495 ########
13496 AMALGAMATION_LINE_MACROS=--linemacros=0
13497 if test "${amalgamation_line_macros}" = "yes" ; then
13498 AMALGAMATION_LINE_MACROS=--linemacros=1
13500 if test "${amalgamation_line_macros}" = "no" ; then
13501 AMALGAMATION_LINE_MACROS=--linemacros=0
13505 #########
13506 # Output the config header
13507 ac_config_headers="$ac_config_headers config.h"
13510 #########
13511 # Generate the output files.
13514 ac_config_files="$ac_config_files Makefile sqlcipher.pc"
13516 cat >confcache <<\_ACEOF
13517 # This file is a shell script that caches the results of configure
13518 # tests run on this system so they can be shared between configure
13519 # scripts and configure runs, see configure's option --config-cache.
13520 # It is not useful on other systems. If it contains results you don't
13521 # want to keep, you may remove or edit it.
13523 # config.status only pays attention to the cache file if you give it
13524 # the --recheck option to rerun configure.
13526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13528 # following values.
13530 _ACEOF
13532 # The following way of writing the cache mishandles newlines in values,
13533 # but we know of no workaround that is simple, portable, and efficient.
13534 # So, we kill variables containing newlines.
13535 # Ultrix sh set writes to stderr and can't be redirected directly,
13536 # and sets the high bit in the cache file unless we assign to the vars.
13538 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13539 eval ac_val=\$$ac_var
13540 case $ac_val in #(
13541 *${as_nl}*)
13542 case $ac_var in #(
13543 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13545 esac
13546 case $ac_var in #(
13547 _ | IFS | as_nl) ;; #(
13548 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13549 *) { eval $ac_var=; unset $ac_var;} ;;
13550 esac ;;
13551 esac
13552 done
13554 (set) 2>&1 |
13555 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13556 *${as_nl}ac_space=\ *)
13557 # `set' does not quote correctly, so add quotes: double-quote
13558 # substitution turns \\\\ into \\, and sed turns \\ into \.
13559 sed -n \
13560 "s/'/'\\\\''/g;
13561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13562 ;; #(
13564 # `set' quotes correctly as required by POSIX, so do not add quotes.
13565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13567 esac |
13568 sort
13570 sed '
13571 /^ac_cv_env_/b end
13572 t clear
13573 :clear
13574 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13575 t end
13576 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13577 :end' >>confcache
13578 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13579 if test -w "$cache_file"; then
13580 if test "x$cache_file" != "x/dev/null"; then
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13582 $as_echo "$as_me: updating cache $cache_file" >&6;}
13583 if test ! -f "$cache_file" || test -h "$cache_file"; then
13584 cat confcache >"$cache_file"
13585 else
13586 case $cache_file in #(
13587 */* | ?:*)
13588 mv -f confcache "$cache_file"$$ &&
13589 mv -f "$cache_file"$$ "$cache_file" ;; #(
13591 mv -f confcache "$cache_file" ;;
13592 esac
13595 else
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13597 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13600 rm -f confcache
13602 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13603 # Let make expand exec_prefix.
13604 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13606 DEFS=-DHAVE_CONFIG_H
13608 ac_libobjs=
13609 ac_ltlibobjs=
13611 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13612 # 1. Remove the extension, and $U if already installed.
13613 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13614 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13615 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13616 # will be set to the directory where LIBOBJS objects are built.
13617 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13618 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13619 done
13620 LIBOBJS=$ac_libobjs
13622 LTLIBOBJS=$ac_ltlibobjs
13626 : "${CONFIG_STATUS=./config.status}"
13627 ac_write_fail=0
13628 ac_clean_files_save=$ac_clean_files
13629 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13632 as_write_fail=0
13633 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13634 #! $SHELL
13635 # Generated by $as_me.
13636 # Run this file to recreate the current configuration.
13637 # Compiler output produced by configure, useful for debugging
13638 # configure, is in config.log if it exists.
13640 debug=false
13641 ac_cs_recheck=false
13642 ac_cs_silent=false
13644 SHELL=\${CONFIG_SHELL-$SHELL}
13645 export SHELL
13646 _ASEOF
13647 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13648 ## -------------------- ##
13649 ## M4sh Initialization. ##
13650 ## -------------------- ##
13652 # Be more Bourne compatible
13653 DUALCASE=1; export DUALCASE # for MKS sh
13654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13655 emulate sh
13656 NULLCMD=:
13657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13658 # is contrary to our usage. Disable this feature.
13659 alias -g '${1+"$@"}'='"$@"'
13660 setopt NO_GLOB_SUBST
13661 else
13662 case `(set -o) 2>/dev/null` in #(
13663 *posix*) :
13664 set -o posix ;; #(
13665 *) :
13667 esac
13671 as_nl='
13673 export as_nl
13674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13675 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13678 # Prefer a ksh shell builtin over an external printf program on Solaris,
13679 # but without wasting forks for bash or zsh.
13680 if test -z "$BASH_VERSION$ZSH_VERSION" \
13681 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13682 as_echo='print -r --'
13683 as_echo_n='print -rn --'
13684 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13685 as_echo='printf %s\n'
13686 as_echo_n='printf %s'
13687 else
13688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13689 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13690 as_echo_n='/usr/ucb/echo -n'
13691 else
13692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13693 as_echo_n_body='eval
13694 arg=$1;
13695 case $arg in #(
13696 *"$as_nl"*)
13697 expr "X$arg" : "X\\(.*\\)$as_nl";
13698 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13699 esac;
13700 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13702 export as_echo_n_body
13703 as_echo_n='sh -c $as_echo_n_body as_echo'
13705 export as_echo_body
13706 as_echo='sh -c $as_echo_body as_echo'
13709 # The user is always right.
13710 if test "${PATH_SEPARATOR+set}" != set; then
13711 PATH_SEPARATOR=:
13712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13714 PATH_SEPARATOR=';'
13719 # IFS
13720 # We need space, tab and new line, in precisely that order. Quoting is
13721 # there to prevent editors from complaining about space-tab.
13722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13723 # splitting by setting IFS to empty value.)
13724 IFS=" "" $as_nl"
13726 # Find who we are. Look in the path if we contain no directory separator.
13727 as_myself=
13728 case $0 in #((
13729 *[\\/]* ) as_myself=$0 ;;
13730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731 for as_dir in $PATH
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
13735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13736 done
13737 IFS=$as_save_IFS
13740 esac
13741 # We did not find ourselves, most probably we were run as `sh COMMAND'
13742 # in which case we are not to be found in the path.
13743 if test "x$as_myself" = x; then
13744 as_myself=$0
13746 if test ! -f "$as_myself"; then
13747 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13748 exit 1
13751 # Unset variables that we do not need and which cause bugs (e.g. in
13752 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13753 # suppresses any "Segmentation fault" message there. '((' could
13754 # trigger a bug in pdksh 5.2.14.
13755 for as_var in BASH_ENV ENV MAIL MAILPATH
13756 do eval test x\${$as_var+set} = xset \
13757 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13758 done
13759 PS1='$ '
13760 PS2='> '
13761 PS4='+ '
13763 # NLS nuisances.
13764 LC_ALL=C
13765 export LC_ALL
13766 LANGUAGE=C
13767 export LANGUAGE
13769 # CDPATH.
13770 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13773 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13774 # ----------------------------------------
13775 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13776 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13777 # script with STATUS, using 1 if that was 0.
13778 as_fn_error ()
13780 as_status=$1; test $as_status -eq 0 && as_status=1
13781 if test "$4"; then
13782 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13783 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13785 $as_echo "$as_me: error: $2" >&2
13786 as_fn_exit $as_status
13787 } # as_fn_error
13790 # as_fn_set_status STATUS
13791 # -----------------------
13792 # Set $? to STATUS, without forking.
13793 as_fn_set_status ()
13795 return $1
13796 } # as_fn_set_status
13798 # as_fn_exit STATUS
13799 # -----------------
13800 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13801 as_fn_exit ()
13803 set +e
13804 as_fn_set_status $1
13805 exit $1
13806 } # as_fn_exit
13808 # as_fn_unset VAR
13809 # ---------------
13810 # Portably unset VAR.
13811 as_fn_unset ()
13813 { eval $1=; unset $1;}
13815 as_unset=as_fn_unset
13816 # as_fn_append VAR VALUE
13817 # ----------------------
13818 # Append the text in VALUE to the end of the definition contained in VAR. Take
13819 # advantage of any shell optimizations that allow amortized linear growth over
13820 # repeated appends, instead of the typical quadratic growth present in naive
13821 # implementations.
13822 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13823 eval 'as_fn_append ()
13825 eval $1+=\$2
13827 else
13828 as_fn_append ()
13830 eval $1=\$$1\$2
13832 fi # as_fn_append
13834 # as_fn_arith ARG...
13835 # ------------------
13836 # Perform arithmetic evaluation on the ARGs, and store the result in the
13837 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13838 # must be portable across $(()) and expr.
13839 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13840 eval 'as_fn_arith ()
13842 as_val=$(( $* ))
13844 else
13845 as_fn_arith ()
13847 as_val=`expr "$@" || test $? -eq 1`
13849 fi # as_fn_arith
13852 if expr a : '\(a\)' >/dev/null 2>&1 &&
13853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13854 as_expr=expr
13855 else
13856 as_expr=false
13859 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13860 as_basename=basename
13861 else
13862 as_basename=false
13865 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13866 as_dirname=dirname
13867 else
13868 as_dirname=false
13871 as_me=`$as_basename -- "$0" ||
13872 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13873 X"$0" : 'X\(//\)$' \| \
13874 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13875 $as_echo X/"$0" |
13876 sed '/^.*\/\([^/][^/]*\)\/*$/{
13877 s//\1/
13880 /^X\/\(\/\/\)$/{
13881 s//\1/
13884 /^X\/\(\/\).*/{
13885 s//\1/
13888 s/.*/./; q'`
13890 # Avoid depending upon Character Ranges.
13891 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13892 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13893 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13894 as_cr_digits='0123456789'
13895 as_cr_alnum=$as_cr_Letters$as_cr_digits
13897 ECHO_C= ECHO_N= ECHO_T=
13898 case `echo -n x` in #(((((
13899 -n*)
13900 case `echo 'xy\c'` in
13901 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13902 xy) ECHO_C='\c';;
13903 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13904 ECHO_T=' ';;
13905 esac;;
13907 ECHO_N='-n';;
13908 esac
13910 rm -f conf$$ conf$$.exe conf$$.file
13911 if test -d conf$$.dir; then
13912 rm -f conf$$.dir/conf$$.file
13913 else
13914 rm -f conf$$.dir
13915 mkdir conf$$.dir 2>/dev/null
13917 if (echo >conf$$.file) 2>/dev/null; then
13918 if ln -s conf$$.file conf$$ 2>/dev/null; then
13919 as_ln_s='ln -s'
13920 # ... but there are two gotchas:
13921 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13922 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13923 # In both cases, we have to default to `cp -pR'.
13924 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13925 as_ln_s='cp -pR'
13926 elif ln conf$$.file conf$$ 2>/dev/null; then
13927 as_ln_s=ln
13928 else
13929 as_ln_s='cp -pR'
13931 else
13932 as_ln_s='cp -pR'
13934 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13935 rmdir conf$$.dir 2>/dev/null
13938 # as_fn_mkdir_p
13939 # -------------
13940 # Create "$as_dir" as a directory, including parents if necessary.
13941 as_fn_mkdir_p ()
13944 case $as_dir in #(
13945 -*) as_dir=./$as_dir;;
13946 esac
13947 test -d "$as_dir" || eval $as_mkdir_p || {
13948 as_dirs=
13949 while :; do
13950 case $as_dir in #(
13951 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13952 *) as_qdir=$as_dir;;
13953 esac
13954 as_dirs="'$as_qdir' $as_dirs"
13955 as_dir=`$as_dirname -- "$as_dir" ||
13956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13957 X"$as_dir" : 'X\(//\)[^/]' \| \
13958 X"$as_dir" : 'X\(//\)$' \| \
13959 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13960 $as_echo X"$as_dir" |
13961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13962 s//\1/
13965 /^X\(\/\/\)[^/].*/{
13966 s//\1/
13969 /^X\(\/\/\)$/{
13970 s//\1/
13973 /^X\(\/\).*/{
13974 s//\1/
13977 s/.*/./; q'`
13978 test -d "$as_dir" && break
13979 done
13980 test -z "$as_dirs" || eval "mkdir $as_dirs"
13981 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13984 } # as_fn_mkdir_p
13985 if mkdir -p . 2>/dev/null; then
13986 as_mkdir_p='mkdir -p "$as_dir"'
13987 else
13988 test -d ./-p && rmdir ./-p
13989 as_mkdir_p=false
13993 # as_fn_executable_p FILE
13994 # -----------------------
13995 # Test if FILE is an executable regular file.
13996 as_fn_executable_p ()
13998 test -f "$1" && test -x "$1"
13999 } # as_fn_executable_p
14000 as_test_x='test -x'
14001 as_executable_p=as_fn_executable_p
14003 # Sed expression to map a string onto a valid CPP name.
14004 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14006 # Sed expression to map a string onto a valid variable name.
14007 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14010 exec 6>&1
14011 ## ----------------------------------- ##
14012 ## Main body of $CONFIG_STATUS script. ##
14013 ## ----------------------------------- ##
14014 _ASEOF
14015 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14018 # Save the log message, to keep $0 and so on meaningful, and to
14019 # report actual input values of CONFIG_FILES etc. instead of their
14020 # values after options handling.
14021 ac_log="
14022 This file was extended by sqlcipher $as_me 3.37.2, which was
14023 generated by GNU Autoconf 2.69. Invocation command line was
14025 CONFIG_FILES = $CONFIG_FILES
14026 CONFIG_HEADERS = $CONFIG_HEADERS
14027 CONFIG_LINKS = $CONFIG_LINKS
14028 CONFIG_COMMANDS = $CONFIG_COMMANDS
14029 $ $0 $@
14031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14034 _ACEOF
14036 case $ac_config_files in *"
14037 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14038 esac
14040 case $ac_config_headers in *"
14041 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14042 esac
14045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14046 # Files that config.status was made for.
14047 config_files="$ac_config_files"
14048 config_headers="$ac_config_headers"
14049 config_commands="$ac_config_commands"
14051 _ACEOF
14053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14054 ac_cs_usage="\
14055 \`$as_me' instantiates files and other configuration actions
14056 from templates according to the current configuration. Unless the files
14057 and actions are specified as TAGs, all are instantiated by default.
14059 Usage: $0 [OPTION]... [TAG]...
14061 -h, --help print this help, then exit
14062 -V, --version print version number and configuration settings, then exit
14063 --config print configuration, then exit
14064 -q, --quiet, --silent
14065 do not print progress messages
14066 -d, --debug don't remove temporary files
14067 --recheck update $as_me by reconfiguring in the same conditions
14068 --file=FILE[:TEMPLATE]
14069 instantiate the configuration file FILE
14070 --header=FILE[:TEMPLATE]
14071 instantiate the configuration header FILE
14073 Configuration files:
14074 $config_files
14076 Configuration headers:
14077 $config_headers
14079 Configuration commands:
14080 $config_commands
14082 Report bugs to the package provider."
14084 _ACEOF
14085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14086 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14087 ac_cs_version="\\
14088 sqlcipher config.status 3.37.2
14089 configured by $0, generated by GNU Autoconf 2.69,
14090 with options \\"\$ac_cs_config\\"
14092 Copyright (C) 2012 Free Software Foundation, Inc.
14093 This config.status script is free software; the Free Software Foundation
14094 gives unlimited permission to copy, distribute and modify it."
14096 ac_pwd='$ac_pwd'
14097 srcdir='$srcdir'
14098 INSTALL='$INSTALL'
14099 AWK='$AWK'
14100 test -n "\$AWK" || AWK=awk
14101 _ACEOF
14103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14104 # The default lists apply if the user does not specify any file.
14105 ac_need_defaults=:
14106 while test $# != 0
14108 case $1 in
14109 --*=?*)
14110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14112 ac_shift=:
14114 --*=)
14115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14116 ac_optarg=
14117 ac_shift=:
14120 ac_option=$1
14121 ac_optarg=$2
14122 ac_shift=shift
14124 esac
14126 case $ac_option in
14127 # Handling of the options.
14128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14129 ac_cs_recheck=: ;;
14130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14131 $as_echo "$ac_cs_version"; exit ;;
14132 --config | --confi | --conf | --con | --co | --c )
14133 $as_echo "$ac_cs_config"; exit ;;
14134 --debug | --debu | --deb | --de | --d | -d )
14135 debug=: ;;
14136 --file | --fil | --fi | --f )
14137 $ac_shift
14138 case $ac_optarg in
14139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14140 '') as_fn_error $? "missing file argument" ;;
14141 esac
14142 as_fn_append CONFIG_FILES " '$ac_optarg'"
14143 ac_need_defaults=false;;
14144 --header | --heade | --head | --hea )
14145 $ac_shift
14146 case $ac_optarg in
14147 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14148 esac
14149 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14150 ac_need_defaults=false;;
14151 --he | --h)
14152 # Conflict between --help and --header
14153 as_fn_error $? "ambiguous option: \`$1'
14154 Try \`$0 --help' for more information.";;
14155 --help | --hel | -h )
14156 $as_echo "$ac_cs_usage"; exit ;;
14157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14158 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14159 ac_cs_silent=: ;;
14161 # This is an error.
14162 -*) as_fn_error $? "unrecognized option: \`$1'
14163 Try \`$0 --help' for more information." ;;
14165 *) as_fn_append ac_config_targets " $1"
14166 ac_need_defaults=false ;;
14168 esac
14169 shift
14170 done
14172 ac_configure_extra_args=
14174 if $ac_cs_silent; then
14175 exec 6>/dev/null
14176 ac_configure_extra_args="$ac_configure_extra_args --silent"
14179 _ACEOF
14180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14181 if \$ac_cs_recheck; then
14182 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14183 shift
14184 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14185 CONFIG_SHELL='$SHELL'
14186 export CONFIG_SHELL
14187 exec "\$@"
14190 _ACEOF
14191 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192 exec 5>>config.log
14194 echo
14195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14196 ## Running $as_me. ##
14197 _ASBOX
14198 $as_echo "$ac_log"
14199 } >&5
14201 _ACEOF
14202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14204 # INIT-COMMANDS
14208 # The HP-UX ksh and POSIX shell print the target directory to stdout
14209 # if CDPATH is set.
14210 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14212 sed_quote_subst='$sed_quote_subst'
14213 double_quote_subst='$double_quote_subst'
14214 delay_variable_subst='$delay_variable_subst'
14215 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14216 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14217 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14218 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14219 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14220 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14221 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14222 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14223 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14224 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14225 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14226 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14227 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14228 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14229 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14230 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14231 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14232 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14233 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14234 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14235 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14236 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14237 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14238 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14239 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14240 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14241 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14242 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14243 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14244 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14245 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14246 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14247 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14248 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14249 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14250 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14251 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14252 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14253 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14254 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14255 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14256 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14257 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14258 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14259 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14260 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14261 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14262 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14263 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14264 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14265 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14266 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14267 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14268 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14269 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14270 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14271 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14272 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14273 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14274 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14275 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14276 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14277 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14278 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14279 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14280 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14281 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14282 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14283 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14284 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14285 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14286 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14287 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14288 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14289 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14290 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14291 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14292 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14293 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14294 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14295 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14296 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14297 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14298 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14299 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14300 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14301 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14302 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14303 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14304 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14305 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14306 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14307 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14308 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14309 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14310 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14311 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14312 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14313 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14314 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14315 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14316 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14317 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14318 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14319 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14320 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14321 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14322 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14323 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14324 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14325 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14326 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14327 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14328 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14329 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14330 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14331 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14332 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14333 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14334 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14335 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14336 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14337 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14338 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14339 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14340 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14341 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14342 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14343 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14344 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14345 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14346 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14347 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14348 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14349 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14351 LTCC='$LTCC'
14352 LTCFLAGS='$LTCFLAGS'
14353 compiler='$compiler_DEFAULT'
14355 # A function that is used when there is no print builtin or printf.
14356 func_fallback_echo ()
14358 eval 'cat <<_LTECHO_EOF
14360 _LTECHO_EOF'
14363 # Quote evaled strings.
14364 for var in SHELL \
14365 ECHO \
14366 PATH_SEPARATOR \
14367 SED \
14368 GREP \
14369 EGREP \
14370 FGREP \
14371 LD \
14372 NM \
14373 LN_S \
14374 lt_SP2NL \
14375 lt_NL2SP \
14376 reload_flag \
14377 OBJDUMP \
14378 deplibs_check_method \
14379 file_magic_cmd \
14380 file_magic_glob \
14381 want_nocaseglob \
14382 DLLTOOL \
14383 sharedlib_from_linklib_cmd \
14384 AR \
14385 AR_FLAGS \
14386 archiver_list_spec \
14387 STRIP \
14388 RANLIB \
14389 CC \
14390 CFLAGS \
14391 compiler \
14392 lt_cv_sys_global_symbol_pipe \
14393 lt_cv_sys_global_symbol_to_cdecl \
14394 lt_cv_sys_global_symbol_to_import \
14395 lt_cv_sys_global_symbol_to_c_name_address \
14396 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14397 lt_cv_nm_interface \
14398 nm_file_list_spec \
14399 lt_cv_truncate_bin \
14400 lt_prog_compiler_no_builtin_flag \
14401 lt_prog_compiler_pic \
14402 lt_prog_compiler_wl \
14403 lt_prog_compiler_static \
14404 lt_cv_prog_compiler_c_o \
14405 need_locks \
14406 MANIFEST_TOOL \
14407 DSYMUTIL \
14408 NMEDIT \
14409 LIPO \
14410 OTOOL \
14411 OTOOL64 \
14412 shrext_cmds \
14413 export_dynamic_flag_spec \
14414 whole_archive_flag_spec \
14415 compiler_needs_object \
14416 with_gnu_ld \
14417 allow_undefined_flag \
14418 no_undefined_flag \
14419 hardcode_libdir_flag_spec \
14420 hardcode_libdir_separator \
14421 exclude_expsyms \
14422 include_expsyms \
14423 file_list_spec \
14424 variables_saved_for_relink \
14425 libname_spec \
14426 library_names_spec \
14427 soname_spec \
14428 install_override_mode \
14429 finish_eval \
14430 old_striplib \
14431 striplib; do
14432 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14433 *[\\\\\\\`\\"\\\$]*)
14434 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14437 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14439 esac
14440 done
14442 # Double-quote double-evaled strings.
14443 for var in reload_cmds \
14444 old_postinstall_cmds \
14445 old_postuninstall_cmds \
14446 old_archive_cmds \
14447 extract_expsyms_cmds \
14448 old_archive_from_new_cmds \
14449 old_archive_from_expsyms_cmds \
14450 archive_cmds \
14451 archive_expsym_cmds \
14452 module_cmds \
14453 module_expsym_cmds \
14454 export_symbols_cmds \
14455 prelink_cmds \
14456 postlink_cmds \
14457 postinstall_cmds \
14458 postuninstall_cmds \
14459 finish_cmds \
14460 sys_lib_search_path_spec \
14461 configure_time_dlsearch_path \
14462 configure_time_lt_sys_library_path; do
14463 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14464 *[\\\\\\\`\\"\\\$]*)
14465 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14468 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14470 esac
14471 done
14473 ac_aux_dir='$ac_aux_dir'
14475 # See if we are running on zsh, and set the options that allow our
14476 # commands through without removal of \ escapes INIT.
14477 if test -n "\${ZSH_VERSION+set}"; then
14478 setopt NO_GLOB_SUBST
14482 PACKAGE='$PACKAGE'
14483 VERSION='$VERSION'
14484 RM='$RM'
14485 ofile='$ofile'
14490 _ACEOF
14492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14494 # Handling of arguments.
14495 for ac_config_target in $ac_config_targets
14497 case $ac_config_target in
14498 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14499 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14500 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14501 "sqlcipher.pc") CONFIG_FILES="$CONFIG_FILES sqlcipher.pc" ;;
14503 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14504 esac
14505 done
14508 # If the user did not use the arguments to specify the items to instantiate,
14509 # then the envvar interface is used. Set only those that are not.
14510 # We use the long form for the default assignment because of an extremely
14511 # bizarre bug on SunOS 4.1.3.
14512 if $ac_need_defaults; then
14513 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14514 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14515 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14518 # Have a temporary directory for convenience. Make it in the build tree
14519 # simply because there is no reason against having it here, and in addition,
14520 # creating and moving files from /tmp can sometimes cause problems.
14521 # Hook for its removal unless debugging.
14522 # Note that there is a small window in which the directory will not be cleaned:
14523 # after its creation but before its name has been assigned to `$tmp'.
14524 $debug ||
14526 tmp= ac_tmp=
14527 trap 'exit_status=$?
14528 : "${ac_tmp:=$tmp}"
14529 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14531 trap 'as_fn_exit 1' 1 2 13 15
14533 # Create a (secure) tmp directory for tmp files.
14536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14537 test -d "$tmp"
14538 } ||
14540 tmp=./conf$$-$RANDOM
14541 (umask 077 && mkdir "$tmp")
14542 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14543 ac_tmp=$tmp
14545 # Set up the scripts for CONFIG_FILES section.
14546 # No need to generate them if there are no CONFIG_FILES.
14547 # This happens for instance with `./config.status config.h'.
14548 if test -n "$CONFIG_FILES"; then
14551 ac_cr=`echo X | tr X '\015'`
14552 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14553 # But we know of no other shell where ac_cr would be empty at this
14554 # point, so we can use a bashism as a fallback.
14555 if test "x$ac_cr" = x; then
14556 eval ac_cr=\$\'\\r\'
14558 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14559 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14560 ac_cs_awk_cr='\\r'
14561 else
14562 ac_cs_awk_cr=$ac_cr
14565 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14566 _ACEOF
14570 echo "cat >conf$$subs.awk <<_ACEOF" &&
14571 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14572 echo "_ACEOF"
14573 } >conf$$subs.sh ||
14574 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14575 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14576 ac_delim='%!_!# '
14577 for ac_last_try in false false false false false :; do
14578 . ./conf$$subs.sh ||
14579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14581 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14582 if test $ac_delim_n = $ac_delim_num; then
14583 break
14584 elif $ac_last_try; then
14585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14586 else
14587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14589 done
14590 rm -f conf$$subs.sh
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14594 _ACEOF
14595 sed -n '
14597 s/^/S["/; s/!.*/"]=/
14600 s/^[^!]*!//
14601 :repl
14602 t repl
14603 s/'"$ac_delim"'$//
14604 t delim
14607 s/\(.\{148\}\)..*/\1/
14608 t more1
14609 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14612 b repl
14613 :more1
14614 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14617 s/.\{148\}//
14618 t nl
14619 :delim
14621 s/\(.\{148\}\)..*/\1/
14622 t more2
14623 s/["\\]/\\&/g; s/^/"/; s/$/"/
14626 :more2
14627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14630 s/.\{148\}//
14631 t delim
14632 ' <conf$$subs.awk | sed '
14633 /^[^""]/{
14635 s/\n//
14637 ' >>$CONFIG_STATUS || ac_write_fail=1
14638 rm -f conf$$subs.awk
14639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14640 _ACAWK
14641 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14642 for (key in S) S_is_set[key] = 1
14643 FS = "\a"
14647 line = $ 0
14648 nfields = split(line, field, "@")
14649 substed = 0
14650 len = length(field[1])
14651 for (i = 2; i < nfields; i++) {
14652 key = field[i]
14653 keylen = length(key)
14654 if (S_is_set[key]) {
14655 value = S[key]
14656 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14657 len += length(value) + length(field[++i])
14658 substed = 1
14659 } else
14660 len += 1 + keylen
14663 print line
14666 _ACAWK
14667 _ACEOF
14668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14669 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14670 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14671 else
14673 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14674 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14675 _ACEOF
14677 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14678 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14679 # trailing colons and then remove the whole line if VPATH becomes empty
14680 # (actually we leave an empty line to preserve line numbers).
14681 if test "x$srcdir" = x.; then
14682 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14684 s///
14685 s/^/:/
14686 s/[ ]*$/:/
14687 s/:\$(srcdir):/:/g
14688 s/:\${srcdir}:/:/g
14689 s/:@srcdir@:/:/g
14690 s/^:*//
14691 s/:*$//
14693 s/\(=[ ]*\).*/\1/
14695 s/\n//
14696 s/^[^=]*=[ ]*$//
14700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14701 fi # test -n "$CONFIG_FILES"
14703 # Set up the scripts for CONFIG_HEADERS section.
14704 # No need to generate them if there are no CONFIG_HEADERS.
14705 # This happens for instance with `./config.status Makefile'.
14706 if test -n "$CONFIG_HEADERS"; then
14707 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14708 BEGIN {
14709 _ACEOF
14711 # Transform confdefs.h into an awk script `defines.awk', embedded as
14712 # here-document in config.status, that substitutes the proper values into
14713 # config.h.in to produce config.h.
14715 # Create a delimiter string that does not exist in confdefs.h, to ease
14716 # handling of long lines.
14717 ac_delim='%!_!# '
14718 for ac_last_try in false false :; do
14719 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14720 if test -z "$ac_tt"; then
14721 break
14722 elif $ac_last_try; then
14723 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14724 else
14725 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14727 done
14729 # For the awk script, D is an array of macro values keyed by name,
14730 # likewise P contains macro parameters if any. Preserve backslash
14731 # newline sequences.
14733 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14734 sed -n '
14735 s/.\{148\}/&'"$ac_delim"'/g
14736 t rset
14737 :rset
14738 s/^[ ]*#[ ]*define[ ][ ]*/ /
14739 t def
14741 :def
14742 s/\\$//
14743 t bsnl
14744 s/["\\]/\\&/g
14745 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14746 D["\1"]=" \3"/p
14747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14749 :bsnl
14750 s/["\\]/\\&/g
14751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14752 D["\1"]=" \3\\\\\\n"\\/p
14753 t cont
14754 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14755 t cont
14757 :cont
14759 s/.\{148\}/&'"$ac_delim"'/g
14760 t clear
14761 :clear
14762 s/\\$//
14763 t bsnlc
14764 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14766 :bsnlc
14767 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14768 b cont
14769 ' <confdefs.h | sed '
14770 s/'"$ac_delim"'/"\\\
14771 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14774 for (key in D) D_is_set[key] = 1
14775 FS = "\a"
14777 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14778 line = \$ 0
14779 split(line, arg, " ")
14780 if (arg[1] == "#") {
14781 defundef = arg[2]
14782 mac1 = arg[3]
14783 } else {
14784 defundef = substr(arg[1], 2)
14785 mac1 = arg[2]
14787 split(mac1, mac2, "(") #)
14788 macro = mac2[1]
14789 prefix = substr(line, 1, index(line, defundef) - 1)
14790 if (D_is_set[macro]) {
14791 # Preserve the white space surrounding the "#".
14792 print prefix "define", macro P[macro] D[macro]
14793 next
14794 } else {
14795 # Replace #undef with comments. This is necessary, for example,
14796 # in the case of _POSIX_SOURCE, which is predefined and required
14797 # on some systems where configure will not decide to define it.
14798 if (defundef == "undef") {
14799 print "/*", prefix defundef, macro, "*/"
14800 next
14804 { print }
14805 _ACAWK
14806 _ACEOF
14807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14808 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14809 fi # test -n "$CONFIG_HEADERS"
14812 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14813 shift
14814 for ac_tag
14816 case $ac_tag in
14817 :[FHLC]) ac_mode=$ac_tag; continue;;
14818 esac
14819 case $ac_mode$ac_tag in
14820 :[FHL]*:*);;
14821 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14822 :[FH]-) ac_tag=-:-;;
14823 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14824 esac
14825 ac_save_IFS=$IFS
14826 IFS=:
14827 set x $ac_tag
14828 IFS=$ac_save_IFS
14829 shift
14830 ac_file=$1
14831 shift
14833 case $ac_mode in
14834 :L) ac_source=$1;;
14835 :[FH])
14836 ac_file_inputs=
14837 for ac_f
14839 case $ac_f in
14840 -) ac_f="$ac_tmp/stdin";;
14841 *) # Look for the file first in the build tree, then in the source tree
14842 # (if the path is not absolute). The absolute path cannot be DOS-style,
14843 # because $ac_f cannot contain `:'.
14844 test -f "$ac_f" ||
14845 case $ac_f in
14846 [\\/$]*) false;;
14847 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14848 esac ||
14849 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14850 esac
14851 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14852 as_fn_append ac_file_inputs " '$ac_f'"
14853 done
14855 # Let's still pretend it is `configure' which instantiates (i.e., don't
14856 # use $as_me), people would be surprised to read:
14857 # /* config.h. Generated by config.status. */
14858 configure_input='Generated from '`
14859 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14860 `' by configure.'
14861 if test x"$ac_file" != x-; then
14862 configure_input="$ac_file. $configure_input"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14864 $as_echo "$as_me: creating $ac_file" >&6;}
14866 # Neutralize special characters interpreted by sed in replacement strings.
14867 case $configure_input in #(
14868 *\&* | *\|* | *\\* )
14869 ac_sed_conf_input=`$as_echo "$configure_input" |
14870 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14871 *) ac_sed_conf_input=$configure_input;;
14872 esac
14874 case $ac_tag in
14875 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14877 esac
14879 esac
14881 ac_dir=`$as_dirname -- "$ac_file" ||
14882 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883 X"$ac_file" : 'X\(//\)[^/]' \| \
14884 X"$ac_file" : 'X\(//\)$' \| \
14885 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14886 $as_echo X"$ac_file" |
14887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14888 s//\1/
14891 /^X\(\/\/\)[^/].*/{
14892 s//\1/
14895 /^X\(\/\/\)$/{
14896 s//\1/
14899 /^X\(\/\).*/{
14900 s//\1/
14903 s/.*/./; q'`
14904 as_dir="$ac_dir"; as_fn_mkdir_p
14905 ac_builddir=.
14907 case "$ac_dir" in
14908 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14910 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14911 # A ".." for each directory in $ac_dir_suffix.
14912 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14913 case $ac_top_builddir_sub in
14914 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14915 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14916 esac ;;
14917 esac
14918 ac_abs_top_builddir=$ac_pwd
14919 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14920 # for backward compatibility:
14921 ac_top_builddir=$ac_top_build_prefix
14923 case $srcdir in
14924 .) # We are building in place.
14925 ac_srcdir=.
14926 ac_top_srcdir=$ac_top_builddir_sub
14927 ac_abs_top_srcdir=$ac_pwd ;;
14928 [\\/]* | ?:[\\/]* ) # Absolute name.
14929 ac_srcdir=$srcdir$ac_dir_suffix;
14930 ac_top_srcdir=$srcdir
14931 ac_abs_top_srcdir=$srcdir ;;
14932 *) # Relative name.
14933 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14934 ac_top_srcdir=$ac_top_build_prefix$srcdir
14935 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14936 esac
14937 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14940 case $ac_mode in
14943 # CONFIG_FILE
14946 case $INSTALL in
14947 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14948 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14949 esac
14950 _ACEOF
14952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14953 # If the template does not know about datarootdir, expand it.
14954 # FIXME: This hack should be removed a few years after 2.60.
14955 ac_datarootdir_hack=; ac_datarootdir_seen=
14956 ac_sed_dataroot='
14957 /datarootdir/ {
14961 /@datadir@/p
14962 /@docdir@/p
14963 /@infodir@/p
14964 /@localedir@/p
14965 /@mandir@/p'
14966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14967 *datarootdir*) ac_datarootdir_seen=yes;;
14968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14971 _ACEOF
14972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973 ac_datarootdir_hack='
14974 s&@datadir@&$datadir&g
14975 s&@docdir@&$docdir&g
14976 s&@infodir@&$infodir&g
14977 s&@localedir@&$localedir&g
14978 s&@mandir@&$mandir&g
14979 s&\\\${datarootdir}&$datarootdir&g' ;;
14980 esac
14981 _ACEOF
14983 # Neutralize VPATH when `$srcdir' = `.'.
14984 # Shell code in configure.ac might set extrasub.
14985 # FIXME: do we really want to maintain this feature?
14986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14987 ac_sed_extra="$ac_vpsub
14988 $extrasub
14989 _ACEOF
14990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14993 s|@configure_input@|$ac_sed_conf_input|;t t
14994 s&@top_builddir@&$ac_top_builddir_sub&;t t
14995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14996 s&@srcdir@&$ac_srcdir&;t t
14997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14998 s&@top_srcdir@&$ac_top_srcdir&;t t
14999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15000 s&@builddir@&$ac_builddir&;t t
15001 s&@abs_builddir@&$ac_abs_builddir&;t t
15002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15003 s&@INSTALL@&$ac_INSTALL&;t t
15004 $ac_datarootdir_hack
15006 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15007 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15009 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15010 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15011 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15012 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15014 which seems to be undefined. Please make sure it is defined" >&5
15015 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15016 which seems to be undefined. Please make sure it is defined" >&2;}
15018 rm -f "$ac_tmp/stdin"
15019 case $ac_file in
15020 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15021 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15022 esac \
15023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15027 # CONFIG_HEADER
15029 if test x"$ac_file" != x-; then
15031 $as_echo "/* $configure_input */" \
15032 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15033 } >"$ac_tmp/config.h" \
15034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15035 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15037 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15038 else
15039 rm -f "$ac_file"
15040 mv "$ac_tmp/config.h" "$ac_file" \
15041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15043 else
15044 $as_echo "/* $configure_input */" \
15045 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15046 || as_fn_error $? "could not create -" "$LINENO" 5
15050 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15051 $as_echo "$as_me: executing $ac_file commands" >&6;}
15053 esac
15056 case $ac_file$ac_mode in
15057 "libtool":C)
15059 # See if we are running on zsh, and set the options that allow our
15060 # commands through without removal of \ escapes.
15061 if test -n "${ZSH_VERSION+set}"; then
15062 setopt NO_GLOB_SUBST
15065 cfgfile=${ofile}T
15066 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15067 $RM "$cfgfile"
15069 cat <<_LT_EOF >> "$cfgfile"
15070 #! $SHELL
15071 # Generated automatically by $as_me ($PACKAGE) $VERSION
15072 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15074 # Provide generalized library-building support services.
15075 # Written by Gordon Matzigkeit, 1996
15077 # Copyright (C) 2014 Free Software Foundation, Inc.
15078 # This is free software; see the source for copying conditions. There is NO
15079 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15081 # GNU Libtool is free software; you can redistribute it and/or modify
15082 # it under the terms of the GNU General Public License as published by
15083 # the Free Software Foundation; either version 2 of of the License, or
15084 # (at your option) any later version.
15086 # As a special exception to the GNU General Public License, if you
15087 # distribute this file as part of a program or library that is built
15088 # using GNU Libtool, you may include this file under the same
15089 # distribution terms that you use for the rest of that program.
15091 # GNU Libtool is distributed in the hope that it will be useful, but
15092 # WITHOUT ANY WARRANTY; without even the implied warranty of
15093 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15094 # GNU General Public License for more details.
15096 # You should have received a copy of the GNU General Public License
15097 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15100 # The names of the tagged configurations supported by this script.
15101 available_tags=''
15103 # Configured defaults for sys_lib_dlsearch_path munging.
15104 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15106 # ### BEGIN LIBTOOL CONFIG
15108 # Which release of libtool.m4 was used?
15109 macro_version=$macro_version
15110 macro_revision=$macro_revision
15112 # Whether or not to build shared libraries.
15113 build_libtool_libs=$enable_shared
15115 # Whether or not to build static libraries.
15116 build_old_libs=$enable_static
15118 # What type of objects to build.
15119 pic_mode=$pic_mode
15121 # Whether or not to optimize for fast installation.
15122 fast_install=$enable_fast_install
15124 # Shared archive member basename,for filename based shared library versioning on AIX.
15125 shared_archive_member_spec=$shared_archive_member_spec
15127 # Shell to use when invoking shell scripts.
15128 SHELL=$lt_SHELL
15130 # An echo program that protects backslashes.
15131 ECHO=$lt_ECHO
15133 # The PATH separator for the build system.
15134 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15136 # The host system.
15137 host_alias=$host_alias
15138 host=$host
15139 host_os=$host_os
15141 # The build system.
15142 build_alias=$build_alias
15143 build=$build
15144 build_os=$build_os
15146 # A sed program that does not truncate output.
15147 SED=$lt_SED
15149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15150 Xsed="\$SED -e 1s/^X//"
15152 # A grep program that handles long lines.
15153 GREP=$lt_GREP
15155 # An ERE matcher.
15156 EGREP=$lt_EGREP
15158 # A literal string matcher.
15159 FGREP=$lt_FGREP
15161 # A BSD- or MS-compatible name lister.
15162 NM=$lt_NM
15164 # Whether we need soft or hard links.
15165 LN_S=$lt_LN_S
15167 # What is the maximum length of a command?
15168 max_cmd_len=$max_cmd_len
15170 # Object file suffix (normally "o").
15171 objext=$ac_objext
15173 # Executable file suffix (normally "").
15174 exeext=$exeext
15176 # whether the shell understands "unset".
15177 lt_unset=$lt_unset
15179 # turn spaces into newlines.
15180 SP2NL=$lt_lt_SP2NL
15182 # turn newlines into spaces.
15183 NL2SP=$lt_lt_NL2SP
15185 # convert \$build file names to \$host format.
15186 to_host_file_cmd=$lt_cv_to_host_file_cmd
15188 # convert \$build files to toolchain format.
15189 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15191 # An object symbol dumper.
15192 OBJDUMP=$lt_OBJDUMP
15194 # Method to check whether dependent libraries are shared objects.
15195 deplibs_check_method=$lt_deplibs_check_method
15197 # Command to use when deplibs_check_method = "file_magic".
15198 file_magic_cmd=$lt_file_magic_cmd
15200 # How to find potential files when deplibs_check_method = "file_magic".
15201 file_magic_glob=$lt_file_magic_glob
15203 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15204 want_nocaseglob=$lt_want_nocaseglob
15206 # DLL creation program.
15207 DLLTOOL=$lt_DLLTOOL
15209 # Command to associate shared and link libraries.
15210 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15212 # The archiver.
15213 AR=$lt_AR
15215 # Flags to create an archive.
15216 AR_FLAGS=$lt_AR_FLAGS
15218 # How to feed a file listing to the archiver.
15219 archiver_list_spec=$lt_archiver_list_spec
15221 # A symbol stripping program.
15222 STRIP=$lt_STRIP
15224 # Commands used to install an old-style archive.
15225 RANLIB=$lt_RANLIB
15226 old_postinstall_cmds=$lt_old_postinstall_cmds
15227 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15229 # Whether to use a lock for old archive extraction.
15230 lock_old_archive_extraction=$lock_old_archive_extraction
15232 # A C compiler.
15233 LTCC=$lt_CC
15235 # LTCC compiler flags.
15236 LTCFLAGS=$lt_CFLAGS
15238 # Take the output of nm and produce a listing of raw symbols and C names.
15239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15241 # Transform the output of nm in a proper C declaration.
15242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15244 # Transform the output of nm into a list of symbols to manually relocate.
15245 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15247 # Transform the output of nm in a C name address pair.
15248 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15250 # Transform the output of nm in a C name address pair when lib prefix is needed.
15251 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15253 # The name lister interface.
15254 nm_interface=$lt_lt_cv_nm_interface
15256 # Specify filename containing input files for \$NM.
15257 nm_file_list_spec=$lt_nm_file_list_spec
15259 # The root where to search for dependent libraries,and where our libraries should be installed.
15260 lt_sysroot=$lt_sysroot
15262 # Command to truncate a binary pipe.
15263 lt_truncate_bin=$lt_lt_cv_truncate_bin
15265 # The name of the directory that contains temporary libtool files.
15266 objdir=$objdir
15268 # Used to examine libraries when file_magic_cmd begins with "file".
15269 MAGIC_CMD=$MAGIC_CMD
15271 # Must we lock files when doing compilation?
15272 need_locks=$lt_need_locks
15274 # Manifest tool.
15275 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15277 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15278 DSYMUTIL=$lt_DSYMUTIL
15280 # Tool to change global to local symbols on Mac OS X.
15281 NMEDIT=$lt_NMEDIT
15283 # Tool to manipulate fat objects and archives on Mac OS X.
15284 LIPO=$lt_LIPO
15286 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15287 OTOOL=$lt_OTOOL
15289 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15290 OTOOL64=$lt_OTOOL64
15292 # Old archive suffix (normally "a").
15293 libext=$libext
15295 # Shared library suffix (normally ".so").
15296 shrext_cmds=$lt_shrext_cmds
15298 # The commands to extract the exported symbol list from a shared archive.
15299 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15301 # Variables whose values should be saved in libtool wrapper scripts and
15302 # restored at link time.
15303 variables_saved_for_relink=$lt_variables_saved_for_relink
15305 # Do we need the "lib" prefix for modules?
15306 need_lib_prefix=$need_lib_prefix
15308 # Do we need a version for libraries?
15309 need_version=$need_version
15311 # Library versioning type.
15312 version_type=$version_type
15314 # Shared library runtime path variable.
15315 runpath_var=$runpath_var
15317 # Shared library path variable.
15318 shlibpath_var=$shlibpath_var
15320 # Is shlibpath searched before the hard-coded library search path?
15321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15323 # Format of library name prefix.
15324 libname_spec=$lt_libname_spec
15326 # List of archive names. First name is the real one, the rest are links.
15327 # The last name is the one that the linker finds with -lNAME
15328 library_names_spec=$lt_library_names_spec
15330 # The coded name of the library, if different from the real name.
15331 soname_spec=$lt_soname_spec
15333 # Permission mode override for installation of shared libraries.
15334 install_override_mode=$lt_install_override_mode
15336 # Command to use after installation of a shared archive.
15337 postinstall_cmds=$lt_postinstall_cmds
15339 # Command to use after uninstallation of a shared archive.
15340 postuninstall_cmds=$lt_postuninstall_cmds
15342 # Commands used to finish a libtool library installation in a directory.
15343 finish_cmds=$lt_finish_cmds
15345 # As "finish_cmds", except a single script fragment to be evaled but
15346 # not shown.
15347 finish_eval=$lt_finish_eval
15349 # Whether we should hardcode library paths into libraries.
15350 hardcode_into_libs=$hardcode_into_libs
15352 # Compile-time system search path for libraries.
15353 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15355 # Detected run-time system search path for libraries.
15356 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15358 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15359 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15361 # Whether dlopen is supported.
15362 dlopen_support=$enable_dlopen
15364 # Whether dlopen of programs is supported.
15365 dlopen_self=$enable_dlopen_self
15367 # Whether dlopen of statically linked programs is supported.
15368 dlopen_self_static=$enable_dlopen_self_static
15370 # Commands to strip libraries.
15371 old_striplib=$lt_old_striplib
15372 striplib=$lt_striplib
15375 # The linker used to build libraries.
15376 LD=$lt_LD
15378 # How to create reloadable object files.
15379 reload_flag=$lt_reload_flag
15380 reload_cmds=$lt_reload_cmds
15382 # Commands used to build an old-style archive.
15383 old_archive_cmds=$lt_old_archive_cmds
15385 # A language specific compiler.
15386 CC=$lt_compiler
15388 # Is the compiler the GNU compiler?
15389 with_gcc=$GCC
15391 # Compiler flag to turn off builtin functions.
15392 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15394 # Additional compiler flags for building library objects.
15395 pic_flag=$lt_lt_prog_compiler_pic
15397 # How to pass a linker flag through the compiler.
15398 wl=$lt_lt_prog_compiler_wl
15400 # Compiler flag to prevent dynamic linking.
15401 link_static_flag=$lt_lt_prog_compiler_static
15403 # Does compiler simultaneously support -c and -o options?
15404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15406 # Whether or not to add -lc for building shared libraries.
15407 build_libtool_need_lc=$archive_cmds_need_lc
15409 # Whether or not to disallow shared libs when runtime libs are static.
15410 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15412 # Compiler flag to allow reflexive dlopens.
15413 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15415 # Compiler flag to generate shared objects directly from archives.
15416 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15418 # Whether the compiler copes with passing no objects directly.
15419 compiler_needs_object=$lt_compiler_needs_object
15421 # Create an old-style archive from a shared archive.
15422 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15424 # Create a temporary old-style archive to link instead of a shared archive.
15425 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15427 # Commands used to build a shared archive.
15428 archive_cmds=$lt_archive_cmds
15429 archive_expsym_cmds=$lt_archive_expsym_cmds
15431 # Commands used to build a loadable module if different from building
15432 # a shared archive.
15433 module_cmds=$lt_module_cmds
15434 module_expsym_cmds=$lt_module_expsym_cmds
15436 # Whether we are building with GNU ld or not.
15437 with_gnu_ld=$lt_with_gnu_ld
15439 # Flag that allows shared libraries with undefined symbols to be built.
15440 allow_undefined_flag=$lt_allow_undefined_flag
15442 # Flag that enforces no undefined symbols.
15443 no_undefined_flag=$lt_no_undefined_flag
15445 # Flag to hardcode \$libdir into a binary during linking.
15446 # This must work even if \$libdir does not exist
15447 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15449 # Whether we need a single "-rpath" flag with a separated argument.
15450 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15452 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15453 # DIR into the resulting binary.
15454 hardcode_direct=$hardcode_direct
15456 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15457 # DIR into the resulting binary and the resulting library dependency is
15458 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15459 # library is relocated.
15460 hardcode_direct_absolute=$hardcode_direct_absolute
15462 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15463 # into the resulting binary.
15464 hardcode_minus_L=$hardcode_minus_L
15466 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15467 # into the resulting binary.
15468 hardcode_shlibpath_var=$hardcode_shlibpath_var
15470 # Set to "yes" if building a shared library automatically hardcodes DIR
15471 # into the library and all subsequent libraries and executables linked
15472 # against it.
15473 hardcode_automatic=$hardcode_automatic
15475 # Set to yes if linker adds runtime paths of dependent libraries
15476 # to runtime path list.
15477 inherit_rpath=$inherit_rpath
15479 # Whether libtool must link a program against all its dependency libraries.
15480 link_all_deplibs=$link_all_deplibs
15482 # Set to "yes" if exported symbols are required.
15483 always_export_symbols=$always_export_symbols
15485 # The commands to list exported symbols.
15486 export_symbols_cmds=$lt_export_symbols_cmds
15488 # Symbols that should not be listed in the preloaded symbols.
15489 exclude_expsyms=$lt_exclude_expsyms
15491 # Symbols that must always be exported.
15492 include_expsyms=$lt_include_expsyms
15494 # Commands necessary for linking programs (against libraries) with templates.
15495 prelink_cmds=$lt_prelink_cmds
15497 # Commands necessary for finishing linking programs.
15498 postlink_cmds=$lt_postlink_cmds
15500 # Specify filename containing input files.
15501 file_list_spec=$lt_file_list_spec
15503 # How to hardcode a shared library path into an executable.
15504 hardcode_action=$hardcode_action
15506 # ### END LIBTOOL CONFIG
15508 _LT_EOF
15510 cat <<'_LT_EOF' >> "$cfgfile"
15512 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15514 # func_munge_path_list VARIABLE PATH
15515 # -----------------------------------
15516 # VARIABLE is name of variable containing _space_ separated list of
15517 # directories to be munged by the contents of PATH, which is string
15518 # having a format:
15519 # "DIR[:DIR]:"
15520 # string "DIR[ DIR]" will be prepended to VARIABLE
15521 # ":DIR[:DIR]"
15522 # string "DIR[ DIR]" will be appended to VARIABLE
15523 # "DIRP[:DIRP]::[DIRA:]DIRA"
15524 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15525 # "DIRA[ DIRA]" will be appended to VARIABLE
15526 # "DIR[:DIR]"
15527 # VARIABLE will be replaced by "DIR[ DIR]"
15528 func_munge_path_list ()
15530 case x$2 in
15534 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15536 x:*)
15537 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15539 *::*)
15540 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15541 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15544 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15546 esac
15550 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15551 func_cc_basename ()
15553 for cc_temp in $*""; do
15554 case $cc_temp in
15555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15557 \-*) ;;
15558 *) break;;
15559 esac
15560 done
15561 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15565 # ### END FUNCTIONS SHARED WITH CONFIGURE
15567 _LT_EOF
15569 case $host_os in
15570 aix3*)
15571 cat <<\_LT_EOF >> "$cfgfile"
15572 # AIX sometimes has problems with the GCC collect2 program. For some
15573 # reason, if we set the COLLECT_NAMES environment variable, the problems
15574 # vanish in a puff of smoke.
15575 if test set != "${COLLECT_NAMES+set}"; then
15576 COLLECT_NAMES=
15577 export COLLECT_NAMES
15579 _LT_EOF
15581 esac
15584 ltmain=$ac_aux_dir/ltmain.sh
15587 # We use sed instead of cat because bash on DJGPP gets confused if
15588 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15589 # text mode, it properly converts lines to CR/LF. This bash problem
15590 # is reportedly fixed, but why not run on old versions too?
15591 sed '$q' "$ltmain" >> "$cfgfile" \
15592 || (rm -f "$cfgfile"; exit 1)
15594 mv -f "$cfgfile" "$ofile" ||
15595 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15596 chmod +x "$ofile"
15600 esac
15601 done # for ac_tag
15604 as_fn_exit 0
15605 _ACEOF
15606 ac_clean_files=$ac_clean_files_save
15608 test $ac_write_fail = 0 ||
15609 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15612 # configure is writing to config.log, and then calls config.status.
15613 # config.status does its own redirection, appending to config.log.
15614 # Unfortunately, on DOS this fails, as config.log is still kept open
15615 # by configure, so config.status won't be able to write to it; its
15616 # output is simply discarded. So we exec the FD to /dev/null,
15617 # effectively closing config.log, so it can be properly (re)opened and
15618 # appended to by config.status. When coming back to configure, we
15619 # need to make the FD available again.
15620 if test "$no_create" != yes; then
15621 ac_cs_success=:
15622 ac_config_status_args=
15623 test "$silent" = yes &&
15624 ac_config_status_args="$ac_config_status_args --quiet"
15625 exec 5>/dev/null
15626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15627 exec 5>>config.log
15628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15629 # would make configure fail if this is the last instruction.
15630 $ac_cs_success || as_fn_exit 1
15632 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15634 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}