Updates to testrunner.tcl so that it runs fuzztest using multiple jobs.
[sqlite.git] / configure
blob6b0c584a4a62b738a67172ace1f161264d0cefe7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.43.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558 # Check that we are running under the correct shell.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 case X$lt_ECHO in
562 X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 esac
568 ECHO=${lt_ECHO-echo}
569 if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572 elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
575 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
578 else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
583 if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
586 cat <<_LT_EOF
588 _LT_EOF
589 exit 0
592 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 # if CDPATH is set.
594 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
596 if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
606 done
609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
630 done
631 IFS="$lt_save_ifs"
633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 else
649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
679 prev="$cmd"
680 done
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 lt_ECHO=$ECHO
699 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 test -n "$DJDIR" || exec 7<&0 </dev/null
707 exec 6>&1
709 # Name of the host.
710 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
711 # so uname gets run too.
712 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715 # Initializations.
717 ac_default_prefix=/usr/local
718 ac_clean_files=
719 ac_config_libobj_dir=.
720 LIBOBJS=
721 cross_compiling=no
722 subdirs=
723 MFLAGS=
724 MAKEFLAGS=
726 # Identity of this package.
727 PACKAGE_NAME='sqlite'
728 PACKAGE_TARNAME='sqlite'
729 PACKAGE_VERSION='3.43.0'
730 PACKAGE_STRING='sqlite 3.43.0'
731 PACKAGE_BUGREPORT=''
732 PACKAGE_URL=''
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
770 ac_subst_vars='LTLIBOBJS
771 LIBOBJS
772 BUILD_CFLAGS
773 AMALGAMATION_LINE_MACROS
774 USE_GCOV
775 OPT_FEATURE_FLAGS
776 HAVE_ZLIB
777 USE_AMALGAMATION
778 TARGET_DEBUG
779 TARGET_HAVE_EDITLINE
780 TARGET_HAVE_READLINE
781 TARGET_READLINE_INC
782 TARGET_READLINE_LIBS
783 HAVE_TCL
784 TCL_SHLIB_SUFFIX
785 TCL_STUB_LIB_SPEC
786 TCL_STUB_LIB_FLAG
787 TCL_STUB_LIB_FILE
788 TCL_LIB_SPEC
789 TCL_LIB_FLAG
790 TCL_LIB_FILE
791 TCL_INCLUDE_SPEC
792 TCL_SRC_DIR
793 TCL_BIN_DIR
794 TCL_VERSION
795 TARGET_EXEEXT
796 SQLITE_OS_WIN
797 SQLITE_OS_UNIX
798 BUILD_EXEEXT
799 TEMP_STORE
800 ALLOWRELEASE
801 SQLITE_THREADSAFE
802 BUILD_CC
803 HAVE_WASI_SDK
804 RELEASE
805 VERSION
806 program_prefix
807 TCLLIBDIR
808 TCLSH_CMD
809 INSTALL_DATA
810 INSTALL_SCRIPT
811 INSTALL_PROGRAM
813 OTOOL64
814 OTOOL
815 LIPO
816 NMEDIT
817 DSYMUTIL
818 lt_ECHO
819 RANLIB
820 STRIP
822 OBJDUMP
823 LN_S
825 ac_ct_DUMPBIN
826 DUMPBIN
828 FGREP
829 EGREP
830 GREP
832 OBJEXT
833 EXEEXT
834 ac_ct_CC
835 CPPFLAGS
836 LDFLAGS
837 CFLAGS
839 host_os
840 host_vendor
841 host_cpu
842 host
843 build_os
844 build_vendor
845 build_cpu
846 build
847 LIBTOOL
848 target_alias
849 host_alias
850 build_alias
851 LIBS
852 ECHO_T
853 ECHO_N
854 ECHO_C
855 DEFS
856 mandir
857 localedir
858 libdir
859 psdir
860 pdfdir
861 dvidir
862 htmldir
863 infodir
864 docdir
865 oldincludedir
866 includedir
867 localstatedir
868 sharedstatedir
869 sysconfdir
870 datadir
871 datarootdir
872 libexecdir
873 sbindir
874 bindir
875 program_transform_name
876 prefix
877 exec_prefix
878 PACKAGE_URL
879 PACKAGE_BUGREPORT
880 PACKAGE_STRING
881 PACKAGE_VERSION
882 PACKAGE_TARNAME
883 PACKAGE_NAME
884 PATH_SEPARATOR
885 SHELL'
886 ac_subst_files=''
887 ac_user_opts='
888 enable_option_checking
889 enable_shared
890 enable_static
891 with_pic
892 enable_fast_install
893 with_gnu_ld
894 enable_libtool_lock
895 enable_largefile
896 with_wasi_sdk
897 enable_threadsafe
898 enable_releasemode
899 enable_tempstore
900 enable_tcl
901 with_tcl
902 enable_editline
903 enable_readline
904 with_readline_lib
905 with_readline_inc
906 enable_debug
907 enable_amalgamation
908 enable_load_extension
909 enable_math
910 enable_json
911 enable_all
912 enable_memsys5
913 enable_memsys3
914 enable_fts3
915 enable_fts4
916 enable_fts5
917 enable_update_limit
918 enable_geopoly
919 enable_rtree
920 enable_session
921 enable_gcov
923 ac_precious_vars='build_alias
924 host_alias
925 target_alias
927 CFLAGS
928 LDFLAGS
929 LIBS
930 CPPFLAGS
932 TCLLIBDIR'
935 # Initialize some variables set by options.
936 ac_init_help=
937 ac_init_version=false
938 ac_unrecognized_opts=
939 ac_unrecognized_sep=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
942 cache_file=/dev/null
943 exec_prefix=NONE
944 no_create=
945 no_recursion=
946 prefix=NONE
947 program_prefix=NONE
948 program_suffix=NONE
949 program_transform_name=s,x,x,
950 silent=
951 site=
952 srcdir=
953 verbose=
954 x_includes=NONE
955 x_libraries=NONE
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 includedir='${prefix}/include'
972 oldincludedir='/usr/include'
973 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
974 infodir='${datarootdir}/info'
975 htmldir='${docdir}'
976 dvidir='${docdir}'
977 pdfdir='${docdir}'
978 psdir='${docdir}'
979 libdir='${exec_prefix}/lib'
980 localedir='${datarootdir}/locale'
981 mandir='${datarootdir}/man'
983 ac_prev=
984 ac_dashdash=
985 for ac_option
987 # If the previous option needs an argument, assign it.
988 if test -n "$ac_prev"; then
989 eval $ac_prev=\$ac_option
990 ac_prev=
991 continue
994 case $ac_option in
995 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
996 *=) ac_optarg= ;;
997 *) ac_optarg=yes ;;
998 esac
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1002 case $ac_dashdash$ac_option in
1004 ac_dashdash=yes ;;
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_$ac_useropt"
1048 "*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=no ;;
1054 -docdir | --docdir | --docdi | --doc | --do)
1055 ac_prev=docdir ;;
1056 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1057 docdir=$ac_optarg ;;
1059 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1060 ac_prev=dvidir ;;
1061 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1062 dvidir=$ac_optarg ;;
1064 -enable-* | --enable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 as_fn_error $? "invalid feature name: $ac_useropt"
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1073 "enable_$ac_useropt"
1074 "*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1077 esac
1078 eval enable_$ac_useropt=\$ac_optarg ;;
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1140 -localstatedir | --localstatedir | --localstatedi | --localstated \
1141 | --localstate | --localstat | --localsta | --localst | --locals)
1142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1145 localstatedir=$ac_optarg ;;
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1268 -with-* | --with-*)
1269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1272 as_fn_error $? "invalid package name: $ac_useropt"
1273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1277 "with_$ac_useropt"
1278 "*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=\$ac_optarg ;;
1284 -without-* | --without-*)
1285 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error $? "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1293 "with_$ac_useropt"
1294 "*) ;;
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1297 esac
1298 eval with_$ac_useropt=no ;;
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1318 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1319 Try \`$0 --help' for more information"
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 case $ac_envvar in #(
1326 '' | [0-9]* | *[!_$as_cr_alnum]* )
1327 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1328 esac
1329 eval $ac_envvar=\$ac_optarg
1330 export $ac_envvar ;;
1333 # FIXME: should be removed in autoconf 3.0.
1334 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1340 esac
1341 done
1343 if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 as_fn_error $? "missing argument to $ac_option"
1348 if test -n "$ac_unrecognized_opts"; then
1349 case $enable_option_checking in
1350 no) ;;
1351 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1352 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1353 esac
1356 # Check all directory arguments for consistency.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1363 # Remove trailing slashes.
1364 case $ac_val in
1365 */ )
1366 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1367 eval $ac_var=\$ac_val;;
1368 esac
1369 # Be sure to have absolute directory names.
1370 case $ac_val in
1371 [\\/$]* | ?:[\\/]* ) continue;;
1372 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 esac
1374 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1375 done
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1380 build=$build_alias
1381 host=$host_alias
1382 target=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 elif test "x$build_alias" != "x$host_alias"; then
1389 cross_compiling=yes
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 as_fn_error $? "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404 as_fn_error $? "pwd does not report name of working directory"
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409 ac_srcdir_defaulted=yes
1410 # Try the directory containing this script, then the parent directory.
1411 ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413 X"$as_myself" : 'X\(//\)[^/]' \| \
1414 X"$as_myself" : 'X\(//\)$' \| \
1415 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 s//\1/
1421 /^X\(\/\/\)[^/].*/{
1422 s//\1/
1425 /^X\(\/\/\)$/{
1426 s//\1/
1429 /^X\(\/\).*/{
1430 s//\1/
1433 s/.*/./; q'`
1434 srcdir=$ac_confdir
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 srcdir=..
1438 else
1439 ac_srcdir_defaulted=no
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1448 pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
1473 \`configure' configures sqlite 3.43.0 to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1482 Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking ...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 [PREFIX]
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1526 _ACEOF
1528 cat <<\_ACEOF
1530 System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 _ACEOF
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive ) echo "Configuration of sqlite 3.43.0:";;
1539 esac
1540 cat <<\_ACEOF
1542 Optional Features:
1543 --disable-option-checking ignore unrecognized --enable/--with options
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --enable-shared[=PKGS] build shared libraries [default=yes]
1547 --enable-static[=PKGS] build static libraries [default=yes]
1548 --enable-fast-install[=PKGS]
1549 optimize for fast installation [default=yes]
1550 --disable-libtool-lock avoid locking (might break parallel builds)
1551 --disable-largefile omit support for large files
1552 --disable-threadsafe Disable mutexing
1553 --enable-releasemode Support libtool link to release mode
1554 --enable-tempstore Use an in-ram database for temporary tables
1555 (never,no,yes,always)
1556 --disable-tcl do not build TCL extension
1557 --enable-editline enable BSD editline support
1558 --disable-readline disable readline support
1559 --enable-debug enable debugging & verbose explain
1560 --disable-amalgamation Disable the amalgamation and instead build all files
1561 separately
1562 --disable-load-extension
1563 Disable loading of external extensions
1564 --disable-math Disable math functions
1565 --disable-json Disable JSON functions
1566 --enable-all Enable FTS4, FTS5, Geopoly, RTree, Sessions
1567 --enable-memsys5 Enable MEMSYS5
1568 --enable-memsys3 Enable MEMSYS3
1569 --enable-fts3 Enable the FTS3 extension
1570 --enable-fts4 Enable the FTS4 extension
1571 --enable-fts5 Enable the FTS5 extension
1572 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1573 --enable-geopoly Enable the GEOPOLY extension
1574 --enable-rtree Enable the RTREE extension
1575 --enable-session Enable the SESSION extension
1576 --enable-gcov Enable coverage testing using gcov
1578 Optional Packages:
1579 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1580 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1581 --with-pic try to use only PIC/non-PIC objects [default=use
1582 both]
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-wasi-sdk=DIR directory containing the WASI SDK. Triggers
1585 cross-compile to WASM.
1586 --with-tcl=DIR directory containing tcl configuration
1587 (tclConfig.sh)
1588 --with-readline-lib specify readline library
1589 --with-readline-inc specify readline include paths
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1599 CPP C preprocessor
1600 TCLLIBDIR Where to install tcl plugin
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1605 Report bugs to the package provider.
1606 _ACEOF
1607 ac_status=$?
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
1616 ac_builddir=.
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1634 case $srcdir in
1635 .) # We are building in place.
1636 ac_srcdir=.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 sqlite configure 3.43.0
1669 generated by GNU Autoconf 2.69
1671 Copyright (C) 2012 Free Software Foundation, Inc.
1672 This configure script is free software; the Free Software Foundation
1673 gives unlimited permission to copy, distribute and modify it.
1674 _ACEOF
1675 exit
1678 ## ------------------------ ##
1679 ## Autoconf initialization. ##
1680 ## ------------------------ ##
1682 # ac_fn_c_try_compile LINENO
1683 # --------------------------
1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1685 ac_fn_c_try_compile ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext
1689 if { { ac_try="$ac_compile"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_compile") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest.$ac_objext; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_c_try_compile
1720 # ac_fn_c_try_link LINENO
1721 # -----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded.
1723 ac_fn_c_try_link ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=1
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1764 } # ac_fn_c_try_link
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_c_try_cpp LINENO
1798 # ----------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1832 } # ac_fn_c_try_cpp
1834 # ac_fn_c_try_run LINENO
1835 # ----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837 # that executables *can* be run.
1838 ac_fn_c_try_run ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852 { { case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855 esac
1856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857 $as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_try") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; }; }; then :
1862 ac_retval=0
1863 else
1864 $as_echo "$as_me: program exited with status $ac_status" >&5
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=$ac_status
1870 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status $ac_retval
1874 } # ac_fn_c_try_run
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891 #define $2 innocuous_$2
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char $2 (); below.
1895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896 <limits.h> exists even on freestanding compilers. */
1898 #ifdef __STDC__
1899 # include <limits.h>
1900 #else
1901 # include <assert.h>
1902 #endif
1904 #undef $2
1906 /* Override any GCC internal prototype to avoid an error.
1907 Use char because int might match the return type of a GCC
1908 builtin and then its argument prototype would still apply. */
1909 #ifdef __cplusplus
1910 extern "C"
1911 #endif
1912 char $2 ();
1913 /* The GNU C library defines this for functions which it implements
1914 to always fail with ENOSYS. Some functions are actually named
1915 something starting with __ and the normal name is an alias. */
1916 #if defined __stub_$2 || defined __stub___$2
1917 choke me
1918 #endif
1921 main ()
1923 return $2 ();
1925 return 0;
1927 _ACEOF
1928 if ac_fn_c_try_link "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1933 rm -f core conftest.err conftest.$ac_objext \
1934 conftest$ac_exeext conftest.$ac_ext
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 } # ac_fn_c_check_func
1943 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1944 # -------------------------------------------
1945 # Tests whether TYPE exists after having included INCLUDES, setting cache
1946 # variable VAR accordingly.
1947 ac_fn_c_check_type ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1954 else
1955 eval "$3=no"
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 if (sizeof ($2))
1963 return 0;
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1973 main ()
1975 if (sizeof (($2)))
1976 return 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1983 else
1984 eval "$3=yes"
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_type
1997 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2000 # the include files in INCLUDES and setting the cache variable VAR
2001 # accordingly.
2002 ac_fn_c_check_header_mongrel ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 if eval \${$3+:} false; then :
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2011 eval ac_res=\$$3
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2014 else
2015 # Is the header compilable?
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2017 $as_echo_n "checking $2 usability... " >&6; }
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_header_compiler=yes
2025 else
2026 ac_header_compiler=no
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2030 $as_echo "$ac_header_compiler" >&6; }
2032 # Is the header present?
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2034 $as_echo_n "checking $2 presence... " >&6; }
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_cpp "$LINENO"; then :
2040 ac_header_preproc=yes
2041 else
2042 ac_header_preproc=no
2044 rm -f conftest.err conftest.i conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2046 $as_echo "$ac_header_preproc" >&6; }
2048 # So? What about this header?
2049 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2050 yes:no: )
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2052 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2054 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2056 no:yes:* )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2058 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2060 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2062 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2064 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2068 esac
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 eval "$3=\$ac_header_compiler"
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_header_mongrel
2083 cat >config.log <<_ACEOF
2084 This file contains any messages produced by compilers while
2085 running configure, to aid debugging if configure makes a mistake.
2087 It was created by sqlite $as_me 3.43.0, which was
2088 generated by GNU Autoconf 2.69. Invocation command line was
2090 $ $0 $@
2092 _ACEOF
2093 exec 5>>config.log
2095 cat <<_ASUNAME
2096 ## --------- ##
2097 ## Platform. ##
2098 ## --------- ##
2100 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2101 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2102 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2103 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2104 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2106 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2107 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2109 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2110 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2111 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2112 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2113 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2114 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2115 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2117 _ASUNAME
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 $as_echo "PATH: $as_dir"
2125 done
2126 IFS=$as_save_IFS
2128 } >&5
2130 cat >&5 <<_ACEOF
2133 ## ----------- ##
2134 ## Core tests. ##
2135 ## ----------- ##
2137 _ACEOF
2140 # Keep a trace of the command line.
2141 # Strip out --no-create and --no-recursion so they do not pile up.
2142 # Strip out --silent because we don't want to record it for future runs.
2143 # Also quote any args containing shell meta-characters.
2144 # Make two passes to allow for proper duplicate-argument suppression.
2145 ac_configure_args=
2146 ac_configure_args0=
2147 ac_configure_args1=
2148 ac_must_keep_next=false
2149 for ac_pass in 1 2
2151 for ac_arg
2153 case $ac_arg in
2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2156 | -silent | --silent | --silen | --sile | --sil)
2157 continue ;;
2158 *\'*)
2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 esac
2161 case $ac_pass in
2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2164 as_fn_append ac_configure_args1 " '$ac_arg'"
2165 if test $ac_must_keep_next = true; then
2166 ac_must_keep_next=false # Got value, back to normal.
2167 else
2168 case $ac_arg in
2169 *=* | --config-cache | -C | -disable-* | --disable-* \
2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2172 | -with-* | --with-* | -without-* | --without-* | --x)
2173 case "$ac_configure_args0 " in
2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2175 esac
2177 -* ) ac_must_keep_next=true ;;
2178 esac
2180 as_fn_append ac_configure_args " '$ac_arg'"
2182 esac
2183 done
2184 done
2185 { ac_configure_args0=; unset ac_configure_args0;}
2186 { ac_configure_args1=; unset ac_configure_args1;}
2188 # When interrupted or exit'd, cleanup temporary files, and complete
2189 # config.log. We remove comments because anyway the quotes in there
2190 # would cause problems or look ugly.
2191 # WARNING: Use '\'' to represent an apostrophe within the trap.
2192 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2193 trap 'exit_status=$?
2194 # Save into config.log some information that might help in debugging.
2196 echo
2198 $as_echo "## ---------------- ##
2199 ## Cache variables. ##
2200 ## ---------------- ##"
2201 echo
2202 # The following way of writing the cache mishandles newlines in values,
2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in #(
2207 *${as_nl}*)
2208 case $ac_var in #(
2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2210 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2211 esac
2212 case $ac_var in #(
2213 _ | IFS | as_nl) ;; #(
2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2215 *) { eval $ac_var=; unset $ac_var;} ;;
2216 esac ;;
2217 esac
2218 done
2219 (set) 2>&1 |
2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2221 *${as_nl}ac_space=\ *)
2222 sed -n \
2223 "s/'\''/'\''\\\\'\'''\''/g;
2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2225 ;; #(
2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2229 esac |
2230 sort
2232 echo
2234 $as_echo "## ----------------- ##
2235 ## Output variables. ##
2236 ## ----------------- ##"
2237 echo
2238 for ac_var in $ac_subst_vars
2240 eval ac_val=\$$ac_var
2241 case $ac_val in
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243 esac
2244 $as_echo "$ac_var='\''$ac_val'\''"
2245 done | sort
2246 echo
2248 if test -n "$ac_subst_files"; then
2249 $as_echo "## ------------------- ##
2250 ## File substitutions. ##
2251 ## ------------------- ##"
2252 echo
2253 for ac_var in $ac_subst_files
2255 eval ac_val=\$$ac_var
2256 case $ac_val in
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258 esac
2259 $as_echo "$ac_var='\''$ac_val'\''"
2260 done | sort
2261 echo
2264 if test -s confdefs.h; then
2265 $as_echo "## ----------- ##
2266 ## confdefs.h. ##
2267 ## ----------- ##"
2268 echo
2269 cat confdefs.h
2270 echo
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2275 } >&5
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 exit $exit_status
2280 for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 done
2283 ac_signal=0
2285 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2286 rm -f -r conftest* confdefs.h
2288 $as_echo "/* confdefs.h */" > confdefs.h
2290 # Predefined preprocessor variables.
2292 cat >>confdefs.h <<_ACEOF
2293 #define PACKAGE_NAME "$PACKAGE_NAME"
2294 _ACEOF
2296 cat >>confdefs.h <<_ACEOF
2297 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298 _ACEOF
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2302 _ACEOF
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_STRING "$PACKAGE_STRING"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_URL "$PACKAGE_URL"
2314 _ACEOF
2317 # Let the site file select an alternate cache file if it wants to.
2318 # Prefer an explicitly selected file to automatically selected ones.
2319 ac_site_file1=NONE
2320 ac_site_file2=NONE
2321 if test -n "$CONFIG_SITE"; then
2322 # We do not want a PATH search for config.site.
2323 case $CONFIG_SITE in #((
2324 -*) ac_site_file1=./$CONFIG_SITE;;
2325 */*) ac_site_file1=$CONFIG_SITE;;
2326 *) ac_site_file1=./$CONFIG_SITE;;
2327 esac
2328 elif test "x$prefix" != xNONE; then
2329 ac_site_file1=$prefix/share/config.site
2330 ac_site_file2=$prefix/etc/config.site
2331 else
2332 ac_site_file1=$ac_default_prefix/share/config.site
2333 ac_site_file2=$ac_default_prefix/etc/config.site
2335 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2337 test "x$ac_site_file" = xNONE && continue
2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341 sed 's/^/| /' "$ac_site_file" >&5
2342 . "$ac_site_file" \
2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345 as_fn_error $? "failed to load site script $ac_site_file
2346 See \`config.log' for more details" "$LINENO" 5; }
2348 done
2350 if test -r "$cache_file"; then
2351 # Some versions of bash will fail to source /dev/null (special files
2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355 $as_echo "$as_me: loading cache $cache_file" >&6;}
2356 case $cache_file in
2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2358 *) . "./$cache_file";;
2359 esac
2361 else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363 $as_echo "$as_me: creating cache $cache_file" >&6;}
2364 >$cache_file
2367 # Check that the precious variables saved in the cache have kept the same
2368 # value.
2369 ac_cache_corrupted=false
2370 for ac_var in $ac_precious_vars; do
2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372 eval ac_new_set=\$ac_env_${ac_var}_set
2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374 eval ac_new_val=\$ac_env_${ac_var}_value
2375 case $ac_old_set,$ac_new_set in
2376 set,)
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2380 ,set)
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2382 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2384 ,);;
2386 if test "x$ac_old_val" != "x$ac_new_val"; then
2387 # differences in whitespace do not lead to failure.
2388 ac_old_val_w=`echo x $ac_old_val`
2389 ac_new_val_w=`echo x $ac_new_val`
2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2393 ac_cache_corrupted=:
2394 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2396 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397 eval $ac_var=\$ac_old_val
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2403 fi;;
2404 esac
2405 # Pass precious variables to config.status.
2406 if test "$ac_new_set" = set; then
2407 case $ac_new_val in
2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 *) ac_arg=$ac_var=$ac_new_val ;;
2410 esac
2411 case " $ac_configure_args " in
2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 esac
2416 done
2417 if $ac_cache_corrupted; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2424 ## -------------------- ##
2425 ## Main body of script. ##
2426 ## -------------------- ##
2428 ac_ext=c
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2436 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2437 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2438 as_fn_error $? "configure script is out of date:
2439 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2440 top level VERSION file = $sqlite_version_sanity_check
2441 please regen with autoconf" "$LINENO" 5
2444 #########
2445 # Programs needed
2447 case `pwd` in
2448 *\ * | *\ *)
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2451 esac
2455 macro_version='2.2.6'
2456 macro_revision='1.3012'
2470 ltmain="$ac_aux_dir/ltmain.sh"
2472 ac_aux_dir=
2473 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2474 if test -f "$ac_dir/install-sh"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/install-sh -c"
2477 break
2478 elif test -f "$ac_dir/install.sh"; then
2479 ac_aux_dir=$ac_dir
2480 ac_install_sh="$ac_aux_dir/install.sh -c"
2481 break
2482 elif test -f "$ac_dir/shtool"; then
2483 ac_aux_dir=$ac_dir
2484 ac_install_sh="$ac_aux_dir/shtool install -c"
2485 break
2487 done
2488 if test -z "$ac_aux_dir"; then
2489 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2492 # These three variables are undocumented and unsupported,
2493 # and are intended to be withdrawn in a future Autoconf release.
2494 # They can cause serious problems if a builder's source tree is in a directory
2495 # whose full name contains unusual characters.
2496 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2497 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2498 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501 # Make sure we can run config.sub.
2502 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2503 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2506 $as_echo_n "checking build system type... " >&6; }
2507 if ${ac_cv_build+:} false; then :
2508 $as_echo_n "(cached) " >&6
2509 else
2510 ac_build_alias=$build_alias
2511 test "x$ac_build_alias" = x &&
2512 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2513 test "x$ac_build_alias" = x &&
2514 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2515 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2520 $as_echo "$ac_cv_build" >&6; }
2521 case $ac_cv_build in
2522 *-*-*) ;;
2523 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2524 esac
2525 build=$ac_cv_build
2526 ac_save_IFS=$IFS; IFS='-'
2527 set x $ac_cv_build
2528 shift
2529 build_cpu=$1
2530 build_vendor=$2
2531 shift; shift
2532 # Remember, the first character of IFS is used to create $*,
2533 # except with old shells:
2534 build_os=$*
2535 IFS=$ac_save_IFS
2536 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2540 $as_echo_n "checking host system type... " >&6; }
2541 if ${ac_cv_host+:} false; then :
2542 $as_echo_n "(cached) " >&6
2543 else
2544 if test "x$host_alias" = x; then
2545 ac_cv_host=$ac_cv_build
2546 else
2547 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2548 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2553 $as_echo "$ac_cv_host" >&6; }
2554 case $ac_cv_host in
2555 *-*-*) ;;
2556 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2557 esac
2558 host=$ac_cv_host
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_host
2561 shift
2562 host_cpu=$1
2563 host_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 host_os=$*
2568 IFS=$ac_save_IFS
2569 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577 if test -n "$ac_tool_prefix"; then
2578 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2579 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 CC=$ac_cv_prog_CC
2606 if test -n "$CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2608 $as_echo "$CC" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2616 if test -z "$ac_cv_prog_CC"; then
2617 ac_ct_CC=$CC
2618 # Extract the first word of "gcc", so it can be a program name with args.
2619 set dummy gcc; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624 else
2625 if test -n "$ac_ct_CC"; then
2626 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_ac_ct_CC="gcc"
2636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2639 done
2640 done
2641 IFS=$as_save_IFS
2645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2646 if test -n "$ac_ct_CC"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2648 $as_echo "$ac_ct_CC" >&6; }
2649 else
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2654 if test "x$ac_ct_CC" = x; then
2655 CC=""
2656 else
2657 case $cross_compiling:$ac_tool_warned in
2658 yes:)
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2661 ac_tool_warned=yes ;;
2662 esac
2663 CC=$ac_ct_CC
2665 else
2666 CC="$ac_cv_prog_CC"
2669 if test -z "$CC"; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}cc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 for as_dir in $PATH
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_CC="${ac_tool_prefix}cc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2694 IFS=$as_save_IFS
2698 CC=$ac_cv_prog_CC
2699 if test -n "$CC"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2701 $as_echo "$CC" >&6; }
2702 else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704 $as_echo "no" >&6; }
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc; ac_word=$2
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714 $as_echo_n "checking for $ac_word... " >&6; }
2715 if ${ac_cv_prog_CC+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717 else
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC="$CC" # Let the user override the test.
2720 else
2721 ac_prog_rejected=no
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected=yes
2731 continue
2733 ac_cv_prog_CC="cc"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2739 IFS=$as_save_IFS
2741 if test $ac_prog_rejected = yes; then
2742 # We found a bogon in the path, so make sure we never use it.
2743 set dummy $ac_cv_prog_CC
2744 shift
2745 if test $# != 0; then
2746 # We chose a different compiler from the bogus one.
2747 # However, it has the same basename, so the bogon will be chosen
2748 # first if we set CC to just the basename; use the full file name.
2749 shift
2750 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2755 CC=$ac_cv_prog_CC
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2759 else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 for ac_prog in cl.exe
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_CC+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2791 done
2792 done
2793 IFS=$as_save_IFS
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2807 test -n "$CC" && break
2808 done
2810 if test -z "$CC"; then
2811 ac_ct_CC=$CC
2812 for ac_prog in cl.exe
2814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2815 set dummy $ac_prog; ac_word=$2
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 $as_echo_n "checking for $ac_word... " >&6; }
2818 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 if test -n "$ac_ct_CC"; then
2822 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_CC="$ac_prog"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2835 done
2836 done
2837 IFS=$as_save_IFS
2841 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2842 if test -n "$ac_ct_CC"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2844 $as_echo "$ac_ct_CC" >&6; }
2845 else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847 $as_echo "no" >&6; }
2851 test -n "$ac_ct_CC" && break
2852 done
2854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858 yes:)
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2862 esac
2863 CC=$ac_ct_CC
2870 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872 as_fn_error $? "no acceptable C compiler found in \$PATH
2873 See \`config.log' for more details" "$LINENO" 5; }
2875 # Provide some information about the compiler.
2876 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2877 set X $ac_compile
2878 ac_compiler=$2
2879 for ac_option in --version -v -V -qversion; do
2880 { { ac_try="$ac_compiler $ac_option >&5"
2881 case "(($ac_try" in
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2888 ac_status=$?
2889 if test -s conftest.err; then
2890 sed '10a\
2891 ... rest of stderr output deleted ...
2892 10q' conftest.err >conftest.er1
2893 cat conftest.er1 >&5
2895 rm -f conftest.er1 conftest.err
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; }
2898 done
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2904 main ()
2908 return 0;
2910 _ACEOF
2911 ac_clean_files_save=$ac_clean_files
2912 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2913 # Try to create an executable without -o first, disregard a.out.
2914 # It will help us diagnose broken compilers, and finding out an intuition
2915 # of exeext.
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2917 $as_echo_n "checking whether the C compiler works... " >&6; }
2918 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920 # The possible output files:
2921 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2923 ac_rmfiles=
2924 for ac_file in $ac_files
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2929 esac
2930 done
2931 rm -f $ac_rmfiles
2933 if { { ac_try="$ac_link_default"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_link_default") 2>&5
2941 ac_status=$?
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; then :
2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2947 # so that the user can short-circuit this test for compilers unknown to
2948 # Autoconf.
2949 for ac_file in $ac_files ''
2951 test -f "$ac_file" || continue
2952 case $ac_file in
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2955 [ab].out )
2956 # We found the default executable, but exeext='' is most
2957 # certainly right.
2958 break;;
2959 *.* )
2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2961 then :; else
2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964 # We set ac_cv_exeext here because the later test for it is not
2965 # safe: cross compilers may not add the suffix if given an `-o'
2966 # argument, so we may need to know it at that point already.
2967 # Even if this section looks crufty: it has the advantage of
2968 # actually working.
2969 break;;
2971 break;;
2972 esac
2973 done
2974 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976 else
2977 ac_file=''
2979 if test -z "$ac_file"; then :
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2982 $as_echo "$as_me: failed program was:" >&5
2983 sed 's/^/| /' conftest.$ac_ext >&5
2985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2987 as_fn_error 77 "C compiler cannot create executables
2988 See \`config.log' for more details" "$LINENO" 5; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2991 $as_echo "yes" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2994 $as_echo_n "checking for C compiler default output file name... " >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2996 $as_echo "$ac_file" >&6; }
2997 ac_exeext=$ac_cv_exeext
2999 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3000 ac_clean_files=$ac_clean_files_save
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3002 $as_echo_n "checking for suffix of executables... " >&6; }
3003 if { { ac_try="$ac_link"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_link") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }; then :
3014 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3015 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3016 # work properly (i.e., refer to `conftest.exe'), while it won't with
3017 # `rm'.
3018 for ac_file in conftest.exe conftest conftest.*; do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3023 break;;
3024 * ) break;;
3025 esac
3026 done
3027 else
3028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3030 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3031 See \`config.log' for more details" "$LINENO" 5; }
3033 rm -f conftest conftest$ac_cv_exeext
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3035 $as_echo "$ac_cv_exeext" >&6; }
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3039 ac_exeext=$EXEEXT
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041 /* end confdefs.h. */
3042 #include <stdio.h>
3044 main ()
3046 FILE *f = fopen ("conftest.out", "w");
3047 return ferror (f) || fclose (f) != 0;
3050 return 0;
3052 _ACEOF
3053 ac_clean_files="$ac_clean_files conftest.out"
3054 # Check that the compiler produces executables we can run. If not, either
3055 # the compiler is broken, or we cross compile.
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3057 $as_echo_n "checking whether we are cross compiling... " >&6; }
3058 if test "$cross_compiling" != yes; then
3059 { { ac_try="$ac_link"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_link") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3070 if { ac_try='./conftest$ac_cv_exeext'
3071 { { case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3076 $as_echo "$ac_try_echo"; } >&5
3077 (eval "$ac_try") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3080 test $ac_status = 0; }; }; then
3081 cross_compiling=no
3082 else
3083 if test "$cross_compiling" = maybe; then
3084 cross_compiling=yes
3085 else
3086 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3088 as_fn_error $? "cannot run C compiled programs.
3089 If you meant to cross compile, use \`--host'.
3090 See \`config.log' for more details" "$LINENO" 5; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3095 $as_echo "$cross_compiling" >&6; }
3097 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3098 ac_clean_files=$ac_clean_files_save
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3100 $as_echo_n "checking for suffix of object files... " >&6; }
3101 if ${ac_cv_objext+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h. */
3108 main ()
3112 return 0;
3114 _ACEOF
3115 rm -f conftest.o conftest.obj
3116 if { { ac_try="$ac_compile"
3117 case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120 esac
3121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_compile") 2>&5
3124 ac_status=$?
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; then :
3127 for ac_file in conftest.o conftest.obj conftest.*; do
3128 test -f "$ac_file" || continue;
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3131 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3132 break;;
3133 esac
3134 done
3135 else
3136 $as_echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error $? "cannot compute suffix of object files: cannot compile
3142 See \`config.log' for more details" "$LINENO" 5; }
3144 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3147 $as_echo "$ac_cv_objext" >&6; }
3148 OBJEXT=$ac_cv_objext
3149 ac_objext=$OBJEXT
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3151 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3152 if ${ac_cv_c_compiler_gnu+:} false; then :
3153 $as_echo_n "(cached) " >&6
3154 else
3155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3156 /* end confdefs.h. */
3159 main ()
3161 #ifndef __GNUC__
3162 choke me
3163 #endif
3166 return 0;
3168 _ACEOF
3169 if ac_fn_c_try_compile "$LINENO"; then :
3170 ac_compiler_gnu=yes
3171 else
3172 ac_compiler_gnu=no
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3179 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3180 if test $ac_compiler_gnu = yes; then
3181 GCC=yes
3182 else
3183 GCC=
3185 ac_test_CFLAGS=${CFLAGS+set}
3186 ac_save_CFLAGS=$CFLAGS
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3188 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3189 if ${ac_cv_prog_cc_g+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 ac_save_c_werror_flag=$ac_c_werror_flag
3193 ac_c_werror_flag=yes
3194 ac_cv_prog_cc_g=no
3195 CFLAGS="-g"
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 if ac_fn_c_try_compile "$LINENO"; then :
3208 ac_cv_prog_cc_g=yes
3209 else
3210 CFLAGS=""
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 if ac_fn_c_try_compile "$LINENO"; then :
3224 else
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3226 CFLAGS="-g"
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 if ac_fn_c_try_compile "$LINENO"; then :
3239 ac_cv_prog_cc_g=yes
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3249 $as_echo "$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
3255 else
3256 CFLAGS="-g"
3258 else
3259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
3261 else
3262 CFLAGS=
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3266 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3267 if ${ac_cv_prog_cc_c89+:} false; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 ac_cv_prog_cc_c89=no
3271 ac_save_CC=$CC
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdarg.h>
3275 #include <stdio.h>
3276 struct stat;
3277 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278 struct buf { int x; };
3279 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280 static char *e (p, i)
3281 char **p;
3282 int i;
3284 return p[i];
3286 static char *f (char * (*g) (char **, int), char **p, ...)
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3296 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
3299 as 'x'. The following induces an error, until -std is added to get
3300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
3302 that's true only with -std. */
3303 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307 #define FOO(x) 'x'
3308 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310 int test (int i, double x);
3311 struct s1 {int (*f) (int a);};
3312 struct s2 {int (*f) (double a);};
3313 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314 int argc;
3315 char **argv;
3317 main ()
3319 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3321 return 0;
3323 _ACEOF
3324 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3327 CC="$ac_save_CC $ac_arg"
3328 if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_c89=$ac_arg
3331 rm -f core conftest.err conftest.$ac_objext
3332 test "x$ac_cv_prog_cc_c89" != "xno" && break
3333 done
3334 rm -f conftest.$ac_ext
3335 CC=$ac_save_CC
3338 # AC_CACHE_VAL
3339 case "x$ac_cv_prog_cc_c89" in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3342 $as_echo "none needed" >&6; } ;;
3343 xno)
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3345 $as_echo "unsupported" >&6; } ;;
3347 CC="$CC $ac_cv_prog_cc_c89"
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3349 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3350 esac
3351 if test "x$ac_cv_prog_cc_c89" != xno; then :
3355 ac_ext=c
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3362 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3363 if ${ac_cv_path_SED+:} false; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3367 for ac_i in 1 2 3 4 5 6 7; do
3368 ac_script="$ac_script$as_nl$ac_script"
3369 done
3370 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3371 { ac_script=; unset ac_script;}
3372 if test -z "$SED"; then
3373 ac_path_SED_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in sed gsed; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3383 as_fn_executable_p "$ac_path_SED" || continue
3384 # Check for GNU ac_path_SED and select it if it is found.
3385 # Check for GNU $ac_path_SED
3386 case `"$ac_path_SED" --version 2>&1` in
3387 *GNU*)
3388 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3390 ac_count=0
3391 $as_echo_n 0123456789 >"conftest.in"
3392 while :
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
3397 $as_echo '' >> "conftest.nl"
3398 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 as_fn_arith $ac_count + 1 && ac_count=$as_val
3401 if test $ac_count -gt ${ac_path_SED_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_SED="$ac_path_SED"
3404 ac_path_SED_max=$ac_count
3406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3408 done
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410 esac
3412 $ac_path_SED_found && break 3
3413 done
3414 done
3415 done
3416 IFS=$as_save_IFS
3417 if test -z "$ac_cv_path_SED"; then
3418 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3420 else
3421 ac_cv_path_SED=$SED
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3426 $as_echo "$ac_cv_path_SED" >&6; }
3427 SED="$ac_cv_path_SED"
3428 rm -f conftest.sed
3430 test -z "$SED" && SED=sed
3431 Xsed="$SED -e 1s/^X//"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3444 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3445 if ${ac_cv_path_GREP+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -z "$GREP"; then
3449 ac_path_GREP_found=false
3450 # Loop through the user's path and test for each of PROGNAME-LIST
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_prog in grep ggrep; do
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3459 as_fn_executable_p "$ac_path_GREP" || continue
3460 # Check for GNU ac_path_GREP and select it if it is found.
3461 # Check for GNU $ac_path_GREP
3462 case `"$ac_path_GREP" --version 2>&1` in
3463 *GNU*)
3464 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3466 ac_count=0
3467 $as_echo_n 0123456789 >"conftest.in"
3468 while :
3470 cat "conftest.in" "conftest.in" >"conftest.tmp"
3471 mv "conftest.tmp" "conftest.in"
3472 cp "conftest.in" "conftest.nl"
3473 $as_echo 'GREP' >> "conftest.nl"
3474 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3476 as_fn_arith $ac_count + 1 && ac_count=$as_val
3477 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3478 # Best one so far, save it but keep looking for a better one
3479 ac_cv_path_GREP="$ac_path_GREP"
3480 ac_path_GREP_max=$ac_count
3482 # 10*(2^10) chars as input seems more than enough
3483 test $ac_count -gt 10 && break
3484 done
3485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3486 esac
3488 $ac_path_GREP_found && break 3
3489 done
3490 done
3491 done
3492 IFS=$as_save_IFS
3493 if test -z "$ac_cv_path_GREP"; then
3494 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3496 else
3497 ac_cv_path_GREP=$GREP
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3502 $as_echo "$ac_cv_path_GREP" >&6; }
3503 GREP="$ac_cv_path_GREP"
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3507 $as_echo_n "checking for egrep... " >&6; }
3508 if ${ac_cv_path_EGREP+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3512 then ac_cv_path_EGREP="$GREP -E"
3513 else
3514 if test -z "$EGREP"; then
3515 ac_path_EGREP_found=false
3516 # Loop through the user's path and test for each of PROGNAME-LIST
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_prog in egrep; do
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3525 as_fn_executable_p "$ac_path_EGREP" || continue
3526 # Check for GNU ac_path_EGREP and select it if it is found.
3527 # Check for GNU $ac_path_EGREP
3528 case `"$ac_path_EGREP" --version 2>&1` in
3529 *GNU*)
3530 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3532 ac_count=0
3533 $as_echo_n 0123456789 >"conftest.in"
3534 while :
3536 cat "conftest.in" "conftest.in" >"conftest.tmp"
3537 mv "conftest.tmp" "conftest.in"
3538 cp "conftest.in" "conftest.nl"
3539 $as_echo 'EGREP' >> "conftest.nl"
3540 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3542 as_fn_arith $ac_count + 1 && ac_count=$as_val
3543 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3544 # Best one so far, save it but keep looking for a better one
3545 ac_cv_path_EGREP="$ac_path_EGREP"
3546 ac_path_EGREP_max=$ac_count
3548 # 10*(2^10) chars as input seems more than enough
3549 test $ac_count -gt 10 && break
3550 done
3551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3552 esac
3554 $ac_path_EGREP_found && break 3
3555 done
3556 done
3557 done
3558 IFS=$as_save_IFS
3559 if test -z "$ac_cv_path_EGREP"; then
3560 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3562 else
3563 ac_cv_path_EGREP=$EGREP
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3569 $as_echo "$ac_cv_path_EGREP" >&6; }
3570 EGREP="$ac_cv_path_EGREP"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3574 $as_echo_n "checking for fgrep... " >&6; }
3575 if ${ac_cv_path_FGREP+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3579 then ac_cv_path_FGREP="$GREP -F"
3580 else
3581 if test -z "$FGREP"; then
3582 ac_path_FGREP_found=false
3583 # Loop through the user's path and test for each of PROGNAME-LIST
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_prog in fgrep; do
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3592 as_fn_executable_p "$ac_path_FGREP" || continue
3593 # Check for GNU ac_path_FGREP and select it if it is found.
3594 # Check for GNU $ac_path_FGREP
3595 case `"$ac_path_FGREP" --version 2>&1` in
3596 *GNU*)
3597 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3599 ac_count=0
3600 $as_echo_n 0123456789 >"conftest.in"
3601 while :
3603 cat "conftest.in" "conftest.in" >"conftest.tmp"
3604 mv "conftest.tmp" "conftest.in"
3605 cp "conftest.in" "conftest.nl"
3606 $as_echo 'FGREP' >> "conftest.nl"
3607 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3609 as_fn_arith $ac_count + 1 && ac_count=$as_val
3610 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3611 # Best one so far, save it but keep looking for a better one
3612 ac_cv_path_FGREP="$ac_path_FGREP"
3613 ac_path_FGREP_max=$ac_count
3615 # 10*(2^10) chars as input seems more than enough
3616 test $ac_count -gt 10 && break
3617 done
3618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3619 esac
3621 $ac_path_FGREP_found && break 3
3622 done
3623 done
3624 done
3625 IFS=$as_save_IFS
3626 if test -z "$ac_cv_path_FGREP"; then
3627 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3629 else
3630 ac_cv_path_FGREP=$FGREP
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3636 $as_echo "$ac_cv_path_FGREP" >&6; }
3637 FGREP="$ac_cv_path_FGREP"
3640 test -z "$GREP" && GREP=grep
3660 # Check whether --with-gnu-ld was given.
3661 if test "${with_gnu_ld+set}" = set; then :
3662 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3663 else
3664 with_gnu_ld=no
3667 ac_prog=ld
3668 if test "$GCC" = yes; then
3669 # Check if gcc -print-prog-name=ld gives a path.
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3671 $as_echo_n "checking for ld used by $CC... " >&6; }
3672 case $host in
3673 *-*-mingw*)
3674 # gcc leaves a trailing carriage return which upsets mingw
3675 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3677 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3678 esac
3679 case $ac_prog in
3680 # Accept absolute paths.
3681 [\\/]* | ?:[\\/]*)
3682 re_direlt='/[^/][^/]*/\.\./'
3683 # Canonicalize the pathname of ld
3684 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3685 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3686 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3687 done
3688 test -z "$LD" && LD="$ac_prog"
3691 # If it fails, then pretend we aren't using GCC.
3692 ac_prog=ld
3695 # If it is relative, then search for the first ld in PATH.
3696 with_gnu_ld=unknown
3698 esac
3699 elif test "$with_gnu_ld" = yes; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3701 $as_echo_n "checking for GNU ld... " >&6; }
3702 else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3704 $as_echo_n "checking for non-GNU ld... " >&6; }
3706 if ${lt_cv_path_LD+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -z "$LD"; then
3710 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3711 for ac_dir in $PATH; do
3712 IFS="$lt_save_ifs"
3713 test -z "$ac_dir" && ac_dir=.
3714 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3715 lt_cv_path_LD="$ac_dir/$ac_prog"
3716 # Check to see if the program is GNU ld. I'd rather use --version,
3717 # but apparently some variants of GNU ld only accept -v.
3718 # Break only if it was the GNU/non-GNU ld that we prefer.
3719 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3720 *GNU* | *'with BFD'*)
3721 test "$with_gnu_ld" != no && break
3724 test "$with_gnu_ld" != yes && break
3726 esac
3728 done
3729 IFS="$lt_save_ifs"
3730 else
3731 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3735 LD="$lt_cv_path_LD"
3736 if test -n "$LD"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3738 $as_echo "$LD" >&6; }
3739 else
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3741 $as_echo "no" >&6; }
3743 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3745 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3746 if ${lt_cv_prog_gnu_ld+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3750 case `$LD -v 2>&1 </dev/null` in
3751 *GNU* | *'with BFD'*)
3752 lt_cv_prog_gnu_ld=yes
3755 lt_cv_prog_gnu_ld=no
3757 esac
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3760 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3761 with_gnu_ld=$lt_cv_prog_gnu_ld
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3772 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3773 if ${lt_cv_path_NM+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -n "$NM"; then
3777 # Let the user override the test.
3778 lt_cv_path_NM="$NM"
3779 else
3780 lt_nm_to_check="${ac_tool_prefix}nm"
3781 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3782 lt_nm_to_check="$lt_nm_to_check nm"
3784 for lt_tmp_nm in $lt_nm_to_check; do
3785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3786 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3787 IFS="$lt_save_ifs"
3788 test -z "$ac_dir" && ac_dir=.
3789 tmp_nm="$ac_dir/$lt_tmp_nm"
3790 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3791 # Check to see if the nm accepts a BSD-compat flag.
3792 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3793 # nm: unknown option "B" ignored
3794 # Tru64's nm complains that /dev/null is an invalid object file
3795 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3796 */dev/null* | *'Invalid file or object type'*)
3797 lt_cv_path_NM="$tmp_nm -B"
3798 break
3801 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3802 */dev/null*)
3803 lt_cv_path_NM="$tmp_nm -p"
3804 break
3807 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3808 continue # so that we can try to find one that supports BSD flags
3810 esac
3812 esac
3814 done
3815 IFS="$lt_save_ifs"
3816 done
3817 : ${lt_cv_path_NM=no}
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3821 $as_echo "$lt_cv_path_NM" >&6; }
3822 if test "$lt_cv_path_NM" != "no"; then
3823 NM="$lt_cv_path_NM"
3824 else
3825 # Didn't find any BSD compatible name lister, look for dumpbin.
3826 if test -n "$ac_tool_prefix"; then
3827 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_DUMPBIN+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$DUMPBIN"; then
3837 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3850 done
3851 done
3852 IFS=$as_save_IFS
3856 DUMPBIN=$ac_cv_prog_DUMPBIN
3857 if test -n "$DUMPBIN"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3859 $as_echo "$DUMPBIN" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3866 test -n "$DUMPBIN" && break
3867 done
3869 if test -z "$DUMPBIN"; then
3870 ac_ct_DUMPBIN=$DUMPBIN
3871 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$ac_ct_DUMPBIN"; then
3881 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3894 done
3895 done
3896 IFS=$as_save_IFS
3900 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3901 if test -n "$ac_ct_DUMPBIN"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3903 $as_echo "$ac_ct_DUMPBIN" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3910 test -n "$ac_ct_DUMPBIN" && break
3911 done
3913 if test "x$ac_ct_DUMPBIN" = x; then
3914 DUMPBIN=":"
3915 else
3916 case $cross_compiling:$ac_tool_warned in
3917 yes:)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3921 esac
3922 DUMPBIN=$ac_ct_DUMPBIN
3927 if test "$DUMPBIN" != ":"; then
3928 NM="$DUMPBIN"
3931 test -z "$NM" && NM=nm
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3939 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3940 if ${lt_cv_nm_interface+:} false; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 lt_cv_nm_interface="BSD nm"
3944 echo "int some_variable = 0;" > conftest.$ac_ext
3945 (eval echo "\"\$as_me:3945: $ac_compile\"" >&5)
3946 (eval "$ac_compile" 2>conftest.err)
3947 cat conftest.err >&5
3948 (eval echo "\"\$as_me:3948: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3949 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3950 cat conftest.err >&5
3951 (eval echo "\"\$as_me:3951: output\"" >&5)
3952 cat conftest.out >&5
3953 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3954 lt_cv_nm_interface="MS dumpbin"
3956 rm -f conftest*
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3959 $as_echo "$lt_cv_nm_interface" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3962 $as_echo_n "checking whether ln -s works... " >&6; }
3963 LN_S=$as_ln_s
3964 if test "$LN_S" = "ln -s"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3966 $as_echo "yes" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3969 $as_echo "no, using $LN_S" >&6; }
3972 # find the maximum length of command line arguments
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3974 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3975 if ${lt_cv_sys_max_cmd_len+:} false; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3979 teststring="ABCD"
3981 case $build_os in
3982 msdosdjgpp*)
3983 # On DJGPP, this test can blow up pretty badly due to problems in libc
3984 # (any single argument exceeding 2000 bytes causes a buffer overrun
3985 # during glob expansion). Even if it were fixed, the result of this
3986 # check would be larger than it should be.
3987 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3990 gnu*)
3991 # Under GNU Hurd, this test is not required because there is
3992 # no limit to the length of command line arguments.
3993 # Libtool will interpret -1 as no limit whatsoever
3994 lt_cv_sys_max_cmd_len=-1;
3997 cygwin* | mingw* | cegcc*)
3998 # On Win9x/ME, this test blows up -- it succeeds, but takes
3999 # about 5 minutes as the teststring grows exponentially.
4000 # Worse, since 9x/ME are not pre-emptively multitasking,
4001 # you end up with a "frozen" computer, even though with patience
4002 # the test eventually succeeds (with a max line length of 256k).
4003 # Instead, let's just punt: use the minimum linelength reported by
4004 # all of the supported platforms: 8192 (on NT/2K/XP).
4005 lt_cv_sys_max_cmd_len=8192;
4008 amigaos*)
4009 # On AmigaOS with pdksh, this test takes hours, literally.
4010 # So we just punt and use a minimum line length of 8192.
4011 lt_cv_sys_max_cmd_len=8192;
4014 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4015 # This has been around since 386BSD, at least. Likely further.
4016 if test -x /sbin/sysctl; then
4017 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4018 elif test -x /usr/sbin/sysctl; then
4019 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4020 else
4021 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4023 # And add a safety zone
4024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4028 interix*)
4029 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4030 lt_cv_sys_max_cmd_len=196608
4033 osf*)
4034 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4035 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4036 # nice to cause kernel panics so lets avoid the loop below.
4037 # First set a reasonable default.
4038 lt_cv_sys_max_cmd_len=16384
4040 if test -x /sbin/sysconfig; then
4041 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4042 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4043 esac
4046 sco3.2v5*)
4047 lt_cv_sys_max_cmd_len=102400
4049 sysv5* | sco5v6* | sysv4.2uw2*)
4050 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4051 if test -n "$kargmax"; then
4052 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4053 else
4054 lt_cv_sys_max_cmd_len=32768
4058 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4059 if test -n "$lt_cv_sys_max_cmd_len"; then
4060 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4061 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4062 else
4063 # Make teststring a little bigger before we do anything with it.
4064 # a 1K string should be a reasonable start.
4065 for i in 1 2 3 4 5 6 7 8 ; do
4066 teststring=$teststring$teststring
4067 done
4068 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4069 # If test is not a shell built-in, we'll probably end up computing a
4070 # maximum length that is only half of the actual maximum length, but
4071 # we can't tell.
4072 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4073 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4074 test $i != 17 # 1/2 MB should be enough
4076 i=`expr $i + 1`
4077 teststring=$teststring$teststring
4078 done
4079 # Only check the string length outside the loop.
4080 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4081 teststring=
4082 # Add a significant safety factor because C++ compilers can tack on
4083 # massive amounts of additional arguments before passing them to the
4084 # linker. It appears as though 1/2 is a usable value.
4085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4088 esac
4092 if test -n $lt_cv_sys_max_cmd_len ; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4094 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4095 else
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4097 $as_echo "none" >&6; }
4099 max_cmd_len=$lt_cv_sys_max_cmd_len
4106 : ${CP="cp -f"}
4107 : ${MV="mv -f"}
4108 : ${RM="rm -f"}
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4111 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4112 # Try some XSI features
4113 xsi_shell=no
4114 ( _lt_dummy="a/b/c"
4115 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4116 = c,a/b,, \
4117 && eval 'test $(( 1 + 1 )) -eq 2 \
4118 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4119 && xsi_shell=yes
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4121 $as_echo "$xsi_shell" >&6; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4125 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4126 lt_shell_append=no
4127 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4128 >/dev/null 2>&1 \
4129 && lt_shell_append=yes
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4131 $as_echo "$lt_shell_append" >&6; }
4134 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4135 lt_unset=unset
4136 else
4137 lt_unset=false
4144 # test EBCDIC or ASCII
4145 case `echo X|tr X '\101'` in
4146 A) # ASCII based system
4147 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4148 lt_SP2NL='tr \040 \012'
4149 lt_NL2SP='tr \015\012 \040\040'
4151 *) # EBCDIC based system
4152 lt_SP2NL='tr \100 \n'
4153 lt_NL2SP='tr \r\n \100\100'
4155 esac
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4166 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4167 if ${lt_cv_ld_reload_flag+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 lt_cv_ld_reload_flag='-r'
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4173 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4174 reload_flag=$lt_cv_ld_reload_flag
4175 case $reload_flag in
4176 "" | " "*) ;;
4177 *) reload_flag=" $reload_flag" ;;
4178 esac
4179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4180 case $host_os in
4181 darwin*)
4182 if test "$GCC" = yes; then
4183 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4184 else
4185 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4188 esac
4198 if test -n "$ac_tool_prefix"; then
4199 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if ${ac_cv_prog_OBJDUMP+:} false; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$OBJDUMP"; then
4207 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 OBJDUMP=$ac_cv_prog_OBJDUMP
4227 if test -n "$OBJDUMP"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4229 $as_echo "$OBJDUMP" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4237 if test -z "$ac_cv_prog_OBJDUMP"; then
4238 ac_ct_OBJDUMP=$OBJDUMP
4239 # Extract the first word of "objdump", so it can be a program name with args.
4240 set dummy objdump; ac_word=$2
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4242 $as_echo_n "checking for $ac_word... " >&6; }
4243 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 if test -n "$ac_ct_OBJDUMP"; then
4247 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4248 else
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4256 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4258 break 2
4260 done
4261 done
4262 IFS=$as_save_IFS
4266 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4267 if test -n "$ac_ct_OBJDUMP"; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4269 $as_echo "$ac_ct_OBJDUMP" >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4272 $as_echo "no" >&6; }
4275 if test "x$ac_ct_OBJDUMP" = x; then
4276 OBJDUMP="false"
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 OBJDUMP=$ac_ct_OBJDUMP
4286 else
4287 OBJDUMP="$ac_cv_prog_OBJDUMP"
4290 test -z "$OBJDUMP" && OBJDUMP=objdump
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4301 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4302 if ${lt_cv_deplibs_check_method+:} false; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 lt_cv_file_magic_cmd='$MAGIC_CMD'
4306 lt_cv_file_magic_test_file=
4307 lt_cv_deplibs_check_method='unknown'
4308 # Need to set the preceding variable on all platforms that support
4309 # interlibrary dependencies.
4310 # 'none' -- dependencies not supported.
4311 # `unknown' -- same as none, but documents that we really don't know.
4312 # 'pass_all' -- all dependencies passed with no checks.
4313 # 'test_compile' -- check by making test program.
4314 # 'file_magic [[regex]]' -- check by looking for files in library path
4315 # which responds to the $file_magic_cmd with a given extended regex.
4316 # If you have `file' or equivalent on your system and you're not sure
4317 # whether `pass_all' will *always* work, you probably want this one.
4319 case $host_os in
4320 aix[4-9]*)
4321 lt_cv_deplibs_check_method=pass_all
4324 beos*)
4325 lt_cv_deplibs_check_method=pass_all
4328 bsdi[45]*)
4329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4330 lt_cv_file_magic_cmd='/usr/bin/file -L'
4331 lt_cv_file_magic_test_file=/shlib/libc.so
4334 cygwin*)
4335 # func_win32_libid is a shell function defined in ltmain.sh
4336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4337 lt_cv_file_magic_cmd='func_win32_libid'
4340 mingw* | pw32*)
4341 # Base MSYS/MinGW do not provide the 'file' command needed by
4342 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4343 # unless we find 'file', for example because we are cross-compiling.
4344 if ( file / ) >/dev/null 2>&1; then
4345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4346 lt_cv_file_magic_cmd='func_win32_libid'
4347 else
4348 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4349 lt_cv_file_magic_cmd='$OBJDUMP -f'
4353 cegcc)
4354 # use the weaker test based on 'objdump'. See mingw*.
4355 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4356 lt_cv_file_magic_cmd='$OBJDUMP -f'
4359 darwin* | rhapsody*)
4360 lt_cv_deplibs_check_method=pass_all
4363 freebsd* | dragonfly*)
4364 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4365 case $host_cpu in
4366 i*86 )
4367 # Not sure whether the presence of OpenBSD here was a mistake.
4368 # Let's accept both of them until this is cleared up.
4369 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4370 lt_cv_file_magic_cmd=/usr/bin/file
4371 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4373 esac
4374 else
4375 lt_cv_deplibs_check_method=pass_all
4379 gnu*)
4380 lt_cv_deplibs_check_method=pass_all
4383 hpux10.20* | hpux11*)
4384 lt_cv_file_magic_cmd=/usr/bin/file
4385 case $host_cpu in
4386 ia64*)
4387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4388 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4390 hppa*64*)
4391 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4392 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4395 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4396 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4398 esac
4401 interix[3-9]*)
4402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4403 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4406 irix5* | irix6* | nonstopux*)
4407 case $LD in
4408 *-32|*"-32 ") libmagic=32-bit;;
4409 *-n32|*"-n32 ") libmagic=N32;;
4410 *-64|*"-64 ") libmagic=64-bit;;
4411 *) libmagic=never-match;;
4412 esac
4413 lt_cv_deplibs_check_method=pass_all
4416 # This must be Linux ELF.
4417 linux* | k*bsd*-gnu)
4418 lt_cv_deplibs_check_method=pass_all
4421 netbsd*)
4422 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4423 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4424 else
4425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4429 newos6*)
4430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4431 lt_cv_file_magic_cmd=/usr/bin/file
4432 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4435 *nto* | *qnx*)
4436 lt_cv_deplibs_check_method=pass_all
4439 openbsd*)
4440 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4442 else
4443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4447 osf3* | osf4* | osf5*)
4448 lt_cv_deplibs_check_method=pass_all
4451 rdos*)
4452 lt_cv_deplibs_check_method=pass_all
4455 solaris*)
4456 lt_cv_deplibs_check_method=pass_all
4459 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4460 lt_cv_deplibs_check_method=pass_all
4463 sysv4 | sysv4.3*)
4464 case $host_vendor in
4465 motorola)
4466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4467 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4469 ncr)
4470 lt_cv_deplibs_check_method=pass_all
4472 sequent)
4473 lt_cv_file_magic_cmd='/bin/file'
4474 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4476 sni)
4477 lt_cv_file_magic_cmd='/bin/file'
4478 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4479 lt_cv_file_magic_test_file=/lib/libc.so
4481 siemens)
4482 lt_cv_deplibs_check_method=pass_all
4485 lt_cv_deplibs_check_method=pass_all
4487 esac
4490 tpf*)
4491 lt_cv_deplibs_check_method=pass_all
4493 esac
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4497 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4498 file_magic_cmd=$lt_cv_file_magic_cmd
4499 deplibs_check_method=$lt_cv_deplibs_check_method
4500 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4513 if test -n "$ac_tool_prefix"; then
4514 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4515 set dummy ${ac_tool_prefix}ar; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_prog_AR+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520 else
4521 if test -n "$AR"; then
4522 ac_cv_prog_AR="$AR" # Let the user override the test.
4523 else
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 for as_dir in $PATH
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_AR="${ac_tool_prefix}ar"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 break 2
4535 done
4536 done
4537 IFS=$as_save_IFS
4541 AR=$ac_cv_prog_AR
4542 if test -n "$AR"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4544 $as_echo "$AR" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4552 if test -z "$ac_cv_prog_AR"; then
4553 ac_ct_AR=$AR
4554 # Extract the first word of "ar", so it can be a program name with args.
4555 set dummy ar; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$ac_ct_AR"; then
4562 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_ac_ct_AR="ar"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4582 if test -n "$ac_ct_AR"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4584 $as_echo "$ac_ct_AR" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4590 if test "x$ac_ct_AR" = x; then
4591 AR="false"
4592 else
4593 case $cross_compiling:$ac_tool_warned in
4594 yes:)
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4597 ac_tool_warned=yes ;;
4598 esac
4599 AR=$ac_ct_AR
4601 else
4602 AR="$ac_cv_prog_AR"
4605 test -z "$AR" && AR=ar
4606 test -z "$AR_FLAGS" && AR_FLAGS=cru
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}strip; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if ${ac_cv_prog_STRIP+:} false; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$STRIP"; then
4627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 STRIP=$ac_cv_prog_STRIP
4647 if test -n "$STRIP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4649 $as_echo "$STRIP" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_STRIP"; then
4658 ac_ct_STRIP=$STRIP
4659 # Extract the first word of "strip", so it can be a program name with args.
4660 set dummy strip; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_STRIP"; then
4667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_STRIP="strip"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4687 if test -n "$ac_ct_STRIP"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4689 $as_echo "$ac_ct_STRIP" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_STRIP" = x; then
4696 STRIP=":"
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 STRIP=$ac_ct_STRIP
4706 else
4707 STRIP="$ac_cv_prog_STRIP"
4710 test -z "$STRIP" && STRIP=:
4717 if test -n "$ac_tool_prefix"; then
4718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4721 $as_echo_n "checking for $ac_word... " >&6; }
4722 if ${ac_cv_prog_RANLIB+:} false; then :
4723 $as_echo_n "(cached) " >&6
4724 else
4725 if test -n "$RANLIB"; then
4726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4727 else
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729 for as_dir in $PATH
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
4734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4739 done
4740 done
4741 IFS=$as_save_IFS
4745 RANLIB=$ac_cv_prog_RANLIB
4746 if test -n "$RANLIB"; then
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4748 $as_echo "$RANLIB" >&6; }
4749 else
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751 $as_echo "no" >&6; }
4756 if test -z "$ac_cv_prog_RANLIB"; then
4757 ac_ct_RANLIB=$RANLIB
4758 # Extract the first word of "ranlib", so it can be a program name with args.
4759 set dummy ranlib; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 if test -n "$ac_ct_RANLIB"; then
4766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4767 else
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775 ac_cv_prog_ac_ct_RANLIB="ranlib"
4776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 break 2
4779 done
4780 done
4781 IFS=$as_save_IFS
4785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4786 if test -n "$ac_ct_RANLIB"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4788 $as_echo "$ac_ct_RANLIB" >&6; }
4789 else
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4791 $as_echo "no" >&6; }
4794 if test "x$ac_ct_RANLIB" = x; then
4795 RANLIB=":"
4796 else
4797 case $cross_compiling:$ac_tool_warned in
4798 yes:)
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4801 ac_tool_warned=yes ;;
4802 esac
4803 RANLIB=$ac_ct_RANLIB
4805 else
4806 RANLIB="$ac_cv_prog_RANLIB"
4809 test -z "$RANLIB" && RANLIB=:
4816 # Determine commands to create old-style static archives.
4817 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4818 old_postinstall_cmds='chmod 644 $oldlib'
4819 old_postuninstall_cmds=
4821 if test -n "$RANLIB"; then
4822 case $host_os in
4823 openbsd*)
4824 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4827 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4829 esac
4830 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4866 # If no C compiler was specified, use CC.
4867 LTCC=${LTCC-"$CC"}
4869 # If no C compiler flags were specified, use CFLAGS.
4870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4872 # Allow CC to be a program name with arguments.
4873 compiler=$CC
4876 # Check for command to grab the raw symbol name followed by C symbol from nm.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4878 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4879 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4880 $as_echo_n "(cached) " >&6
4881 else
4883 # These are sane defaults that work on at least a few old systems.
4884 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4886 # Character class describing NM global symbol codes.
4887 symcode='[BCDEGRST]'
4889 # Regexp to match symbols that can be accessed directly from C.
4890 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4892 # Define system-specific variables.
4893 case $host_os in
4894 aix*)
4895 symcode='[BCDT]'
4897 cygwin* | mingw* | pw32* | cegcc*)
4898 symcode='[ABCDGISTW]'
4900 hpux*)
4901 if test "$host_cpu" = ia64; then
4902 symcode='[ABCDEGRST]'
4905 irix* | nonstopux*)
4906 symcode='[BCDEGRST]'
4908 osf*)
4909 symcode='[BCDEGQRST]'
4911 solaris*)
4912 symcode='[BDRT]'
4914 sco3.2v5*)
4915 symcode='[DT]'
4917 sysv4.2uw2*)
4918 symcode='[DT]'
4920 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4921 symcode='[ABDT]'
4923 sysv4)
4924 symcode='[DFNSTU]'
4926 esac
4928 # If we're using GNU nm, then use its standard symbol codes.
4929 case `$NM -V 2>&1` in
4930 *GNU* | *'with BFD'*)
4931 symcode='[ABCDGIRSTW]' ;;
4932 esac
4934 # Transform an extracted symbol line into a proper C declaration.
4935 # Some systems (esp. on ia64) link data and code symbols differently,
4936 # so use this general approach.
4937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4939 # Transform an extracted symbol line into symbol name and symbol address
4940 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4941 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4943 # Handle CRLF in mingw tool chain
4944 opt_cr=
4945 case $build_os in
4946 mingw*)
4947 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4949 esac
4951 # Try without a prefix underscore, then with it.
4952 for ac_symprfx in "" "_"; do
4954 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4955 symxfrm="\\1 $ac_symprfx\\2 \\2"
4957 # Write the raw and C identifiers.
4958 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4959 # Fake it for dumpbin and say T for any non-static function
4960 # and D for any global variable.
4961 # Also find C++ and __fastcall symbols from MSVC++,
4962 # which start with @ or ?.
4963 lt_cv_sys_global_symbol_pipe="$AWK '"\
4964 " {last_section=section; section=\$ 3};"\
4965 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4966 " \$ 0!~/External *\|/{next};"\
4967 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4968 " {if(hide[section]) next};"\
4969 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4970 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4971 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4972 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4973 " ' prfx=^$ac_symprfx"
4974 else
4975 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4978 # Check to see that the pipe works correctly.
4979 pipe_works=no
4981 rm -f conftest*
4982 cat > conftest.$ac_ext <<_LT_EOF
4983 #ifdef __cplusplus
4984 extern "C" {
4985 #endif
4986 char nm_test_var;
4987 void nm_test_func(void);
4988 void nm_test_func(void){}
4989 #ifdef __cplusplus
4991 #endif
4992 int main(){nm_test_var='a';nm_test_func();return(0);}
4993 _LT_EOF
4995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4996 (eval $ac_compile) 2>&5
4997 ac_status=$?
4998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; }; then
5000 # Now try to grab the symbols.
5001 nlist=conftest.nm
5002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5003 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5004 ac_status=$?
5005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5006 test $ac_status = 0; } && test -s "$nlist"; then
5007 # Try sorting and uniquifying the output.
5008 if sort "$nlist" | uniq > "$nlist"T; then
5009 mv -f "$nlist"T "$nlist"
5010 else
5011 rm -f "$nlist"T
5014 # Make sure that we snagged all the symbols we need.
5015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5017 cat <<_LT_EOF > conftest.$ac_ext
5018 #ifdef __cplusplus
5019 extern "C" {
5020 #endif
5022 _LT_EOF
5023 # Now generate the symbol file.
5024 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5026 cat <<_LT_EOF >> conftest.$ac_ext
5028 /* The mapping between symbol names and symbols. */
5029 const struct {
5030 const char *name;
5031 void *address;
5033 lt__PROGRAM__LTX_preloaded_symbols[] =
5035 { "@PROGRAM@", (void *) 0 },
5036 _LT_EOF
5037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5038 cat <<\_LT_EOF >> conftest.$ac_ext
5039 {0, (void *) 0}
5042 /* This works around a problem in FreeBSD linker */
5043 #ifdef FREEBSD_WORKAROUND
5044 static const void *lt_preloaded_setup() {
5045 return lt__PROGRAM__LTX_preloaded_symbols;
5047 #endif
5049 #ifdef __cplusplus
5051 #endif
5052 _LT_EOF
5053 # Now try linking the two files.
5054 mv conftest.$ac_objext conftstm.$ac_objext
5055 lt_save_LIBS="$LIBS"
5056 lt_save_CFLAGS="$CFLAGS"
5057 LIBS="conftstm.$ac_objext"
5058 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5060 (eval $ac_link) 2>&5
5061 ac_status=$?
5062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5063 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5064 pipe_works=yes
5066 LIBS="$lt_save_LIBS"
5067 CFLAGS="$lt_save_CFLAGS"
5068 else
5069 echo "cannot find nm_test_func in $nlist" >&5
5071 else
5072 echo "cannot find nm_test_var in $nlist" >&5
5074 else
5075 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5077 else
5078 echo "$progname: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5081 rm -rf conftest* conftst*
5083 # Do not use the global_symbol_pipe unless it works.
5084 if test "$pipe_works" = yes; then
5085 break
5086 else
5087 lt_cv_sys_global_symbol_pipe=
5089 done
5093 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5094 lt_cv_sys_global_symbol_to_cdecl=
5096 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5098 $as_echo "failed" >&6; }
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5101 $as_echo "ok" >&6; }
5126 # Check whether --enable-libtool-lock was given.
5127 if test "${enable_libtool_lock+set}" = set; then :
5128 enableval=$enable_libtool_lock;
5131 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5133 # Some flags need to be propagated to the compiler or linker for good
5134 # libtool support.
5135 case $host in
5136 ia64-*-hpux*)
5137 # Find out which ABI we are using.
5138 echo 'int i;' > conftest.$ac_ext
5139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5140 (eval $ac_compile) 2>&5
5141 ac_status=$?
5142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143 test $ac_status = 0; }; then
5144 case `/usr/bin/file conftest.$ac_objext` in
5145 *ELF-32*)
5146 HPUX_IA64_MODE="32"
5148 *ELF-64*)
5149 HPUX_IA64_MODE="64"
5151 esac
5153 rm -rf conftest*
5155 *-*-irix6*)
5156 # Find out which ABI we are using.
5157 echo '#line 5157 "configure"' > conftest.$ac_ext
5158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5159 (eval $ac_compile) 2>&5
5160 ac_status=$?
5161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5162 test $ac_status = 0; }; then
5163 if test "$lt_cv_prog_gnu_ld" = yes; then
5164 case `/usr/bin/file conftest.$ac_objext` in
5165 *32-bit*)
5166 LD="${LD-ld} -melf32bsmip"
5168 *N32*)
5169 LD="${LD-ld} -melf32bmipn32"
5171 *64-bit*)
5172 LD="${LD-ld} -melf64bmip"
5174 esac
5175 else
5176 case `/usr/bin/file conftest.$ac_objext` in
5177 *32-bit*)
5178 LD="${LD-ld} -32"
5180 *N32*)
5181 LD="${LD-ld} -n32"
5183 *64-bit*)
5184 LD="${LD-ld} -64"
5186 esac
5189 rm -rf conftest*
5192 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5193 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5194 # Find out which ABI we are using.
5195 echo 'int i;' > conftest.$ac_ext
5196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5197 (eval $ac_compile) 2>&5
5198 ac_status=$?
5199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5200 test $ac_status = 0; }; then
5201 case `/usr/bin/file conftest.o` in
5202 *32-bit*)
5203 case $host in
5204 x86_64-*kfreebsd*-gnu)
5205 LD="${LD-ld} -m elf_i386_fbsd"
5207 x86_64-*linux*)
5208 LD="${LD-ld} -m elf_i386"
5210 ppc64-*linux*|powerpc64-*linux*)
5211 LD="${LD-ld} -m elf32ppclinux"
5213 s390x-*linux*)
5214 LD="${LD-ld} -m elf_s390"
5216 sparc64-*linux*)
5217 LD="${LD-ld} -m elf32_sparc"
5219 esac
5221 *64-bit*)
5222 case $host in
5223 x86_64-*kfreebsd*-gnu)
5224 LD="${LD-ld} -m elf_x86_64_fbsd"
5226 x86_64-*linux*)
5227 LD="${LD-ld} -m elf_x86_64"
5229 ppc*-*linux*|powerpc*-*linux*)
5230 LD="${LD-ld} -m elf64ppc"
5232 s390*-*linux*|s390*-*tpf*)
5233 LD="${LD-ld} -m elf64_s390"
5235 sparc*-*linux*)
5236 LD="${LD-ld} -m elf64_sparc"
5238 esac
5240 esac
5242 rm -rf conftest*
5245 *-*-sco3.2v5*)
5246 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5247 SAVE_CFLAGS="$CFLAGS"
5248 CFLAGS="$CFLAGS -belf"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5250 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5251 if ${lt_cv_cc_needs_belf+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253 else
5254 ac_ext=c
5255 ac_cpp='$CPP $CPPFLAGS'
5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5264 main ()
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_link "$LINENO"; then :
5272 lt_cv_cc_needs_belf=yes
5273 else
5274 lt_cv_cc_needs_belf=no
5276 rm -f core conftest.err conftest.$ac_objext \
5277 conftest$ac_exeext conftest.$ac_ext
5278 ac_ext=c
5279 ac_cpp='$CPP $CPPFLAGS'
5280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5286 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5287 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5288 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5289 CFLAGS="$SAVE_CFLAGS"
5292 sparc*-*solaris*)
5293 # Find out which ABI we are using.
5294 echo 'int i;' > conftest.$ac_ext
5295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5296 (eval $ac_compile) 2>&5
5297 ac_status=$?
5298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5299 test $ac_status = 0; }; then
5300 case `/usr/bin/file conftest.o` in
5301 *64-bit*)
5302 case $lt_cv_prog_gnu_ld in
5303 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5305 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5306 LD="${LD-ld} -64"
5309 esac
5311 esac
5313 rm -rf conftest*
5315 esac
5317 need_locks="$enable_libtool_lock"
5320 case $host_os in
5321 rhapsody* | darwin*)
5322 if test -n "$ac_tool_prefix"; then
5323 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5324 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -n "$DSYMUTIL"; then
5331 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5332 else
5333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 for as_dir in $PATH
5336 IFS=$as_save_IFS
5337 test -z "$as_dir" && as_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5340 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 break 2
5344 done
5345 done
5346 IFS=$as_save_IFS
5350 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5351 if test -n "$DSYMUTIL"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5353 $as_echo "$DSYMUTIL" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5361 if test -z "$ac_cv_prog_DSYMUTIL"; then
5362 ac_ct_DSYMUTIL=$DSYMUTIL
5363 # Extract the first word of "dsymutil", so it can be a program name with args.
5364 set dummy dsymutil; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 if test -n "$ac_ct_DSYMUTIL"; then
5371 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5386 IFS=$as_save_IFS
5390 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5391 if test -n "$ac_ct_DSYMUTIL"; then
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5393 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5394 else
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5396 $as_echo "no" >&6; }
5399 if test "x$ac_ct_DSYMUTIL" = x; then
5400 DSYMUTIL=":"
5401 else
5402 case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408 DSYMUTIL=$ac_ct_DSYMUTIL
5410 else
5411 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5414 if test -n "$ac_tool_prefix"; then
5415 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5416 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_prog_NMEDIT+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 if test -n "$NMEDIT"; then
5423 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5424 else
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
5431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5432 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5436 done
5437 done
5438 IFS=$as_save_IFS
5442 NMEDIT=$ac_cv_prog_NMEDIT
5443 if test -n "$NMEDIT"; then
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5445 $as_echo "$NMEDIT" >&6; }
5446 else
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 $as_echo "no" >&6; }
5453 if test -z "$ac_cv_prog_NMEDIT"; then
5454 ac_ct_NMEDIT=$NMEDIT
5455 # Extract the first word of "nmedit", so it can be a program name with args.
5456 set dummy nmedit; ac_word=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$ac_ct_NMEDIT"; then
5463 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5476 done
5477 done
5478 IFS=$as_save_IFS
5482 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5483 if test -n "$ac_ct_NMEDIT"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5485 $as_echo "$ac_ct_NMEDIT" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5491 if test "x$ac_ct_NMEDIT" = x; then
5492 NMEDIT=":"
5493 else
5494 case $cross_compiling:$ac_tool_warned in
5495 yes:)
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5498 ac_tool_warned=yes ;;
5499 esac
5500 NMEDIT=$ac_ct_NMEDIT
5502 else
5503 NMEDIT="$ac_cv_prog_NMEDIT"
5506 if test -n "$ac_tool_prefix"; then
5507 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5508 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 $as_echo_n "checking for $ac_word... " >&6; }
5511 if ${ac_cv_prog_LIPO+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 if test -n "$LIPO"; then
5515 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5516 else
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5520 IFS=$as_save_IFS
5521 test -z "$as_dir" && as_dir=.
5522 for ac_exec_ext in '' $ac_executable_extensions; do
5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526 break 2
5528 done
5529 done
5530 IFS=$as_save_IFS
5534 LIPO=$ac_cv_prog_LIPO
5535 if test -n "$LIPO"; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5537 $as_echo "$LIPO" >&6; }
5538 else
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5545 if test -z "$ac_cv_prog_LIPO"; then
5546 ac_ct_LIPO=$LIPO
5547 # Extract the first word of "lipo", so it can be a program name with args.
5548 set dummy lipo; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 if test -n "$ac_ct_LIPO"; then
5555 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5556 else
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5564 ac_cv_prog_ac_ct_LIPO="lipo"
5565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 break 2
5568 done
5569 done
5570 IFS=$as_save_IFS
5574 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5575 if test -n "$ac_ct_LIPO"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5577 $as_echo "$ac_ct_LIPO" >&6; }
5578 else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 $as_echo "no" >&6; }
5583 if test "x$ac_ct_LIPO" = x; then
5584 LIPO=":"
5585 else
5586 case $cross_compiling:$ac_tool_warned in
5587 yes:)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590 ac_tool_warned=yes ;;
5591 esac
5592 LIPO=$ac_ct_LIPO
5594 else
5595 LIPO="$ac_cv_prog_LIPO"
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}otool; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_OTOOL+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 if test -n "$OTOOL"; then
5607 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5608 else
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 for as_dir in $PATH
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5620 done
5621 done
5622 IFS=$as_save_IFS
5626 OTOOL=$ac_cv_prog_OTOOL
5627 if test -n "$OTOOL"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5629 $as_echo "$OTOOL" >&6; }
5630 else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_OTOOL"; then
5638 ac_ct_OTOOL=$OTOOL
5639 # Extract the first word of "otool", so it can be a program name with args.
5640 set dummy otool; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test -n "$ac_ct_OTOOL"; then
5647 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5648 else
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5650 for as_dir in $PATH
5652 IFS=$as_save_IFS
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_OTOOL="otool"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 break 2
5660 done
5661 done
5662 IFS=$as_save_IFS
5666 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5667 if test -n "$ac_ct_OTOOL"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5669 $as_echo "$ac_ct_OTOOL" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_OTOOL" = x; then
5676 OTOOL=":"
5677 else
5678 case $cross_compiling:$ac_tool_warned in
5679 yes:)
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned=yes ;;
5683 esac
5684 OTOOL=$ac_ct_OTOOL
5686 else
5687 OTOOL="$ac_cv_prog_OTOOL"
5690 if test -n "$ac_tool_prefix"; then
5691 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5692 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5694 $as_echo_n "checking for $ac_word... " >&6; }
5695 if ${ac_cv_prog_OTOOL64+:} false; then :
5696 $as_echo_n "(cached) " >&6
5697 else
5698 if test -n "$OTOOL64"; then
5699 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5700 else
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 break 2
5712 done
5713 done
5714 IFS=$as_save_IFS
5718 OTOOL64=$ac_cv_prog_OTOOL64
5719 if test -n "$OTOOL64"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5721 $as_echo "$OTOOL64" >&6; }
5722 else
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 $as_echo "no" >&6; }
5729 if test -z "$ac_cv_prog_OTOOL64"; then
5730 ac_ct_OTOOL64=$OTOOL64
5731 # Extract the first word of "otool64", so it can be a program name with args.
5732 set dummy otool64; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 if test -n "$ac_ct_OTOOL64"; then
5739 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5740 else
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5744 IFS=$as_save_IFS
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748 ac_cv_prog_ac_ct_OTOOL64="otool64"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 break 2
5752 done
5753 done
5754 IFS=$as_save_IFS
5758 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5759 if test -n "$ac_ct_OTOOL64"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5761 $as_echo "$ac_ct_OTOOL64" >&6; }
5762 else
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5767 if test "x$ac_ct_OTOOL64" = x; then
5768 OTOOL64=":"
5769 else
5770 case $cross_compiling:$ac_tool_warned in
5771 yes:)
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5774 ac_tool_warned=yes ;;
5775 esac
5776 OTOOL64=$ac_ct_OTOOL64
5778 else
5779 OTOOL64="$ac_cv_prog_OTOOL64"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5809 $as_echo_n "checking for -single_module linker flag... " >&6; }
5810 if ${lt_cv_apple_cc_single_mod+:} false; then :
5811 $as_echo_n "(cached) " >&6
5812 else
5813 lt_cv_apple_cc_single_mod=no
5814 if test -z "${LT_MULTI_MODULE}"; then
5815 # By default we will add the -single_module flag. You can override
5816 # by either setting the environment variable LT_MULTI_MODULE
5817 # non-empty at configure time, or by adding -multi_module to the
5818 # link flags.
5819 rm -rf libconftest.dylib*
5820 echo "int foo(void){return 1;}" > conftest.c
5821 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5822 -dynamiclib -Wl,-single_module conftest.c" >&5
5823 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5824 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5825 _lt_result=$?
5826 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5827 lt_cv_apple_cc_single_mod=yes
5828 else
5829 cat conftest.err >&5
5831 rm -rf libconftest.dylib*
5832 rm -f conftest.*
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5836 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5838 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5839 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 lt_cv_ld_exported_symbols_list=no
5843 save_LDFLAGS=$LDFLAGS
5844 echo "_main" > conftest.sym
5845 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5850 main ()
5854 return 0;
5856 _ACEOF
5857 if ac_fn_c_try_link "$LINENO"; then :
5858 lt_cv_ld_exported_symbols_list=yes
5859 else
5860 lt_cv_ld_exported_symbols_list=no
5862 rm -f core conftest.err conftest.$ac_objext \
5863 conftest$ac_exeext conftest.$ac_ext
5864 LDFLAGS="$save_LDFLAGS"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5868 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5869 case $host_os in
5870 rhapsody* | darwin1.[012])
5871 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5872 darwin1.*)
5873 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5874 darwin*) # darwin 5.x on
5875 # if running on 10.5 or later, the deployment target defaults
5876 # to the OS version, if on x86, and 10.4, the deployment
5877 # target defaults to 10.4. Don't you love it?
5878 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5879 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5880 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5881 10.[012]*)
5882 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5883 10.*)
5884 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5885 esac
5887 esac
5888 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5889 _lt_dar_single_mod='$single_module'
5891 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5892 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5893 else
5894 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5896 if test "$DSYMUTIL" != ":"; then
5897 _lt_dsymutil='~$DSYMUTIL $lib || :'
5898 else
5899 _lt_dsymutil=
5902 esac
5904 ac_ext=c
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5910 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5911 # On Suns, sometimes $CPP names a directory.
5912 if test -n "$CPP" && test -d "$CPP"; then
5913 CPP=
5915 if test -z "$CPP"; then
5916 if ${ac_cv_prog_CPP+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 # Double quotes because CPP needs to be expanded
5920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5922 ac_preproc_ok=false
5923 for ac_c_preproc_warn_flag in '' yes
5925 # Use a header file that comes with gcc, so configuring glibc
5926 # with a fresh cross-compiler works.
5927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5928 # <limits.h> exists even on freestanding compilers.
5929 # On the NeXT, cc -E runs the code through the compiler's parser,
5930 # not just through cpp. "Syntax error" is here to catch this case.
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933 #ifdef __STDC__
5934 # include <limits.h>
5935 #else
5936 # include <assert.h>
5937 #endif
5938 Syntax error
5939 _ACEOF
5940 if ac_fn_c_try_cpp "$LINENO"; then :
5942 else
5943 # Broken: fails on valid input.
5944 continue
5946 rm -f conftest.err conftest.i conftest.$ac_ext
5948 # OK, works on sane cases. Now check whether nonexistent headers
5949 # can be detected and how.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <ac_nonexistent.h>
5953 _ACEOF
5954 if ac_fn_c_try_cpp "$LINENO"; then :
5955 # Broken: success on invalid input.
5956 continue
5957 else
5958 # Passes both tests.
5959 ac_preproc_ok=:
5960 break
5962 rm -f conftest.err conftest.i conftest.$ac_ext
5964 done
5965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5966 rm -f conftest.i conftest.err conftest.$ac_ext
5967 if $ac_preproc_ok; then :
5968 break
5971 done
5972 ac_cv_prog_CPP=$CPP
5975 CPP=$ac_cv_prog_CPP
5976 else
5977 ac_cv_prog_CPP=$CPP
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5980 $as_echo "$CPP" >&6; }
5981 ac_preproc_ok=false
5982 for ac_c_preproc_warn_flag in '' yes
5984 # Use a header file that comes with gcc, so configuring glibc
5985 # with a fresh cross-compiler works.
5986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987 # <limits.h> exists even on freestanding compilers.
5988 # On the NeXT, cc -E runs the code through the compiler's parser,
5989 # not just through cpp. "Syntax error" is here to catch this case.
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 #ifdef __STDC__
5993 # include <limits.h>
5994 #else
5995 # include <assert.h>
5996 #endif
5997 Syntax error
5998 _ACEOF
5999 if ac_fn_c_try_cpp "$LINENO"; then :
6001 else
6002 # Broken: fails on valid input.
6003 continue
6005 rm -f conftest.err conftest.i conftest.$ac_ext
6007 # OK, works on sane cases. Now check whether nonexistent headers
6008 # can be detected and how.
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #include <ac_nonexistent.h>
6012 _ACEOF
6013 if ac_fn_c_try_cpp "$LINENO"; then :
6014 # Broken: success on invalid input.
6015 continue
6016 else
6017 # Passes both tests.
6018 ac_preproc_ok=:
6019 break
6021 rm -f conftest.err conftest.i conftest.$ac_ext
6023 done
6024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6025 rm -f conftest.i conftest.err conftest.$ac_ext
6026 if $ac_preproc_ok; then :
6028 else
6029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6031 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6032 See \`config.log' for more details" "$LINENO" 5; }
6035 ac_ext=c
6036 ac_cpp='$CPP $CPPFLAGS'
6037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6043 $as_echo_n "checking for ANSI C header files... " >&6; }
6044 if ${ac_cv_header_stdc+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 #include <stdlib.h>
6050 #include <stdarg.h>
6051 #include <string.h>
6052 #include <float.h>
6055 main ()
6059 return 0;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 ac_cv_header_stdc=yes
6064 else
6065 ac_cv_header_stdc=no
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 if test $ac_cv_header_stdc = yes; then
6070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6073 #include <string.h>
6075 _ACEOF
6076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6077 $EGREP "memchr" >/dev/null 2>&1; then :
6079 else
6080 ac_cv_header_stdc=no
6082 rm -f conftest*
6086 if test $ac_cv_header_stdc = yes; then
6087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090 #include <stdlib.h>
6092 _ACEOF
6093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "free" >/dev/null 2>&1; then :
6096 else
6097 ac_cv_header_stdc=no
6099 rm -f conftest*
6103 if test $ac_cv_header_stdc = yes; then
6104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6105 if test "$cross_compiling" = yes; then :
6107 else
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <ctype.h>
6111 #include <stdlib.h>
6112 #if ((' ' & 0x0FF) == 0x020)
6113 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6114 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6115 #else
6116 # define ISLOWER(c) \
6117 (('a' <= (c) && (c) <= 'i') \
6118 || ('j' <= (c) && (c) <= 'r') \
6119 || ('s' <= (c) && (c) <= 'z'))
6120 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6121 #endif
6123 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6125 main ()
6127 int i;
6128 for (i = 0; i < 256; i++)
6129 if (XOR (islower (i), ISLOWER (i))
6130 || toupper (i) != TOUPPER (i))
6131 return 2;
6132 return 0;
6134 _ACEOF
6135 if ac_fn_c_try_run "$LINENO"; then :
6137 else
6138 ac_cv_header_stdc=no
6140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6141 conftest.$ac_objext conftest.beam conftest.$ac_ext
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6147 $as_echo "$ac_cv_header_stdc" >&6; }
6148 if test $ac_cv_header_stdc = yes; then
6150 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6154 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6155 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6156 inttypes.h stdint.h unistd.h
6157 do :
6158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6159 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6161 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6164 _ACEOF
6168 done
6171 for ac_header in dlfcn.h
6172 do :
6173 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6175 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6176 cat >>confdefs.h <<_ACEOF
6177 #define HAVE_DLFCN_H 1
6178 _ACEOF
6182 done
6186 # Set options
6190 enable_dlopen=no
6193 enable_win32_dll=no
6196 # Check whether --enable-shared was given.
6197 if test "${enable_shared+set}" = set; then :
6198 enableval=$enable_shared; p=${PACKAGE-default}
6199 case $enableval in
6200 yes) enable_shared=yes ;;
6201 no) enable_shared=no ;;
6203 enable_shared=no
6204 # Look at the argument we got. We use all the common list separators.
6205 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6206 for pkg in $enableval; do
6207 IFS="$lt_save_ifs"
6208 if test "X$pkg" = "X$p"; then
6209 enable_shared=yes
6211 done
6212 IFS="$lt_save_ifs"
6214 esac
6215 else
6216 enable_shared=yes
6227 # Check whether --enable-static was given.
6228 if test "${enable_static+set}" = set; then :
6229 enableval=$enable_static; p=${PACKAGE-default}
6230 case $enableval in
6231 yes) enable_static=yes ;;
6232 no) enable_static=no ;;
6234 enable_static=no
6235 # Look at the argument we got. We use all the common list separators.
6236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6237 for pkg in $enableval; do
6238 IFS="$lt_save_ifs"
6239 if test "X$pkg" = "X$p"; then
6240 enable_static=yes
6242 done
6243 IFS="$lt_save_ifs"
6245 esac
6246 else
6247 enable_static=yes
6259 # Check whether --with-pic was given.
6260 if test "${with_pic+set}" = set; then :
6261 withval=$with_pic; pic_mode="$withval"
6262 else
6263 pic_mode=default
6267 test -z "$pic_mode" && pic_mode=default
6275 # Check whether --enable-fast-install was given.
6276 if test "${enable_fast_install+set}" = set; then :
6277 enableval=$enable_fast_install; p=${PACKAGE-default}
6278 case $enableval in
6279 yes) enable_fast_install=yes ;;
6280 no) enable_fast_install=no ;;
6282 enable_fast_install=no
6283 # Look at the argument we got. We use all the common list separators.
6284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6285 for pkg in $enableval; do
6286 IFS="$lt_save_ifs"
6287 if test "X$pkg" = "X$p"; then
6288 enable_fast_install=yes
6290 done
6291 IFS="$lt_save_ifs"
6293 esac
6294 else
6295 enable_fast_install=yes
6308 # This can be used to rebuild libtool when needed
6309 LIBTOOL_DEPS="$ltmain"
6311 # Always use our own libtool.
6312 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6338 test -z "$LN_S" && LN_S="ln -s"
6353 if test -n "${ZSH_VERSION+set}" ; then
6354 setopt NO_GLOB_SUBST
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6358 $as_echo_n "checking for objdir... " >&6; }
6359 if ${lt_cv_objdir+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 rm -f .libs 2>/dev/null
6363 mkdir .libs 2>/dev/null
6364 if test -d .libs; then
6365 lt_cv_objdir=.libs
6366 else
6367 # MS-DOS does not allow filenames that begin with a dot.
6368 lt_cv_objdir=_libs
6370 rmdir .libs 2>/dev/null
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6373 $as_echo "$lt_cv_objdir" >&6; }
6374 objdir=$lt_cv_objdir
6380 cat >>confdefs.h <<_ACEOF
6381 #define LT_OBJDIR "$lt_cv_objdir/"
6382 _ACEOF
6400 case $host_os in
6401 aix3*)
6402 # AIX sometimes has problems with the GCC collect2 program. For some
6403 # reason, if we set the COLLECT_NAMES environment variable, the problems
6404 # vanish in a puff of smoke.
6405 if test "X${COLLECT_NAMES+set}" != Xset; then
6406 COLLECT_NAMES=
6407 export COLLECT_NAMES
6410 esac
6412 # Sed substitution that helps us do robust quoting. It backslashifies
6413 # metacharacters that are still active within double-quoted strings.
6414 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6416 # Same as above, but do not quote variable references.
6417 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6419 # Sed substitution to delay expansion of an escaped shell variable in a
6420 # double_quote_subst'ed string.
6421 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6423 # Sed substitution to delay expansion of an escaped single quote.
6424 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6426 # Sed substitution to avoid accidental globbing in evaled expressions
6427 no_glob_subst='s/\*/\\\*/g'
6429 # Global variables:
6430 ofile=libtool
6431 can_build_shared=yes
6433 # All known linkers require a `.a' archive for static linking (except MSVC,
6434 # which needs '.lib').
6435 libext=a
6437 with_gnu_ld="$lt_cv_prog_gnu_ld"
6439 old_CC="$CC"
6440 old_CFLAGS="$CFLAGS"
6442 # Set sane defaults for various variables
6443 test -z "$CC" && CC=cc
6444 test -z "$LTCC" && LTCC=$CC
6445 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6446 test -z "$LD" && LD=ld
6447 test -z "$ac_objext" && ac_objext=o
6449 for cc_temp in $compiler""; do
6450 case $cc_temp in
6451 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6452 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6453 \-*) ;;
6454 *) break;;
6455 esac
6456 done
6457 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6460 # Only perform the check for file, if the check method requires it
6461 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6462 case $deplibs_check_method in
6463 file_magic*)
6464 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6466 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6467 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6468 $as_echo_n "(cached) " >&6
6469 else
6470 case $MAGIC_CMD in
6471 [\\/*] | ?:[\\/]*)
6472 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6475 lt_save_MAGIC_CMD="$MAGIC_CMD"
6476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6478 for ac_dir in $ac_dummy; do
6479 IFS="$lt_save_ifs"
6480 test -z "$ac_dir" && ac_dir=.
6481 if test -f $ac_dir/${ac_tool_prefix}file; then
6482 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6483 if test -n "$file_magic_test_file"; then
6484 case $deplibs_check_method in
6485 "file_magic "*)
6486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6487 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6489 $EGREP "$file_magic_regex" > /dev/null; then
6491 else
6492 cat <<_LT_EOF 1>&2
6494 *** Warning: the command libtool uses to detect shared libraries,
6495 *** $file_magic_cmd, produces output that libtool cannot recognize.
6496 *** The result is that libtool may fail to recognize shared libraries
6497 *** as such. This will affect the creation of libtool libraries that
6498 *** depend on shared libraries, but programs linked with such libtool
6499 *** libraries will work regardless of this problem. Nevertheless, you
6500 *** may want to report the problem to your system manager and/or to
6501 *** bug-libtool@gnu.org
6503 _LT_EOF
6504 fi ;;
6505 esac
6507 break
6509 done
6510 IFS="$lt_save_ifs"
6511 MAGIC_CMD="$lt_save_MAGIC_CMD"
6513 esac
6516 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6517 if test -n "$MAGIC_CMD"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6519 $as_echo "$MAGIC_CMD" >&6; }
6520 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6529 if test -z "$lt_cv_path_MAGIC_CMD"; then
6530 if test -n "$ac_tool_prefix"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6532 $as_echo_n "checking for file... " >&6; }
6533 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6534 $as_echo_n "(cached) " >&6
6535 else
6536 case $MAGIC_CMD in
6537 [\\/*] | ?:[\\/]*)
6538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6541 lt_save_MAGIC_CMD="$MAGIC_CMD"
6542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6544 for ac_dir in $ac_dummy; do
6545 IFS="$lt_save_ifs"
6546 test -z "$ac_dir" && ac_dir=.
6547 if test -f $ac_dir/file; then
6548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6549 if test -n "$file_magic_test_file"; then
6550 case $deplibs_check_method in
6551 "file_magic "*)
6552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6555 $EGREP "$file_magic_regex" > /dev/null; then
6557 else
6558 cat <<_LT_EOF 1>&2
6560 *** Warning: the command libtool uses to detect shared libraries,
6561 *** $file_magic_cmd, produces output that libtool cannot recognize.
6562 *** The result is that libtool may fail to recognize shared libraries
6563 *** as such. This will affect the creation of libtool libraries that
6564 *** depend on shared libraries, but programs linked with such libtool
6565 *** libraries will work regardless of this problem. Nevertheless, you
6566 *** may want to report the problem to your system manager and/or to
6567 *** bug-libtool@gnu.org
6569 _LT_EOF
6570 fi ;;
6571 esac
6573 break
6575 done
6576 IFS="$lt_save_ifs"
6577 MAGIC_CMD="$lt_save_MAGIC_CMD"
6579 esac
6582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6583 if test -n "$MAGIC_CMD"; then
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6585 $as_echo "$MAGIC_CMD" >&6; }
6586 else
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6592 else
6593 MAGIC_CMD=:
6599 esac
6601 # Use C for the default configuration in the libtool script
6603 lt_save_CC="$CC"
6604 ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611 # Source file extension for C test sources.
6612 ac_ext=c
6614 # Object file extension for compiled C test sources.
6615 objext=o
6616 objext=$objext
6618 # Code to be used in simple compile tests
6619 lt_simple_compile_test_code="int some_variable = 0;"
6621 # Code to be used in simple link tests
6622 lt_simple_link_test_code='int main(){return(0);}'
6630 # If no C compiler was specified, use CC.
6631 LTCC=${LTCC-"$CC"}
6633 # If no C compiler flags were specified, use CFLAGS.
6634 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6636 # Allow CC to be a program name with arguments.
6637 compiler=$CC
6639 # Save the default compiler, since it gets overwritten when the other
6640 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6641 compiler_DEFAULT=$CC
6643 # save warnings/boilerplate of simple test code
6644 ac_outfile=conftest.$ac_objext
6645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6647 _lt_compiler_boilerplate=`cat conftest.err`
6648 $RM conftest*
6650 ac_outfile=conftest.$ac_objext
6651 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6653 _lt_linker_boilerplate=`cat conftest.err`
6654 $RM -r conftest*
6657 if test -n "$compiler"; then
6659 lt_prog_compiler_no_builtin_flag=
6661 if test "$GCC" = yes; then
6662 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6665 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6666 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 lt_cv_prog_compiler_rtti_exceptions=no
6670 ac_outfile=conftest.$ac_objext
6671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6672 lt_compiler_flag="-fno-rtti -fno-exceptions"
6673 # Insert the option either (1) after the last *FLAGS variable, or
6674 # (2) before a word containing "conftest.", or (3) at the end.
6675 # Note that $ac_compile itself does not contain backslashes and begins
6676 # with a dollar sign (not a hyphen), so the echo should work correctly.
6677 # The option is referenced via a variable to avoid confusing sed.
6678 lt_compile=`echo "$ac_compile" | $SED \
6679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6681 -e 's:$: $lt_compiler_flag:'`
6682 (eval echo "\"\$as_me:6682: $lt_compile\"" >&5)
6683 (eval "$lt_compile" 2>conftest.err)
6684 ac_status=$?
6685 cat conftest.err >&5
6686 echo "$as_me:6686: \$? = $ac_status" >&5
6687 if (exit $ac_status) && test -s "$ac_outfile"; then
6688 # The compiler can only warn and ignore the option if not recognized
6689 # So say no if there are warnings other than the usual output.
6690 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6692 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6693 lt_cv_prog_compiler_rtti_exceptions=yes
6696 $RM conftest*
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6700 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6702 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6703 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6704 else
6715 lt_prog_compiler_wl=
6716 lt_prog_compiler_pic=
6717 lt_prog_compiler_static=
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6720 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6722 if test "$GCC" = yes; then
6723 lt_prog_compiler_wl='-Wl,'
6724 lt_prog_compiler_static='-static'
6726 case $host_os in
6727 aix*)
6728 # All AIX code is PIC.
6729 if test "$host_cpu" = ia64; then
6730 # AIX 5 now supports IA64 processor
6731 lt_prog_compiler_static='-Bstatic'
6735 amigaos*)
6736 case $host_cpu in
6737 powerpc)
6738 # see comment about AmigaOS4 .so support
6739 lt_prog_compiler_pic='-fPIC'
6741 m68k)
6742 # FIXME: we need at least 68020 code to build shared libraries, but
6743 # adding the `-m68020' flag to GCC prevents building anything better,
6744 # like `-m68040'.
6745 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6747 esac
6750 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6751 # PIC is the default for these OSes.
6754 mingw* | cygwin* | pw32* | os2* | cegcc*)
6755 # This hack is so that the source file can tell whether it is being
6756 # built for inclusion in a dll (and should export symbols for example).
6757 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6758 # (--disable-auto-import) libraries
6759 lt_prog_compiler_pic='-DDLL_EXPORT'
6762 darwin* | rhapsody*)
6763 # PIC is the default on this platform
6764 # Common symbols not allowed in MH_DYLIB files
6765 lt_prog_compiler_pic='-fno-common'
6768 hpux*)
6769 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6770 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6771 # sets the default TLS model and affects inlining.
6772 case $host_cpu in
6773 hppa*64*)
6774 # +Z the default
6777 lt_prog_compiler_pic='-fPIC'
6779 esac
6782 interix[3-9]*)
6783 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6784 # Instead, we relocate shared libraries at runtime.
6787 msdosdjgpp*)
6788 # Just because we use GCC doesn't mean we suddenly get shared libraries
6789 # on systems that don't support them.
6790 lt_prog_compiler_can_build_shared=no
6791 enable_shared=no
6794 *nto* | *qnx*)
6795 # QNX uses GNU C++, but need to define -shared option too, otherwise
6796 # it will coredump.
6797 lt_prog_compiler_pic='-fPIC -shared'
6800 sysv4*MP*)
6801 if test -d /usr/nec; then
6802 lt_prog_compiler_pic=-Kconform_pic
6807 lt_prog_compiler_pic='-fPIC'
6809 esac
6810 else
6811 # PORTME Check for flag to pass linker flags through the system compiler.
6812 case $host_os in
6813 aix*)
6814 lt_prog_compiler_wl='-Wl,'
6815 if test "$host_cpu" = ia64; then
6816 # AIX 5 now supports IA64 processor
6817 lt_prog_compiler_static='-Bstatic'
6818 else
6819 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6823 mingw* | cygwin* | pw32* | os2* | cegcc*)
6824 # This hack is so that the source file can tell whether it is being
6825 # built for inclusion in a dll (and should export symbols for example).
6826 lt_prog_compiler_pic='-DDLL_EXPORT'
6829 hpux9* | hpux10* | hpux11*)
6830 lt_prog_compiler_wl='-Wl,'
6831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6832 # not for PA HP-UX.
6833 case $host_cpu in
6834 hppa*64*|ia64*)
6835 # +Z the default
6838 lt_prog_compiler_pic='+Z'
6840 esac
6841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6842 lt_prog_compiler_static='${wl}-a ${wl}archive'
6845 irix5* | irix6* | nonstopux*)
6846 lt_prog_compiler_wl='-Wl,'
6847 # PIC (with -KPIC) is the default.
6848 lt_prog_compiler_static='-non_shared'
6851 linux* | k*bsd*-gnu)
6852 case $cc_basename in
6853 # old Intel for x86_64 which still supported -KPIC.
6854 ecc*)
6855 lt_prog_compiler_wl='-Wl,'
6856 lt_prog_compiler_pic='-KPIC'
6857 lt_prog_compiler_static='-static'
6859 # icc used to be incompatible with GCC.
6860 # ICC 10 doesn't accept -KPIC any more.
6861 icc* | ifort*)
6862 lt_prog_compiler_wl='-Wl,'
6863 lt_prog_compiler_pic='-fPIC'
6864 lt_prog_compiler_static='-static'
6866 # Lahey Fortran 8.1.
6867 lf95*)
6868 lt_prog_compiler_wl='-Wl,'
6869 lt_prog_compiler_pic='--shared'
6870 lt_prog_compiler_static='--static'
6872 pgcc* | pgf77* | pgf90* | pgf95*)
6873 # Portland Group compilers (*not* the Pentium gcc compiler,
6874 # which looks to be a dead project)
6875 lt_prog_compiler_wl='-Wl,'
6876 lt_prog_compiler_pic='-fpic'
6877 lt_prog_compiler_static='-Bstatic'
6879 ccc*)
6880 lt_prog_compiler_wl='-Wl,'
6881 # All Alpha code is PIC.
6882 lt_prog_compiler_static='-non_shared'
6884 xl*)
6885 # IBM XL C 8.0/Fortran 10.1 on PPC
6886 lt_prog_compiler_wl='-Wl,'
6887 lt_prog_compiler_pic='-qpic'
6888 lt_prog_compiler_static='-qstaticlink'
6891 case `$CC -V 2>&1 | sed 5q` in
6892 *Sun\ C*)
6893 # Sun C 5.9
6894 lt_prog_compiler_pic='-KPIC'
6895 lt_prog_compiler_static='-Bstatic'
6896 lt_prog_compiler_wl='-Wl,'
6898 *Sun\ F*)
6899 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
6902 lt_prog_compiler_wl=''
6904 esac
6906 esac
6909 newsos6)
6910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
6914 *nto* | *qnx*)
6915 # QNX uses GNU C++, but need to define -shared option too, otherwise
6916 # it will coredump.
6917 lt_prog_compiler_pic='-fPIC -shared'
6920 osf3* | osf4* | osf5*)
6921 lt_prog_compiler_wl='-Wl,'
6922 # All OSF/1 code is PIC.
6923 lt_prog_compiler_static='-non_shared'
6926 rdos*)
6927 lt_prog_compiler_static='-non_shared'
6930 solaris*)
6931 lt_prog_compiler_pic='-KPIC'
6932 lt_prog_compiler_static='-Bstatic'
6933 case $cc_basename in
6934 f77* | f90* | f95*)
6935 lt_prog_compiler_wl='-Qoption ld ';;
6937 lt_prog_compiler_wl='-Wl,';;
6938 esac
6941 sunos4*)
6942 lt_prog_compiler_wl='-Qoption ld '
6943 lt_prog_compiler_pic='-PIC'
6944 lt_prog_compiler_static='-Bstatic'
6947 sysv4 | sysv4.2uw2* | sysv4.3*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6953 sysv4*MP*)
6954 if test -d /usr/nec ;then
6955 lt_prog_compiler_pic='-Kconform_pic'
6956 lt_prog_compiler_static='-Bstatic'
6960 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6961 lt_prog_compiler_wl='-Wl,'
6962 lt_prog_compiler_pic='-KPIC'
6963 lt_prog_compiler_static='-Bstatic'
6966 unicos*)
6967 lt_prog_compiler_wl='-Wl,'
6968 lt_prog_compiler_can_build_shared=no
6971 uts4*)
6972 lt_prog_compiler_pic='-pic'
6973 lt_prog_compiler_static='-Bstatic'
6977 lt_prog_compiler_can_build_shared=no
6979 esac
6982 case $host_os in
6983 # For platforms which do not support PIC, -DPIC is meaningless:
6984 *djgpp*)
6985 lt_prog_compiler_pic=
6988 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6990 esac
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6992 $as_echo "$lt_prog_compiler_pic" >&6; }
7000 # Check to make sure the PIC flag actually works.
7002 if test -n "$lt_prog_compiler_pic"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7004 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7005 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7006 $as_echo_n "(cached) " >&6
7007 else
7008 lt_cv_prog_compiler_pic_works=no
7009 ac_outfile=conftest.$ac_objext
7010 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7011 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7012 # Insert the option either (1) after the last *FLAGS variable, or
7013 # (2) before a word containing "conftest.", or (3) at the end.
7014 # Note that $ac_compile itself does not contain backslashes and begins
7015 # with a dollar sign (not a hyphen), so the echo should work correctly.
7016 # The option is referenced via a variable to avoid confusing sed.
7017 lt_compile=`echo "$ac_compile" | $SED \
7018 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7020 -e 's:$: $lt_compiler_flag:'`
7021 (eval echo "\"\$as_me:7021: $lt_compile\"" >&5)
7022 (eval "$lt_compile" 2>conftest.err)
7023 ac_status=$?
7024 cat conftest.err >&5
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 if (exit $ac_status) && test -s "$ac_outfile"; then
7027 # The compiler can only warn and ignore the option if not recognized
7028 # So say no if there are warnings other than the usual output.
7029 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7030 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7031 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7032 lt_cv_prog_compiler_pic_works=yes
7035 $RM conftest*
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7039 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7041 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7042 case $lt_prog_compiler_pic in
7043 "" | " "*) ;;
7044 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7045 esac
7046 else
7047 lt_prog_compiler_pic=
7048 lt_prog_compiler_can_build_shared=no
7059 # Check to make sure the static flag actually works.
7061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7064 if ${lt_cv_prog_compiler_static_works+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 lt_cv_prog_compiler_static_works=no
7068 save_LDFLAGS="$LDFLAGS"
7069 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7070 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7071 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7072 # The linker can only warn and ignore the option if not recognized
7073 # So say no if there are warnings
7074 if test -s conftest.err; then
7075 # Append any errors to the config.log.
7076 cat conftest.err 1>&5
7077 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7078 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7079 if diff conftest.exp conftest.er2 >/dev/null; then
7080 lt_cv_prog_compiler_static_works=yes
7082 else
7083 lt_cv_prog_compiler_static_works=yes
7086 $RM -r conftest*
7087 LDFLAGS="$save_LDFLAGS"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7091 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7093 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7095 else
7096 lt_prog_compiler_static=
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7107 if ${lt_cv_prog_compiler_c_o+:} false; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 lt_cv_prog_compiler_c_o=no
7111 $RM -r conftest 2>/dev/null
7112 mkdir conftest
7113 cd conftest
7114 mkdir out
7115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7117 lt_compiler_flag="-o out/conftest2.$ac_objext"
7118 # Insert the option either (1) after the last *FLAGS variable, or
7119 # (2) before a word containing "conftest.", or (3) at the end.
7120 # Note that $ac_compile itself does not contain backslashes and begins
7121 # with a dollar sign (not a hyphen), so the echo should work correctly.
7122 lt_compile=`echo "$ac_compile" | $SED \
7123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7125 -e 's:$: $lt_compiler_flag:'`
7126 (eval echo "\"\$as_me:7126: $lt_compile\"" >&5)
7127 (eval "$lt_compile" 2>out/conftest.err)
7128 ac_status=$?
7129 cat out/conftest.err >&5
7130 echo "$as_me:7130: \$? = $ac_status" >&5
7131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7132 then
7133 # The compiler can only warn and ignore the option if not recognized
7134 # So say no if there are warnings
7135 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7138 lt_cv_prog_compiler_c_o=yes
7141 chmod u+w . 2>&5
7142 $RM conftest*
7143 # SGI C++ compiler will create directory out/ii_files/ for
7144 # template instantiation
7145 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7146 $RM out/* && rmdir out
7147 cd ..
7148 $RM -r conftest
7149 $RM conftest*
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7162 if ${lt_cv_prog_compiler_c_o+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 lt_cv_prog_compiler_c_o=no
7166 $RM -r conftest 2>/dev/null
7167 mkdir conftest
7168 cd conftest
7169 mkdir out
7170 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7172 lt_compiler_flag="-o out/conftest2.$ac_objext"
7173 # Insert the option either (1) after the last *FLAGS variable, or
7174 # (2) before a word containing "conftest.", or (3) at the end.
7175 # Note that $ac_compile itself does not contain backslashes and begins
7176 # with a dollar sign (not a hyphen), so the echo should work correctly.
7177 lt_compile=`echo "$ac_compile" | $SED \
7178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7180 -e 's:$: $lt_compiler_flag:'`
7181 (eval echo "\"\$as_me:7181: $lt_compile\"" >&5)
7182 (eval "$lt_compile" 2>out/conftest.err)
7183 ac_status=$?
7184 cat out/conftest.err >&5
7185 echo "$as_me:7185: \$? = $ac_status" >&5
7186 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7187 then
7188 # The compiler can only warn and ignore the option if not recognized
7189 # So say no if there are warnings
7190 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7191 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7192 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7193 lt_cv_prog_compiler_c_o=yes
7196 chmod u+w . 2>&5
7197 $RM conftest*
7198 # SGI C++ compiler will create directory out/ii_files/ for
7199 # template instantiation
7200 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7201 $RM out/* && rmdir out
7202 cd ..
7203 $RM -r conftest
7204 $RM conftest*
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7213 hard_links="nottested"
7214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7215 # do not overwrite the value of need_locks provided by the user
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7217 $as_echo_n "checking if we can lock with hard links... " >&6; }
7218 hard_links=yes
7219 $RM conftest*
7220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7221 touch conftest.a
7222 ln conftest.a conftest.b 2>&5 || hard_links=no
7223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7225 $as_echo "$hard_links" >&6; }
7226 if test "$hard_links" = no; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7229 need_locks=warn
7231 else
7232 need_locks=no
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7243 runpath_var=
7244 allow_undefined_flag=
7245 always_export_symbols=no
7246 archive_cmds=
7247 archive_expsym_cmds=
7248 compiler_needs_object=no
7249 enable_shared_with_static_runtimes=no
7250 export_dynamic_flag_spec=
7251 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7252 hardcode_automatic=no
7253 hardcode_direct=no
7254 hardcode_direct_absolute=no
7255 hardcode_libdir_flag_spec=
7256 hardcode_libdir_flag_spec_ld=
7257 hardcode_libdir_separator=
7258 hardcode_minus_L=no
7259 hardcode_shlibpath_var=unsupported
7260 inherit_rpath=no
7261 link_all_deplibs=unknown
7262 module_cmds=
7263 module_expsym_cmds=
7264 old_archive_from_new_cmds=
7265 old_archive_from_expsyms_cmds=
7266 thread_safe_flag_spec=
7267 whole_archive_flag_spec=
7268 # include_expsyms should be a list of space-separated symbols to be *always*
7269 # included in the symbol list
7270 include_expsyms=
7271 # exclude_expsyms can be an extended regexp of symbols to exclude
7272 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7273 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7274 # as well as any symbol that contains `d'.
7275 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7276 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7277 # platforms (ab)use it in PIC code, but their linkers get confused if
7278 # the symbol is explicitly referenced. Since portable code cannot
7279 # rely on this symbol name, it's probably fine to never include it in
7280 # preloaded symbol tables.
7281 # Exclude shared library initialization/finalization symbols.
7282 extract_expsyms_cmds=
7284 case $host_os in
7285 cygwin* | mingw* | pw32* | cegcc*)
7286 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7287 # When not using gcc, we currently assume that we are using
7288 # Microsoft Visual C++.
7289 if test "$GCC" != yes; then
7290 with_gnu_ld=no
7293 interix*)
7294 # we just hope/assume this is gcc and not c89 (= MSVC++)
7295 with_gnu_ld=yes
7297 openbsd*)
7298 with_gnu_ld=no
7300 esac
7302 ld_shlibs=yes
7303 if test "$with_gnu_ld" = yes; then
7304 # If archive_cmds runs LD, not CC, wlarc should be empty
7305 wlarc='${wl}'
7307 # Set some defaults for GNU ld with shared library support. These
7308 # are reset later if shared libraries are not supported. Putting them
7309 # here allows them to be overridden if necessary.
7310 runpath_var=LD_RUN_PATH
7311 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7312 export_dynamic_flag_spec='${wl}--export-dynamic'
7313 # ancient GNU ld didn't support --whole-archive et. al.
7314 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7316 else
7317 whole_archive_flag_spec=
7319 supports_anon_versioning=no
7320 case `$LD -v 2>&1` in
7321 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7322 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7323 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7324 *\ 2.11.*) ;; # other 2.11 versions
7325 *) supports_anon_versioning=yes ;;
7326 esac
7328 # See if GNU ld supports shared libraries.
7329 case $host_os in
7330 aix[3-9]*)
7331 # On AIX/PPC, the GNU linker is very broken
7332 if test "$host_cpu" != ia64; then
7333 ld_shlibs=no
7334 cat <<_LT_EOF 1>&2
7336 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7337 *** to be unable to reliably create shared libraries on AIX.
7338 *** Therefore, libtool is disabling shared libraries support. If you
7339 *** really care for shared libraries, you may want to modify your PATH
7340 *** so that a non-GNU linker is found, and then restart.
7342 _LT_EOF
7346 amigaos*)
7347 case $host_cpu in
7348 powerpc)
7349 # see comment about AmigaOS4 .so support
7350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351 archive_expsym_cmds=''
7353 m68k)
7354 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7355 hardcode_libdir_flag_spec='-L$libdir'
7356 hardcode_minus_L=yes
7358 esac
7361 beos*)
7362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7363 allow_undefined_flag=unsupported
7364 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7365 # support --undefined. This deserves some investigation. FIXME
7366 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7367 else
7368 ld_shlibs=no
7372 cygwin* | mingw* | pw32* | cegcc*)
7373 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7374 # as there is no search path for DLLs.
7375 hardcode_libdir_flag_spec='-L$libdir'
7376 allow_undefined_flag=unsupported
7377 always_export_symbols=no
7378 enable_shared_with_static_runtimes=yes
7379 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7381 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7383 # If the export-symbols file already is a .def file (1st line
7384 # is EXPORTS), use it as is; otherwise, prepend...
7385 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7386 cp $export_symbols $output_objdir/$soname.def;
7387 else
7388 echo EXPORTS > $output_objdir/$soname.def;
7389 cat $export_symbols >> $output_objdir/$soname.def;
7391 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7392 else
7393 ld_shlibs=no
7397 interix[3-9]*)
7398 hardcode_direct=no
7399 hardcode_shlibpath_var=no
7400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7401 export_dynamic_flag_spec='${wl}-E'
7402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7403 # Instead, shared libraries are loaded at an image base (0x10000000 by
7404 # default) and relocated if they conflict, which is a slow very memory
7405 # consuming and fragmenting process. To avoid this, we pick a random,
7406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7408 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7409 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7412 gnu* | linux* | tpf* | k*bsd*-gnu)
7413 tmp_diet=no
7414 if test "$host_os" = linux-dietlibc; then
7415 case $cc_basename in
7416 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7417 esac
7419 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7420 && test "$tmp_diet" = no
7421 then
7422 tmp_addflag=
7423 tmp_sharedflag='-shared'
7424 case $cc_basename,$host_cpu in
7425 pgcc*) # Portland Group C compiler
7426 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7427 tmp_addflag=' $pic_flag'
7429 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7430 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7431 tmp_addflag=' $pic_flag -Mnomain' ;;
7432 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7433 tmp_addflag=' -i_dynamic' ;;
7434 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7435 tmp_addflag=' -i_dynamic -nofor_main' ;;
7436 ifc* | ifort*) # Intel Fortran compiler
7437 tmp_addflag=' -nofor_main' ;;
7438 lf95*) # Lahey Fortran 8.1
7439 whole_archive_flag_spec=
7440 tmp_sharedflag='--shared' ;;
7441 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7442 tmp_sharedflag='-qmkshrobj'
7443 tmp_addflag= ;;
7444 esac
7445 case `$CC -V 2>&1 | sed 5q` in
7446 *Sun\ C*) # Sun C 5.9
7447 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7448 compiler_needs_object=yes
7449 tmp_sharedflag='-G' ;;
7450 *Sun\ F*) # Sun Fortran 8.3
7451 tmp_sharedflag='-G' ;;
7452 esac
7453 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7455 if test "x$supports_anon_versioning" = xyes; then
7456 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7457 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7458 echo "local: *; };" >> $output_objdir/$libname.ver~
7459 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7462 case $cc_basename in
7463 xlf*)
7464 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7465 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7466 hardcode_libdir_flag_spec=
7467 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7468 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7469 if test "x$supports_anon_versioning" = xyes; then
7470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7472 echo "local: *; };" >> $output_objdir/$libname.ver~
7473 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7476 esac
7477 else
7478 ld_shlibs=no
7482 netbsd*)
7483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7484 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7485 wlarc=
7486 else
7487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7492 solaris*)
7493 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7494 ld_shlibs=no
7495 cat <<_LT_EOF 1>&2
7497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7498 *** create shared libraries on Solaris systems. Therefore, libtool
7499 *** is disabling shared libraries support. We urge you to upgrade GNU
7500 *** binutils to release 2.9.1 or newer. Another option is to modify
7501 *** your PATH or compiler configuration so that the native linker is
7502 *** used, and then restart.
7504 _LT_EOF
7505 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7508 else
7509 ld_shlibs=no
7513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7514 case `$LD -v 2>&1` in
7515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7516 ld_shlibs=no
7517 cat <<_LT_EOF 1>&2
7519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7520 *** reliably create shared libraries on SCO systems. Therefore, libtool
7521 *** is disabling shared libraries support. We urge you to upgrade GNU
7522 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7523 *** your PATH or compiler configuration so that the native linker is
7524 *** used, and then restart.
7526 _LT_EOF
7529 # For security reasons, it is highly recommended that you always
7530 # use absolute paths for naming shared libraries, and exclude the
7531 # DT_RUNPATH tag from executables and libraries. But doing so
7532 # requires that you compile everything twice, which is a pain.
7533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7534 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7537 else
7538 ld_shlibs=no
7541 esac
7544 sunos4*)
7545 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7546 wlarc=
7547 hardcode_direct=yes
7548 hardcode_shlibpath_var=no
7552 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7555 else
7556 ld_shlibs=no
7559 esac
7561 if test "$ld_shlibs" = no; then
7562 runpath_var=
7563 hardcode_libdir_flag_spec=
7564 export_dynamic_flag_spec=
7565 whole_archive_flag_spec=
7567 else
7568 # PORTME fill in a description of your system's linker (not GNU ld)
7569 case $host_os in
7570 aix3*)
7571 allow_undefined_flag=unsupported
7572 always_export_symbols=yes
7573 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7574 # Note: this linker hardcodes the directories in LIBPATH if there
7575 # are no directories specified by -L.
7576 hardcode_minus_L=yes
7577 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7578 # Neither direct hardcoding nor static linking is supported with a
7579 # broken collect2.
7580 hardcode_direct=unsupported
7584 aix[4-9]*)
7585 if test "$host_cpu" = ia64; then
7586 # On IA64, the linker does run time linking by default, so we don't
7587 # have to do anything special.
7588 aix_use_runtimelinking=no
7589 exp_sym_flag='-Bexport'
7590 no_entry_flag=""
7591 else
7592 # If we're using GNU nm, then we don't want the "-C" option.
7593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7594 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7595 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7596 else
7597 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7599 aix_use_runtimelinking=no
7601 # Test if we are trying to use run time linking or normal
7602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7603 # need to do runtime linking.
7604 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7605 for ld_flag in $LDFLAGS; do
7606 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7607 aix_use_runtimelinking=yes
7608 break
7610 done
7612 esac
7614 exp_sym_flag='-bexport'
7615 no_entry_flag='-bnoentry'
7618 # When large executables or shared objects are built, AIX ld can
7619 # have problems creating the table of contents. If linking a library
7620 # or program results in "error TOC overflow" add -mminimal-toc to
7621 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7622 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7624 archive_cmds=''
7625 hardcode_direct=yes
7626 hardcode_direct_absolute=yes
7627 hardcode_libdir_separator=':'
7628 link_all_deplibs=yes
7629 file_list_spec='${wl}-f,'
7631 if test "$GCC" = yes; then
7632 case $host_os in aix4.[012]|aix4.[012].*)
7633 # We only want to do this on AIX 4.2 and lower, the check
7634 # below for broken collect2 doesn't work under 4.3+
7635 collect2name=`${CC} -print-prog-name=collect2`
7636 if test -f "$collect2name" &&
7637 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7638 then
7639 # We have reworked collect2
7641 else
7642 # We have old collect2
7643 hardcode_direct=unsupported
7644 # It fails to find uninstalled libraries when the uninstalled
7645 # path is not listed in the libpath. Setting hardcode_minus_L
7646 # to unsupported forces relinking
7647 hardcode_minus_L=yes
7648 hardcode_libdir_flag_spec='-L$libdir'
7649 hardcode_libdir_separator=
7652 esac
7653 shared_flag='-shared'
7654 if test "$aix_use_runtimelinking" = yes; then
7655 shared_flag="$shared_flag "'${wl}-G'
7657 else
7658 # not using gcc
7659 if test "$host_cpu" = ia64; then
7660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7661 # chokes on -Wl,-G. The following line is correct:
7662 shared_flag='-G'
7663 else
7664 if test "$aix_use_runtimelinking" = yes; then
7665 shared_flag='${wl}-G'
7666 else
7667 shared_flag='${wl}-bM:SRE'
7672 export_dynamic_flag_spec='${wl}-bexpall'
7673 # It seems that -bexpall does not export symbols beginning with
7674 # underscore (_), so it is better to generate a list of symbols to export.
7675 always_export_symbols=yes
7676 if test "$aix_use_runtimelinking" = yes; then
7677 # Warning - without using the other runtime loading flags (-brtl),
7678 # -berok will link without error, but may produce a broken library.
7679 allow_undefined_flag='-berok'
7680 # Determine the default libpath from the value encoded in an
7681 # empty executable.
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7686 main ()
7690 return 0;
7692 _ACEOF
7693 if ac_fn_c_try_link "$LINENO"; then :
7695 lt_aix_libpath_sed='
7696 /Import File Strings/,/^$/ {
7697 /^0/ {
7698 s/^0 *\(.*\)$/\1/
7702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7703 # Check for a 64-bit object if we didn't find anything.
7704 if test -z "$aix_libpath"; then
7705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7708 rm -f core conftest.err conftest.$ac_objext \
7709 conftest$ac_exeext conftest.$ac_ext
7710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7713 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7714 else
7715 if test "$host_cpu" = ia64; then
7716 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7717 allow_undefined_flag="-z nodefs"
7718 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7719 else
7720 # Determine the default libpath from the value encoded in an
7721 # empty executable.
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7726 main ()
7730 return 0;
7732 _ACEOF
7733 if ac_fn_c_try_link "$LINENO"; then :
7735 lt_aix_libpath_sed='
7736 /Import File Strings/,/^$/ {
7737 /^0/ {
7738 s/^0 *\(.*\)$/\1/
7742 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7743 # Check for a 64-bit object if we didn't find anything.
7744 if test -z "$aix_libpath"; then
7745 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7748 rm -f core conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7750 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7752 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7753 # Warning - without using the other run time loading flags,
7754 # -berok will link without error, but may produce a broken library.
7755 no_undefined_flag=' ${wl}-bernotok'
7756 allow_undefined_flag=' ${wl}-berok'
7757 # Exported symbols can be pulled into shared objects from archives
7758 whole_archive_flag_spec='$convenience'
7759 archive_cmds_need_lc=yes
7760 # This is similar to how AIX traditionally builds its shared libraries.
7761 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7766 amigaos*)
7767 case $host_cpu in
7768 powerpc)
7769 # see comment about AmigaOS4 .so support
7770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7771 archive_expsym_cmds=''
7773 m68k)
7774 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7775 hardcode_libdir_flag_spec='-L$libdir'
7776 hardcode_minus_L=yes
7778 esac
7781 bsdi[45]*)
7782 export_dynamic_flag_spec=-rdynamic
7785 cygwin* | mingw* | pw32* | cegcc*)
7786 # When not using gcc, we currently assume that we are using
7787 # Microsoft Visual C++.
7788 # hardcode_libdir_flag_spec is actually meaningless, as there is
7789 # no search path for DLLs.
7790 hardcode_libdir_flag_spec=' '
7791 allow_undefined_flag=unsupported
7792 # Tell ltmain to make .lib files, not .a files.
7793 libext=lib
7794 # Tell ltmain to make .dll files, not .so files.
7795 shrext_cmds=".dll"
7796 # FIXME: Setting linknames here is a bad hack.
7797 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7798 # The linker will automatically build a .lib file if we build a DLL.
7799 old_archive_from_new_cmds='true'
7800 # FIXME: Should let the user specify the lib program.
7801 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7802 fix_srcfile_path='`cygpath -w "$srcfile"`'
7803 enable_shared_with_static_runtimes=yes
7806 darwin* | rhapsody*)
7809 archive_cmds_need_lc=no
7810 hardcode_direct=no
7811 hardcode_automatic=yes
7812 hardcode_shlibpath_var=unsupported
7813 whole_archive_flag_spec=''
7814 link_all_deplibs=yes
7815 allow_undefined_flag="$_lt_dar_allow_undefined"
7816 case $cc_basename in
7817 ifort*) _lt_dar_can_shared=yes ;;
7818 *) _lt_dar_can_shared=$GCC ;;
7819 esac
7820 if test "$_lt_dar_can_shared" = "yes"; then
7821 output_verbose_link_cmd=echo
7822 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7823 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7824 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7825 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7827 else
7828 ld_shlibs=no
7833 dgux*)
7834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7835 hardcode_libdir_flag_spec='-L$libdir'
7836 hardcode_shlibpath_var=no
7839 freebsd1*)
7840 ld_shlibs=no
7843 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7844 # support. Future versions do this automatically, but an explicit c++rt0.o
7845 # does not break anything, and helps significantly (at the cost of a little
7846 # extra space).
7847 freebsd2.2*)
7848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7849 hardcode_libdir_flag_spec='-R$libdir'
7850 hardcode_direct=yes
7851 hardcode_shlibpath_var=no
7854 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7855 freebsd2*)
7856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7857 hardcode_direct=yes
7858 hardcode_minus_L=yes
7859 hardcode_shlibpath_var=no
7862 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7863 freebsd* | dragonfly*)
7864 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7865 hardcode_libdir_flag_spec='-R$libdir'
7866 hardcode_direct=yes
7867 hardcode_shlibpath_var=no
7870 hpux9*)
7871 if test "$GCC" = yes; then
7872 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7873 else
7874 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7877 hardcode_libdir_separator=:
7878 hardcode_direct=yes
7880 # hardcode_minus_L: Not really in the search PATH,
7881 # but as the default location of the library.
7882 hardcode_minus_L=yes
7883 export_dynamic_flag_spec='${wl}-E'
7886 hpux10*)
7887 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7888 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7889 else
7890 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7892 if test "$with_gnu_ld" = no; then
7893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894 hardcode_libdir_flag_spec_ld='+b $libdir'
7895 hardcode_libdir_separator=:
7896 hardcode_direct=yes
7897 hardcode_direct_absolute=yes
7898 export_dynamic_flag_spec='${wl}-E'
7899 # hardcode_minus_L: Not really in the search PATH,
7900 # but as the default location of the library.
7901 hardcode_minus_L=yes
7905 hpux11*)
7906 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7907 case $host_cpu in
7908 hppa*64*)
7909 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7911 ia64*)
7912 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7915 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7917 esac
7918 else
7919 case $host_cpu in
7920 hppa*64*)
7921 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7923 ia64*)
7924 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7927 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7929 esac
7931 if test "$with_gnu_ld" = no; then
7932 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator=:
7935 case $host_cpu in
7936 hppa*64*|ia64*)
7937 hardcode_direct=no
7938 hardcode_shlibpath_var=no
7941 hardcode_direct=yes
7942 hardcode_direct_absolute=yes
7943 export_dynamic_flag_spec='${wl}-E'
7945 # hardcode_minus_L: Not really in the search PATH,
7946 # but as the default location of the library.
7947 hardcode_minus_L=yes
7949 esac
7953 irix5* | irix6* | nonstopux*)
7954 if test "$GCC" = yes; then
7955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7956 # Try to use the -exported_symbol ld option, if it does not
7957 # work, assume that -exports_file does not work either and
7958 # implicitly export all symbols.
7959 save_LDFLAGS="$LDFLAGS"
7960 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7963 int foo(void) {}
7964 _ACEOF
7965 if ac_fn_c_try_link "$LINENO"; then :
7966 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7969 rm -f core conftest.err conftest.$ac_objext \
7970 conftest$ac_exeext conftest.$ac_ext
7971 LDFLAGS="$save_LDFLAGS"
7972 else
7973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7976 archive_cmds_need_lc='no'
7977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7978 hardcode_libdir_separator=:
7979 inherit_rpath=yes
7980 link_all_deplibs=yes
7983 netbsd*)
7984 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7986 else
7987 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7989 hardcode_libdir_flag_spec='-R$libdir'
7990 hardcode_direct=yes
7991 hardcode_shlibpath_var=no
7994 newsos6)
7995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7996 hardcode_direct=yes
7997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7998 hardcode_libdir_separator=:
7999 hardcode_shlibpath_var=no
8002 *nto* | *qnx*)
8005 openbsd*)
8006 if test -f /usr/libexec/ld.so; then
8007 hardcode_direct=yes
8008 hardcode_shlibpath_var=no
8009 hardcode_direct_absolute=yes
8010 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8011 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8012 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8014 export_dynamic_flag_spec='${wl}-E'
8015 else
8016 case $host_os in
8017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8019 hardcode_libdir_flag_spec='-R$libdir'
8022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8023 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8025 esac
8027 else
8028 ld_shlibs=no
8032 os2*)
8033 hardcode_libdir_flag_spec='-L$libdir'
8034 hardcode_minus_L=yes
8035 allow_undefined_flag=unsupported
8036 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8037 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8040 osf3*)
8041 if test "$GCC" = yes; then
8042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8043 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8044 else
8045 allow_undefined_flag=' -expect_unresolved \*'
8046 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8048 archive_cmds_need_lc='no'
8049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8050 hardcode_libdir_separator=:
8053 osf4* | osf5*) # as osf3* with the addition of -msym flag
8054 if test "$GCC" = yes; then
8055 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8056 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8057 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8058 else
8059 allow_undefined_flag=' -expect_unresolved \*'
8060 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8061 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8062 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8064 # Both c and cxx compiler support -rpath directly
8065 hardcode_libdir_flag_spec='-rpath $libdir'
8067 archive_cmds_need_lc='no'
8068 hardcode_libdir_separator=:
8071 solaris*)
8072 no_undefined_flag=' -z defs'
8073 if test "$GCC" = yes; then
8074 wlarc='${wl}'
8075 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8077 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8078 else
8079 case `$CC -V 2>&1` in
8080 *"Compilers 5.0"*)
8081 wlarc=''
8082 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8084 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8087 wlarc='${wl}'
8088 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8089 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8090 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8092 esac
8094 hardcode_libdir_flag_spec='-R$libdir'
8095 hardcode_shlibpath_var=no
8096 case $host_os in
8097 solaris2.[0-5] | solaris2.[0-5].*) ;;
8099 # The compiler driver will combine and reorder linker options,
8100 # but understands `-z linker_flag'. GCC discards it without `$wl',
8101 # but is careful enough not to reorder.
8102 # Supported since Solaris 2.6 (maybe 2.5.1?)
8103 if test "$GCC" = yes; then
8104 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8105 else
8106 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8109 esac
8110 link_all_deplibs=yes
8113 sunos4*)
8114 if test "x$host_vendor" = xsequent; then
8115 # Use $CC to link under sequent, because it throws in some extra .o
8116 # files that make .init and .fini sections work.
8117 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8118 else
8119 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8121 hardcode_libdir_flag_spec='-L$libdir'
8122 hardcode_direct=yes
8123 hardcode_minus_L=yes
8124 hardcode_shlibpath_var=no
8127 sysv4)
8128 case $host_vendor in
8129 sni)
8130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8131 hardcode_direct=yes # is this really true???
8133 siemens)
8134 ## LD is ld it makes a PLAMLIB
8135 ## CC just makes a GrossModule.
8136 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8137 reload_cmds='$CC -r -o $output$reload_objs'
8138 hardcode_direct=no
8140 motorola)
8141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8142 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8144 esac
8145 runpath_var='LD_RUN_PATH'
8146 hardcode_shlibpath_var=no
8149 sysv4.3*)
8150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_shlibpath_var=no
8152 export_dynamic_flag_spec='-Bexport'
8155 sysv4*MP*)
8156 if test -d /usr/nec; then
8157 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8158 hardcode_shlibpath_var=no
8159 runpath_var=LD_RUN_PATH
8160 hardcode_runpath_var=yes
8161 ld_shlibs=yes
8165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8166 no_undefined_flag='${wl}-z,text'
8167 archive_cmds_need_lc=no
8168 hardcode_shlibpath_var=no
8169 runpath_var='LD_RUN_PATH'
8171 if test "$GCC" = yes; then
8172 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8173 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8174 else
8175 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8176 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8180 sysv5* | sco3.2v5* | sco5v6*)
8181 # Note: We can NOT use -z defs as we might desire, because we do not
8182 # link with -lc, and that would cause any symbols used from libc to
8183 # always be unresolved, which means just about no library would
8184 # ever link correctly. If we're not using GNU ld we use -z text
8185 # though, which does catch some bad symbols but isn't as heavy-handed
8186 # as -z defs.
8187 no_undefined_flag='${wl}-z,text'
8188 allow_undefined_flag='${wl}-z,nodefs'
8189 archive_cmds_need_lc=no
8190 hardcode_shlibpath_var=no
8191 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8192 hardcode_libdir_separator=':'
8193 link_all_deplibs=yes
8194 export_dynamic_flag_spec='${wl}-Bexport'
8195 runpath_var='LD_RUN_PATH'
8197 if test "$GCC" = yes; then
8198 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8199 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8200 else
8201 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8202 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8206 uts4*)
8207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8208 hardcode_libdir_flag_spec='-L$libdir'
8209 hardcode_shlibpath_var=no
8213 ld_shlibs=no
8215 esac
8217 if test x$host_vendor = xsni; then
8218 case $host in
8219 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8220 export_dynamic_flag_spec='${wl}-Blargedynsym'
8222 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8227 $as_echo "$ld_shlibs" >&6; }
8228 test "$ld_shlibs" = no && can_build_shared=no
8230 with_gnu_ld=$with_gnu_ld
8247 # Do we need to explicitly link libc?
8249 case "x$archive_cmds_need_lc" in
8250 x|xyes)
8251 # Assume -lc should be added
8252 archive_cmds_need_lc=yes
8254 if test "$enable_shared" = yes && test "$GCC" = yes; then
8255 case $archive_cmds in
8256 *'~'*)
8257 # FIXME: we may have to deal with multi-command sequences.
8259 '$CC '*)
8260 # Test whether the compiler implicitly links with -lc since on some
8261 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8262 # to ld, don't add -lc before -lgcc.
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8264 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8265 $RM conftest*
8266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8269 (eval $ac_compile) 2>&5
8270 ac_status=$?
8271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8272 test $ac_status = 0; } 2>conftest.err; then
8273 soname=conftest
8274 lib=conftest
8275 libobjs=conftest.$ac_objext
8276 deplibs=
8277 wl=$lt_prog_compiler_wl
8278 pic_flag=$lt_prog_compiler_pic
8279 compiler_flags=-v
8280 linker_flags=-v
8281 verstring=
8282 output_objdir=.
8283 libname=conftest
8284 lt_save_allow_undefined_flag=$allow_undefined_flag
8285 allow_undefined_flag=
8286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8287 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8288 ac_status=$?
8289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8290 test $ac_status = 0; }
8291 then
8292 archive_cmds_need_lc=no
8293 else
8294 archive_cmds_need_lc=yes
8296 allow_undefined_flag=$lt_save_allow_undefined_flag
8297 else
8298 cat conftest.err 1>&5
8300 $RM conftest*
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8302 $as_echo "$archive_cmds_need_lc" >&6; }
8304 esac
8307 esac
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8468 if test "$GCC" = yes; then
8469 case $host_os in
8470 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8471 *) lt_awk_arg="/^libraries:/" ;;
8472 esac
8473 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8474 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8475 # if the path contains ";" then we assume it to be the separator
8476 # otherwise default to the standard path separator (i.e. ":") - it is
8477 # assumed that no part of a normal pathname contains ";" but that should
8478 # okay in the real world where ";" in dirpaths is itself problematic.
8479 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8480 else
8481 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8483 # Ok, now we have the path, separated by spaces, we can step through it
8484 # and add multilib dir if necessary.
8485 lt_tmp_lt_search_path_spec=
8486 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8487 for lt_sys_path in $lt_search_path_spec; do
8488 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8489 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8490 else
8491 test -d "$lt_sys_path" && \
8492 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8494 done
8495 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8496 BEGIN {RS=" "; FS="/|\n";} {
8497 lt_foo="";
8498 lt_count=0;
8499 for (lt_i = NF; lt_i > 0; lt_i--) {
8500 if ($lt_i != "" && $lt_i != ".") {
8501 if ($lt_i == "..") {
8502 lt_count++;
8503 } else {
8504 if (lt_count == 0) {
8505 lt_foo="/" $lt_i lt_foo;
8506 } else {
8507 lt_count--;
8512 if (lt_foo != "") { lt_freq[lt_foo]++; }
8513 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8515 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8516 else
8517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8519 library_names_spec=
8520 libname_spec='lib$name'
8521 soname_spec=
8522 shrext_cmds=".so"
8523 postinstall_cmds=
8524 postuninstall_cmds=
8525 finish_cmds=
8526 finish_eval=
8527 shlibpath_var=
8528 shlibpath_overrides_runpath=unknown
8529 version_type=none
8530 dynamic_linker="$host_os ld.so"
8531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8532 need_lib_prefix=unknown
8533 hardcode_into_libs=no
8535 # when you set need_version to no, make sure it does not cause -set_version
8536 # flags to be left without arguments
8537 need_version=unknown
8539 case $host_os in
8540 aix3*)
8541 version_type=linux
8542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8543 shlibpath_var=LIBPATH
8545 # AIX 3 has no versioning support, so we append a major version to the name.
8546 soname_spec='${libname}${release}${shared_ext}$major'
8549 aix[4-9]*)
8550 version_type=linux
8551 need_lib_prefix=no
8552 need_version=no
8553 hardcode_into_libs=yes
8554 if test "$host_cpu" = ia64; then
8555 # AIX 5 supports IA64
8556 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8557 shlibpath_var=LD_LIBRARY_PATH
8558 else
8559 # With GCC up to 2.95.x, collect2 would create an import file
8560 # for dependence libraries. The import file would start with
8561 # the line `#! .'. This would cause the generated library to
8562 # depend on `.', always an invalid library. This was fixed in
8563 # development snapshots of GCC prior to 3.0.
8564 case $host_os in
8565 aix4 | aix4.[01] | aix4.[01].*)
8566 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8567 echo ' yes '
8568 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8570 else
8571 can_build_shared=no
8574 esac
8575 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8576 # soname into executable. Probably we can add versioning support to
8577 # collect2, so additional links can be useful in future.
8578 if test "$aix_use_runtimelinking" = yes; then
8579 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8580 # instead of lib<name>.a to let people know that these are not
8581 # typical AIX shared libraries.
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8583 else
8584 # We preserve .a as extension for shared libraries through AIX4.2
8585 # and later when we are not doing run time linking.
8586 library_names_spec='${libname}${release}.a $libname.a'
8587 soname_spec='${libname}${release}${shared_ext}$major'
8589 shlibpath_var=LIBPATH
8593 amigaos*)
8594 case $host_cpu in
8595 powerpc)
8596 # Since July 2007 AmigaOS4 officially supports .so libraries.
8597 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8600 m68k)
8601 library_names_spec='$libname.ixlibrary $libname.a'
8602 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8603 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8605 esac
8608 beos*)
8609 library_names_spec='${libname}${shared_ext}'
8610 dynamic_linker="$host_os ld.so"
8611 shlibpath_var=LIBRARY_PATH
8614 bsdi[45]*)
8615 version_type=linux
8616 need_version=no
8617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618 soname_spec='${libname}${release}${shared_ext}$major'
8619 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8622 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8623 # the default ld.so.conf also contains /usr/contrib/lib and
8624 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8625 # libtool to hard-code these into programs
8628 cygwin* | mingw* | pw32* | cegcc*)
8629 version_type=windows
8630 shrext_cmds=".dll"
8631 need_version=no
8632 need_lib_prefix=no
8634 case $GCC,$host_os in
8635 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8636 library_names_spec='$libname.dll.a'
8637 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8638 postinstall_cmds='base_file=`basename \${file}`~
8639 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8640 dldir=$destdir/`dirname \$dlpath`~
8641 test -d \$dldir || mkdir -p \$dldir~
8642 $install_prog $dir/$dlname \$dldir/$dlname~
8643 chmod a+x \$dldir/$dlname~
8644 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8645 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8647 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8648 dlpath=$dir/\$dldll~
8649 $RM \$dlpath'
8650 shlibpath_overrides_runpath=yes
8652 case $host_os in
8653 cygwin*)
8654 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8655 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8656 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8658 mingw* | cegcc*)
8659 # MinGW DLLs use traditional 'lib' prefix
8660 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8661 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8662 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8663 # It is most probably a Windows format PATH printed by
8664 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8665 # path with ; separators, and with drive letters. We can handle the
8666 # drive letters (cygwin fileutils understands them), so leave them,
8667 # especially as we might pass files found there to a mingw objdump,
8668 # which wouldn't understand a cygwinified path. Ahh.
8669 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8670 else
8671 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8674 pw32*)
8675 # pw32 DLLs use 'pw' prefix rather than 'lib'
8676 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8678 esac
8682 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8684 esac
8685 dynamic_linker='Win32 ld.exe'
8686 # FIXME: first we should search . and the directory the executable is in
8687 shlibpath_var=PATH
8690 darwin* | rhapsody*)
8691 dynamic_linker="$host_os dyld"
8692 version_type=darwin
8693 need_lib_prefix=no
8694 need_version=no
8695 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8696 soname_spec='${libname}${release}${major}$shared_ext'
8697 shlibpath_overrides_runpath=yes
8698 shlibpath_var=DYLD_LIBRARY_PATH
8699 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8701 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8705 dgux*)
8706 version_type=linux
8707 need_lib_prefix=no
8708 need_version=no
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 shlibpath_var=LD_LIBRARY_PATH
8714 freebsd1*)
8715 dynamic_linker=no
8718 freebsd* | dragonfly*)
8719 # DragonFly does not have aout. When/if they implement a new
8720 # versioning mechanism, adjust this.
8721 if test -x /usr/bin/objformat; then
8722 objformat=`/usr/bin/objformat`
8723 else
8724 case $host_os in
8725 freebsd[123]*) objformat=aout ;;
8726 *) objformat=elf ;;
8727 esac
8729 # Handle Gentoo/FreeBSD as it was Linux
8730 case $host_vendor in
8731 gentoo)
8732 version_type=linux ;;
8734 version_type=freebsd-$objformat ;;
8735 esac
8737 case $version_type in
8738 freebsd-elf*)
8739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8740 need_version=no
8741 need_lib_prefix=no
8743 freebsd-*)
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8745 need_version=yes
8747 linux)
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 need_lib_prefix=no
8751 need_version=no
8753 esac
8754 shlibpath_var=LD_LIBRARY_PATH
8755 case $host_os in
8756 freebsd2*)
8757 shlibpath_overrides_runpath=yes
8759 freebsd3.[01]* | freebsdelf3.[01]*)
8760 shlibpath_overrides_runpath=yes
8761 hardcode_into_libs=yes
8763 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8764 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8765 shlibpath_overrides_runpath=no
8766 hardcode_into_libs=yes
8768 *) # from 4.6 on, and DragonFly
8769 shlibpath_overrides_runpath=yes
8770 hardcode_into_libs=yes
8772 esac
8775 gnu*)
8776 version_type=linux
8777 need_lib_prefix=no
8778 need_version=no
8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 shlibpath_var=LD_LIBRARY_PATH
8782 hardcode_into_libs=yes
8785 hpux9* | hpux10* | hpux11*)
8786 # Give a soname corresponding to the major version so that dld.sl refuses to
8787 # link against other versions.
8788 version_type=sunos
8789 need_lib_prefix=no
8790 need_version=no
8791 case $host_cpu in
8792 ia64*)
8793 shrext_cmds='.so'
8794 hardcode_into_libs=yes
8795 dynamic_linker="$host_os dld.so"
8796 shlibpath_var=LD_LIBRARY_PATH
8797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 if test "X$HPUX_IA64_MODE" = X32; then
8801 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8802 else
8803 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 hppa*64*)
8808 shrext_cmds='.sl'
8809 hardcode_into_libs=yes
8810 dynamic_linker="$host_os dld.sl"
8811 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8819 shrext_cmds='.sl'
8820 dynamic_linker="$host_os dld.sl"
8821 shlibpath_var=SHLIB_PATH
8822 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8826 esac
8827 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8828 postinstall_cmds='chmod 555 $lib'
8831 interix[3-9]*)
8832 version_type=linux
8833 need_lib_prefix=no
8834 need_version=no
8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8836 soname_spec='${libname}${release}${shared_ext}$major'
8837 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=no
8840 hardcode_into_libs=yes
8843 irix5* | irix6* | nonstopux*)
8844 case $host_os in
8845 nonstopux*) version_type=nonstopux ;;
8847 if test "$lt_cv_prog_gnu_ld" = yes; then
8848 version_type=linux
8849 else
8850 version_type=irix
8851 fi ;;
8852 esac
8853 need_lib_prefix=no
8854 need_version=no
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8857 case $host_os in
8858 irix5* | nonstopux*)
8859 libsuff= shlibsuff=
8862 case $LD in # libtool.m4 will add one of these switches to LD
8863 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8864 libsuff= shlibsuff= libmagic=32-bit;;
8865 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8866 libsuff=32 shlibsuff=N32 libmagic=N32;;
8867 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8868 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8869 *) libsuff= shlibsuff= libmagic=never-match;;
8870 esac
8872 esac
8873 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8874 shlibpath_overrides_runpath=no
8875 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8876 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8877 hardcode_into_libs=yes
8880 # No shared lib support for Linux oldld, aout, or coff.
8881 linux*oldld* | linux*aout* | linux*coff*)
8882 dynamic_linker=no
8885 # This must be Linux ELF.
8886 linux* | k*bsd*-gnu)
8887 version_type=linux
8888 need_lib_prefix=no
8889 need_version=no
8890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8891 soname_spec='${libname}${release}${shared_ext}$major'
8892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8893 shlibpath_var=LD_LIBRARY_PATH
8894 shlibpath_overrides_runpath=no
8895 # Some binutils ld are patched to set DT_RUNPATH
8896 save_LDFLAGS=$LDFLAGS
8897 save_libdir=$libdir
8898 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8899 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8904 main ()
8908 return 0;
8910 _ACEOF
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8913 shlibpath_overrides_runpath=yes
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8918 LDFLAGS=$save_LDFLAGS
8919 libdir=$save_libdir
8921 # This implies no fast_install, which is unacceptable.
8922 # Some rework will be needed to allow for fast_install
8923 # before this can be enabled.
8924 hardcode_into_libs=yes
8926 # Append ld.so.conf contents to the search path
8927 if test -f /etc/ld.so.conf; then
8928 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8929 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8932 # We used to test for /lib/ld.so.1 and disable shared libraries on
8933 # powerpc, because MkLinux only supported shared libraries with the
8934 # GNU dynamic linker. Since this was broken with cross compilers,
8935 # most powerpc-linux boxes support dynamic linking these days and
8936 # people can always --disable-shared, the test was removed, and we
8937 # assume the GNU/Linux dynamic linker is in use.
8938 dynamic_linker='GNU/Linux ld.so'
8941 netbsd*)
8942 version_type=sunos
8943 need_lib_prefix=no
8944 need_version=no
8945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8948 dynamic_linker='NetBSD (a.out) ld.so'
8949 else
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 dynamic_linker='NetBSD ld.elf_so'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=yes
8956 hardcode_into_libs=yes
8959 newsos6)
8960 version_type=linux
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8966 *nto* | *qnx*)
8967 version_type=qnx
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=no
8974 hardcode_into_libs=yes
8975 dynamic_linker='ldqnx.so'
8978 openbsd*)
8979 version_type=sunos
8980 sys_lib_dlsearch_path_spec="/usr/lib"
8981 need_lib_prefix=no
8982 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8983 case $host_os in
8984 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8985 *) need_version=no ;;
8986 esac
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8991 case $host_os in
8992 openbsd2.[89] | openbsd2.[89].*)
8993 shlibpath_overrides_runpath=no
8996 shlibpath_overrides_runpath=yes
8998 esac
8999 else
9000 shlibpath_overrides_runpath=yes
9004 os2*)
9005 libname_spec='$name'
9006 shrext_cmds=".dll"
9007 need_lib_prefix=no
9008 library_names_spec='$libname${shared_ext} $libname.a'
9009 dynamic_linker='OS/2 ld.exe'
9010 shlibpath_var=LIBPATH
9013 osf3* | osf4* | osf5*)
9014 version_type=osf
9015 need_lib_prefix=no
9016 need_version=no
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 shlibpath_var=LD_LIBRARY_PATH
9020 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9021 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9024 rdos*)
9025 dynamic_linker=no
9028 solaris*)
9029 version_type=linux
9030 need_lib_prefix=no
9031 need_version=no
9032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 shlibpath_overrides_runpath=yes
9036 hardcode_into_libs=yes
9037 # ldd complains unless libraries are executable
9038 postinstall_cmds='chmod +x $lib'
9041 sunos4*)
9042 version_type=sunos
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=yes
9047 if test "$with_gnu_ld" = yes; then
9048 need_lib_prefix=no
9050 need_version=yes
9053 sysv4 | sysv4.3*)
9054 version_type=linux
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 case $host_vendor in
9059 sni)
9060 shlibpath_overrides_runpath=no
9061 need_lib_prefix=no
9062 runpath_var=LD_RUN_PATH
9064 siemens)
9065 need_lib_prefix=no
9067 motorola)
9068 need_lib_prefix=no
9069 need_version=no
9070 shlibpath_overrides_runpath=no
9071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9073 esac
9076 sysv4*MP*)
9077 if test -d /usr/nec ;then
9078 version_type=linux
9079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9080 soname_spec='$libname${shared_ext}.$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9086 version_type=freebsd-elf
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=yes
9093 hardcode_into_libs=yes
9094 if test "$with_gnu_ld" = yes; then
9095 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9096 else
9097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9098 case $host_os in
9099 sco3.2v5*)
9100 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9102 esac
9104 sys_lib_dlsearch_path_spec='/usr/lib'
9107 tpf*)
9108 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=no
9115 hardcode_into_libs=yes
9118 uts4*)
9119 version_type=linux
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9126 dynamic_linker=no
9128 esac
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9130 $as_echo "$dynamic_linker" >&6; }
9131 test "$dynamic_linker" = no && can_build_shared=no
9133 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9134 if test "$GCC" = yes; then
9135 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9138 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9139 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9141 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9142 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9232 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9233 hardcode_action=
9234 if test -n "$hardcode_libdir_flag_spec" ||
9235 test -n "$runpath_var" ||
9236 test "X$hardcode_automatic" = "Xyes" ; then
9238 # We can hardcode non-existent directories.
9239 if test "$hardcode_direct" != no &&
9240 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9241 # have to relink, otherwise we might link with an installed library
9242 # when we should be linking with a yet-to-be-installed one
9243 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9244 test "$hardcode_minus_L" != no; then
9245 # Linking always hardcodes the temporary library directory.
9246 hardcode_action=relink
9247 else
9248 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9249 hardcode_action=immediate
9251 else
9252 # We cannot hardcode anything, or else we can only hardcode existing
9253 # directories.
9254 hardcode_action=unsupported
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9257 $as_echo "$hardcode_action" >&6; }
9259 if test "$hardcode_action" = relink ||
9260 test "$inherit_rpath" = yes; then
9261 # Fast installation is not supported
9262 enable_fast_install=no
9263 elif test "$shlibpath_overrides_runpath" = yes ||
9264 test "$enable_shared" = no; then
9265 # Fast installation is not necessary
9266 enable_fast_install=needless
9274 if test "x$enable_dlopen" != xyes; then
9275 enable_dlopen=unknown
9276 enable_dlopen_self=unknown
9277 enable_dlopen_self_static=unknown
9278 else
9279 lt_cv_dlopen=no
9280 lt_cv_dlopen_libs=
9282 case $host_os in
9283 beos*)
9284 lt_cv_dlopen="load_add_on"
9285 lt_cv_dlopen_libs=
9286 lt_cv_dlopen_self=yes
9289 mingw* | pw32* | cegcc*)
9290 lt_cv_dlopen="LoadLibrary"
9291 lt_cv_dlopen_libs=
9294 cygwin*)
9295 lt_cv_dlopen="dlopen"
9296 lt_cv_dlopen_libs=
9299 darwin*)
9300 # if libdl is installed we need to link against it
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9302 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9303 if ${ac_cv_lib_dl_dlopen+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305 else
9306 ac_check_lib_save_LIBS=$LIBS
9307 LIBS="-ldl $LIBS"
9308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* end confdefs.h. */
9311 /* Override any GCC internal prototype to avoid an error.
9312 Use char because int might match the return type of a GCC
9313 builtin and then its argument prototype would still apply. */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 char dlopen ();
9319 main ()
9321 return dlopen ();
9323 return 0;
9325 _ACEOF
9326 if ac_fn_c_try_link "$LINENO"; then :
9327 ac_cv_lib_dl_dlopen=yes
9328 else
9329 ac_cv_lib_dl_dlopen=no
9331 rm -f core conftest.err conftest.$ac_objext \
9332 conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9336 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9337 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9338 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9339 else
9341 lt_cv_dlopen="dyld"
9342 lt_cv_dlopen_libs=
9343 lt_cv_dlopen_self=yes
9350 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9351 if test "x$ac_cv_func_shl_load" = xyes; then :
9352 lt_cv_dlopen="shl_load"
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9355 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9356 if ${ac_cv_lib_dld_shl_load+:} false; then :
9357 $as_echo_n "(cached) " >&6
9358 else
9359 ac_check_lib_save_LIBS=$LIBS
9360 LIBS="-ldld $LIBS"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9364 /* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
9367 #ifdef __cplusplus
9368 extern "C"
9369 #endif
9370 char shl_load ();
9372 main ()
9374 return shl_load ();
9376 return 0;
9378 _ACEOF
9379 if ac_fn_c_try_link "$LINENO"; then :
9380 ac_cv_lib_dld_shl_load=yes
9381 else
9382 ac_cv_lib_dld_shl_load=no
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386 LIBS=$ac_check_lib_save_LIBS
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9389 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9390 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9392 else
9393 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9394 if test "x$ac_cv_func_dlopen" = xyes; then :
9395 lt_cv_dlopen="dlopen"
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9398 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9399 if ${ac_cv_lib_dl_dlopen+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-ldl $LIBS"
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char dlopen ();
9415 main ()
9417 return dlopen ();
9419 return 0;
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423 ac_cv_lib_dl_dlopen=yes
9424 else
9425 ac_cv_lib_dl_dlopen=no
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9433 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9437 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9438 if ${ac_cv_lib_svld_dlopen+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 ac_check_lib_save_LIBS=$LIBS
9442 LIBS="-lsvld $LIBS"
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 char dlopen ();
9454 main ()
9456 return dlopen ();
9458 return 0;
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462 ac_cv_lib_svld_dlopen=yes
9463 else
9464 ac_cv_lib_svld_dlopen=no
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9471 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9472 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9474 else
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9476 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9477 if ${ac_cv_lib_dld_dld_link+:} false; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 ac_check_lib_save_LIBS=$LIBS
9481 LIBS="-ldld $LIBS"
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9488 #ifdef __cplusplus
9489 extern "C"
9490 #endif
9491 char dld_link ();
9493 main ()
9495 return dld_link ();
9497 return 0;
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501 ac_cv_lib_dld_dld_link=yes
9502 else
9503 ac_cv_lib_dld_dld_link=no
9505 rm -f core conftest.err conftest.$ac_objext \
9506 conftest$ac_exeext conftest.$ac_ext
9507 LIBS=$ac_check_lib_save_LIBS
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9510 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9511 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9512 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9531 esac
9533 if test "x$lt_cv_dlopen" != xno; then
9534 enable_dlopen=yes
9535 else
9536 enable_dlopen=no
9539 case $lt_cv_dlopen in
9540 dlopen)
9541 save_CPPFLAGS="$CPPFLAGS"
9542 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9544 save_LDFLAGS="$LDFLAGS"
9545 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9547 save_LIBS="$LIBS"
9548 LIBS="$lt_cv_dlopen_libs $LIBS"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9551 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9552 if ${lt_cv_dlopen_self+:} false; then :
9553 $as_echo_n "(cached) " >&6
9554 else
9555 if test "$cross_compiling" = yes; then :
9556 lt_cv_dlopen_self=cross
9557 else
9558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9559 lt_status=$lt_dlunknown
9560 cat > conftest.$ac_ext <<_LT_EOF
9561 #line 9561 "configure"
9562 #include "confdefs.h"
9564 #if HAVE_DLFCN_H
9565 #include <dlfcn.h>
9566 #endif
9568 #include <stdio.h>
9570 #ifdef RTLD_GLOBAL
9571 # define LT_DLGLOBAL RTLD_GLOBAL
9572 #else
9573 # ifdef DL_GLOBAL
9574 # define LT_DLGLOBAL DL_GLOBAL
9575 # else
9576 # define LT_DLGLOBAL 0
9577 # endif
9578 #endif
9580 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9581 find out it does not work in some platform. */
9582 #ifndef LT_DLLAZY_OR_NOW
9583 # ifdef RTLD_LAZY
9584 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9585 # else
9586 # ifdef DL_LAZY
9587 # define LT_DLLAZY_OR_NOW DL_LAZY
9588 # else
9589 # ifdef RTLD_NOW
9590 # define LT_DLLAZY_OR_NOW RTLD_NOW
9591 # else
9592 # ifdef DL_NOW
9593 # define LT_DLLAZY_OR_NOW DL_NOW
9594 # else
9595 # define LT_DLLAZY_OR_NOW 0
9596 # endif
9597 # endif
9598 # endif
9599 # endif
9600 #endif
9602 void fnord() { int i=42;}
9603 int main ()
9605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9606 int status = $lt_dlunknown;
9608 if (self)
9610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9612 /* dlclose (self); */
9614 else
9615 puts (dlerror ());
9617 return status;
9619 _LT_EOF
9620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9621 (eval $ac_link) 2>&5
9622 ac_status=$?
9623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9624 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9625 (./conftest; exit; ) >&5 2>/dev/null
9626 lt_status=$?
9627 case x$lt_status in
9628 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9629 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9630 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9631 esac
9632 else :
9633 # compilation failed
9634 lt_cv_dlopen_self=no
9637 rm -fr conftest*
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9642 $as_echo "$lt_cv_dlopen_self" >&6; }
9644 if test "x$lt_cv_dlopen_self" = xyes; then
9645 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9647 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9648 if ${lt_cv_dlopen_self_static+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 if test "$cross_compiling" = yes; then :
9652 lt_cv_dlopen_self_static=cross
9653 else
9654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9655 lt_status=$lt_dlunknown
9656 cat > conftest.$ac_ext <<_LT_EOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9660 #if HAVE_DLFCN_H
9661 #include <dlfcn.h>
9662 #endif
9664 #include <stdio.h>
9666 #ifdef RTLD_GLOBAL
9667 # define LT_DLGLOBAL RTLD_GLOBAL
9668 #else
9669 # ifdef DL_GLOBAL
9670 # define LT_DLGLOBAL DL_GLOBAL
9671 # else
9672 # define LT_DLGLOBAL 0
9673 # endif
9674 #endif
9676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9677 find out it does not work in some platform. */
9678 #ifndef LT_DLLAZY_OR_NOW
9679 # ifdef RTLD_LAZY
9680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9681 # else
9682 # ifdef DL_LAZY
9683 # define LT_DLLAZY_OR_NOW DL_LAZY
9684 # else
9685 # ifdef RTLD_NOW
9686 # define LT_DLLAZY_OR_NOW RTLD_NOW
9687 # else
9688 # ifdef DL_NOW
9689 # define LT_DLLAZY_OR_NOW DL_NOW
9690 # else
9691 # define LT_DLLAZY_OR_NOW 0
9692 # endif
9693 # endif
9694 # endif
9695 # endif
9696 #endif
9698 void fnord() { int i=42;}
9699 int main ()
9701 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9702 int status = $lt_dlunknown;
9704 if (self)
9706 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9707 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9708 /* dlclose (self); */
9710 else
9711 puts (dlerror ());
9713 return status;
9715 _LT_EOF
9716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9717 (eval $ac_link) 2>&5
9718 ac_status=$?
9719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9720 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9721 (./conftest; exit; ) >&5 2>/dev/null
9722 lt_status=$?
9723 case x$lt_status in
9724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9726 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9727 esac
9728 else :
9729 # compilation failed
9730 lt_cv_dlopen_self_static=no
9733 rm -fr conftest*
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9738 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9741 CPPFLAGS="$save_CPPFLAGS"
9742 LDFLAGS="$save_LDFLAGS"
9743 LIBS="$save_LIBS"
9745 esac
9747 case $lt_cv_dlopen_self in
9748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9749 *) enable_dlopen_self=unknown ;;
9750 esac
9752 case $lt_cv_dlopen_self_static in
9753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9754 *) enable_dlopen_self_static=unknown ;;
9755 esac
9774 striplib=
9775 old_striplib=
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9777 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9778 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9779 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9780 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9782 $as_echo "yes" >&6; }
9783 else
9784 # FIXME - insert some real tests, host_os isn't really good enough
9785 case $host_os in
9786 darwin*)
9787 if test -n "$STRIP" ; then
9788 striplib="$STRIP -x"
9789 old_striplib="$STRIP -S"
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9791 $as_echo "yes" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9801 esac
9815 # Report which library types will actually be built
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9817 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9819 $as_echo "$can_build_shared" >&6; }
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9822 $as_echo_n "checking whether to build shared libraries... " >&6; }
9823 test "$can_build_shared" = "no" && enable_shared=no
9825 # On AIX, shared libraries and static libraries use the same namespace, and
9826 # are all built from PIC.
9827 case $host_os in
9828 aix3*)
9829 test "$enable_shared" = yes && enable_static=no
9830 if test -n "$RANLIB"; then
9831 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9832 postinstall_cmds='$RANLIB $lib'
9836 aix[4-9]*)
9837 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9838 test "$enable_shared" = yes && enable_static=no
9841 esac
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9843 $as_echo "$enable_shared" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9846 $as_echo_n "checking whether to build static libraries... " >&6; }
9847 # Make sure either enable_shared or enable_static is yes.
9848 test "$enable_shared" = yes || enable_static=yes
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9850 $as_echo "$enable_static" >&6; }
9856 ac_ext=c
9857 ac_cpp='$CPP $CPPFLAGS'
9858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9862 CC="$lt_save_CC"
9876 ac_config_commands="$ac_config_commands libtool"
9881 # Only expand once:
9884 # Find a good install program. We prefer a C program (faster),
9885 # so one script is as good as another. But avoid the broken or
9886 # incompatible versions:
9887 # SysV /etc/install, /usr/sbin/install
9888 # SunOS /usr/etc/install
9889 # IRIX /sbin/install
9890 # AIX /bin/install
9891 # AmigaOS /C/install, which installs bootblocks on floppy discs
9892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9895 # OS/2's system install, which has a completely different semantic
9896 # ./install, which can be erroneously created by make from ./install.sh.
9897 # Reject install programs that cannot install multiple files.
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9899 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9900 if test -z "$INSTALL"; then
9901 if ${ac_cv_path_install+:} false; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 # Account for people who put trailing slashes in PATH elements.
9910 case $as_dir/ in #((
9911 ./ | .// | /[cC]/* | \
9912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9913 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9914 /usr/ucb/* ) ;;
9916 # OSF1 and SCO ODT 3.0 have their own names for install.
9917 # Don't use installbsd from OSF since it installs stuff as root
9918 # by default.
9919 for ac_prog in ginstall scoinst install; do
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9922 if test $ac_prog = install &&
9923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9924 # AIX install. It has an incompatible calling convention.
9926 elif test $ac_prog = install &&
9927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9928 # program-specific install script used by HP pwplus--don't use.
9930 else
9931 rm -rf conftest.one conftest.two conftest.dir
9932 echo one > conftest.one
9933 echo two > conftest.two
9934 mkdir conftest.dir
9935 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9936 test -s conftest.one && test -s conftest.two &&
9937 test -s conftest.dir/conftest.one &&
9938 test -s conftest.dir/conftest.two
9939 then
9940 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9941 break 3
9945 done
9946 done
9948 esac
9950 done
9951 IFS=$as_save_IFS
9953 rm -rf conftest.one conftest.two conftest.dir
9956 if test "${ac_cv_path_install+set}" = set; then
9957 INSTALL=$ac_cv_path_install
9958 else
9959 # As a last resort, use the slow shell script. Don't cache a
9960 # value for INSTALL within a source directory, because that will
9961 # break other packages using the cache if that directory is
9962 # removed, or if the value is a relative name.
9963 INSTALL=$ac_install_sh
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9967 $as_echo "$INSTALL" >&6; }
9969 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9970 # It thinks the first close brace ends the variable substitution.
9971 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9973 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9975 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9978 #########
9979 # Enable large file support (if special flags are necessary)
9981 # Check whether --enable-largefile was given.
9982 if test "${enable_largefile+set}" = set; then :
9983 enableval=$enable_largefile;
9986 if test "$enable_largefile" != no; then
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9989 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9990 if ${ac_cv_sys_largefile_CC+:} false; then :
9991 $as_echo_n "(cached) " >&6
9992 else
9993 ac_cv_sys_largefile_CC=no
9994 if test "$GCC" != yes; then
9995 ac_save_CC=$CC
9996 while :; do
9997 # IRIX 6.2 and later do not support large files by default,
9998 # so use the C compiler's -n32 option if that helps.
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 #include <sys/types.h>
10002 /* Check that off_t can represent 2**63 - 1 correctly.
10003 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10004 since some C++ compilers masquerading as C compilers
10005 incorrectly reject 9223372036854775807. */
10006 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10007 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10008 && LARGE_OFF_T % 2147483647 == 1)
10009 ? 1 : -1];
10011 main ()
10015 return 0;
10017 _ACEOF
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 break
10021 rm -f core conftest.err conftest.$ac_objext
10022 CC="$CC -n32"
10023 if ac_fn_c_try_compile "$LINENO"; then :
10024 ac_cv_sys_largefile_CC=' -n32'; break
10026 rm -f core conftest.err conftest.$ac_objext
10027 break
10028 done
10029 CC=$ac_save_CC
10030 rm -f conftest.$ac_ext
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10034 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10035 if test "$ac_cv_sys_largefile_CC" != no; then
10036 CC=$CC$ac_cv_sys_largefile_CC
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10040 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10041 if ${ac_cv_sys_file_offset_bits+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 while :; do
10045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10046 /* end confdefs.h. */
10047 #include <sys/types.h>
10048 /* Check that off_t can represent 2**63 - 1 correctly.
10049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10050 since some C++ compilers masquerading as C compilers
10051 incorrectly reject 9223372036854775807. */
10052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10054 && LARGE_OFF_T % 2147483647 == 1)
10055 ? 1 : -1];
10057 main ()
10061 return 0;
10063 _ACEOF
10064 if ac_fn_c_try_compile "$LINENO"; then :
10065 ac_cv_sys_file_offset_bits=no; break
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10070 #define _FILE_OFFSET_BITS 64
10071 #include <sys/types.h>
10072 /* Check that off_t can represent 2**63 - 1 correctly.
10073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10074 since some C++ compilers masquerading as C compilers
10075 incorrectly reject 9223372036854775807. */
10076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10078 && LARGE_OFF_T % 2147483647 == 1)
10079 ? 1 : -1];
10081 main ()
10085 return 0;
10087 _ACEOF
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 ac_cv_sys_file_offset_bits=64; break
10091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10092 ac_cv_sys_file_offset_bits=unknown
10093 break
10094 done
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10097 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10098 case $ac_cv_sys_file_offset_bits in #(
10099 no | unknown) ;;
10101 cat >>confdefs.h <<_ACEOF
10102 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10103 _ACEOF
10105 esac
10106 rm -rf conftest*
10107 if test $ac_cv_sys_file_offset_bits = unknown; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10109 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10110 if ${ac_cv_sys_large_files+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113 while :; do
10114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h. */
10116 #include <sys/types.h>
10117 /* Check that off_t can represent 2**63 - 1 correctly.
10118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10119 since some C++ compilers masquerading as C compilers
10120 incorrectly reject 9223372036854775807. */
10121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10123 && LARGE_OFF_T % 2147483647 == 1)
10124 ? 1 : -1];
10126 main ()
10130 return 0;
10132 _ACEOF
10133 if ac_fn_c_try_compile "$LINENO"; then :
10134 ac_cv_sys_large_files=no; break
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139 #define _LARGE_FILES 1
10140 #include <sys/types.h>
10141 /* Check that off_t can represent 2**63 - 1 correctly.
10142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10143 since some C++ compilers masquerading as C compilers
10144 incorrectly reject 9223372036854775807. */
10145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10147 && LARGE_OFF_T % 2147483647 == 1)
10148 ? 1 : -1];
10150 main ()
10154 return 0;
10156 _ACEOF
10157 if ac_fn_c_try_compile "$LINENO"; then :
10158 ac_cv_sys_large_files=1; break
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 ac_cv_sys_large_files=unknown
10162 break
10163 done
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10166 $as_echo "$ac_cv_sys_large_files" >&6; }
10167 case $ac_cv_sys_large_files in #(
10168 no | unknown) ;;
10170 cat >>confdefs.h <<_ACEOF
10171 #define _LARGE_FILES $ac_cv_sys_large_files
10172 _ACEOF
10174 esac
10175 rm -rf conftest*
10182 #########
10183 # Check for needed/wanted data types
10184 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10185 if test "x$ac_cv_type_int8_t" = xyes; then :
10187 cat >>confdefs.h <<_ACEOF
10188 #define HAVE_INT8_T 1
10189 _ACEOF
10193 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10194 if test "x$ac_cv_type_int16_t" = xyes; then :
10196 cat >>confdefs.h <<_ACEOF
10197 #define HAVE_INT16_T 1
10198 _ACEOF
10202 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10203 if test "x$ac_cv_type_int32_t" = xyes; then :
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_INT32_T 1
10207 _ACEOF
10211 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10212 if test "x$ac_cv_type_int64_t" = xyes; then :
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_INT64_T 1
10216 _ACEOF
10220 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10221 if test "x$ac_cv_type_intptr_t" = xyes; then :
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_INTPTR_T 1
10225 _ACEOF
10229 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10230 if test "x$ac_cv_type_uint8_t" = xyes; then :
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_UINT8_T 1
10234 _ACEOF
10238 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10239 if test "x$ac_cv_type_uint16_t" = xyes; then :
10241 cat >>confdefs.h <<_ACEOF
10242 #define HAVE_UINT16_T 1
10243 _ACEOF
10247 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10248 if test "x$ac_cv_type_uint32_t" = xyes; then :
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_UINT32_T 1
10252 _ACEOF
10256 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10257 if test "x$ac_cv_type_uint64_t" = xyes; then :
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_UINT64_T 1
10261 _ACEOF
10265 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10266 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_UINTPTR_T 1
10270 _ACEOF
10276 #########
10277 # Check for needed/wanted headers
10278 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10279 do :
10280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10282 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10283 cat >>confdefs.h <<_ACEOF
10284 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10285 _ACEOF
10289 done
10292 #########
10293 # Figure out whether or not we have these functions
10295 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
10296 do :
10297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10299 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10300 cat >>confdefs.h <<_ACEOF
10301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10302 _ACEOF
10305 done
10308 #########
10309 # By default, we use the amalgamation (this may be changed below...)
10311 USE_AMALGAMATION=1
10313 #########
10314 # See whether we can run specific tclsh versions known to work well;
10315 # if not, then we fall back to plain tclsh.
10316 # TODO: try other versions before falling back?
10318 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
10320 # Extract the first word of "$ac_prog", so it can be a program name with args.
10321 set dummy $ac_prog; ac_word=$2
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10323 $as_echo_n "checking for $ac_word... " >&6; }
10324 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 if test -n "$TCLSH_CMD"; then
10328 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10329 else
10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10331 for as_dir in $PATH
10333 IFS=$as_save_IFS
10334 test -z "$as_dir" && as_dir=.
10335 for ac_exec_ext in '' $ac_executable_extensions; do
10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10337 ac_cv_prog_TCLSH_CMD="$ac_prog"
10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 break 2
10341 done
10342 done
10343 IFS=$as_save_IFS
10347 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10348 if test -n "$TCLSH_CMD"; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10350 $as_echo "$TCLSH_CMD" >&6; }
10351 else
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10353 $as_echo "no" >&6; }
10357 test -n "$TCLSH_CMD" && break
10358 done
10359 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10361 if test "$TCLSH_CMD" = "none"; then
10362 # If we can't find a local tclsh, then building the amalgamation will fail.
10363 # We act as though --disable-amalgamation has been used.
10364 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10365 USE_AMALGAMATION=0
10366 TCLSH_CMD="tclsh"
10371 if test "x${TCLLIBDIR+set}" != "xset" ; then
10372 TCLLIBDIR='$(libdir)'
10373 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10374 if test -d $i ; then
10375 TCLLIBDIR=$i
10376 break
10378 done
10379 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10383 #########
10384 # Set up an appropriate program prefix
10386 if test "$program_prefix" = "NONE"; then
10387 program_prefix=""
10391 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10393 $as_echo "$as_me: Version set to $VERSION" >&6;}
10395 RELEASE=`cat $srcdir/VERSION`
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10397 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10400 ##########
10401 # Handle --with-wasi-sdk=DIR
10403 # This must be early because it changes the toolchain.
10406 # Check whether --with-wasi-sdk was given.
10407 if test "${with_wasi_sdk+set}" = set; then :
10408 withval=$with_wasi_sdk; with_wasisdk=${withval}
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WASI SDK directory" >&5
10412 $as_echo_n "checking for WASI SDK directory... " >&6; }
10413 if ${ac_cv_c_wasi_sdk+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415 else
10417 # First check to see if --with-tcl was specified.
10418 if test x"${with_wasi_sdk}" != x ; then
10419 if ! test -d "${with_wasi_sdk}" ; then
10420 as_fn_error $? "${with_wasi_sdk} directory doesn't exist" "$LINENO" 5
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&5
10423 $as_echo "${with_wasi_sdk}: using wasi-sdk clang, disabling: tcl, CLI shell, DLL" >&6; }
10424 use_wasi_sdk=yes
10425 else
10426 use_wasi_sdk=no
10431 if test "${use_wasi_sdk}" = "no" ; then
10432 HAVE_WASI_SDK=""
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434 $as_echo "no" >&6; }
10435 else
10436 HAVE_WASI_SDK=1
10437 # Changing --host and --target have no effect here except to possibly
10438 # cause confusion. autoconf has finished processing them by this
10439 # point.
10441 # host_alias=wasm32-wasi
10442 # target=wasm32-wasi
10444 # Merely changing CC and LD to the wasi-sdk's is enough to get
10445 # sqlite3.o building in WASM format.
10446 CC="${with_wasi_sdk}/bin/clang"
10447 LD="${with_wasi_sdk}/bin/wasm-ld"
10448 RANLIB="${with_wasi_sdk}/bin/llvm-ranlib"
10449 cross_compiling=yes
10450 enable_threadsafe=no
10451 use_tcl=no
10452 enable_tcl=no
10453 # libtool is apparently hard-coded to use gcc for linking DLLs, so
10454 # we disable the DLL build...
10455 enable_shared=no
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10457 $as_echo "yes" >&6; }
10462 #########
10463 # Locate a compiler for the build machine. This compiler should
10464 # generate command-line programs that run on the build machine.
10466 if test x"$cross_compiling" = xno; then
10467 BUILD_CC=$CC
10468 BUILD_CFLAGS=$CFLAGS
10469 else
10470 if test "${BUILD_CC+set}" != set; then
10471 for ac_prog in gcc cc cl
10473 # Extract the first word of "$ac_prog", so it can be a program name with args.
10474 set dummy $ac_prog; ac_word=$2
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10476 $as_echo_n "checking for $ac_word... " >&6; }
10477 if ${ac_cv_prog_BUILD_CC+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 if test -n "$BUILD_CC"; then
10481 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10482 else
10483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10484 for as_dir in $PATH
10486 IFS=$as_save_IFS
10487 test -z "$as_dir" && as_dir=.
10488 for ac_exec_ext in '' $ac_executable_extensions; do
10489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10490 ac_cv_prog_BUILD_CC="$ac_prog"
10491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10492 break 2
10494 done
10495 done
10496 IFS=$as_save_IFS
10500 BUILD_CC=$ac_cv_prog_BUILD_CC
10501 if test -n "$BUILD_CC"; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10503 $as_echo "$BUILD_CC" >&6; }
10504 else
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10506 $as_echo "no" >&6; }
10510 test -n "$BUILD_CC" && break
10511 done
10514 if test "${BUILD_CFLAGS+set}" != set; then
10515 BUILD_CFLAGS="-g"
10520 ##########
10521 # Do we want to support multithreaded use of sqlite
10523 # Check whether --enable-threadsafe was given.
10524 if test "${enable_threadsafe+set}" = set; then :
10525 enableval=$enable_threadsafe;
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10529 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10530 if test "$enable_threadsafe" = "no"; then
10531 SQLITE_THREADSAFE=0
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533 $as_echo "no" >&6; }
10534 else
10535 SQLITE_THREADSAFE=1
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10537 $as_echo "yes" >&6; }
10541 if test "$SQLITE_THREADSAFE" = "1"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10543 $as_echo_n "checking for library containing pthread_create... " >&6; }
10544 if ${ac_cv_search_pthread_create+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 ac_func_search_save_LIBS=$LIBS
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char pthread_create ();
10559 main ()
10561 return pthread_create ();
10563 return 0;
10565 _ACEOF
10566 for ac_lib in '' pthread; do
10567 if test -z "$ac_lib"; then
10568 ac_res="none required"
10569 else
10570 ac_res=-l$ac_lib
10571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10573 if ac_fn_c_try_link "$LINENO"; then :
10574 ac_cv_search_pthread_create=$ac_res
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext
10578 if ${ac_cv_search_pthread_create+:} false; then :
10579 break
10581 done
10582 if ${ac_cv_search_pthread_create+:} false; then :
10584 else
10585 ac_cv_search_pthread_create=no
10587 rm conftest.$ac_ext
10588 LIBS=$ac_func_search_save_LIBS
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10591 $as_echo "$ac_cv_search_pthread_create" >&6; }
10592 ac_res=$ac_cv_search_pthread_create
10593 if test "$ac_res" != no; then :
10594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10599 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10600 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10601 $as_echo_n "(cached) " >&6
10602 else
10603 ac_func_search_save_LIBS=$LIBS
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10607 /* Override any GCC internal prototype to avoid an error.
10608 Use char because int might match the return type of a GCC
10609 builtin and then its argument prototype would still apply. */
10610 #ifdef __cplusplus
10611 extern "C"
10612 #endif
10613 char pthread_mutexattr_init ();
10615 main ()
10617 return pthread_mutexattr_init ();
10619 return 0;
10621 _ACEOF
10622 for ac_lib in '' pthread; do
10623 if test -z "$ac_lib"; then
10624 ac_res="none required"
10625 else
10626 ac_res=-l$ac_lib
10627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10629 if ac_fn_c_try_link "$LINENO"; then :
10630 ac_cv_search_pthread_mutexattr_init=$ac_res
10632 rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext
10634 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10635 break
10637 done
10638 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10640 else
10641 ac_cv_search_pthread_mutexattr_init=no
10643 rm conftest.$ac_ext
10644 LIBS=$ac_func_search_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10647 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10648 ac_res=$ac_cv_search_pthread_mutexattr_init
10649 if test "$ac_res" != no; then :
10650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10656 ##########
10657 # Do we want to support release
10659 # Check whether --enable-releasemode was given.
10660 if test "${enable_releasemode+set}" = set; then :
10661 enableval=$enable_releasemode;
10662 else
10663 enable_releasemode=no
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10667 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10668 if test "$enable_releasemode" = "no"; then
10669 ALLOWRELEASE=""
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671 $as_echo "no" >&6; }
10672 else
10673 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10675 $as_echo "yes" >&6; }
10679 ##########
10680 # Do we want temporary databases in memory
10682 # Check whether --enable-tempstore was given.
10683 if test "${enable_tempstore+set}" = set; then :
10684 enableval=$enable_tempstore;
10685 else
10686 enable_tempstore=no
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10690 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10691 case "$enable_tempstore" in
10692 never )
10693 TEMP_STORE=0
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10695 $as_echo "never" >&6; }
10697 no )
10698 TEMP_STORE=1
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700 $as_echo "no" >&6; }
10702 yes )
10703 TEMP_STORE=2
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10705 $as_echo "yes" >&6; }
10707 always )
10708 TEMP_STORE=3
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10710 $as_echo "always" >&6; }
10713 TEMP_STORE=1
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10717 esac
10721 ###########
10722 # Lots of things are different if we are compiling for Windows using
10723 # the CYGWIN environment. So check for that special case and handle
10724 # things accordingly.
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10727 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10728 if test "$config_BUILD_EXEEXT" = ".exe"; then
10729 CYGWIN=yes
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731 $as_echo "yes" >&6; }
10732 else
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10734 $as_echo "unknown" >&6; }
10736 if test "$CYGWIN" != "yes"; then
10738 case $host_os in
10739 *cygwin* ) CYGWIN=yes;;
10740 * ) CYGWIN=no;;
10741 esac
10744 if test "$CYGWIN" = "yes"; then
10745 BUILD_EXEEXT=.exe
10746 else
10747 BUILD_EXEEXT=$EXEEXT
10749 if test x"$cross_compiling" = xno; then
10750 TARGET_EXEEXT=$BUILD_EXEEXT
10751 else
10752 TARGET_EXEEXT=$config_TARGET_EXEEXT
10754 if test "$TARGET_EXEEXT" = ".exe"; then
10755 SQLITE_OS_UNIX=0
10756 SQLITE_OS_WIN=1
10757 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10758 else
10759 SQLITE_OS_UNIX=1
10760 SQLITE_OS_WIN=0
10761 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10769 ##########
10770 # Figure out all the parameters needed to compile against Tcl.
10772 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10773 # macros in the in the tcl.m4 file of the standard TCL distribution.
10774 # Those macros could not be used directly since we have to make some
10775 # minor changes to accomodate systems that do not have TCL installed.
10777 # Check whether --enable-tcl was given.
10778 if test "${enable_tcl+set}" = set; then :
10779 enableval=$enable_tcl; use_tcl=$enableval
10780 else
10781 use_tcl=yes
10784 if test "${use_tcl}" = "yes" ; then
10786 # Check whether --with-tcl was given.
10787 if test "${with_tcl+set}" = set; then :
10788 withval=$with_tcl; with_tclconfig=${withval}
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10792 $as_echo_n "checking for Tcl configuration... " >&6; }
10793 if ${ac_cv_c_tclconfig+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10797 # First check to see if --with-tcl was specified.
10798 if test x"${with_tclconfig}" != x ; then
10799 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10800 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10801 else
10802 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10806 # Start autosearch by asking tclsh
10807 if test x"${ac_cv_c_tclconfig}" = x ; then
10808 if test x"$cross_compiling" = xno; then
10809 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10811 if test -f "$i/tclConfig.sh" ; then
10812 ac_cv_c_tclconfig="$i"
10813 break
10815 done
10819 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10820 # So try again after applying corrections.
10821 if test x"${ac_cv_c_tclconfig}" = x ; then
10822 if test x"$cross_compiling" = xno; then
10823 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10825 if test -f "$i/tclConfig.sh" ; then
10826 ac_cv_c_tclconfig="$i"
10827 break
10829 done
10833 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10834 # in a strange place.
10835 if test x"${ac_cv_c_tclconfig}" = x ; then
10836 if test x"$cross_compiling" = xno; then
10837 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10839 if test -f "$i/tclConfig.sh" ; then
10840 ac_cv_c_tclconfig="$i"
10841 break
10843 done
10847 # then check for a private Tcl installation
10848 if test x"${ac_cv_c_tclconfig}" = x ; then
10849 for i in \
10850 ../tcl \
10851 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10852 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10853 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10854 ../../tcl \
10855 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10856 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10857 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10858 ../../../tcl \
10859 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10860 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10861 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10863 if test -f "$i/unix/tclConfig.sh" ; then
10864 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10865 break
10867 done
10870 # check in a few common install locations
10871 if test x"${ac_cv_c_tclconfig}" = x ; then
10872 for i in \
10873 `ls -d ${libdir} 2>/dev/null` \
10874 `ls -d /usr/local/lib 2>/dev/null` \
10875 `ls -d /usr/contrib/lib 2>/dev/null` \
10876 `ls -d /usr/lib 2>/dev/null`
10878 if test -f "$i/tclConfig.sh" ; then
10879 ac_cv_c_tclconfig=`(cd $i; pwd)`
10880 break
10882 done
10885 # check in a few other private locations
10886 if test x"${ac_cv_c_tclconfig}" = x ; then
10887 for i in \
10888 ${srcdir}/../tcl \
10889 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10890 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10891 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10893 if test -f "$i/unix/tclConfig.sh" ; then
10894 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10895 break
10897 done
10903 if test x"${ac_cv_c_tclconfig}" = x ; then
10904 use_tcl=no
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10906 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10908 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10910 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10911 else
10912 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10914 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10917 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10918 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10920 $as_echo "loading" >&6; }
10921 . $TCL_BIN_DIR/tclConfig.sh
10922 else
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10924 $as_echo "file not found" >&6; }
10928 # If the TCL_BIN_DIR is the build directory (not the install directory),
10929 # then set the common variable name to the value of the build variables.
10930 # For example, the variable TCL_LIB_SPEC will be set to the value
10931 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10932 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10933 # installed and uninstalled version of Tcl.
10936 if test -f $TCL_BIN_DIR/Makefile ; then
10937 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10938 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10939 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10943 # eval is required to do the TCL_DBGX substitution
10946 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10947 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10948 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10950 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10951 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10952 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10969 if test "${use_tcl}" = "no" ; then
10970 HAVE_TCL=""
10971 else
10972 HAVE_TCL=1
10976 ##########
10977 # Figure out what C libraries are required to compile programs
10978 # that use "readline()" library.
10980 TARGET_READLINE_LIBS=""
10981 TARGET_READLINE_INC=""
10982 TARGET_HAVE_READLINE=0
10983 TARGET_HAVE_EDITLINE=0
10984 # Check whether --enable-editline was given.
10985 if test "${enable_editline+set}" = set; then :
10986 enableval=$enable_editline; with_editline=$enableval
10987 else
10988 with_editline=auto
10991 # Check whether --enable-readline was given.
10992 if test "${enable_readline+set}" = set; then :
10993 enableval=$enable_readline; with_readline=$enableval
10994 else
10995 with_readline=auto
10999 if test x"$with_editline" != xno; then
11000 sLIBS=$LIBS
11001 LIBS=""
11002 TARGET_HAVE_EDITLINE=1
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
11004 $as_echo_n "checking for library containing readline... " >&6; }
11005 if ${ac_cv_search_readline+:} false; then :
11006 $as_echo_n "(cached) " >&6
11007 else
11008 ac_func_search_save_LIBS=$LIBS
11009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h. */
11012 /* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015 #ifdef __cplusplus
11016 extern "C"
11017 #endif
11018 char readline ();
11020 main ()
11022 return readline ();
11024 return 0;
11026 _ACEOF
11027 for ac_lib in '' edit; do
11028 if test -z "$ac_lib"; then
11029 ac_res="none required"
11030 else
11031 ac_res=-l$ac_lib
11032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 ac_cv_search_readline=$ac_res
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext
11039 if ${ac_cv_search_readline+:} false; then :
11040 break
11042 done
11043 if ${ac_cv_search_readline+:} false; then :
11045 else
11046 ac_cv_search_readline=no
11048 rm conftest.$ac_ext
11049 LIBS=$ac_func_search_save_LIBS
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
11052 $as_echo "$ac_cv_search_readline" >&6; }
11053 ac_res=$ac_cv_search_readline
11054 if test "$ac_res" != no; then :
11055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11056 with_readline=no
11057 else
11058 TARGET_HAVE_EDITLINE=0
11061 TARGET_READLINE_LIBS=$LIBS
11062 LIBS=$sLIBS
11064 if test x"$with_readline" != xno; then
11065 found="yes"
11068 # Check whether --with-readline-lib was given.
11069 if test "${with_readline_lib+set}" = set; then :
11070 withval=$with_readline_lib; with_readline_lib=$withval
11071 else
11072 with_readline_lib="auto"
11075 if test "x$with_readline_lib" = xauto; then
11076 save_LIBS="$LIBS"
11077 LIBS=""
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11079 $as_echo_n "checking for library containing tgetent... " >&6; }
11080 if ${ac_cv_search_tgetent+:} false; then :
11081 $as_echo_n "(cached) " >&6
11082 else
11083 ac_func_search_save_LIBS=$LIBS
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11087 /* Override any GCC internal prototype to avoid an error.
11088 Use char because int might match the return type of a GCC
11089 builtin and then its argument prototype would still apply. */
11090 #ifdef __cplusplus
11091 extern "C"
11092 #endif
11093 char tgetent ();
11095 main ()
11097 return tgetent ();
11099 return 0;
11101 _ACEOF
11102 for ac_lib in '' readline ncurses curses termcap; do
11103 if test -z "$ac_lib"; then
11104 ac_res="none required"
11105 else
11106 ac_res=-l$ac_lib
11107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11109 if ac_fn_c_try_link "$LINENO"; then :
11110 ac_cv_search_tgetent=$ac_res
11112 rm -f core conftest.err conftest.$ac_objext \
11113 conftest$ac_exeext
11114 if ${ac_cv_search_tgetent+:} false; then :
11115 break
11117 done
11118 if ${ac_cv_search_tgetent+:} false; then :
11120 else
11121 ac_cv_search_tgetent=no
11123 rm conftest.$ac_ext
11124 LIBS=$ac_func_search_save_LIBS
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11127 $as_echo "$ac_cv_search_tgetent" >&6; }
11128 ac_res=$ac_cv_search_tgetent
11129 if test "$ac_res" != no; then :
11130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11131 term_LIBS="$LIBS"
11132 else
11133 term_LIBS=""
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11137 $as_echo_n "checking for readline in -lreadline... " >&6; }
11138 if ${ac_cv_lib_readline_readline+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 ac_check_lib_save_LIBS=$LIBS
11142 LIBS="-lreadline $LIBS"
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11146 /* Override any GCC internal prototype to avoid an error.
11147 Use char because int might match the return type of a GCC
11148 builtin and then its argument prototype would still apply. */
11149 #ifdef __cplusplus
11150 extern "C"
11151 #endif
11152 char readline ();
11154 main ()
11156 return readline ();
11158 return 0;
11160 _ACEOF
11161 if ac_fn_c_try_link "$LINENO"; then :
11162 ac_cv_lib_readline_readline=yes
11163 else
11164 ac_cv_lib_readline_readline=no
11166 rm -f core conftest.err conftest.$ac_objext \
11167 conftest$ac_exeext conftest.$ac_ext
11168 LIBS=$ac_check_lib_save_LIBS
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11171 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11172 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11173 TARGET_READLINE_LIBS="-lreadline"
11174 else
11175 found="no"
11178 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11179 LIBS="$save_LIBS"
11180 else
11181 TARGET_READLINE_LIBS="$with_readline_lib"
11185 # Check whether --with-readline-inc was given.
11186 if test "${with_readline_inc+set}" = set; then :
11187 withval=$with_readline_inc; with_readline_inc=$withval
11188 else
11189 with_readline_inc="auto"
11192 if test "x$with_readline_inc" = xauto; then
11193 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11194 if test "x$ac_cv_header_readline_h" = xyes; then :
11195 found="yes"
11196 else
11198 found="no"
11199 if test "$cross_compiling" != yes; then
11200 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11201 for subdir in include include/readline; do
11202 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11204 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11205 if eval \${$as_ac_File+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 test "$cross_compiling" = yes &&
11209 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11210 if test -r "$dir/$subdir/readline.h"; then
11211 eval "$as_ac_File=yes"
11212 else
11213 eval "$as_ac_File=no"
11216 eval ac_res=\$$as_ac_File
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11218 $as_echo "$ac_res" >&6; }
11219 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11220 found=yes
11223 if test "$found" = "yes"; then
11224 TARGET_READLINE_INC="-I$dir/$subdir"
11225 break
11227 done
11228 test "$found" = "yes" && break
11229 done
11235 else
11236 TARGET_READLINE_INC="$with_readline_inc"
11239 if test x"$found" = xno; then
11240 TARGET_READLINE_LIBS=""
11241 TARGET_READLINE_INC=""
11242 TARGET_HAVE_READLINE=0
11243 else
11244 TARGET_HAVE_READLINE=1
11253 ##########
11254 # Figure out what C libraries are required to compile programs
11255 # that use "fdatasync()" function.
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11258 $as_echo_n "checking for library containing fdatasync... " >&6; }
11259 if ${ac_cv_search_fdatasync+:} false; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 ac_func_search_save_LIBS=$LIBS
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char fdatasync ();
11274 main ()
11276 return fdatasync ();
11278 return 0;
11280 _ACEOF
11281 for ac_lib in '' rt; do
11282 if test -z "$ac_lib"; then
11283 ac_res="none required"
11284 else
11285 ac_res=-l$ac_lib
11286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11288 if ac_fn_c_try_link "$LINENO"; then :
11289 ac_cv_search_fdatasync=$ac_res
11291 rm -f core conftest.err conftest.$ac_objext \
11292 conftest$ac_exeext
11293 if ${ac_cv_search_fdatasync+:} false; then :
11294 break
11296 done
11297 if ${ac_cv_search_fdatasync+:} false; then :
11299 else
11300 ac_cv_search_fdatasync=no
11302 rm conftest.$ac_ext
11303 LIBS=$ac_func_search_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11306 $as_echo "$ac_cv_search_fdatasync" >&6; }
11307 ac_res=$ac_cv_search_fdatasync
11308 if test "$ac_res" != no; then :
11309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11314 #########
11315 # check for debug enabled
11316 # Check whether --enable-debug was given.
11317 if test "${enable_debug+set}" = set; then :
11318 enableval=$enable_debug;
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build type" >&5
11322 $as_echo_n "checking build type... " >&6; }
11323 if test "${enable_debug}" = "yes" ; then
11324 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
11326 $as_echo "debug" >&6; }
11327 else
11328 TARGET_DEBUG="-DNDEBUG"
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
11330 $as_echo "release" >&6; }
11334 #########
11335 # See whether we should use the amalgamation to build
11337 # Check whether --enable-amalgamation was given.
11338 if test "${enable_amalgamation+set}" = set; then :
11339 enableval=$enable_amalgamation;
11342 if test "${enable_amalgamation}" = "no" ; then
11343 USE_AMALGAMATION=0
11347 #########
11348 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11349 for ac_header in zlib.h
11350 do :
11351 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11352 if test "x$ac_cv_header_zlib_h" = xyes; then :
11353 cat >>confdefs.h <<_ACEOF
11354 #define HAVE_ZLIB_H 1
11355 _ACEOF
11359 done
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11362 $as_echo_n "checking for library containing deflate... " >&6; }
11363 if ${ac_cv_search_deflate+:} false; then :
11364 $as_echo_n "(cached) " >&6
11365 else
11366 ac_func_search_save_LIBS=$LIBS
11367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11373 #ifdef __cplusplus
11374 extern "C"
11375 #endif
11376 char deflate ();
11378 main ()
11380 return deflate ();
11382 return 0;
11384 _ACEOF
11385 for ac_lib in '' z; do
11386 if test -z "$ac_lib"; then
11387 ac_res="none required"
11388 else
11389 ac_res=-l$ac_lib
11390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11392 if ac_fn_c_try_link "$LINENO"; then :
11393 ac_cv_search_deflate=$ac_res
11395 rm -f core conftest.err conftest.$ac_objext \
11396 conftest$ac_exeext
11397 if ${ac_cv_search_deflate+:} false; then :
11398 break
11400 done
11401 if ${ac_cv_search_deflate+:} false; then :
11403 else
11404 ac_cv_search_deflate=no
11406 rm conftest.$ac_ext
11407 LIBS=$ac_func_search_save_LIBS
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11410 $as_echo "$ac_cv_search_deflate" >&6; }
11411 ac_res=$ac_cv_search_deflate
11412 if test "$ac_res" != no; then :
11413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11414 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11415 else
11416 HAVE_ZLIB=""
11421 #########
11422 # See whether we should allow loadable extensions
11423 # Check whether --enable-load-extension was given.
11424 if test "${enable_load_extension+set}" = set; then :
11425 enableval=$enable_load_extension;
11426 else
11427 enable_load_extension=yes
11430 if test "${enable_load_extension}" = "yes" ; then
11431 OPT_FEATURE_FLAGS=""
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11433 $as_echo_n "checking for library containing dlopen... " >&6; }
11434 if ${ac_cv_search_dlopen+:} false; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 ac_func_search_save_LIBS=$LIBS
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11441 /* Override any GCC internal prototype to avoid an error.
11442 Use char because int might match the return type of a GCC
11443 builtin and then its argument prototype would still apply. */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char dlopen ();
11449 main ()
11451 return dlopen ();
11453 return 0;
11455 _ACEOF
11456 for ac_lib in '' dl; do
11457 if test -z "$ac_lib"; then
11458 ac_res="none required"
11459 else
11460 ac_res=-l$ac_lib
11461 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11463 if ac_fn_c_try_link "$LINENO"; then :
11464 ac_cv_search_dlopen=$ac_res
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext
11468 if ${ac_cv_search_dlopen+:} false; then :
11469 break
11471 done
11472 if ${ac_cv_search_dlopen+:} false; then :
11474 else
11475 ac_cv_search_dlopen=no
11477 rm conftest.$ac_ext
11478 LIBS=$ac_func_search_save_LIBS
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11481 $as_echo "$ac_cv_search_dlopen" >&6; }
11482 ac_res=$ac_cv_search_dlopen
11483 if test "$ac_res" != no; then :
11484 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11488 else
11489 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11492 ##########
11493 # Do we want to support math functions
11495 # Check whether --enable-math was given.
11496 if test "${enable_math+set}" = set; then :
11497 enableval=$enable_math;
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support math functions" >&5
11501 $as_echo_n "checking whether to support math functions... " >&6; }
11502 if test "$enable_math" = "no"; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11504 $as_echo "no" >&6; }
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11507 $as_echo "yes" >&6; }
11508 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MATH_FUNCTIONS"
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
11510 $as_echo_n "checking for library containing ceil... " >&6; }
11511 if ${ac_cv_search_ceil+:} false; then :
11512 $as_echo_n "(cached) " >&6
11513 else
11514 ac_func_search_save_LIBS=$LIBS
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516 /* end confdefs.h. */
11518 /* Override any GCC internal prototype to avoid an error.
11519 Use char because int might match the return type of a GCC
11520 builtin and then its argument prototype would still apply. */
11521 #ifdef __cplusplus
11522 extern "C"
11523 #endif
11524 char ceil ();
11526 main ()
11528 return ceil ();
11530 return 0;
11532 _ACEOF
11533 for ac_lib in '' m; do
11534 if test -z "$ac_lib"; then
11535 ac_res="none required"
11536 else
11537 ac_res=-l$ac_lib
11538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 ac_cv_search_ceil=$ac_res
11543 rm -f core conftest.err conftest.$ac_objext \
11544 conftest$ac_exeext
11545 if ${ac_cv_search_ceil+:} false; then :
11546 break
11548 done
11549 if ${ac_cv_search_ceil+:} false; then :
11551 else
11552 ac_cv_search_ceil=no
11554 rm conftest.$ac_ext
11555 LIBS=$ac_func_search_save_LIBS
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
11558 $as_echo "$ac_cv_search_ceil" >&6; }
11559 ac_res=$ac_cv_search_ceil
11560 if test "$ac_res" != no; then :
11561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11567 ##########
11568 # Do we want to support JSON functions
11570 # Check whether --enable-json was given.
11571 if test "${enable_json+set}" = set; then :
11572 enableval=$enable_json;
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support JSON functions" >&5
11576 $as_echo_n "checking whether to support JSON functions... " >&6; }
11577 if test "$enable_json" = "no"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11579 $as_echo "no" >&6; }
11580 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_OMIT_JSON"
11581 else
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11583 $as_echo "yes" >&6; }
11586 ########
11587 # The --enable-all argument is short-hand to enable
11588 # multiple extensions.
11589 # Check whether --enable-all was given.
11590 if test "${enable_all+set}" = set; then :
11591 enableval=$enable_all;
11595 ##########
11596 # Do we want to support memsys3 and/or memsys5
11598 # Check whether --enable-memsys5 was given.
11599 if test "${enable_memsys5+set}" = set; then :
11600 enableval=$enable_memsys5;
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11604 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
11605 if test "${enable_memsys5}" = "yes"; then
11606 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608 $as_echo "yes" >&6; }
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 $as_echo "no" >&6; }
11613 # Check whether --enable-memsys3 was given.
11614 if test "${enable_memsys3+set}" = set; then :
11615 enableval=$enable_memsys3;
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11619 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
11620 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
11621 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624 else
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11626 $as_echo "no" >&6; }
11629 #########
11630 # See whether we should enable Full Text Search extensions
11631 # Check whether --enable-fts3 was given.
11632 if test "${enable_fts3+set}" = set; then :
11633 enableval=$enable_fts3;
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS3" >&5
11637 $as_echo_n "checking whether to support FTS3... " >&6; }
11638 if test "${enable_fts3}" = "yes" ; then
11639 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11641 $as_echo "yes" >&6; }
11642 else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 $as_echo "no" >&6; }
11646 # Check whether --enable-fts4 was given.
11647 if test "${enable_fts4+set}" = set; then :
11648 enableval=$enable_fts4;
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS4" >&5
11652 $as_echo_n "checking whether to support FTS4... " >&6; }
11653 if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11655 $as_echo "yes" >&6; }
11656 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11658 $as_echo_n "checking for library containing log... " >&6; }
11659 if ${ac_cv_search_log+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 ac_func_search_save_LIBS=$LIBS
11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11664 /* end confdefs.h. */
11666 /* Override any GCC internal prototype to avoid an error.
11667 Use char because int might match the return type of a GCC
11668 builtin and then its argument prototype would still apply. */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 char log ();
11674 main ()
11676 return log ();
11678 return 0;
11680 _ACEOF
11681 for ac_lib in '' m; do
11682 if test -z "$ac_lib"; then
11683 ac_res="none required"
11684 else
11685 ac_res=-l$ac_lib
11686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11688 if ac_fn_c_try_link "$LINENO"; then :
11689 ac_cv_search_log=$ac_res
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext
11693 if ${ac_cv_search_log+:} false; then :
11694 break
11696 done
11697 if ${ac_cv_search_log+:} false; then :
11699 else
11700 ac_cv_search_log=no
11702 rm conftest.$ac_ext
11703 LIBS=$ac_func_search_save_LIBS
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11706 $as_echo "$ac_cv_search_log" >&6; }
11707 ac_res=$ac_cv_search_log
11708 if test "$ac_res" != no; then :
11709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715 $as_echo "no" >&6; }
11717 # Check whether --enable-fts5 was given.
11718 if test "${enable_fts5+set}" = set; then :
11719 enableval=$enable_fts5;
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support FTS5" >&5
11723 $as_echo_n "checking whether to support FTS5... " >&6; }
11724 if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726 $as_echo "yes" >&6; }
11727 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11729 $as_echo_n "checking for library containing log... " >&6; }
11730 if ${ac_cv_search_log+:} false; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733 ac_func_search_save_LIBS=$LIBS
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h. */
11737 /* Override any GCC internal prototype to avoid an error.
11738 Use char because int might match the return type of a GCC
11739 builtin and then its argument prototype would still apply. */
11740 #ifdef __cplusplus
11741 extern "C"
11742 #endif
11743 char log ();
11745 main ()
11747 return log ();
11749 return 0;
11751 _ACEOF
11752 for ac_lib in '' m; do
11753 if test -z "$ac_lib"; then
11754 ac_res="none required"
11755 else
11756 ac_res=-l$ac_lib
11757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11759 if ac_fn_c_try_link "$LINENO"; then :
11760 ac_cv_search_log=$ac_res
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext
11764 if ${ac_cv_search_log+:} false; then :
11765 break
11767 done
11768 if ${ac_cv_search_log+:} false; then :
11770 else
11771 ac_cv_search_log=no
11773 rm conftest.$ac_ext
11774 LIBS=$ac_func_search_save_LIBS
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11777 $as_echo "$ac_cv_search_log" >&6; }
11778 ac_res=$ac_cv_search_log
11779 if test "$ac_res" != no; then :
11780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11784 else
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11789 #########
11790 # See whether we should enable the LIMIT clause on UPDATE and DELETE
11791 # statements.
11792 # Check whether --enable-update-limit was given.
11793 if test "${enable_update_limit+set}" = set; then :
11794 enableval=$enable_update_limit;
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LIMIT on UPDATE and DELETE statements" >&5
11798 $as_echo_n "checking whether to support LIMIT on UPDATE and DELETE statements... " >&6; }
11799 if test "${enable_update_limit}" = "yes" ; then
11800 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11802 $as_echo "yes" >&6; }
11803 else
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11808 #########
11809 # See whether we should enable GEOPOLY
11810 # Check whether --enable-geopoly was given.
11811 if test "${enable_geopoly+set}" = set; then :
11812 enableval=$enable_geopoly; enable_geopoly=yes
11813 else
11814 enable_geopoly=no
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support GEOPOLY" >&5
11818 $as_echo_n "checking whether to support GEOPOLY... " >&6; }
11819 if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
11820 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11821 enable_rtree=yes
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11829 #########
11830 # See whether we should enable RTREE
11831 # Check whether --enable-rtree was given.
11832 if test "${enable_rtree+set}" = set; then :
11833 enableval=$enable_rtree;
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support RTREE" >&5
11837 $as_echo_n "checking whether to support RTREE... " >&6; }
11838 if test "${enable_rtree}" = "yes" ; then
11839 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11841 $as_echo "yes" >&6; }
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844 $as_echo "no" >&6; }
11847 #########
11848 # See whether we should enable the SESSION extension
11849 # Check whether --enable-session was given.
11850 if test "${enable_session+set}" = set; then :
11851 enableval=$enable_session;
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support SESSION" >&5
11855 $as_echo_n "checking whether to support SESSION... " >&6; }
11856 if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
11857 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11858 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860 $as_echo "yes" >&6; }
11861 else
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11866 #########
11867 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
11868 for option in $CFLAGS $CPPFLAGS
11870 case $option in
11871 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11872 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11873 esac
11874 done
11878 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11879 ac_temp_CFLAGS=""
11880 for option in $CFLAGS
11882 case $option in
11883 -DSQLITE_OMIT*) ;;
11884 -DSQLITE_ENABLE*) ;;
11885 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11886 esac
11887 done
11888 CFLAGS=$ac_temp_CFLAGS
11891 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11892 ac_temp_CPPFLAGS=""
11893 for option in $CPPFLAGS
11895 case $option in
11896 -DSQLITE_OMIT*) ;;
11897 -DSQLITE_ENABLE*) ;;
11898 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11899 esac
11900 done
11901 CPPFLAGS=$ac_temp_CPPFLAGS
11904 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11905 ac_temp_BUILD_CFLAGS=""
11906 for option in $BUILD_CFLAGS
11908 case $option in
11909 -DSQLITE_OMIT*) ;;
11910 -DSQLITE_ENABLE*) ;;
11911 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11912 esac
11913 done
11914 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11917 #########
11918 # See whether we should use GCOV
11919 # Check whether --enable-gcov was given.
11920 if test "${enable_gcov+set}" = set; then :
11921 enableval=$enable_gcov;
11924 if test "${use_gcov}" = "yes" ; then
11925 USE_GCOV=1
11926 else
11927 USE_GCOV=0
11931 #########
11932 # Enable/disabled amalagamation line macros
11933 ########
11934 AMALGAMATION_LINE_MACROS=--linemacros=0
11935 if test "${amalgamation_line_macros}" = "yes" ; then
11936 AMALGAMATION_LINE_MACROS=--linemacros=1
11938 if test "${amalgamation_line_macros}" = "no" ; then
11939 AMALGAMATION_LINE_MACROS=--linemacros=0
11943 #########
11944 # Output the config header
11945 ac_config_headers="$ac_config_headers sqlite_cfg.h"
11948 #########
11949 # Generate the output files.
11952 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11954 cat >confcache <<\_ACEOF
11955 # This file is a shell script that caches the results of configure
11956 # tests run on this system so they can be shared between configure
11957 # scripts and configure runs, see configure's option --config-cache.
11958 # It is not useful on other systems. If it contains results you don't
11959 # want to keep, you may remove or edit it.
11961 # config.status only pays attention to the cache file if you give it
11962 # the --recheck option to rerun configure.
11964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11966 # following values.
11968 _ACEOF
11970 # The following way of writing the cache mishandles newlines in values,
11971 # but we know of no workaround that is simple, portable, and efficient.
11972 # So, we kill variables containing newlines.
11973 # Ultrix sh set writes to stderr and can't be redirected directly,
11974 # and sets the high bit in the cache file unless we assign to the vars.
11976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11977 eval ac_val=\$$ac_var
11978 case $ac_val in #(
11979 *${as_nl}*)
11980 case $ac_var in #(
11981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11983 esac
11984 case $ac_var in #(
11985 _ | IFS | as_nl) ;; #(
11986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11987 *) { eval $ac_var=; unset $ac_var;} ;;
11988 esac ;;
11989 esac
11990 done
11992 (set) 2>&1 |
11993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11994 *${as_nl}ac_space=\ *)
11995 # `set' does not quote correctly, so add quotes: double-quote
11996 # substitution turns \\\\ into \\, and sed turns \\ into \.
11997 sed -n \
11998 "s/'/'\\\\''/g;
11999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12000 ;; #(
12002 # `set' quotes correctly as required by POSIX, so do not add quotes.
12003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12005 esac |
12006 sort
12008 sed '
12009 /^ac_cv_env_/b end
12010 t clear
12011 :clear
12012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12013 t end
12014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12015 :end' >>confcache
12016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12017 if test -w "$cache_file"; then
12018 if test "x$cache_file" != "x/dev/null"; then
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12020 $as_echo "$as_me: updating cache $cache_file" >&6;}
12021 if test ! -f "$cache_file" || test -h "$cache_file"; then
12022 cat confcache >"$cache_file"
12023 else
12024 case $cache_file in #(
12025 */* | ?:*)
12026 mv -f confcache "$cache_file"$$ &&
12027 mv -f "$cache_file"$$ "$cache_file" ;; #(
12029 mv -f confcache "$cache_file" ;;
12030 esac
12033 else
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12038 rm -f confcache
12040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12041 # Let make expand exec_prefix.
12042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12044 DEFS=-DHAVE_CONFIG_H
12046 ac_libobjs=
12047 ac_ltlibobjs=
12049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12050 # 1. Remove the extension, and $U if already installed.
12051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12054 # will be set to the directory where LIBOBJS objects are built.
12055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12057 done
12058 LIBOBJS=$ac_libobjs
12060 LTLIBOBJS=$ac_ltlibobjs
12064 : "${CONFIG_STATUS=./config.status}"
12065 ac_write_fail=0
12066 ac_clean_files_save=$ac_clean_files
12067 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12069 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12070 as_write_fail=0
12071 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12072 #! $SHELL
12073 # Generated by $as_me.
12074 # Run this file to recreate the current configuration.
12075 # Compiler output produced by configure, useful for debugging
12076 # configure, is in config.log if it exists.
12078 debug=false
12079 ac_cs_recheck=false
12080 ac_cs_silent=false
12082 SHELL=\${CONFIG_SHELL-$SHELL}
12083 export SHELL
12084 _ASEOF
12085 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12086 ## -------------------- ##
12087 ## M4sh Initialization. ##
12088 ## -------------------- ##
12090 # Be more Bourne compatible
12091 DUALCASE=1; export DUALCASE # for MKS sh
12092 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12093 emulate sh
12094 NULLCMD=:
12095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12096 # is contrary to our usage. Disable this feature.
12097 alias -g '${1+"$@"}'='"$@"'
12098 setopt NO_GLOB_SUBST
12099 else
12100 case `(set -o) 2>/dev/null` in #(
12101 *posix*) :
12102 set -o posix ;; #(
12103 *) :
12105 esac
12109 as_nl='
12111 export as_nl
12112 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12116 # Prefer a ksh shell builtin over an external printf program on Solaris,
12117 # but without wasting forks for bash or zsh.
12118 if test -z "$BASH_VERSION$ZSH_VERSION" \
12119 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12120 as_echo='print -r --'
12121 as_echo_n='print -rn --'
12122 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12123 as_echo='printf %s\n'
12124 as_echo_n='printf %s'
12125 else
12126 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12127 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12128 as_echo_n='/usr/ucb/echo -n'
12129 else
12130 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12131 as_echo_n_body='eval
12132 arg=$1;
12133 case $arg in #(
12134 *"$as_nl"*)
12135 expr "X$arg" : "X\\(.*\\)$as_nl";
12136 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12137 esac;
12138 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12140 export as_echo_n_body
12141 as_echo_n='sh -c $as_echo_n_body as_echo'
12143 export as_echo_body
12144 as_echo='sh -c $as_echo_body as_echo'
12147 # The user is always right.
12148 if test "${PATH_SEPARATOR+set}" != set; then
12149 PATH_SEPARATOR=:
12150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12152 PATH_SEPARATOR=';'
12157 # IFS
12158 # We need space, tab and new line, in precisely that order. Quoting is
12159 # there to prevent editors from complaining about space-tab.
12160 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12161 # splitting by setting IFS to empty value.)
12162 IFS=" "" $as_nl"
12164 # Find who we are. Look in the path if we contain no directory separator.
12165 as_myself=
12166 case $0 in #((
12167 *[\\/]* ) as_myself=$0 ;;
12168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12171 IFS=$as_save_IFS
12172 test -z "$as_dir" && as_dir=.
12173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12174 done
12175 IFS=$as_save_IFS
12178 esac
12179 # We did not find ourselves, most probably we were run as `sh COMMAND'
12180 # in which case we are not to be found in the path.
12181 if test "x$as_myself" = x; then
12182 as_myself=$0
12184 if test ! -f "$as_myself"; then
12185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12186 exit 1
12189 # Unset variables that we do not need and which cause bugs (e.g. in
12190 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12191 # suppresses any "Segmentation fault" message there. '((' could
12192 # trigger a bug in pdksh 5.2.14.
12193 for as_var in BASH_ENV ENV MAIL MAILPATH
12194 do eval test x\${$as_var+set} = xset \
12195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12196 done
12197 PS1='$ '
12198 PS2='> '
12199 PS4='+ '
12201 # NLS nuisances.
12202 LC_ALL=C
12203 export LC_ALL
12204 LANGUAGE=C
12205 export LANGUAGE
12207 # CDPATH.
12208 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12211 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12212 # ----------------------------------------
12213 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12214 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12215 # script with STATUS, using 1 if that was 0.
12216 as_fn_error ()
12218 as_status=$1; test $as_status -eq 0 && as_status=1
12219 if test "$4"; then
12220 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12223 $as_echo "$as_me: error: $2" >&2
12224 as_fn_exit $as_status
12225 } # as_fn_error
12228 # as_fn_set_status STATUS
12229 # -----------------------
12230 # Set $? to STATUS, without forking.
12231 as_fn_set_status ()
12233 return $1
12234 } # as_fn_set_status
12236 # as_fn_exit STATUS
12237 # -----------------
12238 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12239 as_fn_exit ()
12241 set +e
12242 as_fn_set_status $1
12243 exit $1
12244 } # as_fn_exit
12246 # as_fn_unset VAR
12247 # ---------------
12248 # Portably unset VAR.
12249 as_fn_unset ()
12251 { eval $1=; unset $1;}
12253 as_unset=as_fn_unset
12254 # as_fn_append VAR VALUE
12255 # ----------------------
12256 # Append the text in VALUE to the end of the definition contained in VAR. Take
12257 # advantage of any shell optimizations that allow amortized linear growth over
12258 # repeated appends, instead of the typical quadratic growth present in naive
12259 # implementations.
12260 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12261 eval 'as_fn_append ()
12263 eval $1+=\$2
12265 else
12266 as_fn_append ()
12268 eval $1=\$$1\$2
12270 fi # as_fn_append
12272 # as_fn_arith ARG...
12273 # ------------------
12274 # Perform arithmetic evaluation on the ARGs, and store the result in the
12275 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12276 # must be portable across $(()) and expr.
12277 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12278 eval 'as_fn_arith ()
12280 as_val=$(( $* ))
12282 else
12283 as_fn_arith ()
12285 as_val=`expr "$@" || test $? -eq 1`
12287 fi # as_fn_arith
12290 if expr a : '\(a\)' >/dev/null 2>&1 &&
12291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12292 as_expr=expr
12293 else
12294 as_expr=false
12297 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12298 as_basename=basename
12299 else
12300 as_basename=false
12303 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12304 as_dirname=dirname
12305 else
12306 as_dirname=false
12309 as_me=`$as_basename -- "$0" ||
12310 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12311 X"$0" : 'X\(//\)$' \| \
12312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12313 $as_echo X/"$0" |
12314 sed '/^.*\/\([^/][^/]*\)\/*$/{
12315 s//\1/
12318 /^X\/\(\/\/\)$/{
12319 s//\1/
12322 /^X\/\(\/\).*/{
12323 s//\1/
12326 s/.*/./; q'`
12328 # Avoid depending upon Character Ranges.
12329 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12330 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12331 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12332 as_cr_digits='0123456789'
12333 as_cr_alnum=$as_cr_Letters$as_cr_digits
12335 ECHO_C= ECHO_N= ECHO_T=
12336 case `echo -n x` in #(((((
12337 -n*)
12338 case `echo 'xy\c'` in
12339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12340 xy) ECHO_C='\c';;
12341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12342 ECHO_T=' ';;
12343 esac;;
12345 ECHO_N='-n';;
12346 esac
12348 rm -f conf$$ conf$$.exe conf$$.file
12349 if test -d conf$$.dir; then
12350 rm -f conf$$.dir/conf$$.file
12351 else
12352 rm -f conf$$.dir
12353 mkdir conf$$.dir 2>/dev/null
12355 if (echo >conf$$.file) 2>/dev/null; then
12356 if ln -s conf$$.file conf$$ 2>/dev/null; then
12357 as_ln_s='ln -s'
12358 # ... but there are two gotchas:
12359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12361 # In both cases, we have to default to `cp -pR'.
12362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12363 as_ln_s='cp -pR'
12364 elif ln conf$$.file conf$$ 2>/dev/null; then
12365 as_ln_s=ln
12366 else
12367 as_ln_s='cp -pR'
12369 else
12370 as_ln_s='cp -pR'
12372 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12373 rmdir conf$$.dir 2>/dev/null
12376 # as_fn_mkdir_p
12377 # -------------
12378 # Create "$as_dir" as a directory, including parents if necessary.
12379 as_fn_mkdir_p ()
12382 case $as_dir in #(
12383 -*) as_dir=./$as_dir;;
12384 esac
12385 test -d "$as_dir" || eval $as_mkdir_p || {
12386 as_dirs=
12387 while :; do
12388 case $as_dir in #(
12389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12390 *) as_qdir=$as_dir;;
12391 esac
12392 as_dirs="'$as_qdir' $as_dirs"
12393 as_dir=`$as_dirname -- "$as_dir" ||
12394 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12395 X"$as_dir" : 'X\(//\)[^/]' \| \
12396 X"$as_dir" : 'X\(//\)$' \| \
12397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12398 $as_echo X"$as_dir" |
12399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12400 s//\1/
12403 /^X\(\/\/\)[^/].*/{
12404 s//\1/
12407 /^X\(\/\/\)$/{
12408 s//\1/
12411 /^X\(\/\).*/{
12412 s//\1/
12415 s/.*/./; q'`
12416 test -d "$as_dir" && break
12417 done
12418 test -z "$as_dirs" || eval "mkdir $as_dirs"
12419 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12422 } # as_fn_mkdir_p
12423 if mkdir -p . 2>/dev/null; then
12424 as_mkdir_p='mkdir -p "$as_dir"'
12425 else
12426 test -d ./-p && rmdir ./-p
12427 as_mkdir_p=false
12431 # as_fn_executable_p FILE
12432 # -----------------------
12433 # Test if FILE is an executable regular file.
12434 as_fn_executable_p ()
12436 test -f "$1" && test -x "$1"
12437 } # as_fn_executable_p
12438 as_test_x='test -x'
12439 as_executable_p=as_fn_executable_p
12441 # Sed expression to map a string onto a valid CPP name.
12442 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12444 # Sed expression to map a string onto a valid variable name.
12445 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12448 exec 6>&1
12449 ## ----------------------------------- ##
12450 ## Main body of $CONFIG_STATUS script. ##
12451 ## ----------------------------------- ##
12452 _ASEOF
12453 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12456 # Save the log message, to keep $0 and so on meaningful, and to
12457 # report actual input values of CONFIG_FILES etc. instead of their
12458 # values after options handling.
12459 ac_log="
12460 This file was extended by sqlite $as_me 3.43.0, which was
12461 generated by GNU Autoconf 2.69. Invocation command line was
12463 CONFIG_FILES = $CONFIG_FILES
12464 CONFIG_HEADERS = $CONFIG_HEADERS
12465 CONFIG_LINKS = $CONFIG_LINKS
12466 CONFIG_COMMANDS = $CONFIG_COMMANDS
12467 $ $0 $@
12469 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12472 _ACEOF
12474 case $ac_config_files in *"
12475 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12476 esac
12478 case $ac_config_headers in *"
12479 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12480 esac
12483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12484 # Files that config.status was made for.
12485 config_files="$ac_config_files"
12486 config_headers="$ac_config_headers"
12487 config_commands="$ac_config_commands"
12489 _ACEOF
12491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12492 ac_cs_usage="\
12493 \`$as_me' instantiates files and other configuration actions
12494 from templates according to the current configuration. Unless the files
12495 and actions are specified as TAGs, all are instantiated by default.
12497 Usage: $0 [OPTION]... [TAG]...
12499 -h, --help print this help, then exit
12500 -V, --version print version number and configuration settings, then exit
12501 --config print configuration, then exit
12502 -q, --quiet, --silent
12503 do not print progress messages
12504 -d, --debug don't remove temporary files
12505 --recheck update $as_me by reconfiguring in the same conditions
12506 --file=FILE[:TEMPLATE]
12507 instantiate the configuration file FILE
12508 --header=FILE[:TEMPLATE]
12509 instantiate the configuration header FILE
12511 Configuration files:
12512 $config_files
12514 Configuration headers:
12515 $config_headers
12517 Configuration commands:
12518 $config_commands
12520 Report bugs to the package provider."
12522 _ACEOF
12523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12524 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12525 ac_cs_version="\\
12526 sqlite config.status 3.43.0
12527 configured by $0, generated by GNU Autoconf 2.69,
12528 with options \\"\$ac_cs_config\\"
12530 Copyright (C) 2012 Free Software Foundation, Inc.
12531 This config.status script is free software; the Free Software Foundation
12532 gives unlimited permission to copy, distribute and modify it."
12534 ac_pwd='$ac_pwd'
12535 srcdir='$srcdir'
12536 INSTALL='$INSTALL'
12537 test -n "\$AWK" || AWK=awk
12538 _ACEOF
12540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12541 # The default lists apply if the user does not specify any file.
12542 ac_need_defaults=:
12543 while test $# != 0
12545 case $1 in
12546 --*=?*)
12547 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12548 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12549 ac_shift=:
12551 --*=)
12552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12553 ac_optarg=
12554 ac_shift=:
12557 ac_option=$1
12558 ac_optarg=$2
12559 ac_shift=shift
12561 esac
12563 case $ac_option in
12564 # Handling of the options.
12565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12566 ac_cs_recheck=: ;;
12567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12568 $as_echo "$ac_cs_version"; exit ;;
12569 --config | --confi | --conf | --con | --co | --c )
12570 $as_echo "$ac_cs_config"; exit ;;
12571 --debug | --debu | --deb | --de | --d | -d )
12572 debug=: ;;
12573 --file | --fil | --fi | --f )
12574 $ac_shift
12575 case $ac_optarg in
12576 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12577 '') as_fn_error $? "missing file argument" ;;
12578 esac
12579 as_fn_append CONFIG_FILES " '$ac_optarg'"
12580 ac_need_defaults=false;;
12581 --header | --heade | --head | --hea )
12582 $ac_shift
12583 case $ac_optarg in
12584 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12585 esac
12586 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12587 ac_need_defaults=false;;
12588 --he | --h)
12589 # Conflict between --help and --header
12590 as_fn_error $? "ambiguous option: \`$1'
12591 Try \`$0 --help' for more information.";;
12592 --help | --hel | -h )
12593 $as_echo "$ac_cs_usage"; exit ;;
12594 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12595 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12596 ac_cs_silent=: ;;
12598 # This is an error.
12599 -*) as_fn_error $? "unrecognized option: \`$1'
12600 Try \`$0 --help' for more information." ;;
12602 *) as_fn_append ac_config_targets " $1"
12603 ac_need_defaults=false ;;
12605 esac
12606 shift
12607 done
12609 ac_configure_extra_args=
12611 if $ac_cs_silent; then
12612 exec 6>/dev/null
12613 ac_configure_extra_args="$ac_configure_extra_args --silent"
12616 _ACEOF
12617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12618 if \$ac_cs_recheck; then
12619 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12620 shift
12621 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12622 CONFIG_SHELL='$SHELL'
12623 export CONFIG_SHELL
12624 exec "\$@"
12627 _ACEOF
12628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12629 exec 5>>config.log
12631 echo
12632 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12633 ## Running $as_me. ##
12634 _ASBOX
12635 $as_echo "$ac_log"
12636 } >&5
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12641 # INIT-COMMANDS
12645 # The HP-UX ksh and POSIX shell print the target directory to stdout
12646 # if CDPATH is set.
12647 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12649 sed_quote_subst='$sed_quote_subst'
12650 double_quote_subst='$double_quote_subst'
12651 delay_variable_subst='$delay_variable_subst'
12652 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12653 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12654 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12655 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12656 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12657 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12658 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12659 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12660 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12661 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12662 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12663 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12664 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12665 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12666 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12667 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12668 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12669 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12670 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12671 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12672 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12673 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12674 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12675 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12676 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12677 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12678 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12679 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12680 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12681 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12682 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12683 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12684 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12685 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12686 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12687 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12688 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12689 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12690 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12691 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12692 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12693 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12694 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12695 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12696 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12697 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12698 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12699 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12700 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12701 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12702 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12703 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12704 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12705 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12706 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12707 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12708 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12709 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12710 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12711 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12712 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12713 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12714 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12715 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12716 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12717 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12718 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12719 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12720 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12721 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12722 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12723 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12724 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12725 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12726 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12727 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12728 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12729 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12730 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12731 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12732 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12733 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12734 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12735 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12736 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12737 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12738 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12739 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12740 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12741 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12742 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12743 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12744 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12745 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12746 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12747 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12748 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12749 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12750 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12751 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12752 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12753 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12754 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12755 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12756 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12757 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12758 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12759 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12760 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12761 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12762 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12763 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12764 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12765 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12766 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12767 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12768 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12769 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12771 LTCC='$LTCC'
12772 LTCFLAGS='$LTCFLAGS'
12773 compiler='$compiler_DEFAULT'
12775 # Quote evaled strings.
12776 for var in SED \
12777 GREP \
12778 EGREP \
12779 FGREP \
12780 LD \
12781 NM \
12782 LN_S \
12783 lt_SP2NL \
12784 lt_NL2SP \
12785 reload_flag \
12786 OBJDUMP \
12787 deplibs_check_method \
12788 file_magic_cmd \
12789 AR \
12790 AR_FLAGS \
12791 STRIP \
12792 RANLIB \
12793 CC \
12794 CFLAGS \
12795 compiler \
12796 lt_cv_sys_global_symbol_pipe \
12797 lt_cv_sys_global_symbol_to_cdecl \
12798 lt_cv_sys_global_symbol_to_c_name_address \
12799 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12800 SHELL \
12801 ECHO \
12802 lt_prog_compiler_no_builtin_flag \
12803 lt_prog_compiler_wl \
12804 lt_prog_compiler_pic \
12805 lt_prog_compiler_static \
12806 lt_cv_prog_compiler_c_o \
12807 need_locks \
12808 DSYMUTIL \
12809 NMEDIT \
12810 LIPO \
12811 OTOOL \
12812 OTOOL64 \
12813 shrext_cmds \
12814 export_dynamic_flag_spec \
12815 whole_archive_flag_spec \
12816 compiler_needs_object \
12817 with_gnu_ld \
12818 allow_undefined_flag \
12819 no_undefined_flag \
12820 hardcode_libdir_flag_spec \
12821 hardcode_libdir_flag_spec_ld \
12822 hardcode_libdir_separator \
12823 fix_srcfile_path \
12824 exclude_expsyms \
12825 include_expsyms \
12826 file_list_spec \
12827 variables_saved_for_relink \
12828 libname_spec \
12829 library_names_spec \
12830 soname_spec \
12831 finish_eval \
12832 old_striplib \
12833 striplib; do
12834 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12835 *[\\\\\\\`\\"\\\$]*)
12836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12841 esac
12842 done
12844 # Double-quote double-evaled strings.
12845 for var in reload_cmds \
12846 old_postinstall_cmds \
12847 old_postuninstall_cmds \
12848 old_archive_cmds \
12849 extract_expsyms_cmds \
12850 old_archive_from_new_cmds \
12851 old_archive_from_expsyms_cmds \
12852 archive_cmds \
12853 archive_expsym_cmds \
12854 module_cmds \
12855 module_expsym_cmds \
12856 export_symbols_cmds \
12857 prelink_cmds \
12858 postinstall_cmds \
12859 postuninstall_cmds \
12860 finish_cmds \
12861 sys_lib_search_path_spec \
12862 sys_lib_dlsearch_path_spec; do
12863 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12864 *[\\\\\\\`\\"\\\$]*)
12865 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12868 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12870 esac
12871 done
12873 # Fix-up fallback echo if it was mangled by the above quoting rules.
12874 case \$lt_ECHO in
12875 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12877 esac
12879 ac_aux_dir='$ac_aux_dir'
12880 xsi_shell='$xsi_shell'
12881 lt_shell_append='$lt_shell_append'
12883 # See if we are running on zsh, and set the options which allow our
12884 # commands through without removal of \ escapes INIT.
12885 if test -n "\${ZSH_VERSION+set}" ; then
12886 setopt NO_GLOB_SUBST
12890 PACKAGE='$PACKAGE'
12891 VERSION='$VERSION'
12892 TIMESTAMP='$TIMESTAMP'
12893 RM='$RM'
12894 ofile='$ofile'
12899 _ACEOF
12901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12903 # Handling of arguments.
12904 for ac_config_target in $ac_config_targets
12906 case $ac_config_target in
12907 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12908 "sqlite_cfg.h") CONFIG_HEADERS="$CONFIG_HEADERS sqlite_cfg.h" ;;
12909 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12910 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12912 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12913 esac
12914 done
12917 # If the user did not use the arguments to specify the items to instantiate,
12918 # then the envvar interface is used. Set only those that are not.
12919 # We use the long form for the default assignment because of an extremely
12920 # bizarre bug on SunOS 4.1.3.
12921 if $ac_need_defaults; then
12922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12927 # Have a temporary directory for convenience. Make it in the build tree
12928 # simply because there is no reason against having it here, and in addition,
12929 # creating and moving files from /tmp can sometimes cause problems.
12930 # Hook for its removal unless debugging.
12931 # Note that there is a small window in which the directory will not be cleaned:
12932 # after its creation but before its name has been assigned to `$tmp'.
12933 $debug ||
12935 tmp= ac_tmp=
12936 trap 'exit_status=$?
12937 : "${ac_tmp:=$tmp}"
12938 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12940 trap 'as_fn_exit 1' 1 2 13 15
12942 # Create a (secure) tmp directory for tmp files.
12945 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12946 test -d "$tmp"
12947 } ||
12949 tmp=./conf$$-$RANDOM
12950 (umask 077 && mkdir "$tmp")
12951 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12952 ac_tmp=$tmp
12954 # Set up the scripts for CONFIG_FILES section.
12955 # No need to generate them if there are no CONFIG_FILES.
12956 # This happens for instance with `./config.status config.h'.
12957 if test -n "$CONFIG_FILES"; then
12960 ac_cr=`echo X | tr X '\015'`
12961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12962 # But we know of no other shell where ac_cr would be empty at this
12963 # point, so we can use a bashism as a fallback.
12964 if test "x$ac_cr" = x; then
12965 eval ac_cr=\$\'\\r\'
12967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12969 ac_cs_awk_cr='\\r'
12970 else
12971 ac_cs_awk_cr=$ac_cr
12974 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12975 _ACEOF
12979 echo "cat >conf$$subs.awk <<_ACEOF" &&
12980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12981 echo "_ACEOF"
12982 } >conf$$subs.sh ||
12983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12985 ac_delim='%!_!# '
12986 for ac_last_try in false false false false false :; do
12987 . ./conf$$subs.sh ||
12988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12991 if test $ac_delim_n = $ac_delim_num; then
12992 break
12993 elif $ac_last_try; then
12994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12995 else
12996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12998 done
12999 rm -f conf$$subs.sh
13001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13002 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13003 _ACEOF
13004 sed -n '
13006 s/^/S["/; s/!.*/"]=/
13009 s/^[^!]*!//
13010 :repl
13011 t repl
13012 s/'"$ac_delim"'$//
13013 t delim
13016 s/\(.\{148\}\)..*/\1/
13017 t more1
13018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13021 b repl
13022 :more1
13023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13026 s/.\{148\}//
13027 t nl
13028 :delim
13030 s/\(.\{148\}\)..*/\1/
13031 t more2
13032 s/["\\]/\\&/g; s/^/"/; s/$/"/
13035 :more2
13036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13039 s/.\{148\}//
13040 t delim
13041 ' <conf$$subs.awk | sed '
13042 /^[^""]/{
13044 s/\n//
13046 ' >>$CONFIG_STATUS || ac_write_fail=1
13047 rm -f conf$$subs.awk
13048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13049 _ACAWK
13050 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13051 for (key in S) S_is_set[key] = 1
13052 FS = "\a"
13056 line = $ 0
13057 nfields = split(line, field, "@")
13058 substed = 0
13059 len = length(field[1])
13060 for (i = 2; i < nfields; i++) {
13061 key = field[i]
13062 keylen = length(key)
13063 if (S_is_set[key]) {
13064 value = S[key]
13065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13066 len += length(value) + length(field[++i])
13067 substed = 1
13068 } else
13069 len += 1 + keylen
13072 print line
13075 _ACAWK
13076 _ACEOF
13077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13080 else
13082 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13084 _ACEOF
13086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13088 # trailing colons and then remove the whole line if VPATH becomes empty
13089 # (actually we leave an empty line to preserve line numbers).
13090 if test "x$srcdir" = x.; then
13091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13093 s///
13094 s/^/:/
13095 s/[ ]*$/:/
13096 s/:\$(srcdir):/:/g
13097 s/:\${srcdir}:/:/g
13098 s/:@srcdir@:/:/g
13099 s/^:*//
13100 s/:*$//
13102 s/\(=[ ]*\).*/\1/
13104 s/\n//
13105 s/^[^=]*=[ ]*$//
13109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13110 fi # test -n "$CONFIG_FILES"
13112 # Set up the scripts for CONFIG_HEADERS section.
13113 # No need to generate them if there are no CONFIG_HEADERS.
13114 # This happens for instance with `./config.status Makefile'.
13115 if test -n "$CONFIG_HEADERS"; then
13116 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13117 BEGIN {
13118 _ACEOF
13120 # Transform confdefs.h into an awk script `defines.awk', embedded as
13121 # here-document in config.status, that substitutes the proper values into
13122 # config.h.in to produce config.h.
13124 # Create a delimiter string that does not exist in confdefs.h, to ease
13125 # handling of long lines.
13126 ac_delim='%!_!# '
13127 for ac_last_try in false false :; do
13128 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13129 if test -z "$ac_tt"; then
13130 break
13131 elif $ac_last_try; then
13132 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13133 else
13134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13136 done
13138 # For the awk script, D is an array of macro values keyed by name,
13139 # likewise P contains macro parameters if any. Preserve backslash
13140 # newline sequences.
13142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13143 sed -n '
13144 s/.\{148\}/&'"$ac_delim"'/g
13145 t rset
13146 :rset
13147 s/^[ ]*#[ ]*define[ ][ ]*/ /
13148 t def
13150 :def
13151 s/\\$//
13152 t bsnl
13153 s/["\\]/\\&/g
13154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13155 D["\1"]=" \3"/p
13156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13158 :bsnl
13159 s/["\\]/\\&/g
13160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13161 D["\1"]=" \3\\\\\\n"\\/p
13162 t cont
13163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13164 t cont
13166 :cont
13168 s/.\{148\}/&'"$ac_delim"'/g
13169 t clear
13170 :clear
13171 s/\\$//
13172 t bsnlc
13173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13175 :bsnlc
13176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13177 b cont
13178 ' <confdefs.h | sed '
13179 s/'"$ac_delim"'/"\\\
13180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183 for (key in D) D_is_set[key] = 1
13184 FS = "\a"
13186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13187 line = \$ 0
13188 split(line, arg, " ")
13189 if (arg[1] == "#") {
13190 defundef = arg[2]
13191 mac1 = arg[3]
13192 } else {
13193 defundef = substr(arg[1], 2)
13194 mac1 = arg[2]
13196 split(mac1, mac2, "(") #)
13197 macro = mac2[1]
13198 prefix = substr(line, 1, index(line, defundef) - 1)
13199 if (D_is_set[macro]) {
13200 # Preserve the white space surrounding the "#".
13201 print prefix "define", macro P[macro] D[macro]
13202 next
13203 } else {
13204 # Replace #undef with comments. This is necessary, for example,
13205 # in the case of _POSIX_SOURCE, which is predefined and required
13206 # on some systems where configure will not decide to define it.
13207 if (defundef == "undef") {
13208 print "/*", prefix defundef, macro, "*/"
13209 next
13213 { print }
13214 _ACAWK
13215 _ACEOF
13216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13217 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13218 fi # test -n "$CONFIG_HEADERS"
13221 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13222 shift
13223 for ac_tag
13225 case $ac_tag in
13226 :[FHLC]) ac_mode=$ac_tag; continue;;
13227 esac
13228 case $ac_mode$ac_tag in
13229 :[FHL]*:*);;
13230 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13231 :[FH]-) ac_tag=-:-;;
13232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13233 esac
13234 ac_save_IFS=$IFS
13235 IFS=:
13236 set x $ac_tag
13237 IFS=$ac_save_IFS
13238 shift
13239 ac_file=$1
13240 shift
13242 case $ac_mode in
13243 :L) ac_source=$1;;
13244 :[FH])
13245 ac_file_inputs=
13246 for ac_f
13248 case $ac_f in
13249 -) ac_f="$ac_tmp/stdin";;
13250 *) # Look for the file first in the build tree, then in the source tree
13251 # (if the path is not absolute). The absolute path cannot be DOS-style,
13252 # because $ac_f cannot contain `:'.
13253 test -f "$ac_f" ||
13254 case $ac_f in
13255 [\\/$]*) false;;
13256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13257 esac ||
13258 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13259 esac
13260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13261 as_fn_append ac_file_inputs " '$ac_f'"
13262 done
13264 # Let's still pretend it is `configure' which instantiates (i.e., don't
13265 # use $as_me), people would be surprised to read:
13266 # /* config.h. Generated by config.status. */
13267 configure_input='Generated from '`
13268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13269 `' by configure.'
13270 if test x"$ac_file" != x-; then
13271 configure_input="$ac_file. $configure_input"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13273 $as_echo "$as_me: creating $ac_file" >&6;}
13275 # Neutralize special characters interpreted by sed in replacement strings.
13276 case $configure_input in #(
13277 *\&* | *\|* | *\\* )
13278 ac_sed_conf_input=`$as_echo "$configure_input" |
13279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13280 *) ac_sed_conf_input=$configure_input;;
13281 esac
13283 case $ac_tag in
13284 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13286 esac
13288 esac
13290 ac_dir=`$as_dirname -- "$ac_file" ||
13291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13292 X"$ac_file" : 'X\(//\)[^/]' \| \
13293 X"$ac_file" : 'X\(//\)$' \| \
13294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13295 $as_echo X"$ac_file" |
13296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13297 s//\1/
13300 /^X\(\/\/\)[^/].*/{
13301 s//\1/
13304 /^X\(\/\/\)$/{
13305 s//\1/
13308 /^X\(\/\).*/{
13309 s//\1/
13312 s/.*/./; q'`
13313 as_dir="$ac_dir"; as_fn_mkdir_p
13314 ac_builddir=.
13316 case "$ac_dir" in
13317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13320 # A ".." for each directory in $ac_dir_suffix.
13321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13322 case $ac_top_builddir_sub in
13323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13325 esac ;;
13326 esac
13327 ac_abs_top_builddir=$ac_pwd
13328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13329 # for backward compatibility:
13330 ac_top_builddir=$ac_top_build_prefix
13332 case $srcdir in
13333 .) # We are building in place.
13334 ac_srcdir=.
13335 ac_top_srcdir=$ac_top_builddir_sub
13336 ac_abs_top_srcdir=$ac_pwd ;;
13337 [\\/]* | ?:[\\/]* ) # Absolute name.
13338 ac_srcdir=$srcdir$ac_dir_suffix;
13339 ac_top_srcdir=$srcdir
13340 ac_abs_top_srcdir=$srcdir ;;
13341 *) # Relative name.
13342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13343 ac_top_srcdir=$ac_top_build_prefix$srcdir
13344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13345 esac
13346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13349 case $ac_mode in
13352 # CONFIG_FILE
13355 case $INSTALL in
13356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13358 esac
13359 _ACEOF
13361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13362 # If the template does not know about datarootdir, expand it.
13363 # FIXME: This hack should be removed a few years after 2.60.
13364 ac_datarootdir_hack=; ac_datarootdir_seen=
13365 ac_sed_dataroot='
13366 /datarootdir/ {
13370 /@datadir@/p
13371 /@docdir@/p
13372 /@infodir@/p
13373 /@localedir@/p
13374 /@mandir@/p'
13375 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13376 *datarootdir*) ac_datarootdir_seen=yes;;
13377 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13379 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13380 _ACEOF
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 ac_datarootdir_hack='
13383 s&@datadir@&$datadir&g
13384 s&@docdir@&$docdir&g
13385 s&@infodir@&$infodir&g
13386 s&@localedir@&$localedir&g
13387 s&@mandir@&$mandir&g
13388 s&\\\${datarootdir}&$datarootdir&g' ;;
13389 esac
13390 _ACEOF
13392 # Neutralize VPATH when `$srcdir' = `.'.
13393 # Shell code in configure.ac might set extrasub.
13394 # FIXME: do we really want to maintain this feature?
13395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13396 ac_sed_extra="$ac_vpsub
13397 $extrasub
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13402 s|@configure_input@|$ac_sed_conf_input|;t t
13403 s&@top_builddir@&$ac_top_builddir_sub&;t t
13404 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13405 s&@srcdir@&$ac_srcdir&;t t
13406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13407 s&@top_srcdir@&$ac_top_srcdir&;t t
13408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13409 s&@builddir@&$ac_builddir&;t t
13410 s&@abs_builddir@&$ac_abs_builddir&;t t
13411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13412 s&@INSTALL@&$ac_INSTALL&;t t
13413 $ac_datarootdir_hack
13415 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13416 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13419 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13421 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13423 which seems to be undefined. Please make sure it is defined" >&5
13424 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13425 which seems to be undefined. Please make sure it is defined" >&2;}
13427 rm -f "$ac_tmp/stdin"
13428 case $ac_file in
13429 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13430 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13431 esac \
13432 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13436 # CONFIG_HEADER
13438 if test x"$ac_file" != x-; then
13440 $as_echo "/* $configure_input */" \
13441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13442 } >"$ac_tmp/config.h" \
13443 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13444 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13446 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13447 else
13448 rm -f "$ac_file"
13449 mv "$ac_tmp/config.h" "$ac_file" \
13450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13452 else
13453 $as_echo "/* $configure_input */" \
13454 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13455 || as_fn_error $? "could not create -" "$LINENO" 5
13459 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13460 $as_echo "$as_me: executing $ac_file commands" >&6;}
13462 esac
13465 case $ac_file$ac_mode in
13466 "libtool":C)
13468 # See if we are running on zsh, and set the options which allow our
13469 # commands through without removal of \ escapes.
13470 if test -n "${ZSH_VERSION+set}" ; then
13471 setopt NO_GLOB_SUBST
13474 cfgfile="${ofile}T"
13475 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13476 $RM "$cfgfile"
13478 cat <<_LT_EOF >> "$cfgfile"
13479 #! $SHELL
13481 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13482 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13483 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13484 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13486 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13487 # 2006, 2007, 2008 Free Software Foundation, Inc.
13488 # Written by Gordon Matzigkeit, 1996
13490 # This file is part of GNU Libtool.
13492 # GNU Libtool is free software; you can redistribute it and/or
13493 # modify it under the terms of the GNU General Public License as
13494 # published by the Free Software Foundation; either version 2 of
13495 # the License, or (at your option) any later version.
13497 # As a special exception to the GNU General Public License,
13498 # if you distribute this file as part of a program or library that
13499 # is built using GNU Libtool, you may include this file under the
13500 # same distribution terms that you use for the rest of that program.
13502 # GNU Libtool is distributed in the hope that it will be useful,
13503 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13504 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13505 # GNU General Public License for more details.
13507 # You should have received a copy of the GNU General Public License
13508 # along with GNU Libtool; see the file COPYING. If not, a copy
13509 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13510 # obtained by writing to the Free Software Foundation, Inc.,
13511 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13514 # The names of the tagged configurations supported by this script.
13515 available_tags=""
13517 # ### BEGIN LIBTOOL CONFIG
13519 # Which release of libtool.m4 was used?
13520 macro_version=$macro_version
13521 macro_revision=$macro_revision
13523 # Whether or not to build shared libraries.
13524 build_libtool_libs=$enable_shared
13526 # Whether or not to build static libraries.
13527 build_old_libs=$enable_static
13529 # What type of objects to build.
13530 pic_mode=$pic_mode
13532 # Whether or not to optimize for fast installation.
13533 fast_install=$enable_fast_install
13535 # The host system.
13536 host_alias=$host_alias
13537 host=$host
13538 host_os=$host_os
13540 # The build system.
13541 build_alias=$build_alias
13542 build=$build
13543 build_os=$build_os
13545 # A sed program that does not truncate output.
13546 SED=$lt_SED
13548 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13549 Xsed="\$SED -e 1s/^X//"
13551 # A grep program that handles long lines.
13552 GREP=$lt_GREP
13554 # An ERE matcher.
13555 EGREP=$lt_EGREP
13557 # A literal string matcher.
13558 FGREP=$lt_FGREP
13560 # A BSD- or MS-compatible name lister.
13561 NM=$lt_NM
13563 # Whether we need soft or hard links.
13564 LN_S=$lt_LN_S
13566 # What is the maximum length of a command?
13567 max_cmd_len=$max_cmd_len
13569 # Object file suffix (normally "o").
13570 objext=$ac_objext
13572 # Executable file suffix (normally "").
13573 exeext=$exeext
13575 # whether the shell understands "unset".
13576 lt_unset=$lt_unset
13578 # turn spaces into newlines.
13579 SP2NL=$lt_lt_SP2NL
13581 # turn newlines into spaces.
13582 NL2SP=$lt_lt_NL2SP
13584 # How to create reloadable object files.
13585 reload_flag=$lt_reload_flag
13586 reload_cmds=$lt_reload_cmds
13588 # An object symbol dumper.
13589 OBJDUMP=$lt_OBJDUMP
13591 # Method to check whether dependent libraries are shared objects.
13592 deplibs_check_method=$lt_deplibs_check_method
13594 # Command to use when deplibs_check_method == "file_magic".
13595 file_magic_cmd=$lt_file_magic_cmd
13597 # The archiver.
13598 AR=$lt_AR
13599 AR_FLAGS=$lt_AR_FLAGS
13601 # A symbol stripping program.
13602 STRIP=$lt_STRIP
13604 # Commands used to install an old-style archive.
13605 RANLIB=$lt_RANLIB
13606 old_postinstall_cmds=$lt_old_postinstall_cmds
13607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13609 # A C compiler.
13610 LTCC=$lt_CC
13612 # LTCC compiler flags.
13613 LTCFLAGS=$lt_CFLAGS
13615 # Take the output of nm and produce a listing of raw symbols and C names.
13616 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13618 # Transform the output of nm in a proper C declaration.
13619 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13621 # Transform the output of nm in a C name address pair.
13622 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13624 # Transform the output of nm in a C name address pair when lib prefix is needed.
13625 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13627 # The name of the directory that contains temporary libtool files.
13628 objdir=$objdir
13630 # Shell to use when invoking shell scripts.
13631 SHELL=$lt_SHELL
13633 # An echo program that does not interpret backslashes.
13634 ECHO=$lt_ECHO
13636 # Used to examine libraries when file_magic_cmd begins with "file".
13637 MAGIC_CMD=$MAGIC_CMD
13639 # Must we lock files when doing compilation?
13640 need_locks=$lt_need_locks
13642 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13643 DSYMUTIL=$lt_DSYMUTIL
13645 # Tool to change global to local symbols on Mac OS X.
13646 NMEDIT=$lt_NMEDIT
13648 # Tool to manipulate fat objects and archives on Mac OS X.
13649 LIPO=$lt_LIPO
13651 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13652 OTOOL=$lt_OTOOL
13654 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13655 OTOOL64=$lt_OTOOL64
13657 # Old archive suffix (normally "a").
13658 libext=$libext
13660 # Shared library suffix (normally ".so").
13661 shrext_cmds=$lt_shrext_cmds
13663 # The commands to extract the exported symbol list from a shared archive.
13664 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13666 # Variables whose values should be saved in libtool wrapper scripts and
13667 # restored at link time.
13668 variables_saved_for_relink=$lt_variables_saved_for_relink
13670 # Do we need the "lib" prefix for modules?
13671 need_lib_prefix=$need_lib_prefix
13673 # Do we need a version for libraries?
13674 need_version=$need_version
13676 # Library versioning type.
13677 version_type=$version_type
13679 # Shared library runtime path variable.
13680 runpath_var=$runpath_var
13682 # Shared library path variable.
13683 shlibpath_var=$shlibpath_var
13685 # Is shlibpath searched before the hard-coded library search path?
13686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13688 # Format of library name prefix.
13689 libname_spec=$lt_libname_spec
13691 # List of archive names. First name is the real one, the rest are links.
13692 # The last name is the one that the linker finds with -lNAME
13693 library_names_spec=$lt_library_names_spec
13695 # The coded name of the library, if different from the real name.
13696 soname_spec=$lt_soname_spec
13698 # Command to use after installation of a shared archive.
13699 postinstall_cmds=$lt_postinstall_cmds
13701 # Command to use after uninstallation of a shared archive.
13702 postuninstall_cmds=$lt_postuninstall_cmds
13704 # Commands used to finish a libtool library installation in a directory.
13705 finish_cmds=$lt_finish_cmds
13707 # As "finish_cmds", except a single script fragment to be evaled but
13708 # not shown.
13709 finish_eval=$lt_finish_eval
13711 # Whether we should hardcode library paths into libraries.
13712 hardcode_into_libs=$hardcode_into_libs
13714 # Compile-time system search path for libraries.
13715 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13717 # Run-time system search path for libraries.
13718 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13720 # Whether dlopen is supported.
13721 dlopen_support=$enable_dlopen
13723 # Whether dlopen of programs is supported.
13724 dlopen_self=$enable_dlopen_self
13726 # Whether dlopen of statically linked programs is supported.
13727 dlopen_self_static=$enable_dlopen_self_static
13729 # Commands to strip libraries.
13730 old_striplib=$lt_old_striplib
13731 striplib=$lt_striplib
13734 # The linker used to build libraries.
13735 LD=$lt_LD
13737 # Commands used to build an old-style archive.
13738 old_archive_cmds=$lt_old_archive_cmds
13740 # A language specific compiler.
13741 CC=$lt_compiler
13743 # Is the compiler the GNU compiler?
13744 with_gcc=$GCC
13746 # Compiler flag to turn off builtin functions.
13747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13749 # How to pass a linker flag through the compiler.
13750 wl=$lt_lt_prog_compiler_wl
13752 # Additional compiler flags for building library objects.
13753 pic_flag=$lt_lt_prog_compiler_pic
13755 # Compiler flag to prevent dynamic linking.
13756 link_static_flag=$lt_lt_prog_compiler_static
13758 # Does compiler simultaneously support -c and -o options?
13759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13761 # Whether or not to add -lc for building shared libraries.
13762 build_libtool_need_lc=$archive_cmds_need_lc
13764 # Whether or not to disallow shared libs when runtime libs are static.
13765 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13767 # Compiler flag to allow reflexive dlopens.
13768 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13770 # Compiler flag to generate shared objects directly from archives.
13771 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13773 # Whether the compiler copes with passing no objects directly.
13774 compiler_needs_object=$lt_compiler_needs_object
13776 # Create an old-style archive from a shared archive.
13777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13779 # Create a temporary old-style archive to link instead of a shared archive.
13780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13782 # Commands used to build a shared archive.
13783 archive_cmds=$lt_archive_cmds
13784 archive_expsym_cmds=$lt_archive_expsym_cmds
13786 # Commands used to build a loadable module if different from building
13787 # a shared archive.
13788 module_cmds=$lt_module_cmds
13789 module_expsym_cmds=$lt_module_expsym_cmds
13791 # Whether we are building with GNU ld or not.
13792 with_gnu_ld=$lt_with_gnu_ld
13794 # Flag that allows shared libraries with undefined symbols to be built.
13795 allow_undefined_flag=$lt_allow_undefined_flag
13797 # Flag that enforces no undefined symbols.
13798 no_undefined_flag=$lt_no_undefined_flag
13800 # Flag to hardcode \$libdir into a binary during linking.
13801 # This must work even if \$libdir does not exist
13802 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13804 # If ld is used when linking, flag to hardcode \$libdir into a binary
13805 # during linking. This must work even if \$libdir does not exist.
13806 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13808 # Whether we need a single "-rpath" flag with a separated argument.
13809 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13811 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13812 # DIR into the resulting binary.
13813 hardcode_direct=$hardcode_direct
13815 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13816 # DIR into the resulting binary and the resulting library dependency is
13817 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13818 # library is relocated.
13819 hardcode_direct_absolute=$hardcode_direct_absolute
13821 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13822 # into the resulting binary.
13823 hardcode_minus_L=$hardcode_minus_L
13825 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13826 # into the resulting binary.
13827 hardcode_shlibpath_var=$hardcode_shlibpath_var
13829 # Set to "yes" if building a shared library automatically hardcodes DIR
13830 # into the library and all subsequent libraries and executables linked
13831 # against it.
13832 hardcode_automatic=$hardcode_automatic
13834 # Set to yes if linker adds runtime paths of dependent libraries
13835 # to runtime path list.
13836 inherit_rpath=$inherit_rpath
13838 # Whether libtool must link a program against all its dependency libraries.
13839 link_all_deplibs=$link_all_deplibs
13841 # Fix the shell variable \$srcfile for the compiler.
13842 fix_srcfile_path=$lt_fix_srcfile_path
13844 # Set to "yes" if exported symbols are required.
13845 always_export_symbols=$always_export_symbols
13847 # The commands to list exported symbols.
13848 export_symbols_cmds=$lt_export_symbols_cmds
13850 # Symbols that should not be listed in the preloaded symbols.
13851 exclude_expsyms=$lt_exclude_expsyms
13853 # Symbols that must always be exported.
13854 include_expsyms=$lt_include_expsyms
13856 # Commands necessary for linking programs (against libraries) with templates.
13857 prelink_cmds=$lt_prelink_cmds
13859 # Specify filename containing input files.
13860 file_list_spec=$lt_file_list_spec
13862 # How to hardcode a shared library path into an executable.
13863 hardcode_action=$hardcode_action
13865 # ### END LIBTOOL CONFIG
13867 _LT_EOF
13869 case $host_os in
13870 aix3*)
13871 cat <<\_LT_EOF >> "$cfgfile"
13872 # AIX sometimes has problems with the GCC collect2 program. For some
13873 # reason, if we set the COLLECT_NAMES environment variable, the problems
13874 # vanish in a puff of smoke.
13875 if test "X${COLLECT_NAMES+set}" != Xset; then
13876 COLLECT_NAMES=
13877 export COLLECT_NAMES
13879 _LT_EOF
13881 esac
13884 ltmain="$ac_aux_dir/ltmain.sh"
13887 # We use sed instead of cat because bash on DJGPP gets confused if
13888 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13889 # text mode, it properly converts lines to CR/LF. This bash problem
13890 # is reportedly fixed, but why not run on old versions too?
13891 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13892 || (rm -f "$cfgfile"; exit 1)
13894 case $xsi_shell in
13895 yes)
13896 cat << \_LT_EOF >> "$cfgfile"
13898 # func_dirname file append nondir_replacement
13899 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13900 # otherwise set result to NONDIR_REPLACEMENT.
13901 func_dirname ()
13903 case ${1} in
13904 */*) func_dirname_result="${1%/*}${2}" ;;
13905 * ) func_dirname_result="${3}" ;;
13906 esac
13909 # func_basename file
13910 func_basename ()
13912 func_basename_result="${1##*/}"
13915 # func_dirname_and_basename file append nondir_replacement
13916 # perform func_basename and func_dirname in a single function
13917 # call:
13918 # dirname: Compute the dirname of FILE. If nonempty,
13919 # add APPEND to the result, otherwise set result
13920 # to NONDIR_REPLACEMENT.
13921 # value returned in "$func_dirname_result"
13922 # basename: Compute filename of FILE.
13923 # value retuned in "$func_basename_result"
13924 # Implementation must be kept synchronized with func_dirname
13925 # and func_basename. For efficiency, we do not delegate to
13926 # those functions but instead duplicate the functionality here.
13927 func_dirname_and_basename ()
13929 case ${1} in
13930 */*) func_dirname_result="${1%/*}${2}" ;;
13931 * ) func_dirname_result="${3}" ;;
13932 esac
13933 func_basename_result="${1##*/}"
13936 # func_stripname prefix suffix name
13937 # strip PREFIX and SUFFIX off of NAME.
13938 # PREFIX and SUFFIX must not contain globbing or regex special
13939 # characters, hashes, percent signs, but SUFFIX may contain a leading
13940 # dot (in which case that matches only a dot).
13941 func_stripname ()
13943 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13944 # positional parameters, so assign one to ordinary parameter first.
13945 func_stripname_result=${3}
13946 func_stripname_result=${func_stripname_result#"${1}"}
13947 func_stripname_result=${func_stripname_result%"${2}"}
13950 # func_opt_split
13951 func_opt_split ()
13953 func_opt_split_opt=${1%%=*}
13954 func_opt_split_arg=${1#*=}
13957 # func_lo2o object
13958 func_lo2o ()
13960 case ${1} in
13961 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13962 *) func_lo2o_result=${1} ;;
13963 esac
13966 # func_xform libobj-or-source
13967 func_xform ()
13969 func_xform_result=${1%.*}.lo
13972 # func_arith arithmetic-term...
13973 func_arith ()
13975 func_arith_result=$(( $* ))
13978 # func_len string
13979 # STRING may not start with a hyphen.
13980 func_len ()
13982 func_len_result=${#1}
13985 _LT_EOF
13987 *) # Bourne compatible functions.
13988 cat << \_LT_EOF >> "$cfgfile"
13990 # func_dirname file append nondir_replacement
13991 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13992 # otherwise set result to NONDIR_REPLACEMENT.
13993 func_dirname ()
13995 # Extract subdirectory from the argument.
13996 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13997 if test "X$func_dirname_result" = "X${1}"; then
13998 func_dirname_result="${3}"
13999 else
14000 func_dirname_result="$func_dirname_result${2}"
14004 # func_basename file
14005 func_basename ()
14007 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14011 # func_stripname prefix suffix name
14012 # strip PREFIX and SUFFIX off of NAME.
14013 # PREFIX and SUFFIX must not contain globbing or regex special
14014 # characters, hashes, percent signs, but SUFFIX may contain a leading
14015 # dot (in which case that matches only a dot).
14016 # func_strip_suffix prefix name
14017 func_stripname ()
14019 case ${2} in
14020 .*) func_stripname_result=`$ECHO "X${3}" \
14021 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14022 *) func_stripname_result=`$ECHO "X${3}" \
14023 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14024 esac
14027 # sed scripts:
14028 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14029 my_sed_long_arg='1s/^-[^=]*=//'
14031 # func_opt_split
14032 func_opt_split ()
14034 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14035 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14038 # func_lo2o object
14039 func_lo2o ()
14041 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14044 # func_xform libobj-or-source
14045 func_xform ()
14047 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14050 # func_arith arithmetic-term...
14051 func_arith ()
14053 func_arith_result=`expr "$@"`
14056 # func_len string
14057 # STRING may not start with a hyphen.
14058 func_len ()
14060 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14063 _LT_EOF
14064 esac
14066 case $lt_shell_append in
14067 yes)
14068 cat << \_LT_EOF >> "$cfgfile"
14070 # func_append var value
14071 # Append VALUE to the end of shell variable VAR.
14072 func_append ()
14074 eval "$1+=\$2"
14076 _LT_EOF
14079 cat << \_LT_EOF >> "$cfgfile"
14081 # func_append var value
14082 # Append VALUE to the end of shell variable VAR.
14083 func_append ()
14085 eval "$1=\$$1\$2"
14088 _LT_EOF
14090 esac
14093 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14094 || (rm -f "$cfgfile"; exit 1)
14096 mv -f "$cfgfile" "$ofile" ||
14097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14098 chmod +x "$ofile"
14102 esac
14103 done # for ac_tag
14106 as_fn_exit 0
14107 _ACEOF
14108 ac_clean_files=$ac_clean_files_save
14110 test $ac_write_fail = 0 ||
14111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14114 # configure is writing to config.log, and then calls config.status.
14115 # config.status does its own redirection, appending to config.log.
14116 # Unfortunately, on DOS this fails, as config.log is still kept open
14117 # by configure, so config.status won't be able to write to it; its
14118 # output is simply discarded. So we exec the FD to /dev/null,
14119 # effectively closing config.log, so it can be properly (re)opened and
14120 # appended to by config.status. When coming back to configure, we
14121 # need to make the FD available again.
14122 if test "$no_create" != yes; then
14123 ac_cs_success=:
14124 ac_config_status_args=
14125 test "$silent" = yes &&
14126 ac_config_status_args="$ac_config_status_args --quiet"
14127 exec 5>/dev/null
14128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14129 exec 5>>config.log
14130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14131 # would make configure fail if this is the last instruction.
14132 $ac_cs_success || as_fn_exit 1
14134 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14136 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}