Enhance the command-line completion extension to return the names of
[sqlite.git] / configure
blob3df19e8ec56c2e60caf075dbe919e0fb10ddd345
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.23.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.23.0'
730 PACKAGE_STRING='sqlite 3.23.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 USE_GCOV
774 OPT_FEATURE_FLAGS
775 HAVE_ZLIB
776 USE_AMALGAMATION
777 TARGET_DEBUG
778 TARGET_HAVE_EDITLINE
779 TARGET_HAVE_READLINE
780 TARGET_READLINE_INC
781 TARGET_READLINE_LIBS
782 HAVE_TCL
783 TCL_SHLIB_SUFFIX
784 TCL_STUB_LIB_SPEC
785 TCL_STUB_LIB_FLAG
786 TCL_STUB_LIB_FILE
787 TCL_LIB_SPEC
788 TCL_LIB_FLAG
789 TCL_LIB_FILE
790 TCL_INCLUDE_SPEC
791 TCL_SRC_DIR
792 TCL_BIN_DIR
793 TCL_VERSION
794 TARGET_EXEEXT
795 SQLITE_OS_WIN
796 SQLITE_OS_UNIX
797 BUILD_EXEEXT
798 TEMP_STORE
799 ALLOWRELEASE
800 SQLITE_THREADSAFE
801 BUILD_CC
802 VERSION_NUMBER
803 RELEASE
804 VERSION
805 program_prefix
806 TCLLIBDIR
807 TCLSH_CMD
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
812 OTOOL64
813 OTOOL
814 LIPO
815 NMEDIT
816 DSYMUTIL
817 lt_ECHO
818 RANLIB
819 STRIP
821 OBJDUMP
822 LN_S
824 ac_ct_DUMPBIN
825 DUMPBIN
827 FGREP
828 EGREP
829 GREP
831 OBJEXT
832 EXEEXT
833 ac_ct_CC
834 CPPFLAGS
835 LDFLAGS
836 CFLAGS
838 host_os
839 host_vendor
840 host_cpu
841 host
842 build_os
843 build_vendor
844 build_cpu
845 build
846 LIBTOOL
847 target_alias
848 host_alias
849 build_alias
850 LIBS
851 ECHO_T
852 ECHO_N
853 ECHO_C
854 DEFS
855 mandir
856 localedir
857 libdir
858 psdir
859 pdfdir
860 dvidir
861 htmldir
862 infodir
863 docdir
864 oldincludedir
865 includedir
866 localstatedir
867 sharedstatedir
868 sysconfdir
869 datadir
870 datarootdir
871 libexecdir
872 sbindir
873 bindir
874 program_transform_name
875 prefix
876 exec_prefix
877 PACKAGE_URL
878 PACKAGE_BUGREPORT
879 PACKAGE_STRING
880 PACKAGE_VERSION
881 PACKAGE_TARNAME
882 PACKAGE_NAME
883 PATH_SEPARATOR
884 SHELL'
885 ac_subst_files=''
886 ac_user_opts='
887 enable_option_checking
888 enable_shared
889 enable_static
890 with_pic
891 enable_fast_install
892 with_gnu_ld
893 enable_libtool_lock
894 enable_largefile
895 enable_threadsafe
896 enable_releasemode
897 enable_tempstore
898 enable_tcl
899 with_tcl
900 enable_editline
901 enable_readline
902 with_readline_lib
903 with_readline_inc
904 enable_debug
905 enable_amalgamation
906 enable_load_extension
907 enable_memsys5
908 enable_memsys3
909 enable_fts3
910 enable_fts4
911 enable_fts5
912 enable_json1
913 enable_update_limit
914 enable_rtree
915 enable_session
916 enable_gcov
918 ac_precious_vars='build_alias
919 host_alias
920 target_alias
922 CFLAGS
923 LDFLAGS
924 LIBS
925 CPPFLAGS
927 TCLLIBDIR'
930 # Initialize some variables set by options.
931 ac_init_help=
932 ac_init_version=false
933 ac_unrecognized_opts=
934 ac_unrecognized_sep=
935 # The variables have the same names as the options, with
936 # dashes changed to underlines.
937 cache_file=/dev/null
938 exec_prefix=NONE
939 no_create=
940 no_recursion=
941 prefix=NONE
942 program_prefix=NONE
943 program_suffix=NONE
944 program_transform_name=s,x,x,
945 silent=
946 site=
947 srcdir=
948 verbose=
949 x_includes=NONE
950 x_libraries=NONE
952 # Installation directory options.
953 # These are left unexpanded so users can "make install exec_prefix=/foo"
954 # and all the variables that are supposed to be based on exec_prefix
955 # by default will actually change.
956 # Use braces instead of parens because sh, perl, etc. also accept them.
957 # (The list follows the same order as the GNU Coding Standards.)
958 bindir='${exec_prefix}/bin'
959 sbindir='${exec_prefix}/sbin'
960 libexecdir='${exec_prefix}/libexec'
961 datarootdir='${prefix}/share'
962 datadir='${datarootdir}'
963 sysconfdir='${prefix}/etc'
964 sharedstatedir='${prefix}/com'
965 localstatedir='${prefix}/var'
966 includedir='${prefix}/include'
967 oldincludedir='/usr/include'
968 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969 infodir='${datarootdir}/info'
970 htmldir='${docdir}'
971 dvidir='${docdir}'
972 pdfdir='${docdir}'
973 psdir='${docdir}'
974 libdir='${exec_prefix}/lib'
975 localedir='${datarootdir}/locale'
976 mandir='${datarootdir}/man'
978 ac_prev=
979 ac_dashdash=
980 for ac_option
982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
984 eval $ac_prev=\$ac_option
985 ac_prev=
986 continue
989 case $ac_option in
990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 *=) ac_optarg= ;;
992 *) ac_optarg=yes ;;
993 esac
995 # Accept the important Cygnus configure options, so we can diagnose typos.
997 case $ac_dashdash$ac_option in
999 ac_dashdash=yes ;;
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1004 bindir=$ac_optarg ;;
1006 -build | --build | --buil | --bui | --bu)
1007 ac_prev=build_alias ;;
1008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1009 build_alias=$ac_optarg ;;
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1016 cache_file=$ac_optarg ;;
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
1021 -datadir | --datadir | --datadi | --datad)
1022 ac_prev=datadir ;;
1023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1024 datadir=$ac_optarg ;;
1026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1033 -disable-* | --disable-*)
1034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1037 as_fn_error $? "invalid feature name: $ac_useropt"
1038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_$ac_useropt"
1043 "*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=no ;;
1049 -docdir | --docdir | --docdi | --doc | --do)
1050 ac_prev=docdir ;;
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 ac_prev=dvidir ;;
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
1059 -enable-* | --enable-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid feature name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "enable_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval enable_$ac_useropt=\$ac_optarg ;;
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1135 -localstatedir | --localstatedir | --localstatedi | --localstated \
1136 | --localstate | --localstat | --localsta | --localst | --locals)
1137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1140 localstatedir=$ac_optarg ;;
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1153 no_create=yes ;;
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1263 -with-* | --with-*)
1264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267 as_fn_error $? "invalid package name: $ac_useropt"
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1272 "with_$ac_useropt"
1273 "*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=\$ac_optarg ;;
1279 -without-* | --without-*)
1280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1281 # Reject names that are not valid shell variable names.
1282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1283 as_fn_error $? "invalid package name: $ac_useropt"
1284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1288 "with_$ac_useropt"
1289 "*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314 Try \`$0 --help' for more information"
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 esac
1324 eval $ac_envvar=\$ac_optarg
1325 export $ac_envvar ;;
1328 # FIXME: should be removed in autoconf 3.0.
1329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1335 esac
1336 done
1338 if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 as_fn_error $? "missing argument to $ac_option"
1343 if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
1346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1348 esac
1351 # Check all directory arguments for consistency.
1352 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
1357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
1359 case $ac_val in
1360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
1363 esac
1364 # Be sure to have absolute directory names.
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
1369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1370 done
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 as_fn_error $? "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 as_fn_error $? "pwd does not report name of working directory"
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
1405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 s//\1/
1416 /^X\(\/\/\)[^/].*/{
1417 s//\1/
1420 /^X\(\/\/\)$/{
1421 s//\1/
1424 /^X\(\/\).*/{
1425 s//\1/
1428 s/.*/./; q'`
1429 srcdir=$ac_confdir
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 srcdir=..
1433 else
1434 ac_srcdir_defaulted=no
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 ac_abs_confdir=`(
1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 pwd)`
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1451 case $srcdir in
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 esac
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459 done
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
1468 \`configure' configures sqlite 3.23.0 to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1477 Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking ...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1492 [PREFIX]
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1521 _ACEOF
1523 cat <<\_ACEOF
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 _ACEOF
1531 if test -n "$ac_init_help"; then
1532 case $ac_init_help in
1533 short | recursive ) echo "Configuration of sqlite 3.23.0:";;
1534 esac
1535 cat <<\_ACEOF
1537 Optional Features:
1538 --disable-option-checking ignore unrecognized --enable/--with options
1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1541 --enable-shared[=PKGS] build shared libraries [default=yes]
1542 --enable-static[=PKGS] build static libraries [default=yes]
1543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
1545 --disable-libtool-lock avoid locking (might break parallel builds)
1546 --disable-largefile omit support for large files
1547 --disable-threadsafe Disable mutexing
1548 --enable-releasemode Support libtool link to release mode
1549 --enable-tempstore Use an in-ram database for temporary tables
1550 (never,no,yes,always)
1551 --disable-tcl do not build TCL extension
1552 --enable-editline enable BSD editline support
1553 --disable-readline disable readline support
1554 --enable-debug enable debugging & verbose explain
1555 --disable-amalgamation Disable the amalgamation and instead build all files
1556 separately
1557 --disable-load-extension
1558 Disable loading of external extensions
1559 --enable-memsys5 Enable MEMSYS5
1560 --enable-memsys3 Enable MEMSYS3
1561 --enable-fts3 Enable the FTS3 extension
1562 --enable-fts4 Enable the FTS4 extension
1563 --enable-fts5 Enable the FTS5 extension
1564 --enable-json1 Enable the JSON1 extension
1565 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
1566 --enable-rtree Enable the RTREE extension
1567 --enable-session Enable the SESSION extension
1568 --enable-gcov Enable coverage testing using gcov
1570 Optional Packages:
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1573 --with-pic try to use only PIC/non-PIC objects [default=use
1574 both]
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-tcl=DIR directory containing tcl configuration
1577 (tclConfig.sh)
1578 --with-readline-lib specify readline library
1579 --with-readline-inc specify readline include paths
1581 Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CPP C preprocessor
1590 TCLLIBDIR Where to install tcl plugin
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1595 Report bugs to the package provider.
1596 _ACEOF
1597 ac_status=$?
1600 if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
1602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
1606 ac_builddir=.
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1624 case $srcdir in
1625 .) # We are building in place.
1626 ac_srcdir=.
1627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
1630 ac_srcdir=$srcdir$ac_dir_suffix;
1631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
1648 else
1649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
1652 done
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657 cat <<\_ACEOF
1658 sqlite configure 3.23.0
1659 generated by GNU Autoconf 2.69
1661 Copyright (C) 2012 Free Software Foundation, Inc.
1662 This configure script is free software; the Free Software Foundation
1663 gives unlimited permission to copy, distribute and modify it.
1664 _ACEOF
1665 exit
1668 ## ------------------------ ##
1669 ## Autoconf initialization. ##
1670 ## ------------------------ ##
1672 # ac_fn_c_try_compile LINENO
1673 # --------------------------
1674 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_compile ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=1
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1708 } # ac_fn_c_try_compile
1710 # ac_fn_c_try_link LINENO
1711 # -----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_link ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1738 }; then :
1739 ac_retval=0
1740 else
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1744 ac_retval=1
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_link
1756 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists and can be compiled using the include files in
1759 # INCLUDES, setting the cache variable VAR accordingly.
1760 ac_fn_c_check_header_compile ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1771 #include <$2>
1772 _ACEOF
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775 else
1776 eval "$3=no"
1778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_compile
1787 # ac_fn_c_try_cpp LINENO
1788 # ----------------------
1789 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_cpp ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=1
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1822 } # ac_fn_c_try_cpp
1824 # ac_fn_c_try_run LINENO
1825 # ----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827 # that executables *can* be run.
1828 ac_fn_c_try_run ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853 else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=$ac_status
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_run
1866 # ac_fn_c_check_func LINENO FUNC VAR
1867 # ----------------------------------
1868 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1869 ac_fn_c_check_func ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876 else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878 /* end confdefs.h. */
1879 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881 #define $2 innocuous_$2
1883 /* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1888 #ifdef __STDC__
1889 # include <limits.h>
1890 #else
1891 # include <assert.h>
1892 #endif
1894 #undef $2
1896 /* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899 #ifdef __cplusplus
1900 extern "C"
1901 #endif
1902 char $2 ();
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined __stub_$2 || defined __stub___$2
1907 choke me
1908 #endif
1911 main ()
1913 return $2 ();
1915 return 0;
1917 _ACEOF
1918 if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1923 rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_func
1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934 # -------------------------------------------
1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
1936 # variable VAR accordingly.
1937 ac_fn_c_check_type ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 eval "$3=no"
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1950 main ()
1952 if (sizeof ($2))
1953 return 0;
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1963 main ()
1965 if (sizeof (($2)))
1966 return 0;
1968 return 0;
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1973 else
1974 eval "$3=yes"
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_c_check_type
1987 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1990 # the include files in INCLUDES and setting the cache variable VAR
1991 # accordingly.
1992 ac_fn_c_check_header_mongrel ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if eval \${$3+:} false; then :
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 else
2005 # Is the header compilable?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2007 $as_echo_n "checking $2 usability... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_header_compiler=yes
2015 else
2016 ac_header_compiler=no
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2020 $as_echo "$ac_header_compiler" >&6; }
2022 # Is the header present?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2024 $as_echo_n "checking $2 presence... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_cpp "$LINENO"; then :
2030 ac_header_preproc=yes
2031 else
2032 ac_header_preproc=no
2034 rm -f conftest.err conftest.i conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2036 $as_echo "$ac_header_preproc" >&6; }
2038 # So? What about this header?
2039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 yes:no: )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2042 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 no:yes:* )
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2048 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2050 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2052 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2054 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058 esac
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=\$ac_header_compiler"
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_header_mongrel
2073 cat >config.log <<_ACEOF
2074 This file contains any messages produced by compilers while
2075 running configure, to aid debugging if configure makes a mistake.
2077 It was created by sqlite $as_me 3.23.0, which was
2078 generated by GNU Autoconf 2.69. Invocation command line was
2080 $ $0 $@
2082 _ACEOF
2083 exec 5>>config.log
2085 cat <<_ASUNAME
2086 ## --------- ##
2087 ## Platform. ##
2088 ## --------- ##
2090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2091 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2092 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2093 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2094 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2097 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2099 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2100 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2102 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2103 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2104 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2105 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2107 _ASUNAME
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 $as_echo "PATH: $as_dir"
2115 done
2116 IFS=$as_save_IFS
2118 } >&5
2120 cat >&5 <<_ACEOF
2123 ## ----------- ##
2124 ## Core tests. ##
2125 ## ----------- ##
2127 _ACEOF
2130 # Keep a trace of the command line.
2131 # Strip out --no-create and --no-recursion so they do not pile up.
2132 # Strip out --silent because we don't want to record it for future runs.
2133 # Also quote any args containing shell meta-characters.
2134 # Make two passes to allow for proper duplicate-argument suppression.
2135 ac_configure_args=
2136 ac_configure_args0=
2137 ac_configure_args1=
2138 ac_must_keep_next=false
2139 for ac_pass in 1 2
2141 for ac_arg
2143 case $ac_arg in
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2147 continue ;;
2148 *\'*)
2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2150 esac
2151 case $ac_pass in
2152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154 as_fn_append ac_configure_args1 " '$ac_arg'"
2155 if test $ac_must_keep_next = true; then
2156 ac_must_keep_next=false # Got value, back to normal.
2157 else
2158 case $ac_arg in
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 esac
2167 -* ) ac_must_keep_next=true ;;
2168 esac
2170 as_fn_append ac_configure_args " '$ac_arg'"
2172 esac
2173 done
2174 done
2175 { ac_configure_args0=; unset ac_configure_args0;}
2176 { ac_configure_args1=; unset ac_configure_args1;}
2178 # When interrupted or exit'd, cleanup temporary files, and complete
2179 # config.log. We remove comments because anyway the quotes in there
2180 # would cause problems or look ugly.
2181 # WARNING: Use '\'' to represent an apostrophe within the trap.
2182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2183 trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
2186 echo
2188 $as_echo "## ---------------- ##
2189 ## Cache variables. ##
2190 ## ---------------- ##"
2191 echo
2192 # The following way of writing the cache mishandles newlines in values,
2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in #(
2197 *${as_nl}*)
2198 case $ac_var in #(
2199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2201 esac
2202 case $ac_var in #(
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2205 *) { eval $ac_var=; unset $ac_var;} ;;
2206 esac ;;
2207 esac
2208 done
2209 (set) 2>&1 |
2210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
2212 sed -n \
2213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2215 ;; #(
2217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219 esac |
2220 sort
2222 echo
2224 $as_echo "## ----------------- ##
2225 ## Output variables. ##
2226 ## ----------------- ##"
2227 echo
2228 for ac_var in $ac_subst_vars
2230 eval ac_val=\$$ac_var
2231 case $ac_val in
2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 esac
2234 $as_echo "$ac_var='\''$ac_val'\''"
2235 done | sort
2236 echo
2238 if test -n "$ac_subst_files"; then
2239 $as_echo "## ------------------- ##
2240 ## File substitutions. ##
2241 ## ------------------- ##"
2242 echo
2243 for ac_var in $ac_subst_files
2245 eval ac_val=\$$ac_var
2246 case $ac_val in
2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248 esac
2249 $as_echo "$ac_var='\''$ac_val'\''"
2250 done | sort
2251 echo
2254 if test -s confdefs.h; then
2255 $as_echo "## ----------- ##
2256 ## confdefs.h. ##
2257 ## ----------- ##"
2258 echo
2259 cat confdefs.h
2260 echo
2262 test "$ac_signal" != 0 &&
2263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
2265 } >&5
2266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2268 exit $exit_status
2270 for ac_signal in 1 2 13 15; do
2271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2272 done
2273 ac_signal=0
2275 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2276 rm -f -r conftest* confdefs.h
2278 $as_echo "/* confdefs.h */" > confdefs.h
2280 # Predefined preprocessor variables.
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_NAME "$PACKAGE_NAME"
2284 _ACEOF
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2288 _ACEOF
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2292 _ACEOF
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_STRING "$PACKAGE_STRING"
2296 _ACEOF
2298 cat >>confdefs.h <<_ACEOF
2299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2300 _ACEOF
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_URL "$PACKAGE_URL"
2304 _ACEOF
2307 # Let the site file select an alternate cache file if it wants to.
2308 # Prefer an explicitly selected file to automatically selected ones.
2309 ac_site_file1=NONE
2310 ac_site_file2=NONE
2311 if test -n "$CONFIG_SITE"; then
2312 # We do not want a PATH search for config.site.
2313 case $CONFIG_SITE in #((
2314 -*) ac_site_file1=./$CONFIG_SITE;;
2315 */*) ac_site_file1=$CONFIG_SITE;;
2316 *) ac_site_file1=./$CONFIG_SITE;;
2317 esac
2318 elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2321 else
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
2325 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2327 test "x$ac_site_file" = xNONE && continue
2328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2330 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2331 sed 's/^/| /' "$ac_site_file" >&5
2332 . "$ac_site_file" \
2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 as_fn_error $? "failed to load site script $ac_site_file
2336 See \`config.log' for more details" "$LINENO" 5; }
2338 done
2340 if test -r "$cache_file"; then
2341 # Some versions of bash will fail to source /dev/null (special files
2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2346 case $cache_file in
2347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
2349 esac
2351 else
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354 >$cache_file
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2366 set,)
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2370 ,set)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2374 ,);;
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2393 fi;;
2394 esac
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2397 case $ac_new_val in
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2400 esac
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404 esac
2406 done
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2427 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2428 as_fn_error $? "configure script is out of date:
2429 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2430 top level VERSION file = $sqlite_version_sanity_check
2431 please regen with autoconf" "$LINENO" 5
2434 #########
2435 # Programs needed
2437 case `pwd` in
2438 *\ * | *\ *)
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2440 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2441 esac
2445 macro_version='2.2.6'
2446 macro_revision='1.3012'
2460 ltmain="$ac_aux_dir/ltmain.sh"
2462 ac_aux_dir=
2463 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2464 if test -f "$ac_dir/install-sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install-sh -c"
2467 break
2468 elif test -f "$ac_dir/install.sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install.sh -c"
2471 break
2472 elif test -f "$ac_dir/shtool"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/shtool install -c"
2475 break
2477 done
2478 if test -z "$ac_aux_dir"; then
2479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2482 # These three variables are undocumented and unsupported,
2483 # and are intended to be withdrawn in a future Autoconf release.
2484 # They can cause serious problems if a builder's source tree is in a directory
2485 # whose full name contains unusual characters.
2486 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2487 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2488 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491 # Make sure we can run config.sub.
2492 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2496 $as_echo_n "checking build system type... " >&6; }
2497 if ${ac_cv_build+:} false; then :
2498 $as_echo_n "(cached) " >&6
2499 else
2500 ac_build_alias=$build_alias
2501 test "x$ac_build_alias" = x &&
2502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2503 test "x$ac_build_alias" = x &&
2504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2505 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2510 $as_echo "$ac_cv_build" >&6; }
2511 case $ac_cv_build in
2512 *-*-*) ;;
2513 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2514 esac
2515 build=$ac_cv_build
2516 ac_save_IFS=$IFS; IFS='-'
2517 set x $ac_cv_build
2518 shift
2519 build_cpu=$1
2520 build_vendor=$2
2521 shift; shift
2522 # Remember, the first character of IFS is used to create $*,
2523 # except with old shells:
2524 build_os=$*
2525 IFS=$ac_save_IFS
2526 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2530 $as_echo_n "checking host system type... " >&6; }
2531 if ${ac_cv_host+:} false; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 if test "x$host_alias" = x; then
2535 ac_cv_host=$ac_cv_build
2536 else
2537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2543 $as_echo "$ac_cv_host" >&6; }
2544 case $ac_cv_host in
2545 *-*-*) ;;
2546 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2547 esac
2548 host=$ac_cv_host
2549 ac_save_IFS=$IFS; IFS='-'
2550 set x $ac_cv_host
2551 shift
2552 host_cpu=$1
2553 host_vendor=$2
2554 shift; shift
2555 # Remember, the first character of IFS is used to create $*,
2556 # except with old shells:
2557 host_os=$*
2558 IFS=$ac_save_IFS
2559 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2562 ac_ext=c
2563 ac_cpp='$CPP $CPPFLAGS'
2564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2569 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_CC+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2589 done
2590 done
2591 IFS=$as_save_IFS
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2598 $as_echo "$CC" >&6; }
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2606 if test -z "$ac_cv_prog_CC"; then
2607 ac_ct_CC=$CC
2608 # Extract the first word of "gcc", so it can be a program name with args.
2609 set dummy gcc; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_ac_ct_CC="gcc"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2629 done
2630 done
2631 IFS=$as_save_IFS
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2638 $as_echo "$ac_ct_CC" >&6; }
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648 yes:)
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651 ac_tool_warned=yes ;;
2652 esac
2653 CC=$ac_ct_CC
2655 else
2656 CC="$ac_cv_prog_CC"
2659 if test -z "$CC"; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}cc; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if ${ac_cv_prog_CC+:} false; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2678 ac_cv_prog_CC="${ac_tool_prefix}cc"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2682 done
2683 done
2684 IFS=$as_save_IFS
2688 CC=$ac_cv_prog_CC
2689 if test -n "$CC"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2691 $as_echo "$CC" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2700 if test -z "$CC"; then
2701 # Extract the first word of "cc", so it can be a program name with args.
2702 set dummy cc; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_CC+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 else
2711 ac_prog_rejected=no
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2720 ac_prog_rejected=yes
2721 continue
2723 ac_cv_prog_CC="cc"
2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 break 2
2727 done
2728 done
2729 IFS=$as_save_IFS
2731 if test $ac_prog_rejected = yes; then
2732 # We found a bogon in the path, so make sure we never use it.
2733 set dummy $ac_cv_prog_CC
2734 shift
2735 if test $# != 0; then
2736 # We chose a different compiler from the bogus one.
2737 # However, it has the same basename, so the bogon will be chosen
2738 # first if we set CC to just the basename; use the full file name.
2739 shift
2740 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2745 CC=$ac_cv_prog_CC
2746 if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748 $as_echo "$CC" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2756 if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
2758 for ac_prog in cl.exe
2760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2761 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if ${ac_cv_prog_CC+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2777 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2781 done
2782 done
2783 IFS=$as_save_IFS
2787 CC=$ac_cv_prog_CC
2788 if test -n "$CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2790 $as_echo "$CC" >&6; }
2791 else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2797 test -n "$CC" && break
2798 done
2800 if test -z "$CC"; then
2801 ac_ct_CC=$CC
2802 for ac_prog in cl.exe
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805 set dummy $ac_prog; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2810 else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2821 ac_cv_prog_ac_ct_CC="$ac_prog"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 break 2
2825 done
2826 done
2827 IFS=$as_save_IFS
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2835 else
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2841 test -n "$ac_ct_CC" && break
2842 done
2844 if test "x$ac_ct_CC" = x; then
2845 CC=""
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848 yes:)
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2851 ac_tool_warned=yes ;;
2852 esac
2853 CC=$ac_ct_CC
2860 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862 as_fn_error $? "no acceptable C compiler found in \$PATH
2863 See \`config.log' for more details" "$LINENO" 5; }
2865 # Provide some information about the compiler.
2866 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2867 set X $ac_compile
2868 ac_compiler=$2
2869 for ac_option in --version -v -V -qversion; do
2870 { { ac_try="$ac_compiler $ac_option >&5"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876 $as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2878 ac_status=$?
2879 if test -s conftest.err; then
2880 sed '10a\
2881 ... rest of stderr output deleted ...
2882 10q' conftest.err >conftest.er1
2883 cat conftest.er1 >&5
2885 rm -f conftest.er1 conftest.err
2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887 test $ac_status = 0; }
2888 done
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891 /* end confdefs.h. */
2894 main ()
2898 return 0;
2900 _ACEOF
2901 ac_clean_files_save=$ac_clean_files
2902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2903 # Try to create an executable without -o first, disregard a.out.
2904 # It will help us diagnose broken compilers, and finding out an intuition
2905 # of exeext.
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2907 $as_echo_n "checking whether the C compiler works... " >&6; }
2908 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2910 # The possible output files:
2911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2913 ac_rmfiles=
2914 for ac_file in $ac_files
2916 case $ac_file in
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2919 esac
2920 done
2921 rm -f $ac_rmfiles
2923 if { { ac_try="$ac_link_default"
2924 case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927 esac
2928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929 $as_echo "$ac_try_echo"; } >&5
2930 (eval "$ac_link_default") 2>&5
2931 ac_status=$?
2932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
2934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2937 # so that the user can short-circuit this test for compilers unknown to
2938 # Autoconf.
2939 for ac_file in $ac_files ''
2941 test -f "$ac_file" || continue
2942 case $ac_file in
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2945 [ab].out )
2946 # We found the default executable, but exeext='' is most
2947 # certainly right.
2948 break;;
2949 *.* )
2950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 then :; else
2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 # We set ac_cv_exeext here because the later test for it is not
2955 # safe: cross compilers may not add the suffix if given an `-o'
2956 # argument, so we may need to know it at that point already.
2957 # Even if this section looks crufty: it has the advantage of
2958 # actually working.
2959 break;;
2961 break;;
2962 esac
2963 done
2964 test "$ac_cv_exeext" = no && ac_cv_exeext=
2966 else
2967 ac_file=''
2969 if test -z "$ac_file"; then :
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 $as_echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error 77 "C compiler cannot create executables
2978 See \`config.log' for more details" "$LINENO" 5; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2981 $as_echo "yes" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2984 $as_echo_n "checking for C compiler default output file name... " >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2986 $as_echo "$ac_file" >&6; }
2987 ac_exeext=$ac_cv_exeext
2989 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2990 ac_clean_files=$ac_clean_files_save
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2992 $as_echo_n "checking for suffix of executables... " >&6; }
2993 if { { ac_try="$ac_link"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3005 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3006 # work properly (i.e., refer to `conftest.exe'), while it won't with
3007 # `rm'.
3008 for ac_file in conftest.exe conftest conftest.*; do
3009 test -f "$ac_file" || continue
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 break;;
3014 * ) break;;
3015 esac
3016 done
3017 else
3018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3021 See \`config.log' for more details" "$LINENO" 5; }
3023 rm -f conftest conftest$ac_cv_exeext
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3025 $as_echo "$ac_cv_exeext" >&6; }
3027 rm -f conftest.$ac_ext
3028 EXEEXT=$ac_cv_exeext
3029 ac_exeext=$EXEEXT
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3032 #include <stdio.h>
3034 main ()
3036 FILE *f = fopen ("conftest.out", "w");
3037 return ferror (f) || fclose (f) != 0;
3040 return 0;
3042 _ACEOF
3043 ac_clean_files="$ac_clean_files conftest.out"
3044 # Check that the compiler produces executables we can run. If not, either
3045 # the compiler is broken, or we cross compile.
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3047 $as_echo_n "checking whether we are cross compiling... " >&6; }
3048 if test "$cross_compiling" != yes; then
3049 { { ac_try="$ac_link"
3050 case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053 esac
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }
3060 if { ac_try='./conftest$ac_cv_exeext'
3061 { { case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; }; then
3071 cross_compiling=no
3072 else
3073 if test "$cross_compiling" = maybe; then
3074 cross_compiling=yes
3075 else
3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error $? "cannot run C compiled programs.
3079 If you meant to cross compile, use \`--host'.
3080 See \`config.log' for more details" "$LINENO" 5; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3085 $as_echo "$cross_compiling" >&6; }
3087 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3088 ac_clean_files=$ac_clean_files_save
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3090 $as_echo_n "checking for suffix of object files... " >&6; }
3091 if ${ac_cv_objext+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3098 main ()
3102 return 0;
3104 _ACEOF
3105 rm -f conftest.o conftest.obj
3106 if { { ac_try="$ac_compile"
3107 case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110 esac
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_compile") 2>&5
3114 ac_status=$?
3115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; then :
3117 for ac_file in conftest.o conftest.obj conftest.*; do
3118 test -f "$ac_file" || continue;
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3122 break;;
3123 esac
3124 done
3125 else
3126 $as_echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "cannot compute suffix of object files: cannot compile
3132 See \`config.log' for more details" "$LINENO" 5; }
3134 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3137 $as_echo "$ac_cv_objext" >&6; }
3138 OBJEXT=$ac_cv_objext
3139 ac_objext=$OBJEXT
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3141 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3142 if ${ac_cv_c_compiler_gnu+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3149 main ()
3151 #ifndef __GNUC__
3152 choke me
3153 #endif
3156 return 0;
3158 _ACEOF
3159 if ac_fn_c_try_compile "$LINENO"; then :
3160 ac_compiler_gnu=yes
3161 else
3162 ac_compiler_gnu=no
3164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3169 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3170 if test $ac_compiler_gnu = yes; then
3171 GCC=yes
3172 else
3173 GCC=
3175 ac_test_CFLAGS=${CFLAGS+set}
3176 ac_save_CFLAGS=$CFLAGS
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3178 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3179 if ${ac_cv_prog_cc_g+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181 else
3182 ac_save_c_werror_flag=$ac_c_werror_flag
3183 ac_c_werror_flag=yes
3184 ac_cv_prog_cc_g=no
3185 CFLAGS="-g"
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3190 main ()
3194 return 0;
3196 _ACEOF
3197 if ac_fn_c_try_compile "$LINENO"; then :
3198 ac_cv_prog_cc_g=yes
3199 else
3200 CFLAGS=""
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3205 main ()
3209 return 0;
3211 _ACEOF
3212 if ac_fn_c_try_compile "$LINENO"; then :
3214 else
3215 ac_c_werror_flag=$ac_save_c_werror_flag
3216 CFLAGS="-g"
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3221 main ()
3225 return 0;
3227 _ACEOF
3228 if ac_fn_c_try_compile "$LINENO"; then :
3229 ac_cv_prog_cc_g=yes
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3239 $as_echo "$ac_cv_prog_cc_g" >&6; }
3240 if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242 elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3244 CFLAGS="-g -O2"
3245 else
3246 CFLAGS="-g"
3248 else
3249 if test "$GCC" = yes; then
3250 CFLAGS="-O2"
3251 else
3252 CFLAGS=
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3256 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3257 if ${ac_cv_prog_cc_c89+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 ac_cv_prog_cc_c89=no
3261 ac_save_CC=$CC
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3264 #include <stdarg.h>
3265 #include <stdio.h>
3266 struct stat;
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3271 char **p;
3272 int i;
3274 return p[i];
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297 #define FOO(x) 'x'
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 int argc;
3305 char **argv;
3307 main ()
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 return 0;
3313 _ACEOF
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_cv_prog_cc_c89=$ac_arg
3321 rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
3323 done
3324 rm -f conftest.$ac_ext
3325 CC=$ac_save_CC
3328 # AC_CACHE_VAL
3329 case "x$ac_cv_prog_cc_c89" in
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3332 $as_echo "none needed" >&6; } ;;
3333 xno)
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3335 $as_echo "unsupported" >&6; } ;;
3337 CC="$CC $ac_cv_prog_cc_c89"
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3340 esac
3341 if test "x$ac_cv_prog_cc_c89" != xno; then :
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3353 if ${ac_cv_path_SED+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3357 for ac_i in 1 2 3 4 5 6 7; do
3358 ac_script="$ac_script$as_nl$ac_script"
3359 done
3360 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3361 { ac_script=; unset ac_script;}
3362 if test -z "$SED"; then
3363 ac_path_SED_found=false
3364 # Loop through the user's path and test for each of PROGNAME-LIST
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_prog in sed gsed; do
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3373 as_fn_executable_p "$ac_path_SED" || continue
3374 # Check for GNU ac_path_SED and select it if it is found.
3375 # Check for GNU $ac_path_SED
3376 case `"$ac_path_SED" --version 2>&1` in
3377 *GNU*)
3378 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3380 ac_count=0
3381 $as_echo_n 0123456789 >"conftest.in"
3382 while :
3384 cat "conftest.in" "conftest.in" >"conftest.tmp"
3385 mv "conftest.tmp" "conftest.in"
3386 cp "conftest.in" "conftest.nl"
3387 $as_echo '' >> "conftest.nl"
3388 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3390 as_fn_arith $ac_count + 1 && ac_count=$as_val
3391 if test $ac_count -gt ${ac_path_SED_max-0}; then
3392 # Best one so far, save it but keep looking for a better one
3393 ac_cv_path_SED="$ac_path_SED"
3394 ac_path_SED_max=$ac_count
3396 # 10*(2^10) chars as input seems more than enough
3397 test $ac_count -gt 10 && break
3398 done
3399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3400 esac
3402 $ac_path_SED_found && break 3
3403 done
3404 done
3405 done
3406 IFS=$as_save_IFS
3407 if test -z "$ac_cv_path_SED"; then
3408 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3410 else
3411 ac_cv_path_SED=$SED
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3416 $as_echo "$ac_cv_path_SED" >&6; }
3417 SED="$ac_cv_path_SED"
3418 rm -f conftest.sed
3420 test -z "$SED" && SED=sed
3421 Xsed="$SED -e 1s/^X//"
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3434 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3435 if ${ac_cv_path_GREP+:} false; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -z "$GREP"; then
3439 ac_path_GREP_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in grep ggrep; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3449 as_fn_executable_p "$ac_path_GREP" || continue
3450 # Check for GNU ac_path_GREP and select it if it is found.
3451 # Check for GNU $ac_path_GREP
3452 case `"$ac_path_GREP" --version 2>&1` in
3453 *GNU*)
3454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3456 ac_count=0
3457 $as_echo_n 0123456789 >"conftest.in"
3458 while :
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 $as_echo 'GREP' >> "conftest.nl"
3464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 as_fn_arith $ac_count + 1 && ac_count=$as_val
3467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_GREP="$ac_path_GREP"
3470 ac_path_GREP_max=$ac_count
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476 esac
3478 $ac_path_GREP_found && break 3
3479 done
3480 done
3481 done
3482 IFS=$as_save_IFS
3483 if test -z "$ac_cv_path_GREP"; then
3484 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3486 else
3487 ac_cv_path_GREP=$GREP
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3492 $as_echo "$ac_cv_path_GREP" >&6; }
3493 GREP="$ac_cv_path_GREP"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3497 $as_echo_n "checking for egrep... " >&6; }
3498 if ${ac_cv_path_EGREP+:} false; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3502 then ac_cv_path_EGREP="$GREP -E"
3503 else
3504 if test -z "$EGREP"; then
3505 ac_path_EGREP_found=false
3506 # Loop through the user's path and test for each of PROGNAME-LIST
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_prog in egrep; do
3513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3515 as_fn_executable_p "$ac_path_EGREP" || continue
3516 # Check for GNU ac_path_EGREP and select it if it is found.
3517 # Check for GNU $ac_path_EGREP
3518 case `"$ac_path_EGREP" --version 2>&1` in
3519 *GNU*)
3520 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3522 ac_count=0
3523 $as_echo_n 0123456789 >"conftest.in"
3524 while :
3526 cat "conftest.in" "conftest.in" >"conftest.tmp"
3527 mv "conftest.tmp" "conftest.in"
3528 cp "conftest.in" "conftest.nl"
3529 $as_echo 'EGREP' >> "conftest.nl"
3530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3532 as_fn_arith $ac_count + 1 && ac_count=$as_val
3533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3534 # Best one so far, save it but keep looking for a better one
3535 ac_cv_path_EGREP="$ac_path_EGREP"
3536 ac_path_EGREP_max=$ac_count
3538 # 10*(2^10) chars as input seems more than enough
3539 test $ac_count -gt 10 && break
3540 done
3541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3542 esac
3544 $ac_path_EGREP_found && break 3
3545 done
3546 done
3547 done
3548 IFS=$as_save_IFS
3549 if test -z "$ac_cv_path_EGREP"; then
3550 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3552 else
3553 ac_cv_path_EGREP=$EGREP
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3559 $as_echo "$ac_cv_path_EGREP" >&6; }
3560 EGREP="$ac_cv_path_EGREP"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3564 $as_echo_n "checking for fgrep... " >&6; }
3565 if ${ac_cv_path_FGREP+:} false; then :
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3569 then ac_cv_path_FGREP="$GREP -F"
3570 else
3571 if test -z "$FGREP"; then
3572 ac_path_FGREP_found=false
3573 # Loop through the user's path and test for each of PROGNAME-LIST
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 for ac_prog in fgrep; do
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3582 as_fn_executable_p "$ac_path_FGREP" || continue
3583 # Check for GNU ac_path_FGREP and select it if it is found.
3584 # Check for GNU $ac_path_FGREP
3585 case `"$ac_path_FGREP" --version 2>&1` in
3586 *GNU*)
3587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3589 ac_count=0
3590 $as_echo_n 0123456789 >"conftest.in"
3591 while :
3593 cat "conftest.in" "conftest.in" >"conftest.tmp"
3594 mv "conftest.tmp" "conftest.in"
3595 cp "conftest.in" "conftest.nl"
3596 $as_echo 'FGREP' >> "conftest.nl"
3597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3599 as_fn_arith $ac_count + 1 && ac_count=$as_val
3600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3601 # Best one so far, save it but keep looking for a better one
3602 ac_cv_path_FGREP="$ac_path_FGREP"
3603 ac_path_FGREP_max=$ac_count
3605 # 10*(2^10) chars as input seems more than enough
3606 test $ac_count -gt 10 && break
3607 done
3608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3609 esac
3611 $ac_path_FGREP_found && break 3
3612 done
3613 done
3614 done
3615 IFS=$as_save_IFS
3616 if test -z "$ac_cv_path_FGREP"; then
3617 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3619 else
3620 ac_cv_path_FGREP=$FGREP
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3626 $as_echo "$ac_cv_path_FGREP" >&6; }
3627 FGREP="$ac_cv_path_FGREP"
3630 test -z "$GREP" && GREP=grep
3650 # Check whether --with-gnu-ld was given.
3651 if test "${with_gnu_ld+set}" = set; then :
3652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3653 else
3654 with_gnu_ld=no
3657 ac_prog=ld
3658 if test "$GCC" = yes; then
3659 # Check if gcc -print-prog-name=ld gives a path.
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3661 $as_echo_n "checking for ld used by $CC... " >&6; }
3662 case $host in
3663 *-*-mingw*)
3664 # gcc leaves a trailing carriage return which upsets mingw
3665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3668 esac
3669 case $ac_prog in
3670 # Accept absolute paths.
3671 [\\/]* | ?:[\\/]*)
3672 re_direlt='/[^/][^/]*/\.\./'
3673 # Canonicalize the pathname of ld
3674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3677 done
3678 test -z "$LD" && LD="$ac_prog"
3681 # If it fails, then pretend we aren't using GCC.
3682 ac_prog=ld
3685 # If it is relative, then search for the first ld in PATH.
3686 with_gnu_ld=unknown
3688 esac
3689 elif test "$with_gnu_ld" = yes; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3691 $as_echo_n "checking for GNU ld... " >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3694 $as_echo_n "checking for non-GNU ld... " >&6; }
3696 if ${lt_cv_path_LD+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -z "$LD"; then
3700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3701 for ac_dir in $PATH; do
3702 IFS="$lt_save_ifs"
3703 test -z "$ac_dir" && ac_dir=.
3704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3705 lt_cv_path_LD="$ac_dir/$ac_prog"
3706 # Check to see if the program is GNU ld. I'd rather use --version,
3707 # but apparently some variants of GNU ld only accept -v.
3708 # Break only if it was the GNU/non-GNU ld that we prefer.
3709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3710 *GNU* | *'with BFD'*)
3711 test "$with_gnu_ld" != no && break
3714 test "$with_gnu_ld" != yes && break
3716 esac
3718 done
3719 IFS="$lt_save_ifs"
3720 else
3721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3725 LD="$lt_cv_path_LD"
3726 if test -n "$LD"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3728 $as_echo "$LD" >&6; }
3729 else
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3733 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3736 if ${lt_cv_prog_gnu_ld+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3740 case `$LD -v 2>&1 </dev/null` in
3741 *GNU* | *'with BFD'*)
3742 lt_cv_prog_gnu_ld=yes
3745 lt_cv_prog_gnu_ld=no
3747 esac
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3751 with_gnu_ld=$lt_cv_prog_gnu_ld
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3762 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3763 if ${lt_cv_path_NM+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 if test -n "$NM"; then
3767 # Let the user override the test.
3768 lt_cv_path_NM="$NM"
3769 else
3770 lt_nm_to_check="${ac_tool_prefix}nm"
3771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3772 lt_nm_to_check="$lt_nm_to_check nm"
3774 for lt_tmp_nm in $lt_nm_to_check; do
3775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3777 IFS="$lt_save_ifs"
3778 test -z "$ac_dir" && ac_dir=.
3779 tmp_nm="$ac_dir/$lt_tmp_nm"
3780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3781 # Check to see if the nm accepts a BSD-compat flag.
3782 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3783 # nm: unknown option "B" ignored
3784 # Tru64's nm complains that /dev/null is an invalid object file
3785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3786 */dev/null* | *'Invalid file or object type'*)
3787 lt_cv_path_NM="$tmp_nm -B"
3788 break
3791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3792 */dev/null*)
3793 lt_cv_path_NM="$tmp_nm -p"
3794 break
3797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3798 continue # so that we can try to find one that supports BSD flags
3800 esac
3802 esac
3804 done
3805 IFS="$lt_save_ifs"
3806 done
3807 : ${lt_cv_path_NM=no}
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3811 $as_echo "$lt_cv_path_NM" >&6; }
3812 if test "$lt_cv_path_NM" != "no"; then
3813 NM="$lt_cv_path_NM"
3814 else
3815 # Didn't find any BSD compatible name lister, look for dumpbin.
3816 if test -n "$ac_tool_prefix"; then
3817 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3820 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 $as_echo_n "checking for $ac_word... " >&6; }
3823 if ${ac_cv_prog_DUMPBIN+:} false; then :
3824 $as_echo_n "(cached) " >&6
3825 else
3826 if test -n "$DUMPBIN"; then
3827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3828 else
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 break 2
3840 done
3841 done
3842 IFS=$as_save_IFS
3846 DUMPBIN=$ac_cv_prog_DUMPBIN
3847 if test -n "$DUMPBIN"; then
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3849 $as_echo "$DUMPBIN" >&6; }
3850 else
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3852 $as_echo "no" >&6; }
3856 test -n "$DUMPBIN" && break
3857 done
3859 if test -z "$DUMPBIN"; then
3860 ac_ct_DUMPBIN=$DUMPBIN
3861 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864 set dummy $ac_prog; ac_word=$2
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3866 $as_echo_n "checking for $ac_word... " >&6; }
3867 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 if test -n "$ac_ct_DUMPBIN"; then
3871 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3872 else
3873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 for as_dir in $PATH
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
3878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3880 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 break 2
3884 done
3885 done
3886 IFS=$as_save_IFS
3890 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3891 if test -n "$ac_ct_DUMPBIN"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3893 $as_echo "$ac_ct_DUMPBIN" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3900 test -n "$ac_ct_DUMPBIN" && break
3901 done
3903 if test "x$ac_ct_DUMPBIN" = x; then
3904 DUMPBIN=":"
3905 else
3906 case $cross_compiling:$ac_tool_warned in
3907 yes:)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3911 esac
3912 DUMPBIN=$ac_ct_DUMPBIN
3917 if test "$DUMPBIN" != ":"; then
3918 NM="$DUMPBIN"
3921 test -z "$NM" && NM=nm
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3929 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3930 if ${lt_cv_nm_interface+:} false; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 lt_cv_nm_interface="BSD nm"
3934 echo "int some_variable = 0;" > conftest.$ac_ext
3935 (eval echo "\"\$as_me:3935: $ac_compile\"" >&5)
3936 (eval "$ac_compile" 2>conftest.err)
3937 cat conftest.err >&5
3938 (eval echo "\"\$as_me:3938: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3939 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3940 cat conftest.err >&5
3941 (eval echo "\"\$as_me:3941: output\"" >&5)
3942 cat conftest.out >&5
3943 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3944 lt_cv_nm_interface="MS dumpbin"
3946 rm -f conftest*
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3949 $as_echo "$lt_cv_nm_interface" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3952 $as_echo_n "checking whether ln -s works... " >&6; }
3953 LN_S=$as_ln_s
3954 if test "$LN_S" = "ln -s"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3956 $as_echo "yes" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3959 $as_echo "no, using $LN_S" >&6; }
3962 # find the maximum length of command line arguments
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3964 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3965 if ${lt_cv_sys_max_cmd_len+:} false; then :
3966 $as_echo_n "(cached) " >&6
3967 else
3969 teststring="ABCD"
3971 case $build_os in
3972 msdosdjgpp*)
3973 # On DJGPP, this test can blow up pretty badly due to problems in libc
3974 # (any single argument exceeding 2000 bytes causes a buffer overrun
3975 # during glob expansion). Even if it were fixed, the result of this
3976 # check would be larger than it should be.
3977 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3980 gnu*)
3981 # Under GNU Hurd, this test is not required because there is
3982 # no limit to the length of command line arguments.
3983 # Libtool will interpret -1 as no limit whatsoever
3984 lt_cv_sys_max_cmd_len=-1;
3987 cygwin* | mingw* | cegcc*)
3988 # On Win9x/ME, this test blows up -- it succeeds, but takes
3989 # about 5 minutes as the teststring grows exponentially.
3990 # Worse, since 9x/ME are not pre-emptively multitasking,
3991 # you end up with a "frozen" computer, even though with patience
3992 # the test eventually succeeds (with a max line length of 256k).
3993 # Instead, let's just punt: use the minimum linelength reported by
3994 # all of the supported platforms: 8192 (on NT/2K/XP).
3995 lt_cv_sys_max_cmd_len=8192;
3998 amigaos*)
3999 # On AmigaOS with pdksh, this test takes hours, literally.
4000 # So we just punt and use a minimum line length of 8192.
4001 lt_cv_sys_max_cmd_len=8192;
4004 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4005 # This has been around since 386BSD, at least. Likely further.
4006 if test -x /sbin/sysctl; then
4007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4008 elif test -x /usr/sbin/sysctl; then
4009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4010 else
4011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4013 # And add a safety zone
4014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4018 interix*)
4019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4020 lt_cv_sys_max_cmd_len=196608
4023 osf*)
4024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4026 # nice to cause kernel panics so lets avoid the loop below.
4027 # First set a reasonable default.
4028 lt_cv_sys_max_cmd_len=16384
4030 if test -x /sbin/sysconfig; then
4031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4032 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4033 esac
4036 sco3.2v5*)
4037 lt_cv_sys_max_cmd_len=102400
4039 sysv5* | sco5v6* | sysv4.2uw2*)
4040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4041 if test -n "$kargmax"; then
4042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4043 else
4044 lt_cv_sys_max_cmd_len=32768
4048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4049 if test -n "$lt_cv_sys_max_cmd_len"; then
4050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4052 else
4053 # Make teststring a little bigger before we do anything with it.
4054 # a 1K string should be a reasonable start.
4055 for i in 1 2 3 4 5 6 7 8 ; do
4056 teststring=$teststring$teststring
4057 done
4058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4059 # If test is not a shell built-in, we'll probably end up computing a
4060 # maximum length that is only half of the actual maximum length, but
4061 # we can't tell.
4062 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4063 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4064 test $i != 17 # 1/2 MB should be enough
4066 i=`expr $i + 1`
4067 teststring=$teststring$teststring
4068 done
4069 # Only check the string length outside the loop.
4070 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4071 teststring=
4072 # Add a significant safety factor because C++ compilers can tack on
4073 # massive amounts of additional arguments before passing them to the
4074 # linker. It appears as though 1/2 is a usable value.
4075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4078 esac
4082 if test -n $lt_cv_sys_max_cmd_len ; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4084 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4085 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4087 $as_echo "none" >&6; }
4089 max_cmd_len=$lt_cv_sys_max_cmd_len
4096 : ${CP="cp -f"}
4097 : ${MV="mv -f"}
4098 : ${RM="rm -f"}
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4101 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4102 # Try some XSI features
4103 xsi_shell=no
4104 ( _lt_dummy="a/b/c"
4105 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4106 = c,a/b,, \
4107 && eval 'test $(( 1 + 1 )) -eq 2 \
4108 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4109 && xsi_shell=yes
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4111 $as_echo "$xsi_shell" >&6; }
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4115 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4116 lt_shell_append=no
4117 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4118 >/dev/null 2>&1 \
4119 && lt_shell_append=yes
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4121 $as_echo "$lt_shell_append" >&6; }
4124 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4125 lt_unset=unset
4126 else
4127 lt_unset=false
4134 # test EBCDIC or ASCII
4135 case `echo X|tr X '\101'` in
4136 A) # ASCII based system
4137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4138 lt_SP2NL='tr \040 \012'
4139 lt_NL2SP='tr \015\012 \040\040'
4141 *) # EBCDIC based system
4142 lt_SP2NL='tr \100 \n'
4143 lt_NL2SP='tr \r\n \100\100'
4145 esac
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4156 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4157 if ${lt_cv_ld_reload_flag+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 lt_cv_ld_reload_flag='-r'
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4163 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4164 reload_flag=$lt_cv_ld_reload_flag
4165 case $reload_flag in
4166 "" | " "*) ;;
4167 *) reload_flag=" $reload_flag" ;;
4168 esac
4169 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4170 case $host_os in
4171 darwin*)
4172 if test "$GCC" = yes; then
4173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4174 else
4175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4178 esac
4188 if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4190 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_OBJDUMP+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -n "$OBJDUMP"; then
4197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4198 else
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 break 2
4210 done
4211 done
4212 IFS=$as_save_IFS
4216 OBJDUMP=$ac_cv_prog_OBJDUMP
4217 if test -n "$OBJDUMP"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4219 $as_echo "$OBJDUMP" >&6; }
4220 else
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4227 if test -z "$ac_cv_prog_OBJDUMP"; then
4228 ac_ct_OBJDUMP=$OBJDUMP
4229 # Extract the first word of "objdump", so it can be a program name with args.
4230 set dummy objdump; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -n "$ac_ct_OBJDUMP"; then
4237 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4252 IFS=$as_save_IFS
4256 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4257 if test -n "$ac_ct_OBJDUMP"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4259 $as_echo "$ac_ct_OBJDUMP" >&6; }
4260 else
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4265 if test "x$ac_ct_OBJDUMP" = x; then
4266 OBJDUMP="false"
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 OBJDUMP=$ac_ct_OBJDUMP
4276 else
4277 OBJDUMP="$ac_cv_prog_OBJDUMP"
4280 test -z "$OBJDUMP" && OBJDUMP=objdump
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4291 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4292 if ${lt_cv_deplibs_check_method+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 lt_cv_file_magic_cmd='$MAGIC_CMD'
4296 lt_cv_file_magic_test_file=
4297 lt_cv_deplibs_check_method='unknown'
4298 # Need to set the preceding variable on all platforms that support
4299 # interlibrary dependencies.
4300 # 'none' -- dependencies not supported.
4301 # `unknown' -- same as none, but documents that we really don't know.
4302 # 'pass_all' -- all dependencies passed with no checks.
4303 # 'test_compile' -- check by making test program.
4304 # 'file_magic [[regex]]' -- check by looking for files in library path
4305 # which responds to the $file_magic_cmd with a given extended regex.
4306 # If you have `file' or equivalent on your system and you're not sure
4307 # whether `pass_all' will *always* work, you probably want this one.
4309 case $host_os in
4310 aix[4-9]*)
4311 lt_cv_deplibs_check_method=pass_all
4314 beos*)
4315 lt_cv_deplibs_check_method=pass_all
4318 bsdi[45]*)
4319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4320 lt_cv_file_magic_cmd='/usr/bin/file -L'
4321 lt_cv_file_magic_test_file=/shlib/libc.so
4324 cygwin*)
4325 # func_win32_libid is a shell function defined in ltmain.sh
4326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4327 lt_cv_file_magic_cmd='func_win32_libid'
4330 mingw* | pw32*)
4331 # Base MSYS/MinGW do not provide the 'file' command needed by
4332 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4333 # unless we find 'file', for example because we are cross-compiling.
4334 if ( file / ) >/dev/null 2>&1; then
4335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4336 lt_cv_file_magic_cmd='func_win32_libid'
4337 else
4338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4339 lt_cv_file_magic_cmd='$OBJDUMP -f'
4343 cegcc)
4344 # use the weaker test based on 'objdump'. See mingw*.
4345 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4346 lt_cv_file_magic_cmd='$OBJDUMP -f'
4349 darwin* | rhapsody*)
4350 lt_cv_deplibs_check_method=pass_all
4353 freebsd* | dragonfly*)
4354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4355 case $host_cpu in
4356 i*86 )
4357 # Not sure whether the presence of OpenBSD here was a mistake.
4358 # Let's accept both of them until this is cleared up.
4359 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4363 esac
4364 else
4365 lt_cv_deplibs_check_method=pass_all
4369 gnu*)
4370 lt_cv_deplibs_check_method=pass_all
4373 hpux10.20* | hpux11*)
4374 lt_cv_file_magic_cmd=/usr/bin/file
4375 case $host_cpu in
4376 ia64*)
4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4380 hppa*64*)
4381 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]'
4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4388 esac
4391 interix[3-9]*)
4392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4396 irix5* | irix6* | nonstopux*)
4397 case $LD in
4398 *-32|*"-32 ") libmagic=32-bit;;
4399 *-n32|*"-n32 ") libmagic=N32;;
4400 *-64|*"-64 ") libmagic=64-bit;;
4401 *) libmagic=never-match;;
4402 esac
4403 lt_cv_deplibs_check_method=pass_all
4406 # This must be Linux ELF.
4407 linux* | k*bsd*-gnu)
4408 lt_cv_deplibs_check_method=pass_all
4411 netbsd*)
4412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4414 else
4415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4419 newos6*)
4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4421 lt_cv_file_magic_cmd=/usr/bin/file
4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4425 *nto* | *qnx*)
4426 lt_cv_deplibs_check_method=pass_all
4429 openbsd*)
4430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4432 else
4433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4437 osf3* | osf4* | osf5*)
4438 lt_cv_deplibs_check_method=pass_all
4441 rdos*)
4442 lt_cv_deplibs_check_method=pass_all
4445 solaris*)
4446 lt_cv_deplibs_check_method=pass_all
4449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4450 lt_cv_deplibs_check_method=pass_all
4453 sysv4 | sysv4.3*)
4454 case $host_vendor in
4455 motorola)
4456 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]'
4457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4459 ncr)
4460 lt_cv_deplibs_check_method=pass_all
4462 sequent)
4463 lt_cv_file_magic_cmd='/bin/file'
4464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4466 sni)
4467 lt_cv_file_magic_cmd='/bin/file'
4468 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4469 lt_cv_file_magic_test_file=/lib/libc.so
4471 siemens)
4472 lt_cv_deplibs_check_method=pass_all
4475 lt_cv_deplibs_check_method=pass_all
4477 esac
4480 tpf*)
4481 lt_cv_deplibs_check_method=pass_all
4483 esac
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4487 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4488 file_magic_cmd=$lt_cv_file_magic_cmd
4489 deplibs_check_method=$lt_cv_deplibs_check_method
4490 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4503 if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4505 set dummy ${ac_tool_prefix}ar; ac_word=$2
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 $as_echo_n "checking for $ac_word... " >&6; }
4508 if ${ac_cv_prog_AR+:} false; then :
4509 $as_echo_n "(cached) " >&6
4510 else
4511 if test -n "$AR"; then
4512 ac_cv_prog_AR="$AR" # Let the user override the test.
4513 else
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_prog_AR="${ac_tool_prefix}ar"
4522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 break 2
4525 done
4526 done
4527 IFS=$as_save_IFS
4531 AR=$ac_cv_prog_AR
4532 if test -n "$AR"; then
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4534 $as_echo "$AR" >&6; }
4535 else
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4542 if test -z "$ac_cv_prog_AR"; then
4543 ac_ct_AR=$AR
4544 # Extract the first word of "ar", so it can be a program name with args.
4545 set dummy ar; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test -n "$ac_ct_AR"; then
4552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4553 else
4554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555 for as_dir in $PATH
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
4559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4561 ac_cv_prog_ac_ct_AR="ar"
4562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4563 break 2
4565 done
4566 done
4567 IFS=$as_save_IFS
4571 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4572 if test -n "$ac_ct_AR"; then
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4574 $as_echo "$ac_ct_AR" >&6; }
4575 else
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4580 if test "x$ac_ct_AR" = x; then
4581 AR="false"
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584 yes:)
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4587 ac_tool_warned=yes ;;
4588 esac
4589 AR=$ac_ct_AR
4591 else
4592 AR="$ac_cv_prog_AR"
4595 test -z "$AR" && AR=ar
4596 test -z "$AR_FLAGS" && AR_FLAGS=cru
4608 if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4610 set dummy ${ac_tool_prefix}strip; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_prog_STRIP+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 if test -n "$STRIP"; then
4617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4630 done
4631 done
4632 IFS=$as_save_IFS
4636 STRIP=$ac_cv_prog_STRIP
4637 if test -n "$STRIP"; then
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4639 $as_echo "$STRIP" >&6; }
4640 else
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4647 if test -z "$ac_cv_prog_STRIP"; then
4648 ac_ct_STRIP=$STRIP
4649 # Extract the first word of "strip", so it can be a program name with args.
4650 set dummy strip; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4654 $as_echo_n "(cached) " >&6
4655 else
4656 if test -n "$ac_ct_STRIP"; then
4657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_ac_ct_STRIP="strip"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4677 if test -n "$ac_ct_STRIP"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4679 $as_echo "$ac_ct_STRIP" >&6; }
4680 else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4685 if test "x$ac_ct_STRIP" = x; then
4686 STRIP=":"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694 STRIP=$ac_ct_STRIP
4696 else
4697 STRIP="$ac_cv_prog_STRIP"
4700 test -z "$STRIP" && STRIP=:
4707 if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4709 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if ${ac_cv_prog_RANLIB+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 if test -n "$RANLIB"; then
4716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4717 else
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4729 done
4730 done
4731 IFS=$as_save_IFS
4735 RANLIB=$ac_cv_prog_RANLIB
4736 if test -n "$RANLIB"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4738 $as_echo "$RANLIB" >&6; }
4739 else
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4746 if test -z "$ac_cv_prog_RANLIB"; then
4747 ac_ct_RANLIB=$RANLIB
4748 # Extract the first word of "ranlib", so it can be a program name with args.
4749 set dummy ranlib; ac_word=$2
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751 $as_echo_n "checking for $ac_word... " >&6; }
4752 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 if test -n "$ac_ct_RANLIB"; then
4756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4757 else
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4765 ac_cv_prog_ac_ct_RANLIB="ranlib"
4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 break 2
4769 done
4770 done
4771 IFS=$as_save_IFS
4775 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4776 if test -n "$ac_ct_RANLIB"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4778 $as_echo "$ac_ct_RANLIB" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4784 if test "x$ac_ct_RANLIB" = x; then
4785 RANLIB=":"
4786 else
4787 case $cross_compiling:$ac_tool_warned in
4788 yes:)
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 ac_tool_warned=yes ;;
4792 esac
4793 RANLIB=$ac_ct_RANLIB
4795 else
4796 RANLIB="$ac_cv_prog_RANLIB"
4799 test -z "$RANLIB" && RANLIB=:
4806 # Determine commands to create old-style static archives.
4807 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4808 old_postinstall_cmds='chmod 644 $oldlib'
4809 old_postuninstall_cmds=
4811 if test -n "$RANLIB"; then
4812 case $host_os in
4813 openbsd*)
4814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4819 esac
4820 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4856 # If no C compiler was specified, use CC.
4857 LTCC=${LTCC-"$CC"}
4859 # If no C compiler flags were specified, use CFLAGS.
4860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4862 # Allow CC to be a program name with arguments.
4863 compiler=$CC
4866 # Check for command to grab the raw symbol name followed by C symbol from nm.
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4868 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4869 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4873 # These are sane defaults that work on at least a few old systems.
4874 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4876 # Character class describing NM global symbol codes.
4877 symcode='[BCDEGRST]'
4879 # Regexp to match symbols that can be accessed directly from C.
4880 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4882 # Define system-specific variables.
4883 case $host_os in
4884 aix*)
4885 symcode='[BCDT]'
4887 cygwin* | mingw* | pw32* | cegcc*)
4888 symcode='[ABCDGISTW]'
4890 hpux*)
4891 if test "$host_cpu" = ia64; then
4892 symcode='[ABCDEGRST]'
4895 irix* | nonstopux*)
4896 symcode='[BCDEGRST]'
4898 osf*)
4899 symcode='[BCDEGQRST]'
4901 solaris*)
4902 symcode='[BDRT]'
4904 sco3.2v5*)
4905 symcode='[DT]'
4907 sysv4.2uw2*)
4908 symcode='[DT]'
4910 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4911 symcode='[ABDT]'
4913 sysv4)
4914 symcode='[DFNSTU]'
4916 esac
4918 # If we're using GNU nm, then use its standard symbol codes.
4919 case `$NM -V 2>&1` in
4920 *GNU* | *'with BFD'*)
4921 symcode='[ABCDGIRSTW]' ;;
4922 esac
4924 # Transform an extracted symbol line into a proper C declaration.
4925 # Some systems (esp. on ia64) link data and code symbols differently,
4926 # so use this general approach.
4927 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4929 # Transform an extracted symbol line into symbol name and symbol address
4930 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4931 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'"
4933 # Handle CRLF in mingw tool chain
4934 opt_cr=
4935 case $build_os in
4936 mingw*)
4937 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4939 esac
4941 # Try without a prefix underscore, then with it.
4942 for ac_symprfx in "" "_"; do
4944 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4945 symxfrm="\\1 $ac_symprfx\\2 \\2"
4947 # Write the raw and C identifiers.
4948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4949 # Fake it for dumpbin and say T for any non-static function
4950 # and D for any global variable.
4951 # Also find C++ and __fastcall symbols from MSVC++,
4952 # which start with @ or ?.
4953 lt_cv_sys_global_symbol_pipe="$AWK '"\
4954 " {last_section=section; section=\$ 3};"\
4955 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4956 " \$ 0!~/External *\|/{next};"\
4957 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4958 " {if(hide[section]) next};"\
4959 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4960 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4961 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4962 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4963 " ' prfx=^$ac_symprfx"
4964 else
4965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4968 # Check to see that the pipe works correctly.
4969 pipe_works=no
4971 rm -f conftest*
4972 cat > conftest.$ac_ext <<_LT_EOF
4973 #ifdef __cplusplus
4974 extern "C" {
4975 #endif
4976 char nm_test_var;
4977 void nm_test_func(void);
4978 void nm_test_func(void){}
4979 #ifdef __cplusplus
4981 #endif
4982 int main(){nm_test_var='a';nm_test_func();return(0);}
4983 _LT_EOF
4985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4986 (eval $ac_compile) 2>&5
4987 ac_status=$?
4988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then
4990 # Now try to grab the symbols.
4991 nlist=conftest.nm
4992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4993 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4994 ac_status=$?
4995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; } && test -s "$nlist"; then
4997 # Try sorting and uniquifying the output.
4998 if sort "$nlist" | uniq > "$nlist"T; then
4999 mv -f "$nlist"T "$nlist"
5000 else
5001 rm -f "$nlist"T
5004 # Make sure that we snagged all the symbols we need.
5005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5007 cat <<_LT_EOF > conftest.$ac_ext
5008 #ifdef __cplusplus
5009 extern "C" {
5010 #endif
5012 _LT_EOF
5013 # Now generate the symbol file.
5014 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5016 cat <<_LT_EOF >> conftest.$ac_ext
5018 /* The mapping between symbol names and symbols. */
5019 const struct {
5020 const char *name;
5021 void *address;
5023 lt__PROGRAM__LTX_preloaded_symbols[] =
5025 { "@PROGRAM@", (void *) 0 },
5026 _LT_EOF
5027 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5028 cat <<\_LT_EOF >> conftest.$ac_ext
5029 {0, (void *) 0}
5032 /* This works around a problem in FreeBSD linker */
5033 #ifdef FREEBSD_WORKAROUND
5034 static const void *lt_preloaded_setup() {
5035 return lt__PROGRAM__LTX_preloaded_symbols;
5037 #endif
5039 #ifdef __cplusplus
5041 #endif
5042 _LT_EOF
5043 # Now try linking the two files.
5044 mv conftest.$ac_objext conftstm.$ac_objext
5045 lt_save_LIBS="$LIBS"
5046 lt_save_CFLAGS="$CFLAGS"
5047 LIBS="conftstm.$ac_objext"
5048 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5050 (eval $ac_link) 2>&5
5051 ac_status=$?
5052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5053 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5054 pipe_works=yes
5056 LIBS="$lt_save_LIBS"
5057 CFLAGS="$lt_save_CFLAGS"
5058 else
5059 echo "cannot find nm_test_func in $nlist" >&5
5061 else
5062 echo "cannot find nm_test_var in $nlist" >&5
5064 else
5065 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5067 else
5068 echo "$progname: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5071 rm -rf conftest* conftst*
5073 # Do not use the global_symbol_pipe unless it works.
5074 if test "$pipe_works" = yes; then
5075 break
5076 else
5077 lt_cv_sys_global_symbol_pipe=
5079 done
5083 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5084 lt_cv_sys_global_symbol_to_cdecl=
5086 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5088 $as_echo "failed" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5091 $as_echo "ok" >&6; }
5116 # Check whether --enable-libtool-lock was given.
5117 if test "${enable_libtool_lock+set}" = set; then :
5118 enableval=$enable_libtool_lock;
5121 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5123 # Some flags need to be propagated to the compiler or linker for good
5124 # libtool support.
5125 case $host in
5126 ia64-*-hpux*)
5127 # Find out which ABI we are using.
5128 echo 'int i;' > conftest.$ac_ext
5129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5130 (eval $ac_compile) 2>&5
5131 ac_status=$?
5132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5133 test $ac_status = 0; }; then
5134 case `/usr/bin/file conftest.$ac_objext` in
5135 *ELF-32*)
5136 HPUX_IA64_MODE="32"
5138 *ELF-64*)
5139 HPUX_IA64_MODE="64"
5141 esac
5143 rm -rf conftest*
5145 *-*-irix6*)
5146 # Find out which ABI we are using.
5147 echo '#line 5147 "configure"' > conftest.$ac_ext
5148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5149 (eval $ac_compile) 2>&5
5150 ac_status=$?
5151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 test $ac_status = 0; }; then
5153 if test "$lt_cv_prog_gnu_ld" = yes; then
5154 case `/usr/bin/file conftest.$ac_objext` in
5155 *32-bit*)
5156 LD="${LD-ld} -melf32bsmip"
5158 *N32*)
5159 LD="${LD-ld} -melf32bmipn32"
5161 *64-bit*)
5162 LD="${LD-ld} -melf64bmip"
5164 esac
5165 else
5166 case `/usr/bin/file conftest.$ac_objext` in
5167 *32-bit*)
5168 LD="${LD-ld} -32"
5170 *N32*)
5171 LD="${LD-ld} -n32"
5173 *64-bit*)
5174 LD="${LD-ld} -64"
5176 esac
5179 rm -rf conftest*
5182 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5183 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5184 # Find out which ABI we are using.
5185 echo 'int i;' > conftest.$ac_ext
5186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5187 (eval $ac_compile) 2>&5
5188 ac_status=$?
5189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190 test $ac_status = 0; }; then
5191 case `/usr/bin/file conftest.o` in
5192 *32-bit*)
5193 case $host in
5194 x86_64-*kfreebsd*-gnu)
5195 LD="${LD-ld} -m elf_i386_fbsd"
5197 x86_64-*linux*)
5198 LD="${LD-ld} -m elf_i386"
5200 ppc64-*linux*|powerpc64-*linux*)
5201 LD="${LD-ld} -m elf32ppclinux"
5203 s390x-*linux*)
5204 LD="${LD-ld} -m elf_s390"
5206 sparc64-*linux*)
5207 LD="${LD-ld} -m elf32_sparc"
5209 esac
5211 *64-bit*)
5212 case $host in
5213 x86_64-*kfreebsd*-gnu)
5214 LD="${LD-ld} -m elf_x86_64_fbsd"
5216 x86_64-*linux*)
5217 LD="${LD-ld} -m elf_x86_64"
5219 ppc*-*linux*|powerpc*-*linux*)
5220 LD="${LD-ld} -m elf64ppc"
5222 s390*-*linux*|s390*-*tpf*)
5223 LD="${LD-ld} -m elf64_s390"
5225 sparc*-*linux*)
5226 LD="${LD-ld} -m elf64_sparc"
5228 esac
5230 esac
5232 rm -rf conftest*
5235 *-*-sco3.2v5*)
5236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5237 SAVE_CFLAGS="$CFLAGS"
5238 CFLAGS="$CFLAGS -belf"
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5240 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5241 if ${lt_cv_cc_needs_belf+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 ac_ext=c
5245 ac_cpp='$CPP $CPPFLAGS'
5246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 lt_cv_cc_needs_belf=yes
5263 else
5264 lt_cv_cc_needs_belf=no
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268 ac_ext=c
5269 ac_cpp='$CPP $CPPFLAGS'
5270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5276 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5277 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5278 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5279 CFLAGS="$SAVE_CFLAGS"
5282 sparc*-*solaris*)
5283 # Find out which ABI we are using.
5284 echo 'int i;' > conftest.$ac_ext
5285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5286 (eval $ac_compile) 2>&5
5287 ac_status=$?
5288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5289 test $ac_status = 0; }; then
5290 case `/usr/bin/file conftest.o` in
5291 *64-bit*)
5292 case $lt_cv_prog_gnu_ld in
5293 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5296 LD="${LD-ld} -64"
5299 esac
5301 esac
5303 rm -rf conftest*
5305 esac
5307 need_locks="$enable_libtool_lock"
5310 case $host_os in
5311 rhapsody* | darwin*)
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$DSYMUTIL"; then
5321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5336 IFS=$as_save_IFS
5340 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5341 if test -n "$DSYMUTIL"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5343 $as_echo "$DSYMUTIL" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5351 if test -z "$ac_cv_prog_DSYMUTIL"; then
5352 ac_ct_DSYMUTIL=$DSYMUTIL
5353 # Extract the first word of "dsymutil", so it can be a program name with args.
5354 set dummy dsymutil; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$ac_ct_DSYMUTIL"; then
5361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5374 done
5375 done
5376 IFS=$as_save_IFS
5380 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5381 if test -n "$ac_ct_DSYMUTIL"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5383 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5389 if test "x$ac_ct_DSYMUTIL" = x; then
5390 DSYMUTIL=":"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398 DSYMUTIL=$ac_ct_DSYMUTIL
5400 else
5401 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5406 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_prog_NMEDIT+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$NMEDIT"; then
5413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5432 NMEDIT=$ac_cv_prog_NMEDIT
5433 if test -n "$NMEDIT"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5435 $as_echo "$NMEDIT" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5443 if test -z "$ac_cv_prog_NMEDIT"; then
5444 ac_ct_NMEDIT=$NMEDIT
5445 # Extract the first word of "nmedit", so it can be a program name with args.
5446 set dummy nmedit; ac_word=$2
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5448 $as_echo_n "checking for $ac_word... " >&6; }
5449 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5450 $as_echo_n "(cached) " >&6
5451 else
5452 if test -n "$ac_ct_NMEDIT"; then
5453 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5454 else
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464 break 2
5466 done
5467 done
5468 IFS=$as_save_IFS
5472 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5473 if test -n "$ac_ct_NMEDIT"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5475 $as_echo "$ac_ct_NMEDIT" >&6; }
5476 else
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5481 if test "x$ac_ct_NMEDIT" = x; then
5482 NMEDIT=":"
5483 else
5484 case $cross_compiling:$ac_tool_warned in
5485 yes:)
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5488 ac_tool_warned=yes ;;
5489 esac
5490 NMEDIT=$ac_ct_NMEDIT
5492 else
5493 NMEDIT="$ac_cv_prog_NMEDIT"
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5498 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_LIPO+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$LIPO"; then
5505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5524 LIPO=$ac_cv_prog_LIPO
5525 if test -n "$LIPO"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5527 $as_echo "$LIPO" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5535 if test -z "$ac_cv_prog_LIPO"; then
5536 ac_ct_LIPO=$LIPO
5537 # Extract the first word of "lipo", so it can be a program name with args.
5538 set dummy lipo; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 if test -n "$ac_ct_LIPO"; then
5545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554 ac_cv_prog_ac_ct_LIPO="lipo"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5558 done
5559 done
5560 IFS=$as_save_IFS
5564 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5565 if test -n "$ac_ct_LIPO"; then
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5567 $as_echo "$ac_ct_LIPO" >&6; }
5568 else
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5573 if test "x$ac_ct_LIPO" = x; then
5574 LIPO=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577 yes:)
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5580 ac_tool_warned=yes ;;
5581 esac
5582 LIPO=$ac_ct_LIPO
5584 else
5585 LIPO="$ac_cv_prog_LIPO"
5588 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5590 set dummy ${ac_tool_prefix}otool; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_OTOOL+:} false; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test -n "$OTOOL"; then
5597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5598 else
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 break 2
5610 done
5611 done
5612 IFS=$as_save_IFS
5616 OTOOL=$ac_cv_prog_OTOOL
5617 if test -n "$OTOOL"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5619 $as_echo "$OTOOL" >&6; }
5620 else
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5627 if test -z "$ac_cv_prog_OTOOL"; then
5628 ac_ct_OTOOL=$OTOOL
5629 # Extract the first word of "otool", so it can be a program name with args.
5630 set dummy otool; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5634 $as_echo_n "(cached) " >&6
5635 else
5636 if test -n "$ac_ct_OTOOL"; then
5637 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5646 ac_cv_prog_ac_ct_OTOOL="otool"
5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5650 done
5651 done
5652 IFS=$as_save_IFS
5656 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5657 if test -n "$ac_ct_OTOOL"; then
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5659 $as_echo "$ac_ct_OTOOL" >&6; }
5660 else
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5665 if test "x$ac_ct_OTOOL" = x; then
5666 OTOOL=":"
5667 else
5668 case $cross_compiling:$ac_tool_warned in
5669 yes:)
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5672 ac_tool_warned=yes ;;
5673 esac
5674 OTOOL=$ac_ct_OTOOL
5676 else
5677 OTOOL="$ac_cv_prog_OTOOL"
5680 if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5682 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_prog_OTOOL64+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 if test -n "$OTOOL64"; then
5689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5690 else
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5702 done
5703 done
5704 IFS=$as_save_IFS
5708 OTOOL64=$ac_cv_prog_OTOOL64
5709 if test -n "$OTOOL64"; then
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5711 $as_echo "$OTOOL64" >&6; }
5712 else
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5714 $as_echo "no" >&6; }
5719 if test -z "$ac_cv_prog_OTOOL64"; then
5720 ac_ct_OTOOL64=$OTOOL64
5721 # Extract the first word of "otool64", so it can be a program name with args.
5722 set dummy otool64; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 if test -n "$ac_ct_OTOOL64"; then
5729 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5730 else
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732 for as_dir in $PATH
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_ac_ct_OTOOL64="otool64"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 break 2
5742 done
5743 done
5744 IFS=$as_save_IFS
5748 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5749 if test -n "$ac_ct_OTOOL64"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5751 $as_echo "$ac_ct_OTOOL64" >&6; }
5752 else
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5757 if test "x$ac_ct_OTOOL64" = x; then
5758 OTOOL64=":"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761 yes:)
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5764 ac_tool_warned=yes ;;
5765 esac
5766 OTOOL64=$ac_ct_OTOOL64
5768 else
5769 OTOOL64="$ac_cv_prog_OTOOL64"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5799 $as_echo_n "checking for -single_module linker flag... " >&6; }
5800 if ${lt_cv_apple_cc_single_mod+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 lt_cv_apple_cc_single_mod=no
5804 if test -z "${LT_MULTI_MODULE}"; then
5805 # By default we will add the -single_module flag. You can override
5806 # by either setting the environment variable LT_MULTI_MODULE
5807 # non-empty at configure time, or by adding -multi_module to the
5808 # link flags.
5809 rm -rf libconftest.dylib*
5810 echo "int foo(void){return 1;}" > conftest.c
5811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5812 -dynamiclib -Wl,-single_module conftest.c" >&5
5813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5815 _lt_result=$?
5816 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5817 lt_cv_apple_cc_single_mod=yes
5818 else
5819 cat conftest.err >&5
5821 rm -rf libconftest.dylib*
5822 rm -f conftest.*
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5828 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5829 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 lt_cv_ld_exported_symbols_list=no
5833 save_LDFLAGS=$LDFLAGS
5834 echo "_main" > conftest.sym
5835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5840 main ()
5844 return 0;
5846 _ACEOF
5847 if ac_fn_c_try_link "$LINENO"; then :
5848 lt_cv_ld_exported_symbols_list=yes
5849 else
5850 lt_cv_ld_exported_symbols_list=no
5852 rm -f core conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
5854 LDFLAGS="$save_LDFLAGS"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5858 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5859 case $host_os in
5860 rhapsody* | darwin1.[012])
5861 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5862 darwin1.*)
5863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5864 darwin*) # darwin 5.x on
5865 # if running on 10.5 or later, the deployment target defaults
5866 # to the OS version, if on x86, and 10.4, the deployment
5867 # target defaults to 10.4. Don't you love it?
5868 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5869 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5870 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5871 10.[012]*)
5872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5873 10.*)
5874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5875 esac
5877 esac
5878 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5879 _lt_dar_single_mod='$single_module'
5881 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5882 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5883 else
5884 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5886 if test "$DSYMUTIL" != ":"; then
5887 _lt_dsymutil='~$DSYMUTIL $lib || :'
5888 else
5889 _lt_dsymutil=
5892 esac
5894 ac_ext=c
5895 ac_cpp='$CPP $CPPFLAGS'
5896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5900 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5901 # On Suns, sometimes $CPP names a directory.
5902 if test -n "$CPP" && test -d "$CPP"; then
5903 CPP=
5905 if test -z "$CPP"; then
5906 if ${ac_cv_prog_CPP+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 # Double quotes because CPP needs to be expanded
5910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5912 ac_preproc_ok=false
5913 for ac_c_preproc_warn_flag in '' yes
5915 # Use a header file that comes with gcc, so configuring glibc
5916 # with a fresh cross-compiler works.
5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 # <limits.h> exists even on freestanding compilers.
5919 # On the NeXT, cc -E runs the code through the compiler's parser,
5920 # not just through cpp. "Syntax error" is here to catch this case.
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 #ifdef __STDC__
5924 # include <limits.h>
5925 #else
5926 # include <assert.h>
5927 #endif
5928 Syntax error
5929 _ACEOF
5930 if ac_fn_c_try_cpp "$LINENO"; then :
5932 else
5933 # Broken: fails on valid input.
5934 continue
5936 rm -f conftest.err conftest.i conftest.$ac_ext
5938 # OK, works on sane cases. Now check whether nonexistent headers
5939 # can be detected and how.
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 #include <ac_nonexistent.h>
5943 _ACEOF
5944 if ac_fn_c_try_cpp "$LINENO"; then :
5945 # Broken: success on invalid input.
5946 continue
5947 else
5948 # Passes both tests.
5949 ac_preproc_ok=:
5950 break
5952 rm -f conftest.err conftest.i conftest.$ac_ext
5954 done
5955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5956 rm -f conftest.i conftest.err conftest.$ac_ext
5957 if $ac_preproc_ok; then :
5958 break
5961 done
5962 ac_cv_prog_CPP=$CPP
5965 CPP=$ac_cv_prog_CPP
5966 else
5967 ac_cv_prog_CPP=$CPP
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5970 $as_echo "$CPP" >&6; }
5971 ac_preproc_ok=false
5972 for ac_c_preproc_warn_flag in '' yes
5974 # Use a header file that comes with gcc, so configuring glibc
5975 # with a fresh cross-compiler works.
5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977 # <limits.h> exists even on freestanding compilers.
5978 # On the NeXT, cc -E runs the code through the compiler's parser,
5979 # not just through cpp. "Syntax error" is here to catch this case.
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 #ifdef __STDC__
5983 # include <limits.h>
5984 #else
5985 # include <assert.h>
5986 #endif
5987 Syntax error
5988 _ACEOF
5989 if ac_fn_c_try_cpp "$LINENO"; then :
5991 else
5992 # Broken: fails on valid input.
5993 continue
5995 rm -f conftest.err conftest.i conftest.$ac_ext
5997 # OK, works on sane cases. Now check whether nonexistent headers
5998 # can be detected and how.
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 #include <ac_nonexistent.h>
6002 _ACEOF
6003 if ac_fn_c_try_cpp "$LINENO"; then :
6004 # Broken: success on invalid input.
6005 continue
6006 else
6007 # Passes both tests.
6008 ac_preproc_ok=:
6009 break
6011 rm -f conftest.err conftest.i conftest.$ac_ext
6013 done
6014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6015 rm -f conftest.i conftest.err conftest.$ac_ext
6016 if $ac_preproc_ok; then :
6018 else
6019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6021 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6022 See \`config.log' for more details" "$LINENO" 5; }
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6033 $as_echo_n "checking for ANSI C header files... " >&6; }
6034 if ${ac_cv_header_stdc+:} false; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 #include <stdlib.h>
6040 #include <stdarg.h>
6041 #include <string.h>
6042 #include <float.h>
6045 main ()
6049 return 0;
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 ac_cv_header_stdc=yes
6054 else
6055 ac_cv_header_stdc=no
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 if test $ac_cv_header_stdc = yes; then
6060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <string.h>
6065 _ACEOF
6066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6067 $EGREP "memchr" >/dev/null 2>&1; then :
6069 else
6070 ac_cv_header_stdc=no
6072 rm -f conftest*
6076 if test $ac_cv_header_stdc = yes; then
6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #include <stdlib.h>
6082 _ACEOF
6083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6084 $EGREP "free" >/dev/null 2>&1; then :
6086 else
6087 ac_cv_header_stdc=no
6089 rm -f conftest*
6093 if test $ac_cv_header_stdc = yes; then
6094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6095 if test "$cross_compiling" = yes; then :
6097 else
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #include <ctype.h>
6101 #include <stdlib.h>
6102 #if ((' ' & 0x0FF) == 0x020)
6103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6105 #else
6106 # define ISLOWER(c) \
6107 (('a' <= (c) && (c) <= 'i') \
6108 || ('j' <= (c) && (c) <= 'r') \
6109 || ('s' <= (c) && (c) <= 'z'))
6110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111 #endif
6113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6115 main ()
6117 int i;
6118 for (i = 0; i < 256; i++)
6119 if (XOR (islower (i), ISLOWER (i))
6120 || toupper (i) != TOUPPER (i))
6121 return 2;
6122 return 0;
6124 _ACEOF
6125 if ac_fn_c_try_run "$LINENO"; then :
6127 else
6128 ac_cv_header_stdc=no
6130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6131 conftest.$ac_objext conftest.beam conftest.$ac_ext
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6137 $as_echo "$ac_cv_header_stdc" >&6; }
6138 if test $ac_cv_header_stdc = yes; then
6140 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6144 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6145 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6146 inttypes.h stdint.h unistd.h
6147 do :
6148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6149 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6151 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6152 cat >>confdefs.h <<_ACEOF
6153 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6154 _ACEOF
6158 done
6161 for ac_header in dlfcn.h
6162 do :
6163 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6165 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6166 cat >>confdefs.h <<_ACEOF
6167 #define HAVE_DLFCN_H 1
6168 _ACEOF
6172 done
6176 # Set options
6180 enable_dlopen=no
6183 enable_win32_dll=no
6186 # Check whether --enable-shared was given.
6187 if test "${enable_shared+set}" = set; then :
6188 enableval=$enable_shared; p=${PACKAGE-default}
6189 case $enableval in
6190 yes) enable_shared=yes ;;
6191 no) enable_shared=no ;;
6193 enable_shared=no
6194 # Look at the argument we got. We use all the common list separators.
6195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6196 for pkg in $enableval; do
6197 IFS="$lt_save_ifs"
6198 if test "X$pkg" = "X$p"; then
6199 enable_shared=yes
6201 done
6202 IFS="$lt_save_ifs"
6204 esac
6205 else
6206 enable_shared=yes
6217 # Check whether --enable-static was given.
6218 if test "${enable_static+set}" = set; then :
6219 enableval=$enable_static; p=${PACKAGE-default}
6220 case $enableval in
6221 yes) enable_static=yes ;;
6222 no) enable_static=no ;;
6224 enable_static=no
6225 # Look at the argument we got. We use all the common list separators.
6226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6227 for pkg in $enableval; do
6228 IFS="$lt_save_ifs"
6229 if test "X$pkg" = "X$p"; then
6230 enable_static=yes
6232 done
6233 IFS="$lt_save_ifs"
6235 esac
6236 else
6237 enable_static=yes
6249 # Check whether --with-pic was given.
6250 if test "${with_pic+set}" = set; then :
6251 withval=$with_pic; pic_mode="$withval"
6252 else
6253 pic_mode=default
6257 test -z "$pic_mode" && pic_mode=default
6265 # Check whether --enable-fast-install was given.
6266 if test "${enable_fast_install+set}" = set; then :
6267 enableval=$enable_fast_install; p=${PACKAGE-default}
6268 case $enableval in
6269 yes) enable_fast_install=yes ;;
6270 no) enable_fast_install=no ;;
6272 enable_fast_install=no
6273 # Look at the argument we got. We use all the common list separators.
6274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6275 for pkg in $enableval; do
6276 IFS="$lt_save_ifs"
6277 if test "X$pkg" = "X$p"; then
6278 enable_fast_install=yes
6280 done
6281 IFS="$lt_save_ifs"
6283 esac
6284 else
6285 enable_fast_install=yes
6298 # This can be used to rebuild libtool when needed
6299 LIBTOOL_DEPS="$ltmain"
6301 # Always use our own libtool.
6302 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6328 test -z "$LN_S" && LN_S="ln -s"
6343 if test -n "${ZSH_VERSION+set}" ; then
6344 setopt NO_GLOB_SUBST
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6348 $as_echo_n "checking for objdir... " >&6; }
6349 if ${lt_cv_objdir+:} false; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 rm -f .libs 2>/dev/null
6353 mkdir .libs 2>/dev/null
6354 if test -d .libs; then
6355 lt_cv_objdir=.libs
6356 else
6357 # MS-DOS does not allow filenames that begin with a dot.
6358 lt_cv_objdir=_libs
6360 rmdir .libs 2>/dev/null
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6363 $as_echo "$lt_cv_objdir" >&6; }
6364 objdir=$lt_cv_objdir
6370 cat >>confdefs.h <<_ACEOF
6371 #define LT_OBJDIR "$lt_cv_objdir/"
6372 _ACEOF
6390 case $host_os in
6391 aix3*)
6392 # AIX sometimes has problems with the GCC collect2 program. For some
6393 # reason, if we set the COLLECT_NAMES environment variable, the problems
6394 # vanish in a puff of smoke.
6395 if test "X${COLLECT_NAMES+set}" != Xset; then
6396 COLLECT_NAMES=
6397 export COLLECT_NAMES
6400 esac
6402 # Sed substitution that helps us do robust quoting. It backslashifies
6403 # metacharacters that are still active within double-quoted strings.
6404 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6406 # Same as above, but do not quote variable references.
6407 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6409 # Sed substitution to delay expansion of an escaped shell variable in a
6410 # double_quote_subst'ed string.
6411 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6413 # Sed substitution to delay expansion of an escaped single quote.
6414 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6416 # Sed substitution to avoid accidental globbing in evaled expressions
6417 no_glob_subst='s/\*/\\\*/g'
6419 # Global variables:
6420 ofile=libtool
6421 can_build_shared=yes
6423 # All known linkers require a `.a' archive for static linking (except MSVC,
6424 # which needs '.lib').
6425 libext=a
6427 with_gnu_ld="$lt_cv_prog_gnu_ld"
6429 old_CC="$CC"
6430 old_CFLAGS="$CFLAGS"
6432 # Set sane defaults for various variables
6433 test -z "$CC" && CC=cc
6434 test -z "$LTCC" && LTCC=$CC
6435 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6436 test -z "$LD" && LD=ld
6437 test -z "$ac_objext" && ac_objext=o
6439 for cc_temp in $compiler""; do
6440 case $cc_temp in
6441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6443 \-*) ;;
6444 *) break;;
6445 esac
6446 done
6447 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6450 # Only perform the check for file, if the check method requires it
6451 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6452 case $deplibs_check_method in
6453 file_magic*)
6454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6456 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6457 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 case $MAGIC_CMD in
6461 [\\/*] | ?:[\\/]*)
6462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6465 lt_save_MAGIC_CMD="$MAGIC_CMD"
6466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6468 for ac_dir in $ac_dummy; do
6469 IFS="$lt_save_ifs"
6470 test -z "$ac_dir" && ac_dir=.
6471 if test -f $ac_dir/${ac_tool_prefix}file; then
6472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6473 if test -n "$file_magic_test_file"; then
6474 case $deplibs_check_method in
6475 "file_magic "*)
6476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6479 $EGREP "$file_magic_regex" > /dev/null; then
6481 else
6482 cat <<_LT_EOF 1>&2
6484 *** Warning: the command libtool uses to detect shared libraries,
6485 *** $file_magic_cmd, produces output that libtool cannot recognize.
6486 *** The result is that libtool may fail to recognize shared libraries
6487 *** as such. This will affect the creation of libtool libraries that
6488 *** depend on shared libraries, but programs linked with such libtool
6489 *** libraries will work regardless of this problem. Nevertheless, you
6490 *** may want to report the problem to your system manager and/or to
6491 *** bug-libtool@gnu.org
6493 _LT_EOF
6494 fi ;;
6495 esac
6497 break
6499 done
6500 IFS="$lt_save_ifs"
6501 MAGIC_CMD="$lt_save_MAGIC_CMD"
6503 esac
6506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6507 if test -n "$MAGIC_CMD"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6509 $as_echo "$MAGIC_CMD" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6519 if test -z "$lt_cv_path_MAGIC_CMD"; then
6520 if test -n "$ac_tool_prefix"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6522 $as_echo_n "checking for file... " >&6; }
6523 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 case $MAGIC_CMD in
6527 [\\/*] | ?:[\\/]*)
6528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6531 lt_save_MAGIC_CMD="$MAGIC_CMD"
6532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6534 for ac_dir in $ac_dummy; do
6535 IFS="$lt_save_ifs"
6536 test -z "$ac_dir" && ac_dir=.
6537 if test -f $ac_dir/file; then
6538 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6539 if test -n "$file_magic_test_file"; then
6540 case $deplibs_check_method in
6541 "file_magic "*)
6542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6545 $EGREP "$file_magic_regex" > /dev/null; then
6547 else
6548 cat <<_LT_EOF 1>&2
6550 *** Warning: the command libtool uses to detect shared libraries,
6551 *** $file_magic_cmd, produces output that libtool cannot recognize.
6552 *** The result is that libtool may fail to recognize shared libraries
6553 *** as such. This will affect the creation of libtool libraries that
6554 *** depend on shared libraries, but programs linked with such libtool
6555 *** libraries will work regardless of this problem. Nevertheless, you
6556 *** may want to report the problem to your system manager and/or to
6557 *** bug-libtool@gnu.org
6559 _LT_EOF
6560 fi ;;
6561 esac
6563 break
6565 done
6566 IFS="$lt_save_ifs"
6567 MAGIC_CMD="$lt_save_MAGIC_CMD"
6569 esac
6572 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6573 if test -n "$MAGIC_CMD"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6575 $as_echo "$MAGIC_CMD" >&6; }
6576 else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578 $as_echo "no" >&6; }
6582 else
6583 MAGIC_CMD=:
6589 esac
6591 # Use C for the default configuration in the libtool script
6593 lt_save_CC="$CC"
6594 ac_ext=c
6595 ac_cpp='$CPP $CPPFLAGS'
6596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601 # Source file extension for C test sources.
6602 ac_ext=c
6604 # Object file extension for compiled C test sources.
6605 objext=o
6606 objext=$objext
6608 # Code to be used in simple compile tests
6609 lt_simple_compile_test_code="int some_variable = 0;"
6611 # Code to be used in simple link tests
6612 lt_simple_link_test_code='int main(){return(0);}'
6620 # If no C compiler was specified, use CC.
6621 LTCC=${LTCC-"$CC"}
6623 # If no C compiler flags were specified, use CFLAGS.
6624 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6626 # Allow CC to be a program name with arguments.
6627 compiler=$CC
6629 # Save the default compiler, since it gets overwritten when the other
6630 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6631 compiler_DEFAULT=$CC
6633 # save warnings/boilerplate of simple test code
6634 ac_outfile=conftest.$ac_objext
6635 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6637 _lt_compiler_boilerplate=`cat conftest.err`
6638 $RM conftest*
6640 ac_outfile=conftest.$ac_objext
6641 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6643 _lt_linker_boilerplate=`cat conftest.err`
6644 $RM -r conftest*
6647 if test -n "$compiler"; then
6649 lt_prog_compiler_no_builtin_flag=
6651 if test "$GCC" = yes; then
6652 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6655 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6656 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 lt_cv_prog_compiler_rtti_exceptions=no
6660 ac_outfile=conftest.$ac_objext
6661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6662 lt_compiler_flag="-fno-rtti -fno-exceptions"
6663 # Insert the option either (1) after the last *FLAGS variable, or
6664 # (2) before a word containing "conftest.", or (3) at the end.
6665 # Note that $ac_compile itself does not contain backslashes and begins
6666 # with a dollar sign (not a hyphen), so the echo should work correctly.
6667 # The option is referenced via a variable to avoid confusing sed.
6668 lt_compile=`echo "$ac_compile" | $SED \
6669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6671 -e 's:$: $lt_compiler_flag:'`
6672 (eval echo "\"\$as_me:6672: $lt_compile\"" >&5)
6673 (eval "$lt_compile" 2>conftest.err)
6674 ac_status=$?
6675 cat conftest.err >&5
6676 echo "$as_me:6676: \$? = $ac_status" >&5
6677 if (exit $ac_status) && test -s "$ac_outfile"; then
6678 # The compiler can only warn and ignore the option if not recognized
6679 # So say no if there are warnings other than the usual output.
6680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6683 lt_cv_prog_compiler_rtti_exceptions=yes
6686 $RM conftest*
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6690 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6694 else
6705 lt_prog_compiler_wl=
6706 lt_prog_compiler_pic=
6707 lt_prog_compiler_static=
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6710 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6712 if test "$GCC" = yes; then
6713 lt_prog_compiler_wl='-Wl,'
6714 lt_prog_compiler_static='-static'
6716 case $host_os in
6717 aix*)
6718 # All AIX code is PIC.
6719 if test "$host_cpu" = ia64; then
6720 # AIX 5 now supports IA64 processor
6721 lt_prog_compiler_static='-Bstatic'
6725 amigaos*)
6726 case $host_cpu in
6727 powerpc)
6728 # see comment about AmigaOS4 .so support
6729 lt_prog_compiler_pic='-fPIC'
6731 m68k)
6732 # FIXME: we need at least 68020 code to build shared libraries, but
6733 # adding the `-m68020' flag to GCC prevents building anything better,
6734 # like `-m68040'.
6735 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6737 esac
6740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6741 # PIC is the default for these OSes.
6744 mingw* | cygwin* | pw32* | os2* | cegcc*)
6745 # This hack is so that the source file can tell whether it is being
6746 # built for inclusion in a dll (and should export symbols for example).
6747 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6748 # (--disable-auto-import) libraries
6749 lt_prog_compiler_pic='-DDLL_EXPORT'
6752 darwin* | rhapsody*)
6753 # PIC is the default on this platform
6754 # Common symbols not allowed in MH_DYLIB files
6755 lt_prog_compiler_pic='-fno-common'
6758 hpux*)
6759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6761 # sets the default TLS model and affects inlining.
6762 case $host_cpu in
6763 hppa*64*)
6764 # +Z the default
6767 lt_prog_compiler_pic='-fPIC'
6769 esac
6772 interix[3-9]*)
6773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6774 # Instead, we relocate shared libraries at runtime.
6777 msdosdjgpp*)
6778 # Just because we use GCC doesn't mean we suddenly get shared libraries
6779 # on systems that don't support them.
6780 lt_prog_compiler_can_build_shared=no
6781 enable_shared=no
6784 *nto* | *qnx*)
6785 # QNX uses GNU C++, but need to define -shared option too, otherwise
6786 # it will coredump.
6787 lt_prog_compiler_pic='-fPIC -shared'
6790 sysv4*MP*)
6791 if test -d /usr/nec; then
6792 lt_prog_compiler_pic=-Kconform_pic
6797 lt_prog_compiler_pic='-fPIC'
6799 esac
6800 else
6801 # PORTME Check for flag to pass linker flags through the system compiler.
6802 case $host_os in
6803 aix*)
6804 lt_prog_compiler_wl='-Wl,'
6805 if test "$host_cpu" = ia64; then
6806 # AIX 5 now supports IA64 processor
6807 lt_prog_compiler_static='-Bstatic'
6808 else
6809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6813 mingw* | cygwin* | pw32* | os2* | cegcc*)
6814 # This hack is so that the source file can tell whether it is being
6815 # built for inclusion in a dll (and should export symbols for example).
6816 lt_prog_compiler_pic='-DDLL_EXPORT'
6819 hpux9* | hpux10* | hpux11*)
6820 lt_prog_compiler_wl='-Wl,'
6821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6822 # not for PA HP-UX.
6823 case $host_cpu in
6824 hppa*64*|ia64*)
6825 # +Z the default
6828 lt_prog_compiler_pic='+Z'
6830 esac
6831 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6832 lt_prog_compiler_static='${wl}-a ${wl}archive'
6835 irix5* | irix6* | nonstopux*)
6836 lt_prog_compiler_wl='-Wl,'
6837 # PIC (with -KPIC) is the default.
6838 lt_prog_compiler_static='-non_shared'
6841 linux* | k*bsd*-gnu)
6842 case $cc_basename in
6843 # old Intel for x86_64 which still supported -KPIC.
6844 ecc*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='-KPIC'
6847 lt_prog_compiler_static='-static'
6849 # icc used to be incompatible with GCC.
6850 # ICC 10 doesn't accept -KPIC any more.
6851 icc* | ifort*)
6852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-fPIC'
6854 lt_prog_compiler_static='-static'
6856 # Lahey Fortran 8.1.
6857 lf95*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='--shared'
6860 lt_prog_compiler_static='--static'
6862 pgcc* | pgf77* | pgf90* | pgf95*)
6863 # Portland Group compilers (*not* the Pentium gcc compiler,
6864 # which looks to be a dead project)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-fpic'
6867 lt_prog_compiler_static='-Bstatic'
6869 ccc*)
6870 lt_prog_compiler_wl='-Wl,'
6871 # All Alpha code is PIC.
6872 lt_prog_compiler_static='-non_shared'
6874 xl*)
6875 # IBM XL C 8.0/Fortran 10.1 on PPC
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-qpic'
6878 lt_prog_compiler_static='-qstaticlink'
6881 case `$CC -V 2>&1 | sed 5q` in
6882 *Sun\ C*)
6883 # Sun C 5.9
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6886 lt_prog_compiler_wl='-Wl,'
6888 *Sun\ F*)
6889 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6890 lt_prog_compiler_pic='-KPIC'
6891 lt_prog_compiler_static='-Bstatic'
6892 lt_prog_compiler_wl=''
6894 esac
6896 esac
6899 newsos6)
6900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
6904 *nto* | *qnx*)
6905 # QNX uses GNU C++, but need to define -shared option too, otherwise
6906 # it will coredump.
6907 lt_prog_compiler_pic='-fPIC -shared'
6910 osf3* | osf4* | osf5*)
6911 lt_prog_compiler_wl='-Wl,'
6912 # All OSF/1 code is PIC.
6913 lt_prog_compiler_static='-non_shared'
6916 rdos*)
6917 lt_prog_compiler_static='-non_shared'
6920 solaris*)
6921 lt_prog_compiler_pic='-KPIC'
6922 lt_prog_compiler_static='-Bstatic'
6923 case $cc_basename in
6924 f77* | f90* | f95*)
6925 lt_prog_compiler_wl='-Qoption ld ';;
6927 lt_prog_compiler_wl='-Wl,';;
6928 esac
6931 sunos4*)
6932 lt_prog_compiler_wl='-Qoption ld '
6933 lt_prog_compiler_pic='-PIC'
6934 lt_prog_compiler_static='-Bstatic'
6937 sysv4 | sysv4.2uw2* | sysv4.3*)
6938 lt_prog_compiler_wl='-Wl,'
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
6943 sysv4*MP*)
6944 if test -d /usr/nec ;then
6945 lt_prog_compiler_pic='-Kconform_pic'
6946 lt_prog_compiler_static='-Bstatic'
6950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6951 lt_prog_compiler_wl='-Wl,'
6952 lt_prog_compiler_pic='-KPIC'
6953 lt_prog_compiler_static='-Bstatic'
6956 unicos*)
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_can_build_shared=no
6961 uts4*)
6962 lt_prog_compiler_pic='-pic'
6963 lt_prog_compiler_static='-Bstatic'
6967 lt_prog_compiler_can_build_shared=no
6969 esac
6972 case $host_os in
6973 # For platforms which do not support PIC, -DPIC is meaningless:
6974 *djgpp*)
6975 lt_prog_compiler_pic=
6978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6980 esac
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6982 $as_echo "$lt_prog_compiler_pic" >&6; }
6990 # Check to make sure the PIC flag actually works.
6992 if test -n "$lt_prog_compiler_pic"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6994 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6995 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 lt_cv_prog_compiler_pic_works=no
6999 ac_outfile=conftest.$ac_objext
7000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7002 # Insert the option either (1) after the last *FLAGS variable, or
7003 # (2) before a word containing "conftest.", or (3) at the end.
7004 # Note that $ac_compile itself does not contain backslashes and begins
7005 # with a dollar sign (not a hyphen), so the echo should work correctly.
7006 # The option is referenced via a variable to avoid confusing sed.
7007 lt_compile=`echo "$ac_compile" | $SED \
7008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7010 -e 's:$: $lt_compiler_flag:'`
7011 (eval echo "\"\$as_me:7011: $lt_compile\"" >&5)
7012 (eval "$lt_compile" 2>conftest.err)
7013 ac_status=$?
7014 cat conftest.err >&5
7015 echo "$as_me:7015: \$? = $ac_status" >&5
7016 if (exit $ac_status) && test -s "$ac_outfile"; then
7017 # The compiler can only warn and ignore the option if not recognized
7018 # So say no if there are warnings other than the usual output.
7019 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7022 lt_cv_prog_compiler_pic_works=yes
7025 $RM conftest*
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7029 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7031 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7032 case $lt_prog_compiler_pic in
7033 "" | " "*) ;;
7034 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7035 esac
7036 else
7037 lt_prog_compiler_pic=
7038 lt_prog_compiler_can_build_shared=no
7049 # Check to make sure the static flag actually works.
7051 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7053 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7054 if ${lt_cv_prog_compiler_static_works+:} false; then :
7055 $as_echo_n "(cached) " >&6
7056 else
7057 lt_cv_prog_compiler_static_works=no
7058 save_LDFLAGS="$LDFLAGS"
7059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7062 # The linker can only warn and ignore the option if not recognized
7063 # So say no if there are warnings
7064 if test -s conftest.err; then
7065 # Append any errors to the config.log.
7066 cat conftest.err 1>&5
7067 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7069 if diff conftest.exp conftest.er2 >/dev/null; then
7070 lt_cv_prog_compiler_static_works=yes
7072 else
7073 lt_cv_prog_compiler_static_works=yes
7076 $RM -r conftest*
7077 LDFLAGS="$save_LDFLAGS"
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7081 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7083 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7085 else
7086 lt_prog_compiler_static=
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7096 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7097 if ${lt_cv_prog_compiler_c_o+:} false; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 lt_cv_prog_compiler_c_o=no
7101 $RM -r conftest 2>/dev/null
7102 mkdir conftest
7103 cd conftest
7104 mkdir out
7105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7107 lt_compiler_flag="-o out/conftest2.$ac_objext"
7108 # Insert the option either (1) after the last *FLAGS variable, or
7109 # (2) before a word containing "conftest.", or (3) at the end.
7110 # Note that $ac_compile itself does not contain backslashes and begins
7111 # with a dollar sign (not a hyphen), so the echo should work correctly.
7112 lt_compile=`echo "$ac_compile" | $SED \
7113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7115 -e 's:$: $lt_compiler_flag:'`
7116 (eval echo "\"\$as_me:7116: $lt_compile\"" >&5)
7117 (eval "$lt_compile" 2>out/conftest.err)
7118 ac_status=$?
7119 cat out/conftest.err >&5
7120 echo "$as_me:7120: \$? = $ac_status" >&5
7121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7122 then
7123 # The compiler can only warn and ignore the option if not recognized
7124 # So say no if there are warnings
7125 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7128 lt_cv_prog_compiler_c_o=yes
7131 chmod u+w . 2>&5
7132 $RM conftest*
7133 # SGI C++ compiler will create directory out/ii_files/ for
7134 # template instantiation
7135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7136 $RM out/* && rmdir out
7137 cd ..
7138 $RM -r conftest
7139 $RM conftest*
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7143 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7152 if ${lt_cv_prog_compiler_c_o+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 lt_cv_prog_compiler_c_o=no
7156 $RM -r conftest 2>/dev/null
7157 mkdir conftest
7158 cd conftest
7159 mkdir out
7160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7162 lt_compiler_flag="-o out/conftest2.$ac_objext"
7163 # Insert the option either (1) after the last *FLAGS variable, or
7164 # (2) before a word containing "conftest.", or (3) at the end.
7165 # Note that $ac_compile itself does not contain backslashes and begins
7166 # with a dollar sign (not a hyphen), so the echo should work correctly.
7167 lt_compile=`echo "$ac_compile" | $SED \
7168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7170 -e 's:$: $lt_compiler_flag:'`
7171 (eval echo "\"\$as_me:7171: $lt_compile\"" >&5)
7172 (eval "$lt_compile" 2>out/conftest.err)
7173 ac_status=$?
7174 cat out/conftest.err >&5
7175 echo "$as_me:7175: \$? = $ac_status" >&5
7176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7177 then
7178 # The compiler can only warn and ignore the option if not recognized
7179 # So say no if there are warnings
7180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7183 lt_cv_prog_compiler_c_o=yes
7186 chmod u+w . 2>&5
7187 $RM conftest*
7188 # SGI C++ compiler will create directory out/ii_files/ for
7189 # template instantiation
7190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7191 $RM out/* && rmdir out
7192 cd ..
7193 $RM -r conftest
7194 $RM conftest*
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7198 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7203 hard_links="nottested"
7204 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7205 # do not overwrite the value of need_locks provided by the user
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7207 $as_echo_n "checking if we can lock with hard links... " >&6; }
7208 hard_links=yes
7209 $RM conftest*
7210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7211 touch conftest.a
7212 ln conftest.a conftest.b 2>&5 || hard_links=no
7213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7215 $as_echo "$hard_links" >&6; }
7216 if test "$hard_links" = no; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7218 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7219 need_locks=warn
7221 else
7222 need_locks=no
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7231 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7233 runpath_var=
7234 allow_undefined_flag=
7235 always_export_symbols=no
7236 archive_cmds=
7237 archive_expsym_cmds=
7238 compiler_needs_object=no
7239 enable_shared_with_static_runtimes=no
7240 export_dynamic_flag_spec=
7241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7242 hardcode_automatic=no
7243 hardcode_direct=no
7244 hardcode_direct_absolute=no
7245 hardcode_libdir_flag_spec=
7246 hardcode_libdir_flag_spec_ld=
7247 hardcode_libdir_separator=
7248 hardcode_minus_L=no
7249 hardcode_shlibpath_var=unsupported
7250 inherit_rpath=no
7251 link_all_deplibs=unknown
7252 module_cmds=
7253 module_expsym_cmds=
7254 old_archive_from_new_cmds=
7255 old_archive_from_expsyms_cmds=
7256 thread_safe_flag_spec=
7257 whole_archive_flag_spec=
7258 # include_expsyms should be a list of space-separated symbols to be *always*
7259 # included in the symbol list
7260 include_expsyms=
7261 # exclude_expsyms can be an extended regexp of symbols to exclude
7262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7264 # as well as any symbol that contains `d'.
7265 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7267 # platforms (ab)use it in PIC code, but their linkers get confused if
7268 # the symbol is explicitly referenced. Since portable code cannot
7269 # rely on this symbol name, it's probably fine to never include it in
7270 # preloaded symbol tables.
7271 # Exclude shared library initialization/finalization symbols.
7272 extract_expsyms_cmds=
7274 case $host_os in
7275 cygwin* | mingw* | pw32* | cegcc*)
7276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7277 # When not using gcc, we currently assume that we are using
7278 # Microsoft Visual C++.
7279 if test "$GCC" != yes; then
7280 with_gnu_ld=no
7283 interix*)
7284 # we just hope/assume this is gcc and not c89 (= MSVC++)
7285 with_gnu_ld=yes
7287 openbsd*)
7288 with_gnu_ld=no
7290 esac
7292 ld_shlibs=yes
7293 if test "$with_gnu_ld" = yes; then
7294 # If archive_cmds runs LD, not CC, wlarc should be empty
7295 wlarc='${wl}'
7297 # Set some defaults for GNU ld with shared library support. These
7298 # are reset later if shared libraries are not supported. Putting them
7299 # here allows them to be overridden if necessary.
7300 runpath_var=LD_RUN_PATH
7301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7302 export_dynamic_flag_spec='${wl}--export-dynamic'
7303 # ancient GNU ld didn't support --whole-archive et. al.
7304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7306 else
7307 whole_archive_flag_spec=
7309 supports_anon_versioning=no
7310 case `$LD -v 2>&1` in
7311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7314 *\ 2.11.*) ;; # other 2.11 versions
7315 *) supports_anon_versioning=yes ;;
7316 esac
7318 # See if GNU ld supports shared libraries.
7319 case $host_os in
7320 aix[3-9]*)
7321 # On AIX/PPC, the GNU linker is very broken
7322 if test "$host_cpu" != ia64; then
7323 ld_shlibs=no
7324 cat <<_LT_EOF 1>&2
7326 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7327 *** to be unable to reliably create shared libraries on AIX.
7328 *** Therefore, libtool is disabling shared libraries support. If you
7329 *** really care for shared libraries, you may want to modify your PATH
7330 *** so that a non-GNU linker is found, and then restart.
7332 _LT_EOF
7336 amigaos*)
7337 case $host_cpu in
7338 powerpc)
7339 # see comment about AmigaOS4 .so support
7340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7341 archive_expsym_cmds=''
7343 m68k)
7344 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)'
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_minus_L=yes
7348 esac
7351 beos*)
7352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7353 allow_undefined_flag=unsupported
7354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7355 # support --undefined. This deserves some investigation. FIXME
7356 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357 else
7358 ld_shlibs=no
7362 cygwin* | mingw* | pw32* | cegcc*)
7363 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7364 # as there is no search path for DLLs.
7365 hardcode_libdir_flag_spec='-L$libdir'
7366 allow_undefined_flag=unsupported
7367 always_export_symbols=no
7368 enable_shared_with_static_runtimes=yes
7369 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7372 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7373 # If the export-symbols file already is a .def file (1st line
7374 # is EXPORTS), use it as is; otherwise, prepend...
7375 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7376 cp $export_symbols $output_objdir/$soname.def;
7377 else
7378 echo EXPORTS > $output_objdir/$soname.def;
7379 cat $export_symbols >> $output_objdir/$soname.def;
7381 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7382 else
7383 ld_shlibs=no
7387 interix[3-9]*)
7388 hardcode_direct=no
7389 hardcode_shlibpath_var=no
7390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7391 export_dynamic_flag_spec='${wl}-E'
7392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7393 # Instead, shared libraries are loaded at an image base (0x10000000 by
7394 # default) and relocated if they conflict, which is a slow very memory
7395 # consuming and fragmenting process. To avoid this, we pick a random,
7396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7399 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'
7402 gnu* | linux* | tpf* | k*bsd*-gnu)
7403 tmp_diet=no
7404 if test "$host_os" = linux-dietlibc; then
7405 case $cc_basename in
7406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7407 esac
7409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7410 && test "$tmp_diet" = no
7411 then
7412 tmp_addflag=
7413 tmp_sharedflag='-shared'
7414 case $cc_basename,$host_cpu in
7415 pgcc*) # Portland Group C compiler
7416 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'
7417 tmp_addflag=' $pic_flag'
7419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7420 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'
7421 tmp_addflag=' $pic_flag -Mnomain' ;;
7422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7423 tmp_addflag=' -i_dynamic' ;;
7424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7425 tmp_addflag=' -i_dynamic -nofor_main' ;;
7426 ifc* | ifort*) # Intel Fortran compiler
7427 tmp_addflag=' -nofor_main' ;;
7428 lf95*) # Lahey Fortran 8.1
7429 whole_archive_flag_spec=
7430 tmp_sharedflag='--shared' ;;
7431 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7432 tmp_sharedflag='-qmkshrobj'
7433 tmp_addflag= ;;
7434 esac
7435 case `$CC -V 2>&1 | sed 5q` in
7436 *Sun\ C*) # Sun C 5.9
7437 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'
7438 compiler_needs_object=yes
7439 tmp_sharedflag='-G' ;;
7440 *Sun\ F*) # Sun Fortran 8.3
7441 tmp_sharedflag='-G' ;;
7442 esac
7443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7445 if test "x$supports_anon_versioning" = xyes; then
7446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7448 echo "local: *; };" >> $output_objdir/$libname.ver~
7449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7452 case $cc_basename in
7453 xlf*)
7454 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7455 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7456 hardcode_libdir_flag_spec=
7457 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7458 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7459 if test "x$supports_anon_versioning" = xyes; then
7460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7462 echo "local: *; };" >> $output_objdir/$libname.ver~
7463 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7466 esac
7467 else
7468 ld_shlibs=no
7472 netbsd*)
7473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7474 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7475 wlarc=
7476 else
7477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7482 solaris*)
7483 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7484 ld_shlibs=no
7485 cat <<_LT_EOF 1>&2
7487 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7488 *** create shared libraries on Solaris systems. Therefore, libtool
7489 *** is disabling shared libraries support. We urge you to upgrade GNU
7490 *** binutils to release 2.9.1 or newer. Another option is to modify
7491 *** your PATH or compiler configuration so that the native linker is
7492 *** used, and then restart.
7494 _LT_EOF
7495 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7498 else
7499 ld_shlibs=no
7503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7504 case `$LD -v 2>&1` in
7505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7506 ld_shlibs=no
7507 cat <<_LT_EOF 1>&2
7509 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7510 *** reliably create shared libraries on SCO systems. Therefore, libtool
7511 *** is disabling shared libraries support. We urge you to upgrade GNU
7512 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7513 *** your PATH or compiler configuration so that the native linker is
7514 *** used, and then restart.
7516 _LT_EOF
7519 # For security reasons, it is highly recommended that you always
7520 # use absolute paths for naming shared libraries, and exclude the
7521 # DT_RUNPATH tag from executables and libraries. But doing so
7522 # requires that you compile everything twice, which is a pain.
7523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7527 else
7528 ld_shlibs=no
7531 esac
7534 sunos4*)
7535 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7536 wlarc=
7537 hardcode_direct=yes
7538 hardcode_shlibpath_var=no
7542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7545 else
7546 ld_shlibs=no
7549 esac
7551 if test "$ld_shlibs" = no; then
7552 runpath_var=
7553 hardcode_libdir_flag_spec=
7554 export_dynamic_flag_spec=
7555 whole_archive_flag_spec=
7557 else
7558 # PORTME fill in a description of your system's linker (not GNU ld)
7559 case $host_os in
7560 aix3*)
7561 allow_undefined_flag=unsupported
7562 always_export_symbols=yes
7563 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'
7564 # Note: this linker hardcodes the directories in LIBPATH if there
7565 # are no directories specified by -L.
7566 hardcode_minus_L=yes
7567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7568 # Neither direct hardcoding nor static linking is supported with a
7569 # broken collect2.
7570 hardcode_direct=unsupported
7574 aix[4-9]*)
7575 if test "$host_cpu" = ia64; then
7576 # On IA64, the linker does run time linking by default, so we don't
7577 # have to do anything special.
7578 aix_use_runtimelinking=no
7579 exp_sym_flag='-Bexport'
7580 no_entry_flag=""
7581 else
7582 # If we're using GNU nm, then we don't want the "-C" option.
7583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7585 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'
7586 else
7587 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'
7589 aix_use_runtimelinking=no
7591 # Test if we are trying to use run time linking or normal
7592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7593 # need to do runtime linking.
7594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7595 for ld_flag in $LDFLAGS; do
7596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7597 aix_use_runtimelinking=yes
7598 break
7600 done
7602 esac
7604 exp_sym_flag='-bexport'
7605 no_entry_flag='-bnoentry'
7608 # When large executables or shared objects are built, AIX ld can
7609 # have problems creating the table of contents. If linking a library
7610 # or program results in "error TOC overflow" add -mminimal-toc to
7611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7614 archive_cmds=''
7615 hardcode_direct=yes
7616 hardcode_direct_absolute=yes
7617 hardcode_libdir_separator=':'
7618 link_all_deplibs=yes
7619 file_list_spec='${wl}-f,'
7621 if test "$GCC" = yes; then
7622 case $host_os in aix4.[012]|aix4.[012].*)
7623 # We only want to do this on AIX 4.2 and lower, the check
7624 # below for broken collect2 doesn't work under 4.3+
7625 collect2name=`${CC} -print-prog-name=collect2`
7626 if test -f "$collect2name" &&
7627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7628 then
7629 # We have reworked collect2
7631 else
7632 # We have old collect2
7633 hardcode_direct=unsupported
7634 # It fails to find uninstalled libraries when the uninstalled
7635 # path is not listed in the libpath. Setting hardcode_minus_L
7636 # to unsupported forces relinking
7637 hardcode_minus_L=yes
7638 hardcode_libdir_flag_spec='-L$libdir'
7639 hardcode_libdir_separator=
7642 esac
7643 shared_flag='-shared'
7644 if test "$aix_use_runtimelinking" = yes; then
7645 shared_flag="$shared_flag "'${wl}-G'
7647 else
7648 # not using gcc
7649 if test "$host_cpu" = ia64; then
7650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7651 # chokes on -Wl,-G. The following line is correct:
7652 shared_flag='-G'
7653 else
7654 if test "$aix_use_runtimelinking" = yes; then
7655 shared_flag='${wl}-G'
7656 else
7657 shared_flag='${wl}-bM:SRE'
7662 export_dynamic_flag_spec='${wl}-bexpall'
7663 # It seems that -bexpall does not export symbols beginning with
7664 # underscore (_), so it is better to generate a list of symbols to export.
7665 always_export_symbols=yes
7666 if test "$aix_use_runtimelinking" = yes; then
7667 # Warning - without using the other runtime loading flags (-brtl),
7668 # -berok will link without error, but may produce a broken library.
7669 allow_undefined_flag='-berok'
7670 # Determine the default libpath from the value encoded in an
7671 # empty executable.
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7676 main ()
7680 return 0;
7682 _ACEOF
7683 if ac_fn_c_try_link "$LINENO"; then :
7685 lt_aix_libpath_sed='
7686 /Import File Strings/,/^$/ {
7687 /^0/ {
7688 s/^0 *\(.*\)$/\1/
7692 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7693 # Check for a 64-bit object if we didn't find anything.
7694 if test -z "$aix_libpath"; then
7695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7698 rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
7700 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7703 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"
7704 else
7705 if test "$host_cpu" = ia64; then
7706 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7707 allow_undefined_flag="-z nodefs"
7708 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"
7709 else
7710 # Determine the default libpath from the value encoded in an
7711 # empty executable.
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7716 main ()
7720 return 0;
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7725 lt_aix_libpath_sed='
7726 /Import File Strings/,/^$/ {
7727 /^0/ {
7728 s/^0 *\(.*\)$/\1/
7732 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7733 # Check for a 64-bit object if we didn't find anything.
7734 if test -z "$aix_libpath"; then
7735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7738 rm -f core conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
7740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7743 # Warning - without using the other run time loading flags,
7744 # -berok will link without error, but may produce a broken library.
7745 no_undefined_flag=' ${wl}-bernotok'
7746 allow_undefined_flag=' ${wl}-berok'
7747 # Exported symbols can be pulled into shared objects from archives
7748 whole_archive_flag_spec='$convenience'
7749 archive_cmds_need_lc=yes
7750 # This is similar to how AIX traditionally builds its shared libraries.
7751 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'
7756 amigaos*)
7757 case $host_cpu in
7758 powerpc)
7759 # see comment about AmigaOS4 .so support
7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 archive_expsym_cmds=''
7763 m68k)
7764 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)'
7765 hardcode_libdir_flag_spec='-L$libdir'
7766 hardcode_minus_L=yes
7768 esac
7771 bsdi[45]*)
7772 export_dynamic_flag_spec=-rdynamic
7775 cygwin* | mingw* | pw32* | cegcc*)
7776 # When not using gcc, we currently assume that we are using
7777 # Microsoft Visual C++.
7778 # hardcode_libdir_flag_spec is actually meaningless, as there is
7779 # no search path for DLLs.
7780 hardcode_libdir_flag_spec=' '
7781 allow_undefined_flag=unsupported
7782 # Tell ltmain to make .lib files, not .a files.
7783 libext=lib
7784 # Tell ltmain to make .dll files, not .so files.
7785 shrext_cmds=".dll"
7786 # FIXME: Setting linknames here is a bad hack.
7787 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7788 # The linker will automatically build a .lib file if we build a DLL.
7789 old_archive_from_new_cmds='true'
7790 # FIXME: Should let the user specify the lib program.
7791 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7792 fix_srcfile_path='`cygpath -w "$srcfile"`'
7793 enable_shared_with_static_runtimes=yes
7796 darwin* | rhapsody*)
7799 archive_cmds_need_lc=no
7800 hardcode_direct=no
7801 hardcode_automatic=yes
7802 hardcode_shlibpath_var=unsupported
7803 whole_archive_flag_spec=''
7804 link_all_deplibs=yes
7805 allow_undefined_flag="$_lt_dar_allow_undefined"
7806 case $cc_basename in
7807 ifort*) _lt_dar_can_shared=yes ;;
7808 *) _lt_dar_can_shared=$GCC ;;
7809 esac
7810 if test "$_lt_dar_can_shared" = "yes"; then
7811 output_verbose_link_cmd=echo
7812 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7813 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7814 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}"
7815 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}"
7817 else
7818 ld_shlibs=no
7823 dgux*)
7824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_libdir_flag_spec='-L$libdir'
7826 hardcode_shlibpath_var=no
7829 freebsd1*)
7830 ld_shlibs=no
7833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7834 # support. Future versions do this automatically, but an explicit c++rt0.o
7835 # does not break anything, and helps significantly (at the cost of a little
7836 # extra space).
7837 freebsd2.2*)
7838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7839 hardcode_libdir_flag_spec='-R$libdir'
7840 hardcode_direct=yes
7841 hardcode_shlibpath_var=no
7844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7845 freebsd2*)
7846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_direct=yes
7848 hardcode_minus_L=yes
7849 hardcode_shlibpath_var=no
7852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7853 freebsd* | dragonfly*)
7854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7855 hardcode_libdir_flag_spec='-R$libdir'
7856 hardcode_direct=yes
7857 hardcode_shlibpath_var=no
7860 hpux9*)
7861 if test "$GCC" = yes; then
7862 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'
7863 else
7864 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'
7866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7867 hardcode_libdir_separator=:
7868 hardcode_direct=yes
7870 # hardcode_minus_L: Not really in the search PATH,
7871 # but as the default location of the library.
7872 hardcode_minus_L=yes
7873 export_dynamic_flag_spec='${wl}-E'
7876 hpux10*)
7877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7879 else
7880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7882 if test "$with_gnu_ld" = no; then
7883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7884 hardcode_libdir_flag_spec_ld='+b $libdir'
7885 hardcode_libdir_separator=:
7886 hardcode_direct=yes
7887 hardcode_direct_absolute=yes
7888 export_dynamic_flag_spec='${wl}-E'
7889 # hardcode_minus_L: Not really in the search PATH,
7890 # but as the default location of the library.
7891 hardcode_minus_L=yes
7895 hpux11*)
7896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7897 case $host_cpu in
7898 hppa*64*)
7899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7901 ia64*)
7902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7907 esac
7908 else
7909 case $host_cpu in
7910 hppa*64*)
7911 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7913 ia64*)
7914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7919 esac
7921 if test "$with_gnu_ld" = no; then
7922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7923 hardcode_libdir_separator=:
7925 case $host_cpu in
7926 hppa*64*|ia64*)
7927 hardcode_direct=no
7928 hardcode_shlibpath_var=no
7931 hardcode_direct=yes
7932 hardcode_direct_absolute=yes
7933 export_dynamic_flag_spec='${wl}-E'
7935 # hardcode_minus_L: Not really in the search PATH,
7936 # but as the default location of the library.
7937 hardcode_minus_L=yes
7939 esac
7943 irix5* | irix6* | nonstopux*)
7944 if test "$GCC" = yes; then
7945 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'
7946 # Try to use the -exported_symbol ld option, if it does not
7947 # work, assume that -exports_file does not work either and
7948 # implicitly export all symbols.
7949 save_LDFLAGS="$LDFLAGS"
7950 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 int foo(void) {}
7954 _ACEOF
7955 if ac_fn_c_try_link "$LINENO"; then :
7956 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'
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 LDFLAGS="$save_LDFLAGS"
7962 else
7963 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'
7964 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'
7966 archive_cmds_need_lc='no'
7967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7968 hardcode_libdir_separator=:
7969 inherit_rpath=yes
7970 link_all_deplibs=yes
7973 netbsd*)
7974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7976 else
7977 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7979 hardcode_libdir_flag_spec='-R$libdir'
7980 hardcode_direct=yes
7981 hardcode_shlibpath_var=no
7984 newsos6)
7985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7986 hardcode_direct=yes
7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7988 hardcode_libdir_separator=:
7989 hardcode_shlibpath_var=no
7992 *nto* | *qnx*)
7995 openbsd*)
7996 if test -f /usr/libexec/ld.so; then
7997 hardcode_direct=yes
7998 hardcode_shlibpath_var=no
7999 hardcode_direct_absolute=yes
8000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8004 export_dynamic_flag_spec='${wl}-E'
8005 else
8006 case $host_os in
8007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8009 hardcode_libdir_flag_spec='-R$libdir'
8012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8015 esac
8017 else
8018 ld_shlibs=no
8022 os2*)
8023 hardcode_libdir_flag_spec='-L$libdir'
8024 hardcode_minus_L=yes
8025 allow_undefined_flag=unsupported
8026 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'
8027 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8030 osf3*)
8031 if test "$GCC" = yes; then
8032 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8033 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'
8034 else
8035 allow_undefined_flag=' -expect_unresolved \*'
8036 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'
8038 archive_cmds_need_lc='no'
8039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8040 hardcode_libdir_separator=:
8043 osf4* | osf5*) # as osf3* with the addition of -msym flag
8044 if test "$GCC" = yes; then
8045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8046 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-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'
8047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8048 else
8049 allow_undefined_flag=' -expect_unresolved \*'
8050 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'
8051 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~
8052 $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'
8054 # Both c and cxx compiler support -rpath directly
8055 hardcode_libdir_flag_spec='-rpath $libdir'
8057 archive_cmds_need_lc='no'
8058 hardcode_libdir_separator=:
8061 solaris*)
8062 no_undefined_flag=' -z defs'
8063 if test "$GCC" = yes; then
8064 wlarc='${wl}'
8065 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8067 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8068 else
8069 case `$CC -V 2>&1` in
8070 *"Compilers 5.0"*)
8071 wlarc=''
8072 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8074 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8077 wlarc='${wl}'
8078 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8080 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8082 esac
8084 hardcode_libdir_flag_spec='-R$libdir'
8085 hardcode_shlibpath_var=no
8086 case $host_os in
8087 solaris2.[0-5] | solaris2.[0-5].*) ;;
8089 # The compiler driver will combine and reorder linker options,
8090 # but understands `-z linker_flag'. GCC discards it without `$wl',
8091 # but is careful enough not to reorder.
8092 # Supported since Solaris 2.6 (maybe 2.5.1?)
8093 if test "$GCC" = yes; then
8094 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8095 else
8096 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8099 esac
8100 link_all_deplibs=yes
8103 sunos4*)
8104 if test "x$host_vendor" = xsequent; then
8105 # Use $CC to link under sequent, because it throws in some extra .o
8106 # files that make .init and .fini sections work.
8107 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8108 else
8109 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8111 hardcode_libdir_flag_spec='-L$libdir'
8112 hardcode_direct=yes
8113 hardcode_minus_L=yes
8114 hardcode_shlibpath_var=no
8117 sysv4)
8118 case $host_vendor in
8119 sni)
8120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8121 hardcode_direct=yes # is this really true???
8123 siemens)
8124 ## LD is ld it makes a PLAMLIB
8125 ## CC just makes a GrossModule.
8126 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8127 reload_cmds='$CC -r -o $output$reload_objs'
8128 hardcode_direct=no
8130 motorola)
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8134 esac
8135 runpath_var='LD_RUN_PATH'
8136 hardcode_shlibpath_var=no
8139 sysv4.3*)
8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_shlibpath_var=no
8142 export_dynamic_flag_spec='-Bexport'
8145 sysv4*MP*)
8146 if test -d /usr/nec; then
8147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8148 hardcode_shlibpath_var=no
8149 runpath_var=LD_RUN_PATH
8150 hardcode_runpath_var=yes
8151 ld_shlibs=yes
8155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8156 no_undefined_flag='${wl}-z,text'
8157 archive_cmds_need_lc=no
8158 hardcode_shlibpath_var=no
8159 runpath_var='LD_RUN_PATH'
8161 if test "$GCC" = yes; then
8162 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8164 else
8165 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8166 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8170 sysv5* | sco3.2v5* | sco5v6*)
8171 # Note: We can NOT use -z defs as we might desire, because we do not
8172 # link with -lc, and that would cause any symbols used from libc to
8173 # always be unresolved, which means just about no library would
8174 # ever link correctly. If we're not using GNU ld we use -z text
8175 # though, which does catch some bad symbols but isn't as heavy-handed
8176 # as -z defs.
8177 no_undefined_flag='${wl}-z,text'
8178 allow_undefined_flag='${wl}-z,nodefs'
8179 archive_cmds_need_lc=no
8180 hardcode_shlibpath_var=no
8181 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8182 hardcode_libdir_separator=':'
8183 link_all_deplibs=yes
8184 export_dynamic_flag_spec='${wl}-Bexport'
8185 runpath_var='LD_RUN_PATH'
8187 if test "$GCC" = yes; then
8188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8190 else
8191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8196 uts4*)
8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_shlibpath_var=no
8203 ld_shlibs=no
8205 esac
8207 if test x$host_vendor = xsni; then
8208 case $host in
8209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8210 export_dynamic_flag_spec='${wl}-Blargedynsym'
8212 esac
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8217 $as_echo "$ld_shlibs" >&6; }
8218 test "$ld_shlibs" = no && can_build_shared=no
8220 with_gnu_ld=$with_gnu_ld
8237 # Do we need to explicitly link libc?
8239 case "x$archive_cmds_need_lc" in
8240 x|xyes)
8241 # Assume -lc should be added
8242 archive_cmds_need_lc=yes
8244 if test "$enable_shared" = yes && test "$GCC" = yes; then
8245 case $archive_cmds in
8246 *'~'*)
8247 # FIXME: we may have to deal with multi-command sequences.
8249 '$CC '*)
8250 # Test whether the compiler implicitly links with -lc since on some
8251 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8252 # to ld, don't add -lc before -lgcc.
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8254 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8255 $RM conftest*
8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8259 (eval $ac_compile) 2>&5
8260 ac_status=$?
8261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8262 test $ac_status = 0; } 2>conftest.err; then
8263 soname=conftest
8264 lib=conftest
8265 libobjs=conftest.$ac_objext
8266 deplibs=
8267 wl=$lt_prog_compiler_wl
8268 pic_flag=$lt_prog_compiler_pic
8269 compiler_flags=-v
8270 linker_flags=-v
8271 verstring=
8272 output_objdir=.
8273 libname=conftest
8274 lt_save_allow_undefined_flag=$allow_undefined_flag
8275 allow_undefined_flag=
8276 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8277 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8278 ac_status=$?
8279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280 test $ac_status = 0; }
8281 then
8282 archive_cmds_need_lc=no
8283 else
8284 archive_cmds_need_lc=yes
8286 allow_undefined_flag=$lt_save_allow_undefined_flag
8287 else
8288 cat conftest.err 1>&5
8290 $RM conftest*
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8292 $as_echo "$archive_cmds_need_lc" >&6; }
8294 esac
8297 esac
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8456 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8458 if test "$GCC" = yes; then
8459 case $host_os in
8460 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8461 *) lt_awk_arg="/^libraries:/" ;;
8462 esac
8463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8464 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8465 # if the path contains ";" then we assume it to be the separator
8466 # otherwise default to the standard path separator (i.e. ":") - it is
8467 # assumed that no part of a normal pathname contains ";" but that should
8468 # okay in the real world where ";" in dirpaths is itself problematic.
8469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8470 else
8471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8473 # Ok, now we have the path, separated by spaces, we can step through it
8474 # and add multilib dir if necessary.
8475 lt_tmp_lt_search_path_spec=
8476 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8477 for lt_sys_path in $lt_search_path_spec; do
8478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8480 else
8481 test -d "$lt_sys_path" && \
8482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8484 done
8485 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8486 BEGIN {RS=" "; FS="/|\n";} {
8487 lt_foo="";
8488 lt_count=0;
8489 for (lt_i = NF; lt_i > 0; lt_i--) {
8490 if ($lt_i != "" && $lt_i != ".") {
8491 if ($lt_i == "..") {
8492 lt_count++;
8493 } else {
8494 if (lt_count == 0) {
8495 lt_foo="/" $lt_i lt_foo;
8496 } else {
8497 lt_count--;
8502 if (lt_foo != "") { lt_freq[lt_foo]++; }
8503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8505 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8506 else
8507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8509 library_names_spec=
8510 libname_spec='lib$name'
8511 soname_spec=
8512 shrext_cmds=".so"
8513 postinstall_cmds=
8514 postuninstall_cmds=
8515 finish_cmds=
8516 finish_eval=
8517 shlibpath_var=
8518 shlibpath_overrides_runpath=unknown
8519 version_type=none
8520 dynamic_linker="$host_os ld.so"
8521 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8522 need_lib_prefix=unknown
8523 hardcode_into_libs=no
8525 # when you set need_version to no, make sure it does not cause -set_version
8526 # flags to be left without arguments
8527 need_version=unknown
8529 case $host_os in
8530 aix3*)
8531 version_type=linux
8532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8533 shlibpath_var=LIBPATH
8535 # AIX 3 has no versioning support, so we append a major version to the name.
8536 soname_spec='${libname}${release}${shared_ext}$major'
8539 aix[4-9]*)
8540 version_type=linux
8541 need_lib_prefix=no
8542 need_version=no
8543 hardcode_into_libs=yes
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 supports IA64
8546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8547 shlibpath_var=LD_LIBRARY_PATH
8548 else
8549 # With GCC up to 2.95.x, collect2 would create an import file
8550 # for dependence libraries. The import file would start with
8551 # the line `#! .'. This would cause the generated library to
8552 # depend on `.', always an invalid library. This was fixed in
8553 # development snapshots of GCC prior to 3.0.
8554 case $host_os in
8555 aix4 | aix4.[01] | aix4.[01].*)
8556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8557 echo ' yes '
8558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8560 else
8561 can_build_shared=no
8564 esac
8565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8566 # soname into executable. Probably we can add versioning support to
8567 # collect2, so additional links can be useful in future.
8568 if test "$aix_use_runtimelinking" = yes; then
8569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8570 # instead of lib<name>.a to let people know that these are not
8571 # typical AIX shared libraries.
8572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8573 else
8574 # We preserve .a as extension for shared libraries through AIX4.2
8575 # and later when we are not doing run time linking.
8576 library_names_spec='${libname}${release}.a $libname.a'
8577 soname_spec='${libname}${release}${shared_ext}$major'
8579 shlibpath_var=LIBPATH
8583 amigaos*)
8584 case $host_cpu in
8585 powerpc)
8586 # Since July 2007 AmigaOS4 officially supports .so libraries.
8587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8590 m68k)
8591 library_names_spec='$libname.ixlibrary $libname.a'
8592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8593 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'
8595 esac
8598 beos*)
8599 library_names_spec='${libname}${shared_ext}'
8600 dynamic_linker="$host_os ld.so"
8601 shlibpath_var=LIBRARY_PATH
8604 bsdi[45]*)
8605 version_type=linux
8606 need_version=no
8607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
8609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8613 # the default ld.so.conf also contains /usr/contrib/lib and
8614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8615 # libtool to hard-code these into programs
8618 cygwin* | mingw* | pw32* | cegcc*)
8619 version_type=windows
8620 shrext_cmds=".dll"
8621 need_version=no
8622 need_lib_prefix=no
8624 case $GCC,$host_os in
8625 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8626 library_names_spec='$libname.dll.a'
8627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8628 postinstall_cmds='base_file=`basename \${file}`~
8629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8630 dldir=$destdir/`dirname \$dlpath`~
8631 test -d \$dldir || mkdir -p \$dldir~
8632 $install_prog $dir/$dlname \$dldir/$dlname~
8633 chmod a+x \$dldir/$dlname~
8634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8638 dlpath=$dir/\$dldll~
8639 $RM \$dlpath'
8640 shlibpath_overrides_runpath=yes
8642 case $host_os in
8643 cygwin*)
8644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8648 mingw* | cegcc*)
8649 # MinGW DLLs use traditional 'lib' prefix
8650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8651 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8652 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8653 # It is most probably a Windows format PATH printed by
8654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8655 # path with ; separators, and with drive letters. We can handle the
8656 # drive letters (cygwin fileutils understands them), so leave them,
8657 # especially as we might pass files found there to a mingw objdump,
8658 # which wouldn't understand a cygwinified path. Ahh.
8659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8660 else
8661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8664 pw32*)
8665 # pw32 DLLs use 'pw' prefix rather than 'lib'
8666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8668 esac
8672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8674 esac
8675 dynamic_linker='Win32 ld.exe'
8676 # FIXME: first we should search . and the directory the executable is in
8677 shlibpath_var=PATH
8680 darwin* | rhapsody*)
8681 dynamic_linker="$host_os dyld"
8682 version_type=darwin
8683 need_lib_prefix=no
8684 need_version=no
8685 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8686 soname_spec='${libname}${release}${major}$shared_ext'
8687 shlibpath_overrides_runpath=yes
8688 shlibpath_var=DYLD_LIBRARY_PATH
8689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8695 dgux*)
8696 version_type=linux
8697 need_lib_prefix=no
8698 need_version=no
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 shlibpath_var=LD_LIBRARY_PATH
8704 freebsd1*)
8705 dynamic_linker=no
8708 freebsd* | dragonfly*)
8709 # DragonFly does not have aout. When/if they implement a new
8710 # versioning mechanism, adjust this.
8711 if test -x /usr/bin/objformat; then
8712 objformat=`/usr/bin/objformat`
8713 else
8714 case $host_os in
8715 freebsd[123]*) objformat=aout ;;
8716 *) objformat=elf ;;
8717 esac
8719 # Handle Gentoo/FreeBSD as it was Linux
8720 case $host_vendor in
8721 gentoo)
8722 version_type=linux ;;
8724 version_type=freebsd-$objformat ;;
8725 esac
8727 case $version_type in
8728 freebsd-elf*)
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8730 need_version=no
8731 need_lib_prefix=no
8733 freebsd-*)
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8735 need_version=yes
8737 linux)
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8739 soname_spec='${libname}${release}${shared_ext}$major'
8740 need_lib_prefix=no
8741 need_version=no
8743 esac
8744 shlibpath_var=LD_LIBRARY_PATH
8745 case $host_os in
8746 freebsd2*)
8747 shlibpath_overrides_runpath=yes
8749 freebsd3.[01]* | freebsdelf3.[01]*)
8750 shlibpath_overrides_runpath=yes
8751 hardcode_into_libs=yes
8753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8755 shlibpath_overrides_runpath=no
8756 hardcode_into_libs=yes
8758 *) # from 4.6 on, and DragonFly
8759 shlibpath_overrides_runpath=yes
8760 hardcode_into_libs=yes
8762 esac
8765 gnu*)
8766 version_type=linux
8767 need_lib_prefix=no
8768 need_version=no
8769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
8771 shlibpath_var=LD_LIBRARY_PATH
8772 hardcode_into_libs=yes
8775 hpux9* | hpux10* | hpux11*)
8776 # Give a soname corresponding to the major version so that dld.sl refuses to
8777 # link against other versions.
8778 version_type=sunos
8779 need_lib_prefix=no
8780 need_version=no
8781 case $host_cpu in
8782 ia64*)
8783 shrext_cmds='.so'
8784 hardcode_into_libs=yes
8785 dynamic_linker="$host_os dld.so"
8786 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 if test "X$HPUX_IA64_MODE" = X32; then
8791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8792 else
8793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8797 hppa*64*)
8798 shrext_cmds='.sl'
8799 hardcode_into_libs=yes
8800 dynamic_linker="$host_os dld.sl"
8801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8809 shrext_cmds='.sl'
8810 dynamic_linker="$host_os dld.sl"
8811 shlibpath_var=SHLIB_PATH
8812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
8816 esac
8817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8818 postinstall_cmds='chmod 555 $lib'
8821 interix[3-9]*)
8822 version_type=linux
8823 need_lib_prefix=no
8824 need_version=no
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=no
8830 hardcode_into_libs=yes
8833 irix5* | irix6* | nonstopux*)
8834 case $host_os in
8835 nonstopux*) version_type=nonstopux ;;
8837 if test "$lt_cv_prog_gnu_ld" = yes; then
8838 version_type=linux
8839 else
8840 version_type=irix
8841 fi ;;
8842 esac
8843 need_lib_prefix=no
8844 need_version=no
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8847 case $host_os in
8848 irix5* | nonstopux*)
8849 libsuff= shlibsuff=
8852 case $LD in # libtool.m4 will add one of these switches to LD
8853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8854 libsuff= shlibsuff= libmagic=32-bit;;
8855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8856 libsuff=32 shlibsuff=N32 libmagic=N32;;
8857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8859 *) libsuff= shlibsuff= libmagic=never-match;;
8860 esac
8862 esac
8863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8864 shlibpath_overrides_runpath=no
8865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8867 hardcode_into_libs=yes
8870 # No shared lib support for Linux oldld, aout, or coff.
8871 linux*oldld* | linux*aout* | linux*coff*)
8872 dynamic_linker=no
8875 # This must be Linux ELF.
8876 linux* | k*bsd*-gnu)
8877 version_type=linux
8878 need_lib_prefix=no
8879 need_version=no
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=no
8885 # Some binutils ld are patched to set DT_RUNPATH
8886 save_LDFLAGS=$LDFLAGS
8887 save_libdir=$libdir
8888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8894 main ()
8898 return 0;
8900 _ACEOF
8901 if ac_fn_c_try_link "$LINENO"; then :
8902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8903 shlibpath_overrides_runpath=yes
8906 rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908 LDFLAGS=$save_LDFLAGS
8909 libdir=$save_libdir
8911 # This implies no fast_install, which is unacceptable.
8912 # Some rework will be needed to allow for fast_install
8913 # before this can be enabled.
8914 hardcode_into_libs=yes
8916 # Append ld.so.conf contents to the search path
8917 if test -f /etc/ld.so.conf; then
8918 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' ' '`
8919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8922 # We used to test for /lib/ld.so.1 and disable shared libraries on
8923 # powerpc, because MkLinux only supported shared libraries with the
8924 # GNU dynamic linker. Since this was broken with cross compilers,
8925 # most powerpc-linux boxes support dynamic linking these days and
8926 # people can always --disable-shared, the test was removed, and we
8927 # assume the GNU/Linux dynamic linker is in use.
8928 dynamic_linker='GNU/Linux ld.so'
8931 netbsd*)
8932 version_type=sunos
8933 need_lib_prefix=no
8934 need_version=no
8935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8938 dynamic_linker='NetBSD (a.out) ld.so'
8939 else
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 dynamic_linker='NetBSD ld.elf_so'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes
8946 hardcode_into_libs=yes
8949 newsos6)
8950 version_type=linux
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=yes
8956 *nto* | *qnx*)
8957 version_type=qnx
8958 need_lib_prefix=no
8959 need_version=no
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=no
8964 hardcode_into_libs=yes
8965 dynamic_linker='ldqnx.so'
8968 openbsd*)
8969 version_type=sunos
8970 sys_lib_dlsearch_path_spec="/usr/lib"
8971 need_lib_prefix=no
8972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8973 case $host_os in
8974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8975 *) need_version=no ;;
8976 esac
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8981 case $host_os in
8982 openbsd2.[89] | openbsd2.[89].*)
8983 shlibpath_overrides_runpath=no
8986 shlibpath_overrides_runpath=yes
8988 esac
8989 else
8990 shlibpath_overrides_runpath=yes
8994 os2*)
8995 libname_spec='$name'
8996 shrext_cmds=".dll"
8997 need_lib_prefix=no
8998 library_names_spec='$libname${shared_ext} $libname.a'
8999 dynamic_linker='OS/2 ld.exe'
9000 shlibpath_var=LIBPATH
9003 osf3* | osf4* | osf5*)
9004 version_type=osf
9005 need_lib_prefix=no
9006 need_version=no
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009 shlibpath_var=LD_LIBRARY_PATH
9010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9014 rdos*)
9015 dynamic_linker=no
9018 solaris*)
9019 version_type=linux
9020 need_lib_prefix=no
9021 need_version=no
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9026 hardcode_into_libs=yes
9027 # ldd complains unless libraries are executable
9028 postinstall_cmds='chmod +x $lib'
9031 sunos4*)
9032 version_type=sunos
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes
9037 if test "$with_gnu_ld" = yes; then
9038 need_lib_prefix=no
9040 need_version=yes
9043 sysv4 | sysv4.3*)
9044 version_type=linux
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 shlibpath_var=LD_LIBRARY_PATH
9048 case $host_vendor in
9049 sni)
9050 shlibpath_overrides_runpath=no
9051 need_lib_prefix=no
9052 runpath_var=LD_RUN_PATH
9054 siemens)
9055 need_lib_prefix=no
9057 motorola)
9058 need_lib_prefix=no
9059 need_version=no
9060 shlibpath_overrides_runpath=no
9061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9063 esac
9066 sysv4*MP*)
9067 if test -d /usr/nec ;then
9068 version_type=linux
9069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9070 soname_spec='$libname${shared_ext}.$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9075 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9076 version_type=freebsd-elf
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 shlibpath_overrides_runpath=yes
9083 hardcode_into_libs=yes
9084 if test "$with_gnu_ld" = yes; then
9085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9086 else
9087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9088 case $host_os in
9089 sco3.2v5*)
9090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9092 esac
9094 sys_lib_dlsearch_path_spec='/usr/lib'
9097 tpf*)
9098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9099 version_type=linux
9100 need_lib_prefix=no
9101 need_version=no
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=no
9105 hardcode_into_libs=yes
9108 uts4*)
9109 version_type=linux
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9116 dynamic_linker=no
9118 esac
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9120 $as_echo "$dynamic_linker" >&6; }
9121 test "$dynamic_linker" = no && can_build_shared=no
9123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9124 if test "$GCC" = yes; then
9125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9128 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9131 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9222 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9223 hardcode_action=
9224 if test -n "$hardcode_libdir_flag_spec" ||
9225 test -n "$runpath_var" ||
9226 test "X$hardcode_automatic" = "Xyes" ; then
9228 # We can hardcode non-existent directories.
9229 if test "$hardcode_direct" != no &&
9230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9231 # have to relink, otherwise we might link with an installed library
9232 # when we should be linking with a yet-to-be-installed one
9233 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9234 test "$hardcode_minus_L" != no; then
9235 # Linking always hardcodes the temporary library directory.
9236 hardcode_action=relink
9237 else
9238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9239 hardcode_action=immediate
9241 else
9242 # We cannot hardcode anything, or else we can only hardcode existing
9243 # directories.
9244 hardcode_action=unsupported
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9247 $as_echo "$hardcode_action" >&6; }
9249 if test "$hardcode_action" = relink ||
9250 test "$inherit_rpath" = yes; then
9251 # Fast installation is not supported
9252 enable_fast_install=no
9253 elif test "$shlibpath_overrides_runpath" = yes ||
9254 test "$enable_shared" = no; then
9255 # Fast installation is not necessary
9256 enable_fast_install=needless
9264 if test "x$enable_dlopen" != xyes; then
9265 enable_dlopen=unknown
9266 enable_dlopen_self=unknown
9267 enable_dlopen_self_static=unknown
9268 else
9269 lt_cv_dlopen=no
9270 lt_cv_dlopen_libs=
9272 case $host_os in
9273 beos*)
9274 lt_cv_dlopen="load_add_on"
9275 lt_cv_dlopen_libs=
9276 lt_cv_dlopen_self=yes
9279 mingw* | pw32* | cegcc*)
9280 lt_cv_dlopen="LoadLibrary"
9281 lt_cv_dlopen_libs=
9284 cygwin*)
9285 lt_cv_dlopen="dlopen"
9286 lt_cv_dlopen_libs=
9289 darwin*)
9290 # if libdl is installed we need to link against it
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9292 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9293 if ${ac_cv_lib_dl_dlopen+:} false; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 ac_check_lib_save_LIBS=$LIBS
9297 LIBS="-ldl $LIBS"
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9301 /* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
9304 #ifdef __cplusplus
9305 extern "C"
9306 #endif
9307 char dlopen ();
9309 main ()
9311 return dlopen ();
9313 return 0;
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317 ac_cv_lib_dl_dlopen=yes
9318 else
9319 ac_cv_lib_dl_dlopen=no
9321 rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 LIBS=$ac_check_lib_save_LIBS
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9326 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9327 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9329 else
9331 lt_cv_dlopen="dyld"
9332 lt_cv_dlopen_libs=
9333 lt_cv_dlopen_self=yes
9340 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9341 if test "x$ac_cv_func_shl_load" = xyes; then :
9342 lt_cv_dlopen="shl_load"
9343 else
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9345 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9346 if ${ac_cv_lib_dld_shl_load+:} false; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 ac_check_lib_save_LIBS=$LIBS
9350 LIBS="-ldld $LIBS"
9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h. */
9354 /* Override any GCC internal prototype to avoid an error.
9355 Use char because int might match the return type of a GCC
9356 builtin and then its argument prototype would still apply. */
9357 #ifdef __cplusplus
9358 extern "C"
9359 #endif
9360 char shl_load ();
9362 main ()
9364 return shl_load ();
9366 return 0;
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370 ac_cv_lib_dld_shl_load=yes
9371 else
9372 ac_cv_lib_dld_shl_load=no
9374 rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376 LIBS=$ac_check_lib_save_LIBS
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9379 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9380 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9381 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9382 else
9383 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9384 if test "x$ac_cv_func_dlopen" = xyes; then :
9385 lt_cv_dlopen="dlopen"
9386 else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9388 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9389 if ${ac_cv_lib_dl_dlopen+:} false; then :
9390 $as_echo_n "(cached) " >&6
9391 else
9392 ac_check_lib_save_LIBS=$LIBS
9393 LIBS="-ldl $LIBS"
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char dlopen ();
9405 main ()
9407 return dlopen ();
9409 return 0;
9411 _ACEOF
9412 if ac_fn_c_try_link "$LINENO"; then :
9413 ac_cv_lib_dl_dlopen=yes
9414 else
9415 ac_cv_lib_dl_dlopen=no
9417 rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
9419 LIBS=$ac_check_lib_save_LIBS
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9422 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9423 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9425 else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9427 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9428 if ${ac_cv_lib_svld_dlopen+:} false; then :
9429 $as_echo_n "(cached) " >&6
9430 else
9431 ac_check_lib_save_LIBS=$LIBS
9432 LIBS="-lsvld $LIBS"
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9436 /* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9439 #ifdef __cplusplus
9440 extern "C"
9441 #endif
9442 char dlopen ();
9444 main ()
9446 return dlopen ();
9448 return 0;
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"; then :
9452 ac_cv_lib_svld_dlopen=yes
9453 else
9454 ac_cv_lib_svld_dlopen=no
9456 rm -f core conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
9458 LIBS=$ac_check_lib_save_LIBS
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9461 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9462 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9464 else
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9466 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9467 if ${ac_cv_lib_dld_dld_link+:} false; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 ac_check_lib_save_LIBS=$LIBS
9471 LIBS="-ldld $LIBS"
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9475 /* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 char dld_link ();
9483 main ()
9485 return dld_link ();
9487 return 0;
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"; then :
9491 ac_cv_lib_dld_dld_link=yes
9492 else
9493 ac_cv_lib_dld_dld_link=no
9495 rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LIBS=$ac_check_lib_save_LIBS
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9500 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9501 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9521 esac
9523 if test "x$lt_cv_dlopen" != xno; then
9524 enable_dlopen=yes
9525 else
9526 enable_dlopen=no
9529 case $lt_cv_dlopen in
9530 dlopen)
9531 save_CPPFLAGS="$CPPFLAGS"
9532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9534 save_LDFLAGS="$LDFLAGS"
9535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9537 save_LIBS="$LIBS"
9538 LIBS="$lt_cv_dlopen_libs $LIBS"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9541 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9542 if ${lt_cv_dlopen_self+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 if test "$cross_compiling" = yes; then :
9546 lt_cv_dlopen_self=cross
9547 else
9548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9549 lt_status=$lt_dlunknown
9550 cat > conftest.$ac_ext <<_LT_EOF
9551 #line 9551 "configure"
9552 #include "confdefs.h"
9554 #if HAVE_DLFCN_H
9555 #include <dlfcn.h>
9556 #endif
9558 #include <stdio.h>
9560 #ifdef RTLD_GLOBAL
9561 # define LT_DLGLOBAL RTLD_GLOBAL
9562 #else
9563 # ifdef DL_GLOBAL
9564 # define LT_DLGLOBAL DL_GLOBAL
9565 # else
9566 # define LT_DLGLOBAL 0
9567 # endif
9568 #endif
9570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9571 find out it does not work in some platform. */
9572 #ifndef LT_DLLAZY_OR_NOW
9573 # ifdef RTLD_LAZY
9574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9575 # else
9576 # ifdef DL_LAZY
9577 # define LT_DLLAZY_OR_NOW DL_LAZY
9578 # else
9579 # ifdef RTLD_NOW
9580 # define LT_DLLAZY_OR_NOW RTLD_NOW
9581 # else
9582 # ifdef DL_NOW
9583 # define LT_DLLAZY_OR_NOW DL_NOW
9584 # else
9585 # define LT_DLLAZY_OR_NOW 0
9586 # endif
9587 # endif
9588 # endif
9589 # endif
9590 #endif
9592 void fnord() { int i=42;}
9593 int main ()
9595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9596 int status = $lt_dlunknown;
9598 if (self)
9600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9602 /* dlclose (self); */
9604 else
9605 puts (dlerror ());
9607 return status;
9609 _LT_EOF
9610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9611 (eval $ac_link) 2>&5
9612 ac_status=$?
9613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9615 (./conftest; exit; ) >&5 2>/dev/null
9616 lt_status=$?
9617 case x$lt_status in
9618 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9619 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9620 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9621 esac
9622 else :
9623 # compilation failed
9624 lt_cv_dlopen_self=no
9627 rm -fr conftest*
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9632 $as_echo "$lt_cv_dlopen_self" >&6; }
9634 if test "x$lt_cv_dlopen_self" = xyes; then
9635 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9637 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9638 if ${lt_cv_dlopen_self_static+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 if test "$cross_compiling" = yes; then :
9642 lt_cv_dlopen_self_static=cross
9643 else
9644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9645 lt_status=$lt_dlunknown
9646 cat > conftest.$ac_ext <<_LT_EOF
9647 #line 9647 "configure"
9648 #include "confdefs.h"
9650 #if HAVE_DLFCN_H
9651 #include <dlfcn.h>
9652 #endif
9654 #include <stdio.h>
9656 #ifdef RTLD_GLOBAL
9657 # define LT_DLGLOBAL RTLD_GLOBAL
9658 #else
9659 # ifdef DL_GLOBAL
9660 # define LT_DLGLOBAL DL_GLOBAL
9661 # else
9662 # define LT_DLGLOBAL 0
9663 # endif
9664 #endif
9666 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9667 find out it does not work in some platform. */
9668 #ifndef LT_DLLAZY_OR_NOW
9669 # ifdef RTLD_LAZY
9670 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9671 # else
9672 # ifdef DL_LAZY
9673 # define LT_DLLAZY_OR_NOW DL_LAZY
9674 # else
9675 # ifdef RTLD_NOW
9676 # define LT_DLLAZY_OR_NOW RTLD_NOW
9677 # else
9678 # ifdef DL_NOW
9679 # define LT_DLLAZY_OR_NOW DL_NOW
9680 # else
9681 # define LT_DLLAZY_OR_NOW 0
9682 # endif
9683 # endif
9684 # endif
9685 # endif
9686 #endif
9688 void fnord() { int i=42;}
9689 int main ()
9691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9692 int status = $lt_dlunknown;
9694 if (self)
9696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9698 /* dlclose (self); */
9700 else
9701 puts (dlerror ());
9703 return status;
9705 _LT_EOF
9706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9707 (eval $ac_link) 2>&5
9708 ac_status=$?
9709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9711 (./conftest; exit; ) >&5 2>/dev/null
9712 lt_status=$?
9713 case x$lt_status in
9714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9716 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9717 esac
9718 else :
9719 # compilation failed
9720 lt_cv_dlopen_self_static=no
9723 rm -fr conftest*
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9728 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9731 CPPFLAGS="$save_CPPFLAGS"
9732 LDFLAGS="$save_LDFLAGS"
9733 LIBS="$save_LIBS"
9735 esac
9737 case $lt_cv_dlopen_self in
9738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9739 *) enable_dlopen_self=unknown ;;
9740 esac
9742 case $lt_cv_dlopen_self_static in
9743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9744 *) enable_dlopen_self_static=unknown ;;
9745 esac
9764 striplib=
9765 old_striplib=
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9767 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9768 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9772 $as_echo "yes" >&6; }
9773 else
9774 # FIXME - insert some real tests, host_os isn't really good enough
9775 case $host_os in
9776 darwin*)
9777 if test -n "$STRIP" ; then
9778 striplib="$STRIP -x"
9779 old_striplib="$STRIP -S"
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9781 $as_echo "yes" >&6; }
9782 else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784 $as_echo "no" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9791 esac
9805 # Report which library types will actually be built
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9807 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9809 $as_echo "$can_build_shared" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9812 $as_echo_n "checking whether to build shared libraries... " >&6; }
9813 test "$can_build_shared" = "no" && enable_shared=no
9815 # On AIX, shared libraries and static libraries use the same namespace, and
9816 # are all built from PIC.
9817 case $host_os in
9818 aix3*)
9819 test "$enable_shared" = yes && enable_static=no
9820 if test -n "$RANLIB"; then
9821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9822 postinstall_cmds='$RANLIB $lib'
9826 aix[4-9]*)
9827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9828 test "$enable_shared" = yes && enable_static=no
9831 esac
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9833 $as_echo "$enable_shared" >&6; }
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9836 $as_echo_n "checking whether to build static libraries... " >&6; }
9837 # Make sure either enable_shared or enable_static is yes.
9838 test "$enable_shared" = yes || enable_static=yes
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9840 $as_echo "$enable_static" >&6; }
9846 ac_ext=c
9847 ac_cpp='$CPP $CPPFLAGS'
9848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9852 CC="$lt_save_CC"
9866 ac_config_commands="$ac_config_commands libtool"
9871 # Only expand once:
9874 # Find a good install program. We prefer a C program (faster),
9875 # so one script is as good as another. But avoid the broken or
9876 # incompatible versions:
9877 # SysV /etc/install, /usr/sbin/install
9878 # SunOS /usr/etc/install
9879 # IRIX /sbin/install
9880 # AIX /bin/install
9881 # AmigaOS /C/install, which installs bootblocks on floppy discs
9882 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9883 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9884 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9885 # OS/2's system install, which has a completely different semantic
9886 # ./install, which can be erroneously created by make from ./install.sh.
9887 # Reject install programs that cannot install multiple files.
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9889 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9890 if test -z "$INSTALL"; then
9891 if ${ac_cv_path_install+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 # Account for people who put trailing slashes in PATH elements.
9900 case $as_dir/ in #((
9901 ./ | .// | /[cC]/* | \
9902 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9903 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9904 /usr/ucb/* ) ;;
9906 # OSF1 and SCO ODT 3.0 have their own names for install.
9907 # Don't use installbsd from OSF since it installs stuff as root
9908 # by default.
9909 for ac_prog in ginstall scoinst install; do
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9912 if test $ac_prog = install &&
9913 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9914 # AIX install. It has an incompatible calling convention.
9916 elif test $ac_prog = install &&
9917 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9918 # program-specific install script used by HP pwplus--don't use.
9920 else
9921 rm -rf conftest.one conftest.two conftest.dir
9922 echo one > conftest.one
9923 echo two > conftest.two
9924 mkdir conftest.dir
9925 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9926 test -s conftest.one && test -s conftest.two &&
9927 test -s conftest.dir/conftest.one &&
9928 test -s conftest.dir/conftest.two
9929 then
9930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9931 break 3
9935 done
9936 done
9938 esac
9940 done
9941 IFS=$as_save_IFS
9943 rm -rf conftest.one conftest.two conftest.dir
9946 if test "${ac_cv_path_install+set}" = set; then
9947 INSTALL=$ac_cv_path_install
9948 else
9949 # As a last resort, use the slow shell script. Don't cache a
9950 # value for INSTALL within a source directory, because that will
9951 # break other packages using the cache if that directory is
9952 # removed, or if the value is a relative name.
9953 INSTALL=$ac_install_sh
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9957 $as_echo "$INSTALL" >&6; }
9959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9960 # It thinks the first close brace ends the variable substitution.
9961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9968 #########
9969 # Enable large file support (if special flags are necessary)
9971 # Check whether --enable-largefile was given.
9972 if test "${enable_largefile+set}" = set; then :
9973 enableval=$enable_largefile;
9976 if test "$enable_largefile" != no; then
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9979 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9980 if ${ac_cv_sys_largefile_CC+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 ac_cv_sys_largefile_CC=no
9984 if test "$GCC" != yes; then
9985 ac_save_CC=$CC
9986 while :; do
9987 # IRIX 6.2 and later do not support large files by default,
9988 # so use the C compiler's -n32 option if that helps.
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 #include <sys/types.h>
9992 /* Check that off_t can represent 2**63 - 1 correctly.
9993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9994 since some C++ compilers masquerading as C compilers
9995 incorrectly reject 9223372036854775807. */
9996 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9998 && LARGE_OFF_T % 2147483647 == 1)
9999 ? 1 : -1];
10001 main ()
10005 return 0;
10007 _ACEOF
10008 if ac_fn_c_try_compile "$LINENO"; then :
10009 break
10011 rm -f core conftest.err conftest.$ac_objext
10012 CC="$CC -n32"
10013 if ac_fn_c_try_compile "$LINENO"; then :
10014 ac_cv_sys_largefile_CC=' -n32'; break
10016 rm -f core conftest.err conftest.$ac_objext
10017 break
10018 done
10019 CC=$ac_save_CC
10020 rm -f conftest.$ac_ext
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10024 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10025 if test "$ac_cv_sys_largefile_CC" != no; then
10026 CC=$CC$ac_cv_sys_largefile_CC
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10030 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10031 if ${ac_cv_sys_file_offset_bits+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033 else
10034 while :; do
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037 #include <sys/types.h>
10038 /* Check that off_t can represent 2**63 - 1 correctly.
10039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10040 since some C++ compilers masquerading as C compilers
10041 incorrectly reject 9223372036854775807. */
10042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10044 && LARGE_OFF_T % 2147483647 == 1)
10045 ? 1 : -1];
10047 main ()
10051 return 0;
10053 _ACEOF
10054 if ac_fn_c_try_compile "$LINENO"; then :
10055 ac_cv_sys_file_offset_bits=no; break
10057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10060 #define _FILE_OFFSET_BITS 64
10061 #include <sys/types.h>
10062 /* Check that off_t can represent 2**63 - 1 correctly.
10063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10064 since some C++ compilers masquerading as C compilers
10065 incorrectly reject 9223372036854775807. */
10066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10068 && LARGE_OFF_T % 2147483647 == 1)
10069 ? 1 : -1];
10071 main ()
10075 return 0;
10077 _ACEOF
10078 if ac_fn_c_try_compile "$LINENO"; then :
10079 ac_cv_sys_file_offset_bits=64; break
10081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 ac_cv_sys_file_offset_bits=unknown
10083 break
10084 done
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10087 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10088 case $ac_cv_sys_file_offset_bits in #(
10089 no | unknown) ;;
10091 cat >>confdefs.h <<_ACEOF
10092 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10093 _ACEOF
10095 esac
10096 rm -rf conftest*
10097 if test $ac_cv_sys_file_offset_bits = unknown; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10099 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10100 if ${ac_cv_sys_large_files+:} false; then :
10101 $as_echo_n "(cached) " >&6
10102 else
10103 while :; do
10104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10105 /* end confdefs.h. */
10106 #include <sys/types.h>
10107 /* Check that off_t can represent 2**63 - 1 correctly.
10108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10109 since some C++ compilers masquerading as C compilers
10110 incorrectly reject 9223372036854775807. */
10111 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10113 && LARGE_OFF_T % 2147483647 == 1)
10114 ? 1 : -1];
10116 main ()
10120 return 0;
10122 _ACEOF
10123 if ac_fn_c_try_compile "$LINENO"; then :
10124 ac_cv_sys_large_files=no; break
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 #define _LARGE_FILES 1
10130 #include <sys/types.h>
10131 /* Check that off_t can represent 2**63 - 1 correctly.
10132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10133 since some C++ compilers masquerading as C compilers
10134 incorrectly reject 9223372036854775807. */
10135 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10137 && LARGE_OFF_T % 2147483647 == 1)
10138 ? 1 : -1];
10140 main ()
10144 return 0;
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"; then :
10148 ac_cv_sys_large_files=1; break
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 ac_cv_sys_large_files=unknown
10152 break
10153 done
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10156 $as_echo "$ac_cv_sys_large_files" >&6; }
10157 case $ac_cv_sys_large_files in #(
10158 no | unknown) ;;
10160 cat >>confdefs.h <<_ACEOF
10161 #define _LARGE_FILES $ac_cv_sys_large_files
10162 _ACEOF
10164 esac
10165 rm -rf conftest*
10172 #########
10173 # Check for needed/wanted data types
10174 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10175 if test "x$ac_cv_type_int8_t" = xyes; then :
10177 cat >>confdefs.h <<_ACEOF
10178 #define HAVE_INT8_T 1
10179 _ACEOF
10183 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10184 if test "x$ac_cv_type_int16_t" = xyes; then :
10186 cat >>confdefs.h <<_ACEOF
10187 #define HAVE_INT16_T 1
10188 _ACEOF
10192 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10193 if test "x$ac_cv_type_int32_t" = xyes; then :
10195 cat >>confdefs.h <<_ACEOF
10196 #define HAVE_INT32_T 1
10197 _ACEOF
10201 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10202 if test "x$ac_cv_type_int64_t" = xyes; then :
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_INT64_T 1
10206 _ACEOF
10210 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10211 if test "x$ac_cv_type_intptr_t" = xyes; then :
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_INTPTR_T 1
10215 _ACEOF
10219 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10220 if test "x$ac_cv_type_uint8_t" = xyes; then :
10222 cat >>confdefs.h <<_ACEOF
10223 #define HAVE_UINT8_T 1
10224 _ACEOF
10228 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10229 if test "x$ac_cv_type_uint16_t" = xyes; then :
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_UINT16_T 1
10233 _ACEOF
10237 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10238 if test "x$ac_cv_type_uint32_t" = xyes; then :
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_UINT32_T 1
10242 _ACEOF
10246 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10247 if test "x$ac_cv_type_uint64_t" = xyes; then :
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_UINT64_T 1
10251 _ACEOF
10255 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10256 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10258 cat >>confdefs.h <<_ACEOF
10259 #define HAVE_UINTPTR_T 1
10260 _ACEOF
10266 #########
10267 # Check for needed/wanted headers
10268 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10269 do :
10270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10271 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10273 cat >>confdefs.h <<_ACEOF
10274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10275 _ACEOF
10279 done
10282 #########
10283 # Figure out whether or not we have these functions
10285 for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
10286 do :
10287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10289 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10290 cat >>confdefs.h <<_ACEOF
10291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10292 _ACEOF
10295 done
10298 #########
10299 # By default, we use the amalgamation (this may be changed below...)
10301 USE_AMALGAMATION=1
10303 #########
10304 # See whether we can run specific tclsh versions known to work well;
10305 # if not, then we fall back to plain tclsh.
10306 # TODO: try other versions before falling back?
10308 for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
10310 # Extract the first word of "$ac_prog", so it can be a program name with args.
10311 set dummy $ac_prog; ac_word=$2
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10313 $as_echo_n "checking for $ac_word... " >&6; }
10314 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 if test -n "$TCLSH_CMD"; then
10318 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10319 else
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10327 ac_cv_prog_TCLSH_CMD="$ac_prog"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10331 done
10332 done
10333 IFS=$as_save_IFS
10337 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10338 if test -n "$TCLSH_CMD"; then
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10340 $as_echo "$TCLSH_CMD" >&6; }
10341 else
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10343 $as_echo "no" >&6; }
10347 test -n "$TCLSH_CMD" && break
10348 done
10349 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10351 if test "$TCLSH_CMD" = "none"; then
10352 # If we can't find a local tclsh, then building the amalgamation will fail.
10353 # We act as though --disable-amalgamation has been used.
10354 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10355 USE_AMALGAMATION=0
10356 TCLSH_CMD="tclsh"
10361 if test "x${TCLLIBDIR+set}" != "xset" ; then
10362 TCLLIBDIR='$(libdir)'
10363 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10364 TCLLIBDIR=$i
10365 break
10366 done
10367 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10371 #########
10372 # Set up an appropriate program prefix
10374 if test "$program_prefix" = "NONE"; then
10375 program_prefix=""
10379 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10381 $as_echo "$as_me: Version set to $VERSION" >&6;}
10383 RELEASE=`cat $srcdir/VERSION`
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10385 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10387 VERSION_NUMBER=`cat $srcdir/VERSION \
10388 | sed 's/[^0-9]/ /g' \
10389 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10391 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10394 #########
10395 # Locate a compiler for the build machine. This compiler should
10396 # generate command-line programs that run on the build machine.
10398 if test x"$cross_compiling" = xno; then
10399 BUILD_CC=$CC
10400 BUILD_CFLAGS=$CFLAGS
10401 else
10402 if test "${BUILD_CC+set}" != set; then
10403 for ac_prog in gcc cc cl
10405 # Extract the first word of "$ac_prog", so it can be a program name with args.
10406 set dummy $ac_prog; ac_word=$2
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408 $as_echo_n "checking for $ac_word... " >&6; }
10409 if ${ac_cv_prog_BUILD_CC+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 if test -n "$BUILD_CC"; then
10413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10414 else
10415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416 for as_dir in $PATH
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
10420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422 ac_cv_prog_BUILD_CC="$ac_prog"
10423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424 break 2
10426 done
10427 done
10428 IFS=$as_save_IFS
10432 BUILD_CC=$ac_cv_prog_BUILD_CC
10433 if test -n "$BUILD_CC"; then
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10435 $as_echo "$BUILD_CC" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10442 test -n "$BUILD_CC" && break
10443 done
10446 if test "${BUILD_CFLAGS+set}" != set; then
10447 BUILD_CFLAGS="-g"
10452 ##########
10453 # Do we want to support multithreaded use of sqlite
10455 # Check whether --enable-threadsafe was given.
10456 if test "${enable_threadsafe+set}" = set; then :
10457 enableval=$enable_threadsafe;
10458 else
10459 enable_threadsafe=yes
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10463 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10464 if test "$enable_threadsafe" = "no"; then
10465 SQLITE_THREADSAFE=0
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }
10468 else
10469 SQLITE_THREADSAFE=1
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10471 $as_echo "yes" >&6; }
10475 if test "$SQLITE_THREADSAFE" = "1"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10477 $as_echo_n "checking for library containing pthread_create... " >&6; }
10478 if ${ac_cv_search_pthread_create+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480 else
10481 ac_func_search_save_LIBS=$LIBS
10482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483 /* end confdefs.h. */
10485 /* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10488 #ifdef __cplusplus
10489 extern "C"
10490 #endif
10491 char pthread_create ();
10493 main ()
10495 return pthread_create ();
10497 return 0;
10499 _ACEOF
10500 for ac_lib in '' pthread; do
10501 if test -z "$ac_lib"; then
10502 ac_res="none required"
10503 else
10504 ac_res=-l$ac_lib
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_search_pthread_create=$ac_res
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext
10512 if ${ac_cv_search_pthread_create+:} false; then :
10513 break
10515 done
10516 if ${ac_cv_search_pthread_create+:} false; then :
10518 else
10519 ac_cv_search_pthread_create=no
10521 rm conftest.$ac_ext
10522 LIBS=$ac_func_search_save_LIBS
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10525 $as_echo "$ac_cv_search_pthread_create" >&6; }
10526 ac_res=$ac_cv_search_pthread_create
10527 if test "$ac_res" != no; then :
10528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10533 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10534 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 ac_func_search_save_LIBS=$LIBS
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h. */
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char pthread_mutexattr_init ();
10549 main ()
10551 return pthread_mutexattr_init ();
10553 return 0;
10555 _ACEOF
10556 for ac_lib in '' pthread; do
10557 if test -z "$ac_lib"; then
10558 ac_res="none required"
10559 else
10560 ac_res=-l$ac_lib
10561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10563 if ac_fn_c_try_link "$LINENO"; then :
10564 ac_cv_search_pthread_mutexattr_init=$ac_res
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext
10568 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10569 break
10571 done
10572 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
10574 else
10575 ac_cv_search_pthread_mutexattr_init=no
10577 rm conftest.$ac_ext
10578 LIBS=$ac_func_search_save_LIBS
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10581 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10582 ac_res=$ac_cv_search_pthread_mutexattr_init
10583 if test "$ac_res" != no; then :
10584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10590 ##########
10591 # Do we want to support release
10593 # Check whether --enable-releasemode was given.
10594 if test "${enable_releasemode+set}" = set; then :
10595 enableval=$enable_releasemode;
10596 else
10597 enable_releasemode=no
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10601 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10602 if test "$enable_releasemode" = "no"; then
10603 ALLOWRELEASE=""
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605 $as_echo "no" >&6; }
10606 else
10607 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10609 $as_echo "yes" >&6; }
10613 ##########
10614 # Do we want temporary databases in memory
10616 # Check whether --enable-tempstore was given.
10617 if test "${enable_tempstore+set}" = set; then :
10618 enableval=$enable_tempstore;
10619 else
10620 enable_tempstore=no
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10624 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10625 case "$enable_tempstore" in
10626 never )
10627 TEMP_STORE=0
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10629 $as_echo "never" >&6; }
10631 no )
10632 TEMP_STORE=1
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634 $as_echo "no" >&6; }
10636 yes )
10637 TEMP_STORE=2
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10639 $as_echo "yes" >&6; }
10641 always )
10642 TEMP_STORE=3
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10644 $as_echo "always" >&6; }
10647 TEMP_STORE=1
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }
10651 esac
10655 ###########
10656 # Lots of things are different if we are compiling for Windows using
10657 # the CYGWIN environment. So check for that special case and handle
10658 # things accordingly.
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10661 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10662 if test "$config_BUILD_EXEEXT" = ".exe"; then
10663 CYGWIN=yes
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; }
10666 else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10668 $as_echo "unknown" >&6; }
10670 if test "$CYGWIN" != "yes"; then
10672 case $host_os in
10673 *cygwin* ) CYGWIN=yes;;
10674 * ) CYGWIN=no;;
10675 esac
10678 if test "$CYGWIN" = "yes"; then
10679 BUILD_EXEEXT=.exe
10680 else
10681 BUILD_EXEEXT=$EXEEXT
10683 if test x"$cross_compiling" = xno; then
10684 TARGET_EXEEXT=$BUILD_EXEEXT
10685 else
10686 TARGET_EXEEXT=$config_TARGET_EXEEXT
10688 if test "$TARGET_EXEEXT" = ".exe"; then
10689 SQLITE_OS_UNIX=0
10690 SQLITE_OS_WIN=1
10691 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10692 else
10693 SQLITE_OS_UNIX=1
10694 SQLITE_OS_WIN=0
10695 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10703 ##########
10704 # Figure out all the parameters needed to compile against Tcl.
10706 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10707 # macros in the in the tcl.m4 file of the standard TCL distribution.
10708 # Those macros could not be used directly since we have to make some
10709 # minor changes to accomodate systems that do not have TCL installed.
10711 # Check whether --enable-tcl was given.
10712 if test "${enable_tcl+set}" = set; then :
10713 enableval=$enable_tcl; use_tcl=$enableval
10714 else
10715 use_tcl=yes
10718 if test "${use_tcl}" = "yes" ; then
10720 # Check whether --with-tcl was given.
10721 if test "${with_tcl+set}" = set; then :
10722 withval=$with_tcl; with_tclconfig=${withval}
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10726 $as_echo_n "checking for Tcl configuration... " >&6; }
10727 if ${ac_cv_c_tclconfig+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10731 # First check to see if --with-tcl was specified.
10732 if test x"${with_tclconfig}" != x ; then
10733 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10734 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10735 else
10736 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10740 # Start autosearch by asking tclsh
10741 if test x"${ac_cv_c_tclconfig}" = x ; then
10742 if test x"$cross_compiling" = xno; then
10743 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10745 if test -f "$i/tclConfig.sh" ; then
10746 ac_cv_c_tclconfig="$i"
10747 break
10749 done
10753 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10754 # So try again after applying corrections.
10755 if test x"${ac_cv_c_tclconfig}" = x ; then
10756 if test x"$cross_compiling" = xno; then
10757 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10759 if test -f "$i/tclConfig.sh" ; then
10760 ac_cv_c_tclconfig="$i"
10761 break
10763 done
10767 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10768 # in a strange place.
10769 if test x"${ac_cv_c_tclconfig}" = x ; then
10770 if test x"$cross_compiling" = xno; then
10771 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10773 if test -f "$i/tclConfig.sh" ; then
10774 ac_cv_c_tclconfig="$i"
10775 break
10777 done
10781 # then check for a private Tcl installation
10782 if test x"${ac_cv_c_tclconfig}" = x ; then
10783 for i in \
10784 ../tcl \
10785 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10786 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10787 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10788 ../../tcl \
10789 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10790 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10791 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10792 ../../../tcl \
10793 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10794 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10795 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10797 if test -f "$i/unix/tclConfig.sh" ; then
10798 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10799 break
10801 done
10804 # check in a few common install locations
10805 if test x"${ac_cv_c_tclconfig}" = x ; then
10806 for i in \
10807 `ls -d ${libdir} 2>/dev/null` \
10808 `ls -d /usr/local/lib 2>/dev/null` \
10809 `ls -d /usr/contrib/lib 2>/dev/null` \
10810 `ls -d /usr/lib 2>/dev/null`
10812 if test -f "$i/tclConfig.sh" ; then
10813 ac_cv_c_tclconfig=`(cd $i; pwd)`
10814 break
10816 done
10819 # check in a few other private locations
10820 if test x"${ac_cv_c_tclconfig}" = x ; then
10821 for i in \
10822 ${srcdir}/../tcl \
10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10825 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10827 if test -f "$i/unix/tclConfig.sh" ; then
10828 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10829 break
10831 done
10837 if test x"${ac_cv_c_tclconfig}" = x ; then
10838 use_tcl=no
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10840 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10842 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10844 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10845 else
10846 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10848 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10851 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10852 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10854 $as_echo "loading" >&6; }
10855 . $TCL_BIN_DIR/tclConfig.sh
10856 else
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10858 $as_echo "file not found" >&6; }
10862 # If the TCL_BIN_DIR is the build directory (not the install directory),
10863 # then set the common variable name to the value of the build variables.
10864 # For example, the variable TCL_LIB_SPEC will be set to the value
10865 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10866 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10867 # installed and uninstalled version of Tcl.
10870 if test -f $TCL_BIN_DIR/Makefile ; then
10871 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10872 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10873 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10877 # eval is required to do the TCL_DBGX substitution
10880 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10881 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10882 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10884 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10885 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10886 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10903 if test "${use_tcl}" = "no" ; then
10904 HAVE_TCL=""
10905 else
10906 HAVE_TCL=1
10910 ##########
10911 # Figure out what C libraries are required to compile programs
10912 # that use "readline()" library.
10914 TARGET_READLINE_LIBS=""
10915 TARGET_READLINE_INC=""
10916 TARGET_HAVE_READLINE=0
10917 TARGET_HAVE_EDITLINE=0
10918 # Check whether --enable-editline was given.
10919 if test "${enable_editline+set}" = set; then :
10920 enableval=$enable_editline; with_editline=$enableval
10921 else
10922 with_editline=auto
10925 # Check whether --enable-readline was given.
10926 if test "${enable_readline+set}" = set; then :
10927 enableval=$enable_readline; with_readline=$enableval
10928 else
10929 with_readline=auto
10933 if test x"$with_editline" != xno; then
10934 sLIBS=$LIBS
10935 LIBS=""
10936 TARGET_HAVE_EDITLINE=1
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10938 $as_echo_n "checking for library containing readline... " >&6; }
10939 if ${ac_cv_search_readline+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 ac_func_search_save_LIBS=$LIBS
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char readline ();
10954 main ()
10956 return readline ();
10958 return 0;
10960 _ACEOF
10961 for ac_lib in '' edit; do
10962 if test -z "$ac_lib"; then
10963 ac_res="none required"
10964 else
10965 ac_res=-l$ac_lib
10966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_search_readline=$ac_res
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext
10973 if ${ac_cv_search_readline+:} false; then :
10974 break
10976 done
10977 if ${ac_cv_search_readline+:} false; then :
10979 else
10980 ac_cv_search_readline=no
10982 rm conftest.$ac_ext
10983 LIBS=$ac_func_search_save_LIBS
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10986 $as_echo "$ac_cv_search_readline" >&6; }
10987 ac_res=$ac_cv_search_readline
10988 if test "$ac_res" != no; then :
10989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990 with_readline=no
10991 else
10992 TARGET_HAVE_EDITLINE=0
10995 TARGET_READLINE_LIBS=$LIBS
10996 LIBS=$sLIBS
10998 if test x"$with_readline" != xno; then
10999 found="yes"
11002 # Check whether --with-readline-lib was given.
11003 if test "${with_readline_lib+set}" = set; then :
11004 withval=$with_readline_lib; with_readline_lib=$withval
11005 else
11006 with_readline_lib="auto"
11009 if test "x$with_readline_lib" = xauto; then
11010 save_LIBS="$LIBS"
11011 LIBS=""
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
11013 $as_echo_n "checking for library containing tgetent... " >&6; }
11014 if ${ac_cv_search_tgetent+:} false; then :
11015 $as_echo_n "(cached) " >&6
11016 else
11017 ac_func_search_save_LIBS=$LIBS
11018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019 /* end confdefs.h. */
11021 /* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
11024 #ifdef __cplusplus
11025 extern "C"
11026 #endif
11027 char tgetent ();
11029 main ()
11031 return tgetent ();
11033 return 0;
11035 _ACEOF
11036 for ac_lib in '' readline ncurses curses termcap; do
11037 if test -z "$ac_lib"; then
11038 ac_res="none required"
11039 else
11040 ac_res=-l$ac_lib
11041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_search_tgetent=$ac_res
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext
11048 if ${ac_cv_search_tgetent+:} false; then :
11049 break
11051 done
11052 if ${ac_cv_search_tgetent+:} false; then :
11054 else
11055 ac_cv_search_tgetent=no
11057 rm conftest.$ac_ext
11058 LIBS=$ac_func_search_save_LIBS
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
11061 $as_echo "$ac_cv_search_tgetent" >&6; }
11062 ac_res=$ac_cv_search_tgetent
11063 if test "$ac_res" != no; then :
11064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11065 term_LIBS="$LIBS"
11066 else
11067 term_LIBS=""
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
11071 $as_echo_n "checking for readline in -lreadline... " >&6; }
11072 if ${ac_cv_lib_readline_readline+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 ac_check_lib_save_LIBS=$LIBS
11076 LIBS="-lreadline $LIBS"
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11080 /* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
11083 #ifdef __cplusplus
11084 extern "C"
11085 #endif
11086 char readline ();
11088 main ()
11090 return readline ();
11092 return 0;
11094 _ACEOF
11095 if ac_fn_c_try_link "$LINENO"; then :
11096 ac_cv_lib_readline_readline=yes
11097 else
11098 ac_cv_lib_readline_readline=no
11100 rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
11102 LIBS=$ac_check_lib_save_LIBS
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11105 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11106 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11107 TARGET_READLINE_LIBS="-lreadline"
11108 else
11109 found="no"
11112 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11113 LIBS="$save_LIBS"
11114 else
11115 TARGET_READLINE_LIBS="$with_readline_lib"
11119 # Check whether --with-readline-inc was given.
11120 if test "${with_readline_inc+set}" = set; then :
11121 withval=$with_readline_inc; with_readline_inc=$withval
11122 else
11123 with_readline_inc="auto"
11126 if test "x$with_readline_inc" = xauto; then
11127 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11128 if test "x$ac_cv_header_readline_h" = xyes; then :
11129 found="yes"
11130 else
11132 found="no"
11133 if test "$cross_compiling" != yes; then
11134 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11135 for subdir in include include/readline; do
11136 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11138 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11139 if eval \${$as_ac_File+:} false; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 test "$cross_compiling" = yes &&
11143 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11144 if test -r "$dir/$subdir/readline.h"; then
11145 eval "$as_ac_File=yes"
11146 else
11147 eval "$as_ac_File=no"
11150 eval ac_res=\$$as_ac_File
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11152 $as_echo "$ac_res" >&6; }
11153 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11154 found=yes
11157 if test "$found" = "yes"; then
11158 TARGET_READLINE_INC="-I$dir/$subdir"
11159 break
11161 done
11162 test "$found" = "yes" && break
11163 done
11169 else
11170 TARGET_READLINE_INC="$with_readline_inc"
11173 if test x"$found" = xno; then
11174 TARGET_READLINE_LIBS=""
11175 TARGET_READLINE_INC=""
11176 TARGET_HAVE_READLINE=0
11177 else
11178 TARGET_HAVE_READLINE=1
11187 ##########
11188 # Figure out what C libraries are required to compile programs
11189 # that use "fdatasync()" function.
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11192 $as_echo_n "checking for library containing fdatasync... " >&6; }
11193 if ${ac_cv_search_fdatasync+:} false; then :
11194 $as_echo_n "(cached) " >&6
11195 else
11196 ac_func_search_save_LIBS=$LIBS
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11203 #ifdef __cplusplus
11204 extern "C"
11205 #endif
11206 char fdatasync ();
11208 main ()
11210 return fdatasync ();
11212 return 0;
11214 _ACEOF
11215 for ac_lib in '' rt; do
11216 if test -z "$ac_lib"; then
11217 ac_res="none required"
11218 else
11219 ac_res=-l$ac_lib
11220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11222 if ac_fn_c_try_link "$LINENO"; then :
11223 ac_cv_search_fdatasync=$ac_res
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext
11227 if ${ac_cv_search_fdatasync+:} false; then :
11228 break
11230 done
11231 if ${ac_cv_search_fdatasync+:} false; then :
11233 else
11234 ac_cv_search_fdatasync=no
11236 rm conftest.$ac_ext
11237 LIBS=$ac_func_search_save_LIBS
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11240 $as_echo "$ac_cv_search_fdatasync" >&6; }
11241 ac_res=$ac_cv_search_fdatasync
11242 if test "$ac_res" != no; then :
11243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11248 #########
11249 # check for debug enabled
11250 # Check whether --enable-debug was given.
11251 if test "${enable_debug+set}" = set; then :
11252 enableval=$enable_debug; use_debug=$enableval
11253 else
11254 use_debug=no
11257 if test "${use_debug}" = "yes" ; then
11258 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
11259 else
11260 TARGET_DEBUG="-DNDEBUG"
11264 #########
11265 # See whether we should use the amalgamation to build
11266 # Check whether --enable-amalgamation was given.
11267 if test "${enable_amalgamation+set}" = set; then :
11268 enableval=$enable_amalgamation; use_amalgamation=$enableval
11269 else
11270 use_amalgamation=yes
11273 if test "${use_amalgamation}" != "yes" ; then
11274 USE_AMALGAMATION=0
11278 #########
11279 # Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11280 for ac_header in zlib.h
11281 do :
11282 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11283 if test "x$ac_cv_header_zlib_h" = xyes; then :
11284 cat >>confdefs.h <<_ACEOF
11285 #define HAVE_ZLIB_H 1
11286 _ACEOF
11290 done
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11293 $as_echo_n "checking for library containing deflate... " >&6; }
11294 if ${ac_cv_search_deflate+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296 else
11297 ac_func_search_save_LIBS=$LIBS
11298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h. */
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char deflate ();
11309 main ()
11311 return deflate ();
11313 return 0;
11315 _ACEOF
11316 for ac_lib in '' z; do
11317 if test -z "$ac_lib"; then
11318 ac_res="none required"
11319 else
11320 ac_res=-l$ac_lib
11321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_search_deflate=$ac_res
11326 rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext
11328 if ${ac_cv_search_deflate+:} false; then :
11329 break
11331 done
11332 if ${ac_cv_search_deflate+:} false; then :
11334 else
11335 ac_cv_search_deflate=no
11337 rm conftest.$ac_ext
11338 LIBS=$ac_func_search_save_LIBS
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11341 $as_echo "$ac_cv_search_deflate" >&6; }
11342 ac_res=$ac_cv_search_deflate
11343 if test "$ac_res" != no; then :
11344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11345 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11346 else
11347 HAVE_ZLIB=""
11352 #########
11353 # See whether we should allow loadable extensions
11354 # Check whether --enable-load-extension was given.
11355 if test "${enable_load_extension+set}" = set; then :
11356 enableval=$enable_load_extension; use_loadextension=$enableval
11357 else
11358 use_loadextension=yes
11361 if test "${use_loadextension}" = "yes" ; then
11362 OPT_FEATURE_FLAGS=""
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11364 $as_echo_n "checking for library containing dlopen... " >&6; }
11365 if ${ac_cv_search_dlopen+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 ac_func_search_save_LIBS=$LIBS
11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370 /* end confdefs.h. */
11372 /* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11375 #ifdef __cplusplus
11376 extern "C"
11377 #endif
11378 char dlopen ();
11380 main ()
11382 return dlopen ();
11384 return 0;
11386 _ACEOF
11387 for ac_lib in '' dl; do
11388 if test -z "$ac_lib"; then
11389 ac_res="none required"
11390 else
11391 ac_res=-l$ac_lib
11392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_search_dlopen=$ac_res
11397 rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext
11399 if ${ac_cv_search_dlopen+:} false; then :
11400 break
11402 done
11403 if ${ac_cv_search_dlopen+:} false; then :
11405 else
11406 ac_cv_search_dlopen=no
11408 rm conftest.$ac_ext
11409 LIBS=$ac_func_search_save_LIBS
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11412 $as_echo "$ac_cv_search_dlopen" >&6; }
11413 ac_res=$ac_cv_search_dlopen
11414 if test "$ac_res" != no; then :
11415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11419 else
11420 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11423 ##########
11424 # Do we want to support memsys3 and/or memsys5
11426 # Check whether --enable-memsys5 was given.
11427 if test "${enable_memsys5+set}" = set; then :
11428 enableval=$enable_memsys5; enable_memsys5=yes
11429 else
11430 enable_memsys5=no
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11434 $as_echo_n "checking whether to support MEMSYS5... " >&6; }
11435 if test "${enable_memsys5}" = "yes"; then
11436 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438 $as_echo "yes" >&6; }
11439 else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441 $as_echo "no" >&6; }
11443 # Check whether --enable-memsys3 was given.
11444 if test "${enable_memsys3+set}" = set; then :
11445 enableval=$enable_memsys3; enable_memsys3=yes
11446 else
11447 enable_memsys3=no
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11451 $as_echo_n "checking whether to support MEMSYS3... " >&6; }
11452 if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
11453 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455 $as_echo "yes" >&6; }
11456 else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11461 #########
11462 # See whether we should enable Full Text Search extensions
11463 # Check whether --enable-fts3 was given.
11464 if test "${enable_fts3+set}" = set; then :
11465 enableval=$enable_fts3; enable_fts3=yes
11466 else
11467 enable_fts3=no
11470 if test "${enable_fts3}" = "yes" ; then
11471 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
11473 # Check whether --enable-fts4 was given.
11474 if test "${enable_fts4+set}" = set; then :
11475 enableval=$enable_fts4; enable_fts4=yes
11476 else
11477 enable_fts4=no
11480 if test "${enable_fts4}" = "yes" ; then
11481 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11483 $as_echo_n "checking for library containing log... " >&6; }
11484 if ${ac_cv_search_log+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486 else
11487 ac_func_search_save_LIBS=$LIBS
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11491 /* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494 #ifdef __cplusplus
11495 extern "C"
11496 #endif
11497 char log ();
11499 main ()
11501 return log ();
11503 return 0;
11505 _ACEOF
11506 for ac_lib in '' m; do
11507 if test -z "$ac_lib"; then
11508 ac_res="none required"
11509 else
11510 ac_res=-l$ac_lib
11511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_search_log=$ac_res
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext
11518 if ${ac_cv_search_log+:} false; then :
11519 break
11521 done
11522 if ${ac_cv_search_log+:} false; then :
11524 else
11525 ac_cv_search_log=no
11527 rm conftest.$ac_ext
11528 LIBS=$ac_func_search_save_LIBS
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11531 $as_echo "$ac_cv_search_log" >&6; }
11532 ac_res=$ac_cv_search_log
11533 if test "$ac_res" != no; then :
11534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11539 # Check whether --enable-fts5 was given.
11540 if test "${enable_fts5+set}" = set; then :
11541 enableval=$enable_fts5; enable_fts5=yes
11542 else
11543 enable_fts5=no
11546 if test "${enable_fts5}" = "yes" ; then
11547 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11549 $as_echo_n "checking for library containing log... " >&6; }
11550 if ${ac_cv_search_log+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 ac_func_search_save_LIBS=$LIBS
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11557 /* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560 #ifdef __cplusplus
11561 extern "C"
11562 #endif
11563 char log ();
11565 main ()
11567 return log ();
11569 return 0;
11571 _ACEOF
11572 for ac_lib in '' m; do
11573 if test -z "$ac_lib"; then
11574 ac_res="none required"
11575 else
11576 ac_res=-l$ac_lib
11577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 ac_cv_search_log=$ac_res
11582 rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext
11584 if ${ac_cv_search_log+:} false; then :
11585 break
11587 done
11588 if ${ac_cv_search_log+:} false; then :
11590 else
11591 ac_cv_search_log=no
11593 rm conftest.$ac_ext
11594 LIBS=$ac_func_search_save_LIBS
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11597 $as_echo "$ac_cv_search_log" >&6; }
11598 ac_res=$ac_cv_search_log
11599 if test "$ac_res" != no; then :
11600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11606 #########
11607 # See whether we should enable JSON1
11608 # Check whether --enable-json1 was given.
11609 if test "${enable_json1+set}" = set; then :
11610 enableval=$enable_json1; enable_json1=yes
11611 else
11612 enable_json1=no
11615 if test "${enable_json1}" = "yes" ; then
11616 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
11619 #########
11620 # See whether we should enable the LIMIT clause on UPDATE and DELETE
11621 # statements.
11622 # Check whether --enable-update-limit was given.
11623 if test "${enable_update_limit+set}" = set; then :
11624 enableval=$enable_update_limit; enable_udlimit=yes
11625 else
11626 enable_udlimit=no
11629 if test "${enable_udlimit}" = "yes" ; then
11630 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11633 #########
11634 # See whether we should enable RTREE
11635 # Check whether --enable-rtree was given.
11636 if test "${enable_rtree+set}" = set; then :
11637 enableval=$enable_rtree; enable_rtree=yes
11638 else
11639 enable_rtree=no
11642 if test "${enable_rtree}" = "yes" ; then
11643 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
11646 #########
11647 # See whether we should enable the SESSION extension
11648 # Check whether --enable-session was given.
11649 if test "${enable_session+set}" = set; then :
11650 enableval=$enable_session; enable_session=yes
11651 else
11652 enable_session=no
11655 if test "${enable_session}" = "yes" ; then
11656 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11657 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
11660 #########
11661 # attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
11662 for option in $CFLAGS $CPPFLAGS
11664 case $option in
11665 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11666 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11667 esac
11668 done
11672 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11673 ac_temp_CFLAGS=""
11674 for option in $CFLAGS
11676 case $option in
11677 -DSQLITE_OMIT*) ;;
11678 -DSQLITE_ENABLE*) ;;
11679 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11680 esac
11681 done
11682 CFLAGS=$ac_temp_CFLAGS
11685 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11686 ac_temp_CPPFLAGS=""
11687 for option in $CPPFLAGS
11689 case $option in
11690 -DSQLITE_OMIT*) ;;
11691 -DSQLITE_ENABLE*) ;;
11692 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11693 esac
11694 done
11695 CPPFLAGS=$ac_temp_CPPFLAGS
11698 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11699 ac_temp_BUILD_CFLAGS=""
11700 for option in $BUILD_CFLAGS
11702 case $option in
11703 -DSQLITE_OMIT*) ;;
11704 -DSQLITE_ENABLE*) ;;
11705 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11706 esac
11707 done
11708 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11711 #########
11712 # See whether we should use GCOV
11713 # Check whether --enable-gcov was given.
11714 if test "${enable_gcov+set}" = set; then :
11715 enableval=$enable_gcov; use_gcov=$enableval
11716 else
11717 use_gcov=no
11720 if test "${use_gcov}" = "yes" ; then
11721 USE_GCOV=1
11722 else
11723 USE_GCOV=0
11728 #########
11729 # Output the config header
11730 ac_config_headers="$ac_config_headers config.h"
11733 #########
11734 # Generate the output files.
11737 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11739 cat >confcache <<\_ACEOF
11740 # This file is a shell script that caches the results of configure
11741 # tests run on this system so they can be shared between configure
11742 # scripts and configure runs, see configure's option --config-cache.
11743 # It is not useful on other systems. If it contains results you don't
11744 # want to keep, you may remove or edit it.
11746 # config.status only pays attention to the cache file if you give it
11747 # the --recheck option to rerun configure.
11749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11751 # following values.
11753 _ACEOF
11755 # The following way of writing the cache mishandles newlines in values,
11756 # but we know of no workaround that is simple, portable, and efficient.
11757 # So, we kill variables containing newlines.
11758 # Ultrix sh set writes to stderr and can't be redirected directly,
11759 # and sets the high bit in the cache file unless we assign to the vars.
11761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11762 eval ac_val=\$$ac_var
11763 case $ac_val in #(
11764 *${as_nl}*)
11765 case $ac_var in #(
11766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11768 esac
11769 case $ac_var in #(
11770 _ | IFS | as_nl) ;; #(
11771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11772 *) { eval $ac_var=; unset $ac_var;} ;;
11773 esac ;;
11774 esac
11775 done
11777 (set) 2>&1 |
11778 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11779 *${as_nl}ac_space=\ *)
11780 # `set' does not quote correctly, so add quotes: double-quote
11781 # substitution turns \\\\ into \\, and sed turns \\ into \.
11782 sed -n \
11783 "s/'/'\\\\''/g;
11784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11785 ;; #(
11787 # `set' quotes correctly as required by POSIX, so do not add quotes.
11788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11790 esac |
11791 sort
11793 sed '
11794 /^ac_cv_env_/b end
11795 t clear
11796 :clear
11797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11798 t end
11799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11800 :end' >>confcache
11801 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11802 if test -w "$cache_file"; then
11803 if test "x$cache_file" != "x/dev/null"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11805 $as_echo "$as_me: updating cache $cache_file" >&6;}
11806 if test ! -f "$cache_file" || test -h "$cache_file"; then
11807 cat confcache >"$cache_file"
11808 else
11809 case $cache_file in #(
11810 */* | ?:*)
11811 mv -f confcache "$cache_file"$$ &&
11812 mv -f "$cache_file"$$ "$cache_file" ;; #(
11814 mv -f confcache "$cache_file" ;;
11815 esac
11818 else
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11820 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11823 rm -f confcache
11825 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11826 # Let make expand exec_prefix.
11827 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11829 DEFS=-DHAVE_CONFIG_H
11831 ac_libobjs=
11832 ac_ltlibobjs=
11834 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11835 # 1. Remove the extension, and $U if already installed.
11836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11839 # will be set to the directory where LIBOBJS objects are built.
11840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11842 done
11843 LIBOBJS=$ac_libobjs
11845 LTLIBOBJS=$ac_ltlibobjs
11849 : "${CONFIG_STATUS=./config.status}"
11850 ac_write_fail=0
11851 ac_clean_files_save=$ac_clean_files
11852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11854 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11855 as_write_fail=0
11856 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11857 #! $SHELL
11858 # Generated by $as_me.
11859 # Run this file to recreate the current configuration.
11860 # Compiler output produced by configure, useful for debugging
11861 # configure, is in config.log if it exists.
11863 debug=false
11864 ac_cs_recheck=false
11865 ac_cs_silent=false
11867 SHELL=\${CONFIG_SHELL-$SHELL}
11868 export SHELL
11869 _ASEOF
11870 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11871 ## -------------------- ##
11872 ## M4sh Initialization. ##
11873 ## -------------------- ##
11875 # Be more Bourne compatible
11876 DUALCASE=1; export DUALCASE # for MKS sh
11877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11878 emulate sh
11879 NULLCMD=:
11880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11881 # is contrary to our usage. Disable this feature.
11882 alias -g '${1+"$@"}'='"$@"'
11883 setopt NO_GLOB_SUBST
11884 else
11885 case `(set -o) 2>/dev/null` in #(
11886 *posix*) :
11887 set -o posix ;; #(
11888 *) :
11890 esac
11894 as_nl='
11896 export as_nl
11897 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11898 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11901 # Prefer a ksh shell builtin over an external printf program on Solaris,
11902 # but without wasting forks for bash or zsh.
11903 if test -z "$BASH_VERSION$ZSH_VERSION" \
11904 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11905 as_echo='print -r --'
11906 as_echo_n='print -rn --'
11907 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11908 as_echo='printf %s\n'
11909 as_echo_n='printf %s'
11910 else
11911 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11912 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11913 as_echo_n='/usr/ucb/echo -n'
11914 else
11915 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11916 as_echo_n_body='eval
11917 arg=$1;
11918 case $arg in #(
11919 *"$as_nl"*)
11920 expr "X$arg" : "X\\(.*\\)$as_nl";
11921 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11922 esac;
11923 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11925 export as_echo_n_body
11926 as_echo_n='sh -c $as_echo_n_body as_echo'
11928 export as_echo_body
11929 as_echo='sh -c $as_echo_body as_echo'
11932 # The user is always right.
11933 if test "${PATH_SEPARATOR+set}" != set; then
11934 PATH_SEPARATOR=:
11935 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11936 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11937 PATH_SEPARATOR=';'
11942 # IFS
11943 # We need space, tab and new line, in precisely that order. Quoting is
11944 # there to prevent editors from complaining about space-tab.
11945 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11946 # splitting by setting IFS to empty value.)
11947 IFS=" "" $as_nl"
11949 # Find who we are. Look in the path if we contain no directory separator.
11950 as_myself=
11951 case $0 in #((
11952 *[\\/]* ) as_myself=$0 ;;
11953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
11958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11959 done
11960 IFS=$as_save_IFS
11963 esac
11964 # We did not find ourselves, most probably we were run as `sh COMMAND'
11965 # in which case we are not to be found in the path.
11966 if test "x$as_myself" = x; then
11967 as_myself=$0
11969 if test ! -f "$as_myself"; then
11970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11971 exit 1
11974 # Unset variables that we do not need and which cause bugs (e.g. in
11975 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11976 # suppresses any "Segmentation fault" message there. '((' could
11977 # trigger a bug in pdksh 5.2.14.
11978 for as_var in BASH_ENV ENV MAIL MAILPATH
11979 do eval test x\${$as_var+set} = xset \
11980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11981 done
11982 PS1='$ '
11983 PS2='> '
11984 PS4='+ '
11986 # NLS nuisances.
11987 LC_ALL=C
11988 export LC_ALL
11989 LANGUAGE=C
11990 export LANGUAGE
11992 # CDPATH.
11993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11997 # ----------------------------------------
11998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12000 # script with STATUS, using 1 if that was 0.
12001 as_fn_error ()
12003 as_status=$1; test $as_status -eq 0 && as_status=1
12004 if test "$4"; then
12005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12008 $as_echo "$as_me: error: $2" >&2
12009 as_fn_exit $as_status
12010 } # as_fn_error
12013 # as_fn_set_status STATUS
12014 # -----------------------
12015 # Set $? to STATUS, without forking.
12016 as_fn_set_status ()
12018 return $1
12019 } # as_fn_set_status
12021 # as_fn_exit STATUS
12022 # -----------------
12023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12024 as_fn_exit ()
12026 set +e
12027 as_fn_set_status $1
12028 exit $1
12029 } # as_fn_exit
12031 # as_fn_unset VAR
12032 # ---------------
12033 # Portably unset VAR.
12034 as_fn_unset ()
12036 { eval $1=; unset $1;}
12038 as_unset=as_fn_unset
12039 # as_fn_append VAR VALUE
12040 # ----------------------
12041 # Append the text in VALUE to the end of the definition contained in VAR. Take
12042 # advantage of any shell optimizations that allow amortized linear growth over
12043 # repeated appends, instead of the typical quadratic growth present in naive
12044 # implementations.
12045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12046 eval 'as_fn_append ()
12048 eval $1+=\$2
12050 else
12051 as_fn_append ()
12053 eval $1=\$$1\$2
12055 fi # as_fn_append
12057 # as_fn_arith ARG...
12058 # ------------------
12059 # Perform arithmetic evaluation on the ARGs, and store the result in the
12060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12061 # must be portable across $(()) and expr.
12062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12063 eval 'as_fn_arith ()
12065 as_val=$(( $* ))
12067 else
12068 as_fn_arith ()
12070 as_val=`expr "$@" || test $? -eq 1`
12072 fi # as_fn_arith
12075 if expr a : '\(a\)' >/dev/null 2>&1 &&
12076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12077 as_expr=expr
12078 else
12079 as_expr=false
12082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12083 as_basename=basename
12084 else
12085 as_basename=false
12088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12089 as_dirname=dirname
12090 else
12091 as_dirname=false
12094 as_me=`$as_basename -- "$0" ||
12095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12096 X"$0" : 'X\(//\)$' \| \
12097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12098 $as_echo X/"$0" |
12099 sed '/^.*\/\([^/][^/]*\)\/*$/{
12100 s//\1/
12103 /^X\/\(\/\/\)$/{
12104 s//\1/
12107 /^X\/\(\/\).*/{
12108 s//\1/
12111 s/.*/./; q'`
12113 # Avoid depending upon Character Ranges.
12114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12117 as_cr_digits='0123456789'
12118 as_cr_alnum=$as_cr_Letters$as_cr_digits
12120 ECHO_C= ECHO_N= ECHO_T=
12121 case `echo -n x` in #(((((
12122 -n*)
12123 case `echo 'xy\c'` in
12124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12125 xy) ECHO_C='\c';;
12126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12127 ECHO_T=' ';;
12128 esac;;
12130 ECHO_N='-n';;
12131 esac
12133 rm -f conf$$ conf$$.exe conf$$.file
12134 if test -d conf$$.dir; then
12135 rm -f conf$$.dir/conf$$.file
12136 else
12137 rm -f conf$$.dir
12138 mkdir conf$$.dir 2>/dev/null
12140 if (echo >conf$$.file) 2>/dev/null; then
12141 if ln -s conf$$.file conf$$ 2>/dev/null; then
12142 as_ln_s='ln -s'
12143 # ... but there are two gotchas:
12144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12146 # In both cases, we have to default to `cp -pR'.
12147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12148 as_ln_s='cp -pR'
12149 elif ln conf$$.file conf$$ 2>/dev/null; then
12150 as_ln_s=ln
12151 else
12152 as_ln_s='cp -pR'
12154 else
12155 as_ln_s='cp -pR'
12157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12158 rmdir conf$$.dir 2>/dev/null
12161 # as_fn_mkdir_p
12162 # -------------
12163 # Create "$as_dir" as a directory, including parents if necessary.
12164 as_fn_mkdir_p ()
12167 case $as_dir in #(
12168 -*) as_dir=./$as_dir;;
12169 esac
12170 test -d "$as_dir" || eval $as_mkdir_p || {
12171 as_dirs=
12172 while :; do
12173 case $as_dir in #(
12174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12175 *) as_qdir=$as_dir;;
12176 esac
12177 as_dirs="'$as_qdir' $as_dirs"
12178 as_dir=`$as_dirname -- "$as_dir" ||
12179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12180 X"$as_dir" : 'X\(//\)[^/]' \| \
12181 X"$as_dir" : 'X\(//\)$' \| \
12182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12183 $as_echo X"$as_dir" |
12184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12185 s//\1/
12188 /^X\(\/\/\)[^/].*/{
12189 s//\1/
12192 /^X\(\/\/\)$/{
12193 s//\1/
12196 /^X\(\/\).*/{
12197 s//\1/
12200 s/.*/./; q'`
12201 test -d "$as_dir" && break
12202 done
12203 test -z "$as_dirs" || eval "mkdir $as_dirs"
12204 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12207 } # as_fn_mkdir_p
12208 if mkdir -p . 2>/dev/null; then
12209 as_mkdir_p='mkdir -p "$as_dir"'
12210 else
12211 test -d ./-p && rmdir ./-p
12212 as_mkdir_p=false
12216 # as_fn_executable_p FILE
12217 # -----------------------
12218 # Test if FILE is an executable regular file.
12219 as_fn_executable_p ()
12221 test -f "$1" && test -x "$1"
12222 } # as_fn_executable_p
12223 as_test_x='test -x'
12224 as_executable_p=as_fn_executable_p
12226 # Sed expression to map a string onto a valid CPP name.
12227 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12229 # Sed expression to map a string onto a valid variable name.
12230 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12233 exec 6>&1
12234 ## ----------------------------------- ##
12235 ## Main body of $CONFIG_STATUS script. ##
12236 ## ----------------------------------- ##
12237 _ASEOF
12238 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241 # Save the log message, to keep $0 and so on meaningful, and to
12242 # report actual input values of CONFIG_FILES etc. instead of their
12243 # values after options handling.
12244 ac_log="
12245 This file was extended by sqlite $as_me 3.23.0, which was
12246 generated by GNU Autoconf 2.69. Invocation command line was
12248 CONFIG_FILES = $CONFIG_FILES
12249 CONFIG_HEADERS = $CONFIG_HEADERS
12250 CONFIG_LINKS = $CONFIG_LINKS
12251 CONFIG_COMMANDS = $CONFIG_COMMANDS
12252 $ $0 $@
12254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12257 _ACEOF
12259 case $ac_config_files in *"
12260 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12261 esac
12263 case $ac_config_headers in *"
12264 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12265 esac
12268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12269 # Files that config.status was made for.
12270 config_files="$ac_config_files"
12271 config_headers="$ac_config_headers"
12272 config_commands="$ac_config_commands"
12274 _ACEOF
12276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12277 ac_cs_usage="\
12278 \`$as_me' instantiates files and other configuration actions
12279 from templates according to the current configuration. Unless the files
12280 and actions are specified as TAGs, all are instantiated by default.
12282 Usage: $0 [OPTION]... [TAG]...
12284 -h, --help print this help, then exit
12285 -V, --version print version number and configuration settings, then exit
12286 --config print configuration, then exit
12287 -q, --quiet, --silent
12288 do not print progress messages
12289 -d, --debug don't remove temporary files
12290 --recheck update $as_me by reconfiguring in the same conditions
12291 --file=FILE[:TEMPLATE]
12292 instantiate the configuration file FILE
12293 --header=FILE[:TEMPLATE]
12294 instantiate the configuration header FILE
12296 Configuration files:
12297 $config_files
12299 Configuration headers:
12300 $config_headers
12302 Configuration commands:
12303 $config_commands
12305 Report bugs to the package provider."
12307 _ACEOF
12308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12309 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12310 ac_cs_version="\\
12311 sqlite config.status 3.23.0
12312 configured by $0, generated by GNU Autoconf 2.69,
12313 with options \\"\$ac_cs_config\\"
12315 Copyright (C) 2012 Free Software Foundation, Inc.
12316 This config.status script is free software; the Free Software Foundation
12317 gives unlimited permission to copy, distribute and modify it."
12319 ac_pwd='$ac_pwd'
12320 srcdir='$srcdir'
12321 INSTALL='$INSTALL'
12322 test -n "\$AWK" || AWK=awk
12323 _ACEOF
12325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12326 # The default lists apply if the user does not specify any file.
12327 ac_need_defaults=:
12328 while test $# != 0
12330 case $1 in
12331 --*=?*)
12332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12333 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12334 ac_shift=:
12336 --*=)
12337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12338 ac_optarg=
12339 ac_shift=:
12342 ac_option=$1
12343 ac_optarg=$2
12344 ac_shift=shift
12346 esac
12348 case $ac_option in
12349 # Handling of the options.
12350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12351 ac_cs_recheck=: ;;
12352 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12353 $as_echo "$ac_cs_version"; exit ;;
12354 --config | --confi | --conf | --con | --co | --c )
12355 $as_echo "$ac_cs_config"; exit ;;
12356 --debug | --debu | --deb | --de | --d | -d )
12357 debug=: ;;
12358 --file | --fil | --fi | --f )
12359 $ac_shift
12360 case $ac_optarg in
12361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12362 '') as_fn_error $? "missing file argument" ;;
12363 esac
12364 as_fn_append CONFIG_FILES " '$ac_optarg'"
12365 ac_need_defaults=false;;
12366 --header | --heade | --head | --hea )
12367 $ac_shift
12368 case $ac_optarg in
12369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12370 esac
12371 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12372 ac_need_defaults=false;;
12373 --he | --h)
12374 # Conflict between --help and --header
12375 as_fn_error $? "ambiguous option: \`$1'
12376 Try \`$0 --help' for more information.";;
12377 --help | --hel | -h )
12378 $as_echo "$ac_cs_usage"; exit ;;
12379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12381 ac_cs_silent=: ;;
12383 # This is an error.
12384 -*) as_fn_error $? "unrecognized option: \`$1'
12385 Try \`$0 --help' for more information." ;;
12387 *) as_fn_append ac_config_targets " $1"
12388 ac_need_defaults=false ;;
12390 esac
12391 shift
12392 done
12394 ac_configure_extra_args=
12396 if $ac_cs_silent; then
12397 exec 6>/dev/null
12398 ac_configure_extra_args="$ac_configure_extra_args --silent"
12401 _ACEOF
12402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12403 if \$ac_cs_recheck; then
12404 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12405 shift
12406 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12407 CONFIG_SHELL='$SHELL'
12408 export CONFIG_SHELL
12409 exec "\$@"
12412 _ACEOF
12413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12414 exec 5>>config.log
12416 echo
12417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12418 ## Running $as_me. ##
12419 _ASBOX
12420 $as_echo "$ac_log"
12421 } >&5
12423 _ACEOF
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12426 # INIT-COMMANDS
12430 # The HP-UX ksh and POSIX shell print the target directory to stdout
12431 # if CDPATH is set.
12432 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12434 sed_quote_subst='$sed_quote_subst'
12435 double_quote_subst='$double_quote_subst'
12436 delay_variable_subst='$delay_variable_subst'
12437 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12438 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12439 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12440 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12441 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12442 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12443 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12444 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12445 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12446 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12447 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12448 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12449 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12450 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12451 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12452 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12453 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12454 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12455 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12456 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12457 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12458 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12459 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12460 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12461 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12462 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12463 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12464 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12465 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12466 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12467 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12468 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12469 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12470 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12471 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12472 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12473 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12474 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12475 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12476 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12477 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12478 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12479 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12481 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"`'
12482 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"`'
12483 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12484 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12485 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12486 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12487 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12488 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12489 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12490 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12491 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12492 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12493 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12494 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12495 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12496 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12497 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12498 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12499 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12500 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12501 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12502 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12503 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12504 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12505 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12506 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12507 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12508 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12509 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12510 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12511 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12512 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12513 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12514 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12515 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12516 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12517 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12518 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12519 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12520 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12521 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12522 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12523 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12524 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12525 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12526 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12527 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12528 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12529 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12530 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12531 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12532 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12533 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12534 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12535 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12536 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12537 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12538 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12539 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12540 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12541 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12542 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12543 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12544 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12545 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12546 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12547 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12548 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12549 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12550 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12551 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12552 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12553 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12554 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12556 LTCC='$LTCC'
12557 LTCFLAGS='$LTCFLAGS'
12558 compiler='$compiler_DEFAULT'
12560 # Quote evaled strings.
12561 for var in SED \
12562 GREP \
12563 EGREP \
12564 FGREP \
12565 LD \
12566 NM \
12567 LN_S \
12568 lt_SP2NL \
12569 lt_NL2SP \
12570 reload_flag \
12571 OBJDUMP \
12572 deplibs_check_method \
12573 file_magic_cmd \
12574 AR \
12575 AR_FLAGS \
12576 STRIP \
12577 RANLIB \
12578 CC \
12579 CFLAGS \
12580 compiler \
12581 lt_cv_sys_global_symbol_pipe \
12582 lt_cv_sys_global_symbol_to_cdecl \
12583 lt_cv_sys_global_symbol_to_c_name_address \
12584 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12585 SHELL \
12586 ECHO \
12587 lt_prog_compiler_no_builtin_flag \
12588 lt_prog_compiler_wl \
12589 lt_prog_compiler_pic \
12590 lt_prog_compiler_static \
12591 lt_cv_prog_compiler_c_o \
12592 need_locks \
12593 DSYMUTIL \
12594 NMEDIT \
12595 LIPO \
12596 OTOOL \
12597 OTOOL64 \
12598 shrext_cmds \
12599 export_dynamic_flag_spec \
12600 whole_archive_flag_spec \
12601 compiler_needs_object \
12602 with_gnu_ld \
12603 allow_undefined_flag \
12604 no_undefined_flag \
12605 hardcode_libdir_flag_spec \
12606 hardcode_libdir_flag_spec_ld \
12607 hardcode_libdir_separator \
12608 fix_srcfile_path \
12609 exclude_expsyms \
12610 include_expsyms \
12611 file_list_spec \
12612 variables_saved_for_relink \
12613 libname_spec \
12614 library_names_spec \
12615 soname_spec \
12616 finish_eval \
12617 old_striplib \
12618 striplib; do
12619 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12620 *[\\\\\\\`\\"\\\$]*)
12621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12626 esac
12627 done
12629 # Double-quote double-evaled strings.
12630 for var in reload_cmds \
12631 old_postinstall_cmds \
12632 old_postuninstall_cmds \
12633 old_archive_cmds \
12634 extract_expsyms_cmds \
12635 old_archive_from_new_cmds \
12636 old_archive_from_expsyms_cmds \
12637 archive_cmds \
12638 archive_expsym_cmds \
12639 module_cmds \
12640 module_expsym_cmds \
12641 export_symbols_cmds \
12642 prelink_cmds \
12643 postinstall_cmds \
12644 postuninstall_cmds \
12645 finish_cmds \
12646 sys_lib_search_path_spec \
12647 sys_lib_dlsearch_path_spec; do
12648 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12649 *[\\\\\\\`\\"\\\$]*)
12650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12655 esac
12656 done
12658 # Fix-up fallback echo if it was mangled by the above quoting rules.
12659 case \$lt_ECHO in
12660 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12662 esac
12664 ac_aux_dir='$ac_aux_dir'
12665 xsi_shell='$xsi_shell'
12666 lt_shell_append='$lt_shell_append'
12668 # See if we are running on zsh, and set the options which allow our
12669 # commands through without removal of \ escapes INIT.
12670 if test -n "\${ZSH_VERSION+set}" ; then
12671 setopt NO_GLOB_SUBST
12675 PACKAGE='$PACKAGE'
12676 VERSION='$VERSION'
12677 TIMESTAMP='$TIMESTAMP'
12678 RM='$RM'
12679 ofile='$ofile'
12684 _ACEOF
12686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12688 # Handling of arguments.
12689 for ac_config_target in $ac_config_targets
12691 case $ac_config_target in
12692 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12694 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12695 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12697 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12698 esac
12699 done
12702 # If the user did not use the arguments to specify the items to instantiate,
12703 # then the envvar interface is used. Set only those that are not.
12704 # We use the long form for the default assignment because of an extremely
12705 # bizarre bug on SunOS 4.1.3.
12706 if $ac_need_defaults; then
12707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12712 # Have a temporary directory for convenience. Make it in the build tree
12713 # simply because there is no reason against having it here, and in addition,
12714 # creating and moving files from /tmp can sometimes cause problems.
12715 # Hook for its removal unless debugging.
12716 # Note that there is a small window in which the directory will not be cleaned:
12717 # after its creation but before its name has been assigned to `$tmp'.
12718 $debug ||
12720 tmp= ac_tmp=
12721 trap 'exit_status=$?
12722 : "${ac_tmp:=$tmp}"
12723 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12725 trap 'as_fn_exit 1' 1 2 13 15
12727 # Create a (secure) tmp directory for tmp files.
12730 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12731 test -d "$tmp"
12732 } ||
12734 tmp=./conf$$-$RANDOM
12735 (umask 077 && mkdir "$tmp")
12736 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12737 ac_tmp=$tmp
12739 # Set up the scripts for CONFIG_FILES section.
12740 # No need to generate them if there are no CONFIG_FILES.
12741 # This happens for instance with `./config.status config.h'.
12742 if test -n "$CONFIG_FILES"; then
12745 ac_cr=`echo X | tr X '\015'`
12746 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12747 # But we know of no other shell where ac_cr would be empty at this
12748 # point, so we can use a bashism as a fallback.
12749 if test "x$ac_cr" = x; then
12750 eval ac_cr=\$\'\\r\'
12752 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12753 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12754 ac_cs_awk_cr='\\r'
12755 else
12756 ac_cs_awk_cr=$ac_cr
12759 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12760 _ACEOF
12764 echo "cat >conf$$subs.awk <<_ACEOF" &&
12765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12766 echo "_ACEOF"
12767 } >conf$$subs.sh ||
12768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12769 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12770 ac_delim='%!_!# '
12771 for ac_last_try in false false false false false :; do
12772 . ./conf$$subs.sh ||
12773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12775 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12776 if test $ac_delim_n = $ac_delim_num; then
12777 break
12778 elif $ac_last_try; then
12779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12780 else
12781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12783 done
12784 rm -f conf$$subs.sh
12786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12787 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12788 _ACEOF
12789 sed -n '
12791 s/^/S["/; s/!.*/"]=/
12794 s/^[^!]*!//
12795 :repl
12796 t repl
12797 s/'"$ac_delim"'$//
12798 t delim
12801 s/\(.\{148\}\)..*/\1/
12802 t more1
12803 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12806 b repl
12807 :more1
12808 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12811 s/.\{148\}//
12812 t nl
12813 :delim
12815 s/\(.\{148\}\)..*/\1/
12816 t more2
12817 s/["\\]/\\&/g; s/^/"/; s/$/"/
12820 :more2
12821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12824 s/.\{148\}//
12825 t delim
12826 ' <conf$$subs.awk | sed '
12827 /^[^""]/{
12829 s/\n//
12831 ' >>$CONFIG_STATUS || ac_write_fail=1
12832 rm -f conf$$subs.awk
12833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12834 _ACAWK
12835 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12836 for (key in S) S_is_set[key] = 1
12837 FS = "\a"
12841 line = $ 0
12842 nfields = split(line, field, "@")
12843 substed = 0
12844 len = length(field[1])
12845 for (i = 2; i < nfields; i++) {
12846 key = field[i]
12847 keylen = length(key)
12848 if (S_is_set[key]) {
12849 value = S[key]
12850 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12851 len += length(value) + length(field[++i])
12852 substed = 1
12853 } else
12854 len += 1 + keylen
12857 print line
12860 _ACAWK
12861 _ACEOF
12862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12863 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12864 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12865 else
12867 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12868 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12869 _ACEOF
12871 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12872 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12873 # trailing colons and then remove the whole line if VPATH becomes empty
12874 # (actually we leave an empty line to preserve line numbers).
12875 if test "x$srcdir" = x.; then
12876 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12878 s///
12879 s/^/:/
12880 s/[ ]*$/:/
12881 s/:\$(srcdir):/:/g
12882 s/:\${srcdir}:/:/g
12883 s/:@srcdir@:/:/g
12884 s/^:*//
12885 s/:*$//
12887 s/\(=[ ]*\).*/\1/
12889 s/\n//
12890 s/^[^=]*=[ ]*$//
12894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12895 fi # test -n "$CONFIG_FILES"
12897 # Set up the scripts for CONFIG_HEADERS section.
12898 # No need to generate them if there are no CONFIG_HEADERS.
12899 # This happens for instance with `./config.status Makefile'.
12900 if test -n "$CONFIG_HEADERS"; then
12901 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12902 BEGIN {
12903 _ACEOF
12905 # Transform confdefs.h into an awk script `defines.awk', embedded as
12906 # here-document in config.status, that substitutes the proper values into
12907 # config.h.in to produce config.h.
12909 # Create a delimiter string that does not exist in confdefs.h, to ease
12910 # handling of long lines.
12911 ac_delim='%!_!# '
12912 for ac_last_try in false false :; do
12913 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12914 if test -z "$ac_tt"; then
12915 break
12916 elif $ac_last_try; then
12917 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12918 else
12919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12921 done
12923 # For the awk script, D is an array of macro values keyed by name,
12924 # likewise P contains macro parameters if any. Preserve backslash
12925 # newline sequences.
12927 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12928 sed -n '
12929 s/.\{148\}/&'"$ac_delim"'/g
12930 t rset
12931 :rset
12932 s/^[ ]*#[ ]*define[ ][ ]*/ /
12933 t def
12935 :def
12936 s/\\$//
12937 t bsnl
12938 s/["\\]/\\&/g
12939 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12940 D["\1"]=" \3"/p
12941 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12943 :bsnl
12944 s/["\\]/\\&/g
12945 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12946 D["\1"]=" \3\\\\\\n"\\/p
12947 t cont
12948 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12949 t cont
12951 :cont
12953 s/.\{148\}/&'"$ac_delim"'/g
12954 t clear
12955 :clear
12956 s/\\$//
12957 t bsnlc
12958 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12960 :bsnlc
12961 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12962 b cont
12963 ' <confdefs.h | sed '
12964 s/'"$ac_delim"'/"\\\
12965 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12968 for (key in D) D_is_set[key] = 1
12969 FS = "\a"
12971 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12972 line = \$ 0
12973 split(line, arg, " ")
12974 if (arg[1] == "#") {
12975 defundef = arg[2]
12976 mac1 = arg[3]
12977 } else {
12978 defundef = substr(arg[1], 2)
12979 mac1 = arg[2]
12981 split(mac1, mac2, "(") #)
12982 macro = mac2[1]
12983 prefix = substr(line, 1, index(line, defundef) - 1)
12984 if (D_is_set[macro]) {
12985 # Preserve the white space surrounding the "#".
12986 print prefix "define", macro P[macro] D[macro]
12987 next
12988 } else {
12989 # Replace #undef with comments. This is necessary, for example,
12990 # in the case of _POSIX_SOURCE, which is predefined and required
12991 # on some systems where configure will not decide to define it.
12992 if (defundef == "undef") {
12993 print "/*", prefix defundef, macro, "*/"
12994 next
12998 { print }
12999 _ACAWK
13000 _ACEOF
13001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13002 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13003 fi # test -n "$CONFIG_HEADERS"
13006 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13007 shift
13008 for ac_tag
13010 case $ac_tag in
13011 :[FHLC]) ac_mode=$ac_tag; continue;;
13012 esac
13013 case $ac_mode$ac_tag in
13014 :[FHL]*:*);;
13015 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13016 :[FH]-) ac_tag=-:-;;
13017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13018 esac
13019 ac_save_IFS=$IFS
13020 IFS=:
13021 set x $ac_tag
13022 IFS=$ac_save_IFS
13023 shift
13024 ac_file=$1
13025 shift
13027 case $ac_mode in
13028 :L) ac_source=$1;;
13029 :[FH])
13030 ac_file_inputs=
13031 for ac_f
13033 case $ac_f in
13034 -) ac_f="$ac_tmp/stdin";;
13035 *) # Look for the file first in the build tree, then in the source tree
13036 # (if the path is not absolute). The absolute path cannot be DOS-style,
13037 # because $ac_f cannot contain `:'.
13038 test -f "$ac_f" ||
13039 case $ac_f in
13040 [\\/$]*) false;;
13041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13042 esac ||
13043 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13044 esac
13045 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13046 as_fn_append ac_file_inputs " '$ac_f'"
13047 done
13049 # Let's still pretend it is `configure' which instantiates (i.e., don't
13050 # use $as_me), people would be surprised to read:
13051 # /* config.h. Generated by config.status. */
13052 configure_input='Generated from '`
13053 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13054 `' by configure.'
13055 if test x"$ac_file" != x-; then
13056 configure_input="$ac_file. $configure_input"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13058 $as_echo "$as_me: creating $ac_file" >&6;}
13060 # Neutralize special characters interpreted by sed in replacement strings.
13061 case $configure_input in #(
13062 *\&* | *\|* | *\\* )
13063 ac_sed_conf_input=`$as_echo "$configure_input" |
13064 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13065 *) ac_sed_conf_input=$configure_input;;
13066 esac
13068 case $ac_tag in
13069 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13071 esac
13073 esac
13075 ac_dir=`$as_dirname -- "$ac_file" ||
13076 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13077 X"$ac_file" : 'X\(//\)[^/]' \| \
13078 X"$ac_file" : 'X\(//\)$' \| \
13079 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13080 $as_echo X"$ac_file" |
13081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13082 s//\1/
13085 /^X\(\/\/\)[^/].*/{
13086 s//\1/
13089 /^X\(\/\/\)$/{
13090 s//\1/
13093 /^X\(\/\).*/{
13094 s//\1/
13097 s/.*/./; q'`
13098 as_dir="$ac_dir"; as_fn_mkdir_p
13099 ac_builddir=.
13101 case "$ac_dir" in
13102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13105 # A ".." for each directory in $ac_dir_suffix.
13106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13107 case $ac_top_builddir_sub in
13108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13110 esac ;;
13111 esac
13112 ac_abs_top_builddir=$ac_pwd
13113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13114 # for backward compatibility:
13115 ac_top_builddir=$ac_top_build_prefix
13117 case $srcdir in
13118 .) # We are building in place.
13119 ac_srcdir=.
13120 ac_top_srcdir=$ac_top_builddir_sub
13121 ac_abs_top_srcdir=$ac_pwd ;;
13122 [\\/]* | ?:[\\/]* ) # Absolute name.
13123 ac_srcdir=$srcdir$ac_dir_suffix;
13124 ac_top_srcdir=$srcdir
13125 ac_abs_top_srcdir=$srcdir ;;
13126 *) # Relative name.
13127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13128 ac_top_srcdir=$ac_top_build_prefix$srcdir
13129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13130 esac
13131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13134 case $ac_mode in
13137 # CONFIG_FILE
13140 case $INSTALL in
13141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13143 esac
13144 _ACEOF
13146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13147 # If the template does not know about datarootdir, expand it.
13148 # FIXME: This hack should be removed a few years after 2.60.
13149 ac_datarootdir_hack=; ac_datarootdir_seen=
13150 ac_sed_dataroot='
13151 /datarootdir/ {
13155 /@datadir@/p
13156 /@docdir@/p
13157 /@infodir@/p
13158 /@localedir@/p
13159 /@mandir@/p'
13160 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13161 *datarootdir*) ac_datarootdir_seen=yes;;
13162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13164 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13165 _ACEOF
13166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167 ac_datarootdir_hack='
13168 s&@datadir@&$datadir&g
13169 s&@docdir@&$docdir&g
13170 s&@infodir@&$infodir&g
13171 s&@localedir@&$localedir&g
13172 s&@mandir@&$mandir&g
13173 s&\\\${datarootdir}&$datarootdir&g' ;;
13174 esac
13175 _ACEOF
13177 # Neutralize VPATH when `$srcdir' = `.'.
13178 # Shell code in configure.ac might set extrasub.
13179 # FIXME: do we really want to maintain this feature?
13180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13181 ac_sed_extra="$ac_vpsub
13182 $extrasub
13183 _ACEOF
13184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13187 s|@configure_input@|$ac_sed_conf_input|;t t
13188 s&@top_builddir@&$ac_top_builddir_sub&;t t
13189 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13190 s&@srcdir@&$ac_srcdir&;t t
13191 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13192 s&@top_srcdir@&$ac_top_srcdir&;t t
13193 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13194 s&@builddir@&$ac_builddir&;t t
13195 s&@abs_builddir@&$ac_abs_builddir&;t t
13196 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13197 s&@INSTALL@&$ac_INSTALL&;t t
13198 $ac_datarootdir_hack
13200 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13203 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13206 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13208 which seems to be undefined. Please make sure it is defined" >&5
13209 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13210 which seems to be undefined. Please make sure it is defined" >&2;}
13212 rm -f "$ac_tmp/stdin"
13213 case $ac_file in
13214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13216 esac \
13217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13221 # CONFIG_HEADER
13223 if test x"$ac_file" != x-; then
13225 $as_echo "/* $configure_input */" \
13226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13227 } >"$ac_tmp/config.h" \
13228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13231 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13232 else
13233 rm -f "$ac_file"
13234 mv "$ac_tmp/config.h" "$ac_file" \
13235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13237 else
13238 $as_echo "/* $configure_input */" \
13239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13240 || as_fn_error $? "could not create -" "$LINENO" 5
13244 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13245 $as_echo "$as_me: executing $ac_file commands" >&6;}
13247 esac
13250 case $ac_file$ac_mode in
13251 "libtool":C)
13253 # See if we are running on zsh, and set the options which allow our
13254 # commands through without removal of \ escapes.
13255 if test -n "${ZSH_VERSION+set}" ; then
13256 setopt NO_GLOB_SUBST
13259 cfgfile="${ofile}T"
13260 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13261 $RM "$cfgfile"
13263 cat <<_LT_EOF >> "$cfgfile"
13264 #! $SHELL
13266 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13267 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13269 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13271 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13272 # 2006, 2007, 2008 Free Software Foundation, Inc.
13273 # Written by Gordon Matzigkeit, 1996
13275 # This file is part of GNU Libtool.
13277 # GNU Libtool is free software; you can redistribute it and/or
13278 # modify it under the terms of the GNU General Public License as
13279 # published by the Free Software Foundation; either version 2 of
13280 # the License, or (at your option) any later version.
13282 # As a special exception to the GNU General Public License,
13283 # if you distribute this file as part of a program or library that
13284 # is built using GNU Libtool, you may include this file under the
13285 # same distribution terms that you use for the rest of that program.
13287 # GNU Libtool is distributed in the hope that it will be useful,
13288 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13289 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13290 # GNU General Public License for more details.
13292 # You should have received a copy of the GNU General Public License
13293 # along with GNU Libtool; see the file COPYING. If not, a copy
13294 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13295 # obtained by writing to the Free Software Foundation, Inc.,
13296 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13299 # The names of the tagged configurations supported by this script.
13300 available_tags=""
13302 # ### BEGIN LIBTOOL CONFIG
13304 # Which release of libtool.m4 was used?
13305 macro_version=$macro_version
13306 macro_revision=$macro_revision
13308 # Whether or not to build shared libraries.
13309 build_libtool_libs=$enable_shared
13311 # Whether or not to build static libraries.
13312 build_old_libs=$enable_static
13314 # What type of objects to build.
13315 pic_mode=$pic_mode
13317 # Whether or not to optimize for fast installation.
13318 fast_install=$enable_fast_install
13320 # The host system.
13321 host_alias=$host_alias
13322 host=$host
13323 host_os=$host_os
13325 # The build system.
13326 build_alias=$build_alias
13327 build=$build
13328 build_os=$build_os
13330 # A sed program that does not truncate output.
13331 SED=$lt_SED
13333 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13334 Xsed="\$SED -e 1s/^X//"
13336 # A grep program that handles long lines.
13337 GREP=$lt_GREP
13339 # An ERE matcher.
13340 EGREP=$lt_EGREP
13342 # A literal string matcher.
13343 FGREP=$lt_FGREP
13345 # A BSD- or MS-compatible name lister.
13346 NM=$lt_NM
13348 # Whether we need soft or hard links.
13349 LN_S=$lt_LN_S
13351 # What is the maximum length of a command?
13352 max_cmd_len=$max_cmd_len
13354 # Object file suffix (normally "o").
13355 objext=$ac_objext
13357 # Executable file suffix (normally "").
13358 exeext=$exeext
13360 # whether the shell understands "unset".
13361 lt_unset=$lt_unset
13363 # turn spaces into newlines.
13364 SP2NL=$lt_lt_SP2NL
13366 # turn newlines into spaces.
13367 NL2SP=$lt_lt_NL2SP
13369 # How to create reloadable object files.
13370 reload_flag=$lt_reload_flag
13371 reload_cmds=$lt_reload_cmds
13373 # An object symbol dumper.
13374 OBJDUMP=$lt_OBJDUMP
13376 # Method to check whether dependent libraries are shared objects.
13377 deplibs_check_method=$lt_deplibs_check_method
13379 # Command to use when deplibs_check_method == "file_magic".
13380 file_magic_cmd=$lt_file_magic_cmd
13382 # The archiver.
13383 AR=$lt_AR
13384 AR_FLAGS=$lt_AR_FLAGS
13386 # A symbol stripping program.
13387 STRIP=$lt_STRIP
13389 # Commands used to install an old-style archive.
13390 RANLIB=$lt_RANLIB
13391 old_postinstall_cmds=$lt_old_postinstall_cmds
13392 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13394 # A C compiler.
13395 LTCC=$lt_CC
13397 # LTCC compiler flags.
13398 LTCFLAGS=$lt_CFLAGS
13400 # Take the output of nm and produce a listing of raw symbols and C names.
13401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13403 # Transform the output of nm in a proper C declaration.
13404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13406 # Transform the output of nm in a C name address pair.
13407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13409 # Transform the output of nm in a C name address pair when lib prefix is needed.
13410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13412 # The name of the directory that contains temporary libtool files.
13413 objdir=$objdir
13415 # Shell to use when invoking shell scripts.
13416 SHELL=$lt_SHELL
13418 # An echo program that does not interpret backslashes.
13419 ECHO=$lt_ECHO
13421 # Used to examine libraries when file_magic_cmd begins with "file".
13422 MAGIC_CMD=$MAGIC_CMD
13424 # Must we lock files when doing compilation?
13425 need_locks=$lt_need_locks
13427 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13428 DSYMUTIL=$lt_DSYMUTIL
13430 # Tool to change global to local symbols on Mac OS X.
13431 NMEDIT=$lt_NMEDIT
13433 # Tool to manipulate fat objects and archives on Mac OS X.
13434 LIPO=$lt_LIPO
13436 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13437 OTOOL=$lt_OTOOL
13439 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13440 OTOOL64=$lt_OTOOL64
13442 # Old archive suffix (normally "a").
13443 libext=$libext
13445 # Shared library suffix (normally ".so").
13446 shrext_cmds=$lt_shrext_cmds
13448 # The commands to extract the exported symbol list from a shared archive.
13449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13451 # Variables whose values should be saved in libtool wrapper scripts and
13452 # restored at link time.
13453 variables_saved_for_relink=$lt_variables_saved_for_relink
13455 # Do we need the "lib" prefix for modules?
13456 need_lib_prefix=$need_lib_prefix
13458 # Do we need a version for libraries?
13459 need_version=$need_version
13461 # Library versioning type.
13462 version_type=$version_type
13464 # Shared library runtime path variable.
13465 runpath_var=$runpath_var
13467 # Shared library path variable.
13468 shlibpath_var=$shlibpath_var
13470 # Is shlibpath searched before the hard-coded library search path?
13471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13473 # Format of library name prefix.
13474 libname_spec=$lt_libname_spec
13476 # List of archive names. First name is the real one, the rest are links.
13477 # The last name is the one that the linker finds with -lNAME
13478 library_names_spec=$lt_library_names_spec
13480 # The coded name of the library, if different from the real name.
13481 soname_spec=$lt_soname_spec
13483 # Command to use after installation of a shared archive.
13484 postinstall_cmds=$lt_postinstall_cmds
13486 # Command to use after uninstallation of a shared archive.
13487 postuninstall_cmds=$lt_postuninstall_cmds
13489 # Commands used to finish a libtool library installation in a directory.
13490 finish_cmds=$lt_finish_cmds
13492 # As "finish_cmds", except a single script fragment to be evaled but
13493 # not shown.
13494 finish_eval=$lt_finish_eval
13496 # Whether we should hardcode library paths into libraries.
13497 hardcode_into_libs=$hardcode_into_libs
13499 # Compile-time system search path for libraries.
13500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13502 # Run-time system search path for libraries.
13503 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13505 # Whether dlopen is supported.
13506 dlopen_support=$enable_dlopen
13508 # Whether dlopen of programs is supported.
13509 dlopen_self=$enable_dlopen_self
13511 # Whether dlopen of statically linked programs is supported.
13512 dlopen_self_static=$enable_dlopen_self_static
13514 # Commands to strip libraries.
13515 old_striplib=$lt_old_striplib
13516 striplib=$lt_striplib
13519 # The linker used to build libraries.
13520 LD=$lt_LD
13522 # Commands used to build an old-style archive.
13523 old_archive_cmds=$lt_old_archive_cmds
13525 # A language specific compiler.
13526 CC=$lt_compiler
13528 # Is the compiler the GNU compiler?
13529 with_gcc=$GCC
13531 # Compiler flag to turn off builtin functions.
13532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13534 # How to pass a linker flag through the compiler.
13535 wl=$lt_lt_prog_compiler_wl
13537 # Additional compiler flags for building library objects.
13538 pic_flag=$lt_lt_prog_compiler_pic
13540 # Compiler flag to prevent dynamic linking.
13541 link_static_flag=$lt_lt_prog_compiler_static
13543 # Does compiler simultaneously support -c and -o options?
13544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13546 # Whether or not to add -lc for building shared libraries.
13547 build_libtool_need_lc=$archive_cmds_need_lc
13549 # Whether or not to disallow shared libs when runtime libs are static.
13550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13552 # Compiler flag to allow reflexive dlopens.
13553 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13555 # Compiler flag to generate shared objects directly from archives.
13556 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13558 # Whether the compiler copes with passing no objects directly.
13559 compiler_needs_object=$lt_compiler_needs_object
13561 # Create an old-style archive from a shared archive.
13562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13564 # Create a temporary old-style archive to link instead of a shared archive.
13565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13567 # Commands used to build a shared archive.
13568 archive_cmds=$lt_archive_cmds
13569 archive_expsym_cmds=$lt_archive_expsym_cmds
13571 # Commands used to build a loadable module if different from building
13572 # a shared archive.
13573 module_cmds=$lt_module_cmds
13574 module_expsym_cmds=$lt_module_expsym_cmds
13576 # Whether we are building with GNU ld or not.
13577 with_gnu_ld=$lt_with_gnu_ld
13579 # Flag that allows shared libraries with undefined symbols to be built.
13580 allow_undefined_flag=$lt_allow_undefined_flag
13582 # Flag that enforces no undefined symbols.
13583 no_undefined_flag=$lt_no_undefined_flag
13585 # Flag to hardcode \$libdir into a binary during linking.
13586 # This must work even if \$libdir does not exist
13587 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13589 # If ld is used when linking, flag to hardcode \$libdir into a binary
13590 # during linking. This must work even if \$libdir does not exist.
13591 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13593 # Whether we need a single "-rpath" flag with a separated argument.
13594 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13596 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13597 # DIR into the resulting binary.
13598 hardcode_direct=$hardcode_direct
13600 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13601 # DIR into the resulting binary and the resulting library dependency is
13602 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13603 # library is relocated.
13604 hardcode_direct_absolute=$hardcode_direct_absolute
13606 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13607 # into the resulting binary.
13608 hardcode_minus_L=$hardcode_minus_L
13610 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13611 # into the resulting binary.
13612 hardcode_shlibpath_var=$hardcode_shlibpath_var
13614 # Set to "yes" if building a shared library automatically hardcodes DIR
13615 # into the library and all subsequent libraries and executables linked
13616 # against it.
13617 hardcode_automatic=$hardcode_automatic
13619 # Set to yes if linker adds runtime paths of dependent libraries
13620 # to runtime path list.
13621 inherit_rpath=$inherit_rpath
13623 # Whether libtool must link a program against all its dependency libraries.
13624 link_all_deplibs=$link_all_deplibs
13626 # Fix the shell variable \$srcfile for the compiler.
13627 fix_srcfile_path=$lt_fix_srcfile_path
13629 # Set to "yes" if exported symbols are required.
13630 always_export_symbols=$always_export_symbols
13632 # The commands to list exported symbols.
13633 export_symbols_cmds=$lt_export_symbols_cmds
13635 # Symbols that should not be listed in the preloaded symbols.
13636 exclude_expsyms=$lt_exclude_expsyms
13638 # Symbols that must always be exported.
13639 include_expsyms=$lt_include_expsyms
13641 # Commands necessary for linking programs (against libraries) with templates.
13642 prelink_cmds=$lt_prelink_cmds
13644 # Specify filename containing input files.
13645 file_list_spec=$lt_file_list_spec
13647 # How to hardcode a shared library path into an executable.
13648 hardcode_action=$hardcode_action
13650 # ### END LIBTOOL CONFIG
13652 _LT_EOF
13654 case $host_os in
13655 aix3*)
13656 cat <<\_LT_EOF >> "$cfgfile"
13657 # AIX sometimes has problems with the GCC collect2 program. For some
13658 # reason, if we set the COLLECT_NAMES environment variable, the problems
13659 # vanish in a puff of smoke.
13660 if test "X${COLLECT_NAMES+set}" != Xset; then
13661 COLLECT_NAMES=
13662 export COLLECT_NAMES
13664 _LT_EOF
13666 esac
13669 ltmain="$ac_aux_dir/ltmain.sh"
13672 # We use sed instead of cat because bash on DJGPP gets confused if
13673 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13674 # text mode, it properly converts lines to CR/LF. This bash problem
13675 # is reportedly fixed, but why not run on old versions too?
13676 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13677 || (rm -f "$cfgfile"; exit 1)
13679 case $xsi_shell in
13680 yes)
13681 cat << \_LT_EOF >> "$cfgfile"
13683 # func_dirname file append nondir_replacement
13684 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13685 # otherwise set result to NONDIR_REPLACEMENT.
13686 func_dirname ()
13688 case ${1} in
13689 */*) func_dirname_result="${1%/*}${2}" ;;
13690 * ) func_dirname_result="${3}" ;;
13691 esac
13694 # func_basename file
13695 func_basename ()
13697 func_basename_result="${1##*/}"
13700 # func_dirname_and_basename file append nondir_replacement
13701 # perform func_basename and func_dirname in a single function
13702 # call:
13703 # dirname: Compute the dirname of FILE. If nonempty,
13704 # add APPEND to the result, otherwise set result
13705 # to NONDIR_REPLACEMENT.
13706 # value returned in "$func_dirname_result"
13707 # basename: Compute filename of FILE.
13708 # value retuned in "$func_basename_result"
13709 # Implementation must be kept synchronized with func_dirname
13710 # and func_basename. For efficiency, we do not delegate to
13711 # those functions but instead duplicate the functionality here.
13712 func_dirname_and_basename ()
13714 case ${1} in
13715 */*) func_dirname_result="${1%/*}${2}" ;;
13716 * ) func_dirname_result="${3}" ;;
13717 esac
13718 func_basename_result="${1##*/}"
13721 # func_stripname prefix suffix name
13722 # strip PREFIX and SUFFIX off of NAME.
13723 # PREFIX and SUFFIX must not contain globbing or regex special
13724 # characters, hashes, percent signs, but SUFFIX may contain a leading
13725 # dot (in which case that matches only a dot).
13726 func_stripname ()
13728 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13729 # positional parameters, so assign one to ordinary parameter first.
13730 func_stripname_result=${3}
13731 func_stripname_result=${func_stripname_result#"${1}"}
13732 func_stripname_result=${func_stripname_result%"${2}"}
13735 # func_opt_split
13736 func_opt_split ()
13738 func_opt_split_opt=${1%%=*}
13739 func_opt_split_arg=${1#*=}
13742 # func_lo2o object
13743 func_lo2o ()
13745 case ${1} in
13746 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13747 *) func_lo2o_result=${1} ;;
13748 esac
13751 # func_xform libobj-or-source
13752 func_xform ()
13754 func_xform_result=${1%.*}.lo
13757 # func_arith arithmetic-term...
13758 func_arith ()
13760 func_arith_result=$(( $* ))
13763 # func_len string
13764 # STRING may not start with a hyphen.
13765 func_len ()
13767 func_len_result=${#1}
13770 _LT_EOF
13772 *) # Bourne compatible functions.
13773 cat << \_LT_EOF >> "$cfgfile"
13775 # func_dirname file append nondir_replacement
13776 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13777 # otherwise set result to NONDIR_REPLACEMENT.
13778 func_dirname ()
13780 # Extract subdirectory from the argument.
13781 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13782 if test "X$func_dirname_result" = "X${1}"; then
13783 func_dirname_result="${3}"
13784 else
13785 func_dirname_result="$func_dirname_result${2}"
13789 # func_basename file
13790 func_basename ()
13792 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13796 # func_stripname prefix suffix name
13797 # strip PREFIX and SUFFIX off of NAME.
13798 # PREFIX and SUFFIX must not contain globbing or regex special
13799 # characters, hashes, percent signs, but SUFFIX may contain a leading
13800 # dot (in which case that matches only a dot).
13801 # func_strip_suffix prefix name
13802 func_stripname ()
13804 case ${2} in
13805 .*) func_stripname_result=`$ECHO "X${3}" \
13806 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13807 *) func_stripname_result=`$ECHO "X${3}" \
13808 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13809 esac
13812 # sed scripts:
13813 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13814 my_sed_long_arg='1s/^-[^=]*=//'
13816 # func_opt_split
13817 func_opt_split ()
13819 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13820 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13823 # func_lo2o object
13824 func_lo2o ()
13826 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13829 # func_xform libobj-or-source
13830 func_xform ()
13832 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13835 # func_arith arithmetic-term...
13836 func_arith ()
13838 func_arith_result=`expr "$@"`
13841 # func_len string
13842 # STRING may not start with a hyphen.
13843 func_len ()
13845 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13848 _LT_EOF
13849 esac
13851 case $lt_shell_append in
13852 yes)
13853 cat << \_LT_EOF >> "$cfgfile"
13855 # func_append var value
13856 # Append VALUE to the end of shell variable VAR.
13857 func_append ()
13859 eval "$1+=\$2"
13861 _LT_EOF
13864 cat << \_LT_EOF >> "$cfgfile"
13866 # func_append var value
13867 # Append VALUE to the end of shell variable VAR.
13868 func_append ()
13870 eval "$1=\$$1\$2"
13873 _LT_EOF
13875 esac
13878 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13879 || (rm -f "$cfgfile"; exit 1)
13881 mv -f "$cfgfile" "$ofile" ||
13882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13883 chmod +x "$ofile"
13887 esac
13888 done # for ac_tag
13891 as_fn_exit 0
13892 _ACEOF
13893 ac_clean_files=$ac_clean_files_save
13895 test $ac_write_fail = 0 ||
13896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13899 # configure is writing to config.log, and then calls config.status.
13900 # config.status does its own redirection, appending to config.log.
13901 # Unfortunately, on DOS this fails, as config.log is still kept open
13902 # by configure, so config.status won't be able to write to it; its
13903 # output is simply discarded. So we exec the FD to /dev/null,
13904 # effectively closing config.log, so it can be properly (re)opened and
13905 # appended to by config.status. When coming back to configure, we
13906 # need to make the FD available again.
13907 if test "$no_create" != yes; then
13908 ac_cs_success=:
13909 ac_config_status_args=
13910 test "$silent" = yes &&
13911 ac_config_status_args="$ac_config_status_args --quiet"
13912 exec 5>/dev/null
13913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13914 exec 5>>config.log
13915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13916 # would make configure fail if this is the last instruction.
13917 $ac_cs_success || as_fn_exit 1
13919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}