remove files that aren't included upstream
[sqlcipher.git] / configure
bloba7281f089cffb3ef818c2d98bb240de50206cc3a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for sqlite 3.8.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='sqlite'
745 PACKAGE_TARNAME='sqlite'
746 PACKAGE_VERSION='3.8.0'
747 PACKAGE_STRING='sqlite 3.8.0'
748 PACKAGE_BUGREPORT=''
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
786 ac_subst_vars='SHELL
787 PATH_SEPARATOR
788 PACKAGE_NAME
789 PACKAGE_TARNAME
790 PACKAGE_VERSION
791 PACKAGE_STRING
792 PACKAGE_BUGREPORT
793 exec_prefix
794 prefix
795 program_transform_name
796 bindir
797 sbindir
798 libexecdir
799 datarootdir
800 datadir
801 sysconfdir
802 sharedstatedir
803 localstatedir
804 includedir
805 oldincludedir
806 docdir
807 infodir
808 htmldir
809 dvidir
810 pdfdir
811 psdir
812 libdir
813 localedir
814 mandir
815 DEFS
816 ECHO_C
817 ECHO_N
818 ECHO_T
819 LIBS
820 build_alias
821 host_alias
822 target_alias
823 LIBTOOL
824 build
825 build_cpu
826 build_vendor
827 build_os
828 host
829 host_cpu
830 host_vendor
831 host_os
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
840 GREP
841 EGREP
842 FGREP
844 DUMPBIN
845 ac_ct_DUMPBIN
847 LN_S
848 OBJDUMP
850 STRIP
851 RANLIB
852 lt_ECHO
853 DSYMUTIL
854 NMEDIT
855 LIPO
856 OTOOL
857 OTOOL64
859 INSTALL_PROGRAM
860 INSTALL_SCRIPT
861 INSTALL_DATA
863 TCLSH_CMD
864 TCLLIBDIR
865 program_prefix
866 VERSION
867 RELEASE
868 VERSION_NUMBER
869 BUILD_CC
870 SQLITE_THREADSAFE
871 XTHREADCONNECT
872 ALLOWRELEASE
873 TEMP_STORE
874 BUILD_EXEEXT
875 SQLITE_OS_UNIX
876 SQLITE_OS_WIN
877 SQLITE_OS_OS2
878 TARGET_EXEEXT
879 TCL_VERSION
880 TCL_BIN_DIR
881 TCL_SRC_DIR
882 TCL_INCLUDE_SPEC
883 TCL_LIB_FILE
884 TCL_LIB_FLAG
885 TCL_LIB_SPEC
886 TCL_STUB_LIB_FILE
887 TCL_STUB_LIB_FLAG
888 TCL_STUB_LIB_SPEC
889 HAVE_TCL
890 TARGET_READLINE_LIBS
891 TARGET_READLINE_INC
892 TARGET_HAVE_READLINE
893 TARGET_DEBUG
894 USE_AMALGAMATION
895 OPT_FEATURE_FLAGS
896 USE_GCOV
897 BUILD_CFLAGS
898 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_shared
904 enable_static
905 with_pic
906 enable_fast_install
907 with_gnu_ld
908 enable_libtool_lock
909 enable_largefile
910 with_hints
911 enable_threadsafe
912 enable_cross_thread_connections
913 enable_releasemode
914 enable_tempstore
915 enable_tcl
916 with_tcl
917 enable_readline
918 with_readline_lib
919 with_readline_inc
920 enable_debug
921 enable_amalgamation
922 enable_load_extension
923 enable_gcov
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
929 CFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
934 TCLLIBDIR'
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
985 ac_prev=
986 ac_dashdash=
987 for ac_option
989 # If the previous option needs an argument, assign it.
990 if test -n "$ac_prev"; then
991 eval $ac_prev=\$ac_option
992 ac_prev=
993 continue
996 case $ac_option in
997 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998 *) ac_optarg=yes ;;
999 esac
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1005 ac_dashdash=yes ;;
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1028 ac_prev=datadir ;;
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1044 { (exit 1); exit 1; }; }
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_$ac_useropt"
1050 "*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=no ;;
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
1066 -enable-* | --enable-*)
1067 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1070 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1276 { (exit 1); exit 1; }; }
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1281 "with_$ac_useropt"
1282 "*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1298 "with_$ac_useropt"
1299 "*) ;;
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1302 esac
1303 eval with_$ac_useropt=no ;;
1305 --x)
1306 # Obsolete; use --with-x.
1307 with_x=yes ;;
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 esac
1346 done
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1358 { (exit 1); exit 1; }; } ;;
1359 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1382 { (exit 1); exit 1; }; }
1383 done
1385 # There might be people who depend on the old broken behavior: `$host'
1386 # used to hold the argument of --host etc.
1387 # FIXME: To remove some day.
1388 build=$build_alias
1389 host=$host_alias
1390 target=$target_alias
1392 # FIXME: To remove some day.
1393 if test "x$host_alias" != x; then
1394 if test "x$build_alias" = x; then
1395 cross_compiling=maybe
1396 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1397 If a cross compiler is detected then cross compile mode will be used." >&2
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1403 ac_tool_prefix=
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1413 { (exit 1); exit 1; }; }
1414 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1415 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1416 { (exit 1); exit 1; }; }
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1437 /^X\(\/\/\)$/{
1438 s//\1/
1441 /^X\(\/\).*/{
1442 s//\1/
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1450 else
1451 ac_srcdir_defaulted=no
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1456 { (exit 1); exit 1; }; }
1458 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1459 ac_abs_confdir=`(
1460 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1461 { (exit 1); exit 1; }; }
1462 pwd)`
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1465 srcdir=.
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1470 case $srcdir in
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1472 esac
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1478 done
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1486 cat <<_ACEOF
1487 \`configure' configures sqlite 3.8.0 to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1496 Configuration:
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1511 [PREFIX]
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --libdir=DIR object code libraries [EPREFIX/lib]
1528 --includedir=DIR C header files [PREFIX/include]
1529 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1530 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1531 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1532 --infodir=DIR info documentation [DATAROOTDIR/info]
1533 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1534 --mandir=DIR man documentation [DATAROOTDIR/man]
1535 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1536 --htmldir=DIR html documentation [DOCDIR]
1537 --dvidir=DIR dvi documentation [DOCDIR]
1538 --pdfdir=DIR pdf documentation [DOCDIR]
1539 --psdir=DIR ps documentation [DOCDIR]
1540 _ACEOF
1542 cat <<\_ACEOF
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 _ACEOF
1550 if test -n "$ac_init_help"; then
1551 case $ac_init_help in
1552 short | recursive ) echo "Configuration of sqlite 3.8.0:";;
1553 esac
1554 cat <<\_ACEOF
1556 Optional Features:
1557 --disable-option-checking ignore unrecognized --enable/--with options
1558 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560 --enable-shared[=PKGS] build shared libraries [default=yes]
1561 --enable-static[=PKGS] build static libraries [default=yes]
1562 --enable-fast-install[=PKGS]
1563 optimize for fast installation [default=yes]
1564 --disable-libtool-lock avoid locking (might break parallel builds)
1565 --disable-largefile omit support for large files
1566 --enable-threadsafe Support threadsafe operation
1567 --enable-cross-thread-connections
1568 Allow connection sharing across threads
1569 --enable-releasemode Support libtool link to release mode
1570 --enable-tempstore Use an in-ram database for temporary tables
1571 (never,no,yes,always)
1572 --disable-tcl do not build TCL extension
1573 --disable-readline disable readline support [default=detect]
1574 --enable-debug enable debugging & verbose explain
1575 --disable-amalgamation Disable the amalgamation and instead build all files
1576 separately
1577 --enable-load-extension Enable loading of external extensions
1578 --enable-gcov Enable coverage testing using gcov
1580 Optional Packages:
1581 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1582 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1586 --with-hints=FILE Read configuration options from FILE
1587 --with-tcl=DIR directory containing tcl configuration
1588 (tclConfig.sh)
1589 --with-readline-lib specify readline library
1590 --with-readline-inc specify readline include paths
1592 Some influential environment variables:
1593 CC C compiler command
1594 CFLAGS C compiler flags
1595 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1596 nonstandard directory <lib dir>
1597 LIBS libraries to pass to the linker, e.g. -l<library>
1598 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1599 you have headers in a nonstandard directory <include dir>
1600 CPP C preprocessor
1601 TCLLIBDIR Where to install tcl plugin
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 _ACEOF
1607 ac_status=$?
1610 if test "$ac_init_help" = "recursive"; then
1611 # If there are subdirs, report their specific --help.
1612 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1613 test -d "$ac_dir" ||
1614 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1615 continue
1616 ac_builddir=.
1618 case "$ac_dir" in
1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628 esac
1629 ac_abs_top_builddir=$ac_pwd
1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631 # for backward compatibility:
1632 ac_top_builddir=$ac_top_build_prefix
1634 case $srcdir in
1635 .) # We are building in place.
1636 ac_srcdir=.
1637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
1640 ac_srcdir=$srcdir$ac_dir_suffix;
1641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1647 esac
1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
1658 else
1659 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
1662 done
1665 test -n "$ac_init_help" && exit $ac_status
1666 if $ac_init_version; then
1667 cat <<\_ACEOF
1668 sqlite configure 3.8.0
1669 generated by GNU Autoconf 2.62
1671 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1672 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1673 This configure script is free software; the Free Software Foundation
1674 gives unlimited permission to copy, distribute and modify it.
1675 _ACEOF
1676 exit
1678 cat >config.log <<_ACEOF
1679 This file contains any messages produced by compilers while
1680 running configure, to aid debugging if configure makes a mistake.
1682 It was created by sqlite $as_me 3.8.0, which was
1683 generated by GNU Autoconf 2.62. Invocation command line was
1685 $ $0 $@
1687 _ACEOF
1688 exec 5>>config.log
1690 cat <<_ASUNAME
1691 ## --------- ##
1692 ## Platform. ##
1693 ## --------- ##
1695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1702 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1705 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1707 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1708 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1709 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1710 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712 _ASUNAME
1714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715 for as_dir in $PATH
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 $as_echo "PATH: $as_dir"
1720 done
1721 IFS=$as_save_IFS
1723 } >&5
1725 cat >&5 <<_ACEOF
1728 ## ----------- ##
1729 ## Core tests. ##
1730 ## ----------- ##
1732 _ACEOF
1735 # Keep a trace of the command line.
1736 # Strip out --no-create and --no-recursion so they do not pile up.
1737 # Strip out --silent because we don't want to record it for future runs.
1738 # Also quote any args containing shell meta-characters.
1739 # Make two passes to allow for proper duplicate-argument suppression.
1740 ac_configure_args=
1741 ac_configure_args0=
1742 ac_configure_args1=
1743 ac_must_keep_next=false
1744 for ac_pass in 1 2
1746 for ac_arg
1748 case $ac_arg in
1749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1751 | -silent | --silent | --silen | --sile | --sil)
1752 continue ;;
1753 *\'*)
1754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 esac
1756 case $ac_pass in
1757 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1760 if test $ac_must_keep_next = true; then
1761 ac_must_keep_next=false # Got value, back to normal.
1762 else
1763 case $ac_arg in
1764 *=* | --config-cache | -C | -disable-* | --disable-* \
1765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1767 | -with-* | --with-* | -without-* | --without-* | --x)
1768 case "$ac_configure_args0 " in
1769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1770 esac
1772 -* ) ac_must_keep_next=true ;;
1773 esac
1775 ac_configure_args="$ac_configure_args '$ac_arg'"
1777 esac
1778 done
1779 done
1780 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1781 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1783 # When interrupted or exit'd, cleanup temporary files, and complete
1784 # config.log. We remove comments because anyway the quotes in there
1785 # would cause problems or look ugly.
1786 # WARNING: Use '\'' to represent an apostrophe within the trap.
1787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1788 trap 'exit_status=$?
1789 # Save into config.log some information that might help in debugging.
1791 echo
1793 cat <<\_ASBOX
1794 ## ---------------- ##
1795 ## Cache variables. ##
1796 ## ---------------- ##
1797 _ASBOX
1798 echo
1799 # The following way of writing the cache mishandles newlines in values,
1801 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1802 eval ac_val=\$$ac_var
1803 case $ac_val in #(
1804 *${as_nl}*)
1805 case $ac_var in #(
1806 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1807 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1808 esac
1809 case $ac_var in #(
1810 _ | IFS | as_nl) ;; #(
1811 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1812 *) $as_unset $ac_var ;;
1813 esac ;;
1814 esac
1815 done
1816 (set) 2>&1 |
1817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
1819 sed -n \
1820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 ;; #(
1824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1826 esac |
1827 sort
1829 echo
1831 cat <<\_ASBOX
1832 ## ----------------- ##
1833 ## Output variables. ##
1834 ## ----------------- ##
1835 _ASBOX
1836 echo
1837 for ac_var in $ac_subst_vars
1839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 $as_echo "$ac_var='\''$ac_val'\''"
1844 done | sort
1845 echo
1847 if test -n "$ac_subst_files"; then
1848 cat <<\_ASBOX
1849 ## ------------------- ##
1850 ## File substitutions. ##
1851 ## ------------------- ##
1852 _ASBOX
1853 echo
1854 for ac_var in $ac_subst_files
1856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 $as_echo "$ac_var='\''$ac_val'\''"
1861 done | sort
1862 echo
1865 if test -s confdefs.h; then
1866 cat <<\_ASBOX
1867 ## ----------- ##
1868 ## confdefs.h. ##
1869 ## ----------- ##
1870 _ASBOX
1871 echo
1872 cat confdefs.h
1873 echo
1875 test "$ac_signal" != 0 &&
1876 $as_echo "$as_me: caught signal $ac_signal"
1877 $as_echo "$as_me: exit $exit_status"
1878 } >&5
1879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1881 exit $exit_status
1883 for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885 done
1886 ac_signal=0
1888 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1889 rm -f -r conftest* confdefs.h
1891 # Predefined preprocessor variables.
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_NAME "$PACKAGE_NAME"
1895 _ACEOF
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900 _ACEOF
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1905 _ACEOF
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1910 _ACEOF
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915 _ACEOF
1918 # Let the site file select an alternate cache file if it wants to.
1919 # Prefer an explicitly selected file to automatically selected ones.
1920 ac_site_file1=NONE
1921 ac_site_file2=NONE
1922 if test -n "$CONFIG_SITE"; then
1923 ac_site_file1=$CONFIG_SITE
1924 elif test "x$prefix" != xNONE; then
1925 ac_site_file1=$prefix/share/config.site
1926 ac_site_file2=$prefix/etc/config.site
1927 else
1928 ac_site_file1=$ac_default_prefix/share/config.site
1929 ac_site_file2=$ac_default_prefix/etc/config.site
1931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1933 test "x$ac_site_file" = xNONE && continue
1934 if test -r "$ac_site_file"; then
1935 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1938 . "$ac_site_file"
1940 done
1942 if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 $as_echo "$as_me: loading cache $cache_file" >&6;}
1948 case $cache_file in
1949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
1951 esac
1953 else
1954 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 $as_echo "$as_me: creating cache $cache_file" >&6;}
1956 >$cache_file
1959 # Check that the precious variables saved in the cache have kept the same
1960 # value.
1961 ac_cache_corrupted=false
1962 for ac_var in $ac_precious_vars; do
1963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964 eval ac_new_set=\$ac_env_${ac_var}_set
1965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966 eval ac_new_val=\$ac_env_${ac_var}_value
1967 case $ac_old_set,$ac_new_set in
1968 set,)
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,set)
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1976 ,);;
1978 if test "x$ac_old_val" != "x$ac_new_val"; then
1979 # differences in whitespace do not lead to failure.
1980 ac_old_val_w=`echo x $ac_old_val`
1981 ac_new_val_w=`echo x $ac_new_val`
1982 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1983 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1984 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1985 ac_cache_corrupted=:
1986 else
1987 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1988 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1989 eval $ac_var=\$ac_old_val
1991 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1992 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1993 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1994 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1995 fi;;
1996 esac
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
1999 case $ac_new_val in
2000 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 *) ac_arg=$ac_var=$ac_new_val ;;
2002 esac
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006 esac
2008 done
2009 if $ac_cache_corrupted; then
2010 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2041 ac_ext=c
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2050 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2051 { { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2052 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2053 top level VERSION file = $sqlite_version_sanity_check
2054 please regen with autoconf" >&5
2055 $as_echo "$as_me: error: configure script is out of date:
2056 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2057 top level VERSION file = $sqlite_version_sanity_check
2058 please regen with autoconf" >&2;}
2059 { (exit 1); exit 1; }; }
2062 # The following RCS revision string applies to configure.in
2063 # $Revision: 1.56 $
2065 #########
2066 # Programs needed
2068 case `pwd` in
2069 *\ * | *\ *)
2070 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2071 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2072 esac
2076 macro_version='2.2.6'
2077 macro_revision='1.3012'
2091 ltmain="$ac_aux_dir/ltmain.sh"
2093 ac_aux_dir=
2094 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2095 if test -f "$ac_dir/install-sh"; then
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/install-sh -c"
2098 break
2099 elif test -f "$ac_dir/install.sh"; then
2100 ac_aux_dir=$ac_dir
2101 ac_install_sh="$ac_aux_dir/install.sh -c"
2102 break
2103 elif test -f "$ac_dir/shtool"; then
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/shtool install -c"
2106 break
2108 done
2109 if test -z "$ac_aux_dir"; then
2110 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2111 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2112 { (exit 1); exit 1; }; }
2115 # These three variables are undocumented and unsupported,
2116 # and are intended to be withdrawn in a future Autoconf release.
2117 # They can cause serious problems if a builder's source tree is in a directory
2118 # whose full name contains unusual characters.
2119 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2120 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2121 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2124 # Make sure we can run config.sub.
2125 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2126 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2127 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2128 { (exit 1); exit 1; }; }
2130 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2131 $as_echo_n "checking build system type... " >&6; }
2132 if test "${ac_cv_build+set}" = set; then
2133 $as_echo_n "(cached) " >&6
2134 else
2135 ac_build_alias=$build_alias
2136 test "x$ac_build_alias" = x &&
2137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2138 test "x$ac_build_alias" = x &&
2139 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2140 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2141 { (exit 1); exit 1; }; }
2142 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2143 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2144 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2148 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2149 $as_echo "$ac_cv_build" >&6; }
2150 case $ac_cv_build in
2151 *-*-*) ;;
2152 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2153 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2154 { (exit 1); exit 1; }; };;
2155 esac
2156 build=$ac_cv_build
2157 ac_save_IFS=$IFS; IFS='-'
2158 set x $ac_cv_build
2159 shift
2160 build_cpu=$1
2161 build_vendor=$2
2162 shift; shift
2163 # Remember, the first character of IFS is used to create $*,
2164 # except with old shells:
2165 build_os=$*
2166 IFS=$ac_save_IFS
2167 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2170 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2171 $as_echo_n "checking host system type... " >&6; }
2172 if test "${ac_cv_host+set}" = set; then
2173 $as_echo_n "(cached) " >&6
2174 else
2175 if test "x$host_alias" = x; then
2176 ac_cv_host=$ac_cv_build
2177 else
2178 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2179 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2180 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2181 { (exit 1); exit 1; }; }
2185 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2186 $as_echo "$ac_cv_host" >&6; }
2187 case $ac_cv_host in
2188 *-*-*) ;;
2189 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2190 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2191 { (exit 1); exit 1; }; };;
2192 esac
2193 host=$ac_cv_host
2194 ac_save_IFS=$IFS; IFS='-'
2195 set x $ac_cv_host
2196 shift
2197 host_cpu=$1
2198 host_vendor=$2
2199 shift; shift
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2202 host_os=$*
2203 IFS=$ac_save_IFS
2204 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2216 $as_echo_n "checking for $ac_word... " >&6; }
2217 if test "${ac_cv_prog_CC+set}" = set; then
2218 $as_echo_n "(cached) " >&6
2219 else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2236 IFS=$as_save_IFS
2240 CC=$ac_cv_prog_CC
2241 if test -n "$CC"; then
2242 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2243 $as_echo "$CC" >&6; }
2244 else
2245 { $as_echo "$as_me:$LINENO: result: no" >&5
2246 $as_echo "no" >&6; }
2251 if test -z "$ac_cv_prog_CC"; then
2252 ac_ct_CC=$CC
2253 # Extract the first word of "gcc", so it can be a program name with args.
2254 set dummy gcc; ac_word=$2
2255 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="gcc"
2271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2276 IFS=$as_save_IFS
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; }
2284 else
2285 { $as_echo "$as_me:$LINENO: result: no" >&5
2286 $as_echo "no" >&6; }
2289 if test "x$ac_ct_CC" = x; then
2290 CC=""
2291 else
2292 case $cross_compiling:$ac_tool_warned in
2293 yes:)
2294 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2295 whose name does not start with the host triplet. If you think this
2296 configuration is useful to you, please write to autoconf@gnu.org." >&5
2297 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2298 whose name does not start with the host triplet. If you think this
2299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2300 ac_tool_warned=yes ;;
2301 esac
2302 CC=$ac_ct_CC
2304 else
2305 CC="$ac_cv_prog_CC"
2308 if test -z "$CC"; then
2309 if test -n "$ac_tool_prefix"; then
2310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2311 set dummy ${ac_tool_prefix}cc; ac_word=$2
2312 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 $as_echo_n "checking for $ac_word... " >&6; }
2314 if test "${ac_cv_prog_CC+set}" = set; then
2315 $as_echo_n "(cached) " >&6
2316 else
2317 if test -n "$CC"; then
2318 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 else
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_CC="${ac_tool_prefix}cc"
2328 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 break 2
2331 done
2332 done
2333 IFS=$as_save_IFS
2337 CC=$ac_cv_prog_CC
2338 if test -n "$CC"; then
2339 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2340 $as_echo "$CC" >&6; }
2341 else
2342 { $as_echo "$as_me:$LINENO: result: no" >&5
2343 $as_echo "no" >&6; }
2349 if test -z "$CC"; then
2350 # Extract the first word of "cc", so it can be a program name with args.
2351 set dummy cc; ac_word=$2
2352 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2353 $as_echo_n "checking for $ac_word... " >&6; }
2354 if test "${ac_cv_prog_CC+set}" = set; then
2355 $as_echo_n "(cached) " >&6
2356 else
2357 if test -n "$CC"; then
2358 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 else
2360 ac_prog_rejected=no
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2369 ac_prog_rejected=yes
2370 continue
2372 ac_cv_prog_CC="cc"
2373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 break 2
2376 done
2377 done
2378 IFS=$as_save_IFS
2380 if test $ac_prog_rejected = yes; then
2381 # We found a bogon in the path, so make sure we never use it.
2382 set dummy $ac_cv_prog_CC
2383 shift
2384 if test $# != 0; then
2385 # We chose a different compiler from the bogus one.
2386 # However, it has the same basename, so the bogon will be chosen
2387 # first if we set CC to just the basename; use the full file name.
2388 shift
2389 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2394 CC=$ac_cv_prog_CC
2395 if test -n "$CC"; then
2396 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2397 $as_echo "$CC" >&6; }
2398 else
2399 { $as_echo "$as_me:$LINENO: result: no" >&5
2400 $as_echo "no" >&6; }
2405 if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
2407 for ac_prog in cl.exe
2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2430 done
2431 done
2432 IFS=$as_save_IFS
2436 CC=$ac_cv_prog_CC
2437 if test -n "$CC"; then
2438 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2439 $as_echo "$CC" >&6; }
2440 else
2441 { $as_echo "$as_me:$LINENO: result: no" >&5
2442 $as_echo "no" >&6; }
2446 test -n "$CC" && break
2447 done
2449 if test -z "$CC"; then
2450 ac_ct_CC=$CC
2451 for ac_prog in cl.exe
2453 # Extract the first word of "$ac_prog", so it can be a program name with args.
2454 set dummy $ac_prog; ac_word=$2
2455 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 $as_echo_n "checking for $ac_word... " >&6; }
2457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 $as_echo_n "(cached) " >&6
2459 else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462 else
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 for as_dir in $PATH
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_ac_ct_CC="$ac_prog"
2471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2474 done
2475 done
2476 IFS=$as_save_IFS
2480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481 if test -n "$ac_ct_CC"; then
2482 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483 $as_echo "$ac_ct_CC" >&6; }
2484 else
2485 { $as_echo "$as_me:$LINENO: result: no" >&5
2486 $as_echo "no" >&6; }
2490 test -n "$ac_ct_CC" && break
2491 done
2493 if test "x$ac_ct_CC" = x; then
2494 CC=""
2495 else
2496 case $cross_compiling:$ac_tool_warned in
2497 yes:)
2498 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet. If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&5
2501 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502 whose name does not start with the host triplet. If you think this
2503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504 ac_tool_warned=yes ;;
2505 esac
2506 CC=$ac_ct_CC
2513 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2514 See \`config.log' for more details." >&5
2515 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&2;}
2517 { (exit 1); exit 1; }; }
2519 # Provide some information about the compiler.
2520 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2521 set X $ac_compile
2522 ac_compiler=$2
2523 { (ac_try="$ac_compiler --version >&5"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2529 $as_echo "$ac_try_echo") >&5
2530 (eval "$ac_compiler --version >&5") 2>&5
2531 ac_status=$?
2532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (ac_try="$ac_compiler -v >&5"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2540 $as_echo "$ac_try_echo") >&5
2541 (eval "$ac_compiler -v >&5") 2>&5
2542 ac_status=$?
2543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }
2545 { (ac_try="$ac_compiler -V >&5"
2546 case "(($ac_try" in
2547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548 *) ac_try_echo=$ac_try;;
2549 esac
2550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2551 $as_echo "$ac_try_echo") >&5
2552 (eval "$ac_compiler -V >&5") 2>&5
2553 ac_status=$?
2554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2557 cat >conftest.$ac_ext <<_ACEOF
2558 /* confdefs.h. */
2559 _ACEOF
2560 cat confdefs.h >>conftest.$ac_ext
2561 cat >>conftest.$ac_ext <<_ACEOF
2562 /* end confdefs.h. */
2565 main ()
2569 return 0;
2571 _ACEOF
2572 ac_clean_files_save=$ac_clean_files
2573 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2574 # Try to create an executable without -o first, disregard a.out.
2575 # It will help us diagnose broken compilers, and finding out an intuition
2576 # of exeext.
2577 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2578 $as_echo_n "checking for C compiler default output file name... " >&6; }
2579 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2581 # The possible output files:
2582 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2584 ac_rmfiles=
2585 for ac_file in $ac_files
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2590 esac
2591 done
2592 rm -f $ac_rmfiles
2594 if { (ac_try="$ac_link_default"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2600 $as_echo "$ac_try_echo") >&5
2601 (eval "$ac_link_default") 2>&5
2602 ac_status=$?
2603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; then
2605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2606 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2607 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2608 # so that the user can short-circuit this test for compilers unknown to
2609 # Autoconf.
2610 for ac_file in $ac_files ''
2612 test -f "$ac_file" || continue
2613 case $ac_file in
2614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2616 [ab].out )
2617 # We found the default executable, but exeext='' is most
2618 # certainly right.
2619 break;;
2620 *.* )
2621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2622 then :; else
2623 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2625 # We set ac_cv_exeext here because the later test for it is not
2626 # safe: cross compilers may not add the suffix if given an `-o'
2627 # argument, so we may need to know it at that point already.
2628 # Even if this section looks crufty: it has the advantage of
2629 # actually working.
2630 break;;
2632 break;;
2633 esac
2634 done
2635 test "$ac_cv_exeext" = no && ac_cv_exeext=
2637 else
2638 ac_file=''
2641 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2642 $as_echo "$ac_file" >&6; }
2643 if test -z "$ac_file"; then
2644 $as_echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2647 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2648 See \`config.log' for more details." >&5
2649 $as_echo "$as_me: error: C compiler cannot create executables
2650 See \`config.log' for more details." >&2;}
2651 { (exit 77); exit 77; }; }
2654 ac_exeext=$ac_cv_exeext
2656 # Check that the compiler produces executables we can run. If not, either
2657 # the compiler is broken, or we cross compile.
2658 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2659 $as_echo_n "checking whether the C compiler works... " >&6; }
2660 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2661 # If not cross compiling, check that we can run a simple program.
2662 if test "$cross_compiling" != yes; then
2663 if { ac_try='./$ac_file'
2664 { (case "(($ac_try" in
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669 $as_echo "$ac_try_echo") >&5
2670 (eval "$ac_try") 2>&5
2671 ac_status=$?
2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 cross_compiling=no
2675 else
2676 if test "$cross_compiling" = maybe; then
2677 cross_compiling=yes
2678 else
2679 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2680 If you meant to cross compile, use \`--host'.
2681 See \`config.log' for more details." >&5
2682 $as_echo "$as_me: error: cannot run C compiled programs.
2683 If you meant to cross compile, use \`--host'.
2684 See \`config.log' for more details." >&2;}
2685 { (exit 1); exit 1; }; }
2689 { $as_echo "$as_me:$LINENO: result: yes" >&5
2690 $as_echo "yes" >&6; }
2692 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2693 ac_clean_files=$ac_clean_files_save
2694 # Check that the compiler produces executables we can run. If not, either
2695 # the compiler is broken, or we cross compile.
2696 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2697 $as_echo_n "checking whether we are cross compiling... " >&6; }
2698 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2699 $as_echo "$cross_compiling" >&6; }
2701 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2702 $as_echo_n "checking for suffix of executables... " >&6; }
2703 if { (ac_try="$ac_link"
2704 case "(($ac_try" in
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2709 $as_echo "$ac_try_echo") >&5
2710 (eval "$ac_link") 2>&5
2711 ac_status=$?
2712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; then
2714 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2715 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2716 # work properly (i.e., refer to `conftest.exe'), while it won't with
2717 # `rm'.
2718 for ac_file in conftest.exe conftest conftest.*; do
2719 test -f "$ac_file" || continue
2720 case $ac_file in
2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2722 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2723 break;;
2724 * ) break;;
2725 esac
2726 done
2727 else
2728 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2729 See \`config.log' for more details." >&5
2730 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2731 See \`config.log' for more details." >&2;}
2732 { (exit 1); exit 1; }; }
2735 rm -f conftest$ac_cv_exeext
2736 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2737 $as_echo "$ac_cv_exeext" >&6; }
2739 rm -f conftest.$ac_ext
2740 EXEEXT=$ac_cv_exeext
2741 ac_exeext=$EXEEXT
2742 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2743 $as_echo_n "checking for suffix of object files... " >&6; }
2744 if test "${ac_cv_objext+set}" = set; then
2745 $as_echo_n "(cached) " >&6
2746 else
2747 cat >conftest.$ac_ext <<_ACEOF
2748 /* confdefs.h. */
2749 _ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2755 main ()
2759 return 0;
2761 _ACEOF
2762 rm -f conftest.o conftest.obj
2763 if { (ac_try="$ac_compile"
2764 case "(($ac_try" in
2765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766 *) ac_try_echo=$ac_try;;
2767 esac
2768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2769 $as_echo "$ac_try_echo") >&5
2770 (eval "$ac_compile") 2>&5
2771 ac_status=$?
2772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; then
2774 for ac_file in conftest.o conftest.obj conftest.*; do
2775 test -f "$ac_file" || continue;
2776 case $ac_file in
2777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2778 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2779 break;;
2780 esac
2781 done
2782 else
2783 $as_echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2787 See \`config.log' for more details." >&5
2788 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2789 See \`config.log' for more details." >&2;}
2790 { (exit 1); exit 1; }; }
2793 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2795 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2796 $as_echo "$ac_cv_objext" >&6; }
2797 OBJEXT=$ac_cv_objext
2798 ac_objext=$OBJEXT
2799 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2801 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2802 $as_echo_n "(cached) " >&6
2803 else
2804 cat >conftest.$ac_ext <<_ACEOF
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2812 main ()
2814 #ifndef __GNUC__
2815 choke me
2816 #endif
2819 return 0;
2821 _ACEOF
2822 rm -f conftest.$ac_objext
2823 if { (ac_try="$ac_compile"
2824 case "(($ac_try" in
2825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2826 *) ac_try_echo=$ac_try;;
2827 esac
2828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2829 $as_echo "$ac_try_echo") >&5
2830 (eval "$ac_compile") 2>conftest.er1
2831 ac_status=$?
2832 grep -v '^ *+' conftest.er1 >conftest.err
2833 rm -f conftest.er1
2834 cat conftest.err >&5
2835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); } && {
2837 test -z "$ac_c_werror_flag" ||
2838 test ! -s conftest.err
2839 } && test -s conftest.$ac_objext; then
2840 ac_compiler_gnu=yes
2841 else
2842 $as_echo "$as_me: failed program was:" >&5
2843 sed 's/^/| /' conftest.$ac_ext >&5
2845 ac_compiler_gnu=no
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2854 if test $ac_compiler_gnu = yes; then
2855 GCC=yes
2856 else
2857 GCC=
2859 ac_test_CFLAGS=${CFLAGS+set}
2860 ac_save_CFLAGS=$CFLAGS
2861 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2863 if test "${ac_cv_prog_cc_g+set}" = set; then
2864 $as_echo_n "(cached) " >&6
2865 else
2866 ac_save_c_werror_flag=$ac_c_werror_flag
2867 ac_c_werror_flag=yes
2868 ac_cv_prog_cc_g=no
2869 CFLAGS="-g"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2878 main ()
2882 return 0;
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2890 esac
2891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2892 $as_echo "$ac_try_echo") >&5
2893 (eval "$ac_compile") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
2903 ac_cv_prog_cc_g=yes
2904 else
2905 $as_echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2908 CFLAGS=""
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2917 main ()
2921 return 0;
2923 _ACEOF
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931 $as_echo "$ac_try_echo") >&5
2932 (eval "$ac_compile") 2>conftest.er1
2933 ac_status=$?
2934 grep -v '^ *+' conftest.er1 >conftest.err
2935 rm -f conftest.er1
2936 cat conftest.err >&5
2937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); } && {
2939 test -z "$ac_c_werror_flag" ||
2940 test ! -s conftest.err
2941 } && test -s conftest.$ac_objext; then
2943 else
2944 $as_echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 ac_c_werror_flag=$ac_save_c_werror_flag
2948 CFLAGS="-g"
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2957 main ()
2961 return 0;
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.$ac_objext; then
2982 ac_cv_prog_cc_g=yes
2983 else
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 ac_c_werror_flag=$ac_save_c_werror_flag
2999 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3000 $as_echo "$ac_cv_prog_cc_g" >&6; }
3001 if test "$ac_test_CFLAGS" = set; then
3002 CFLAGS=$ac_save_CFLAGS
3003 elif test $ac_cv_prog_cc_g = yes; then
3004 if test "$GCC" = yes; then
3005 CFLAGS="-g -O2"
3006 else
3007 CFLAGS="-g"
3009 else
3010 if test "$GCC" = yes; then
3011 CFLAGS="-O2"
3012 else
3013 CFLAGS=
3016 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3017 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3018 if test "${ac_cv_prog_cc_c89+set}" = set; then
3019 $as_echo_n "(cached) " >&6
3020 else
3021 ac_cv_prog_cc_c89=no
3022 ac_save_CC=$CC
3023 cat >conftest.$ac_ext <<_ACEOF
3024 /* confdefs.h. */
3025 _ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3029 #include <stdarg.h>
3030 #include <stdio.h>
3031 #include <sys/types.h>
3032 #include <sys/stat.h>
3033 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3034 struct buf { int x; };
3035 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3036 static char *e (p, i)
3037 char **p;
3038 int i;
3040 return p[i];
3042 static char *f (char * (*g) (char **, int), char **p, ...)
3044 char *s;
3045 va_list v;
3046 va_start (v,p);
3047 s = g (p, va_arg (v,int));
3048 va_end (v);
3049 return s;
3052 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3053 function prototypes and stuff, but not '\xHH' hex character constants.
3054 These don't provoke an error unfortunately, instead are silently treated
3055 as 'x'. The following induces an error, until -std is added to get
3056 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3057 array size at least. It's necessary to write '\x00'==0 to get something
3058 that's true only with -std. */
3059 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3061 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3062 inside strings and character constants. */
3063 #define FOO(x) 'x'
3064 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3066 int test (int i, double x);
3067 struct s1 {int (*f) (int a);};
3068 struct s2 {int (*f) (double a);};
3069 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3070 int argc;
3071 char **argv;
3073 main ()
3075 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3077 return 0;
3079 _ACEOF
3080 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3081 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3083 CC="$ac_save_CC $ac_arg"
3084 rm -f conftest.$ac_objext
3085 if { (ac_try="$ac_compile"
3086 case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3089 esac
3090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3091 $as_echo "$ac_try_echo") >&5
3092 (eval "$ac_compile") 2>conftest.er1
3093 ac_status=$?
3094 grep -v '^ *+' conftest.er1 >conftest.err
3095 rm -f conftest.er1
3096 cat conftest.err >&5
3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); } && {
3099 test -z "$ac_c_werror_flag" ||
3100 test ! -s conftest.err
3101 } && test -s conftest.$ac_objext; then
3102 ac_cv_prog_cc_c89=$ac_arg
3103 else
3104 $as_echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3110 rm -f core conftest.err conftest.$ac_objext
3111 test "x$ac_cv_prog_cc_c89" != "xno" && break
3112 done
3113 rm -f conftest.$ac_ext
3114 CC=$ac_save_CC
3117 # AC_CACHE_VAL
3118 case "x$ac_cv_prog_cc_c89" in
3120 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3121 $as_echo "none needed" >&6; } ;;
3122 xno)
3123 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3124 $as_echo "unsupported" >&6; } ;;
3126 CC="$CC $ac_cv_prog_cc_c89"
3127 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3128 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3129 esac
3132 ac_ext=c
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3139 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3140 if test "${ac_cv_path_SED+set}" = set; then
3141 $as_echo_n "(cached) " >&6
3142 else
3143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3144 for ac_i in 1 2 3 4 5 6 7; do
3145 ac_script="$ac_script$as_nl$ac_script"
3146 done
3147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3148 $as_unset ac_script || ac_script=
3149 if test -z "$SED"; then
3150 ac_path_SED_found=false
3151 # Loop through the user's path and test for each of PROGNAME-LIST
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_prog in sed gsed; do
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3160 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3161 # Check for GNU ac_path_SED and select it if it is found.
3162 # Check for GNU $ac_path_SED
3163 case `"$ac_path_SED" --version 2>&1` in
3164 *GNU*)
3165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3167 ac_count=0
3168 $as_echo_n 0123456789 >"conftest.in"
3169 while :
3171 cat "conftest.in" "conftest.in" >"conftest.tmp"
3172 mv "conftest.tmp" "conftest.in"
3173 cp "conftest.in" "conftest.nl"
3174 $as_echo '' >> "conftest.nl"
3175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3177 ac_count=`expr $ac_count + 1`
3178 if test $ac_count -gt ${ac_path_SED_max-0}; then
3179 # Best one so far, save it but keep looking for a better one
3180 ac_cv_path_SED="$ac_path_SED"
3181 ac_path_SED_max=$ac_count
3183 # 10*(2^10) chars as input seems more than enough
3184 test $ac_count -gt 10 && break
3185 done
3186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3187 esac
3189 $ac_path_SED_found && break 3
3190 done
3191 done
3192 done
3193 IFS=$as_save_IFS
3194 if test -z "$ac_cv_path_SED"; then
3195 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3196 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3197 { (exit 1); exit 1; }; }
3199 else
3200 ac_cv_path_SED=$SED
3204 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3205 $as_echo "$ac_cv_path_SED" >&6; }
3206 SED="$ac_cv_path_SED"
3207 rm -f conftest.sed
3209 test -z "$SED" && SED=sed
3210 Xsed="$SED -e 1s/^X//"
3222 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3223 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3224 if test "${ac_cv_path_GREP+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -z "$GREP"; then
3228 ac_path_GREP_found=false
3229 # Loop through the user's path and test for each of PROGNAME-LIST
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_prog in grep ggrep; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3238 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3239 # Check for GNU ac_path_GREP and select it if it is found.
3240 # Check for GNU $ac_path_GREP
3241 case `"$ac_path_GREP" --version 2>&1` in
3242 *GNU*)
3243 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3245 ac_count=0
3246 $as_echo_n 0123456789 >"conftest.in"
3247 while :
3249 cat "conftest.in" "conftest.in" >"conftest.tmp"
3250 mv "conftest.tmp" "conftest.in"
3251 cp "conftest.in" "conftest.nl"
3252 $as_echo 'GREP' >> "conftest.nl"
3253 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3255 ac_count=`expr $ac_count + 1`
3256 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3257 # Best one so far, save it but keep looking for a better one
3258 ac_cv_path_GREP="$ac_path_GREP"
3259 ac_path_GREP_max=$ac_count
3261 # 10*(2^10) chars as input seems more than enough
3262 test $ac_count -gt 10 && break
3263 done
3264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3265 esac
3267 $ac_path_GREP_found && break 3
3268 done
3269 done
3270 done
3271 IFS=$as_save_IFS
3272 if test -z "$ac_cv_path_GREP"; then
3273 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3274 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3275 { (exit 1); exit 1; }; }
3277 else
3278 ac_cv_path_GREP=$GREP
3282 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3283 $as_echo "$ac_cv_path_GREP" >&6; }
3284 GREP="$ac_cv_path_GREP"
3287 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3288 $as_echo_n "checking for egrep... " >&6; }
3289 if test "${ac_cv_path_EGREP+set}" = set; then
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3293 then ac_cv_path_EGREP="$GREP -E"
3294 else
3295 if test -z "$EGREP"; then
3296 ac_path_EGREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in egrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307 # Check for GNU ac_path_EGREP and select it if it is found.
3308 # Check for GNU $ac_path_EGREP
3309 case `"$ac_path_EGREP" --version 2>&1` in
3310 *GNU*)
3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3313 ac_count=0
3314 $as_echo_n 0123456789 >"conftest.in"
3315 while :
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 $as_echo 'EGREP' >> "conftest.nl"
3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_EGREP="$ac_path_EGREP"
3327 ac_path_EGREP_max=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333 esac
3335 $ac_path_EGREP_found && break 3
3336 done
3337 done
3338 done
3339 IFS=$as_save_IFS
3340 if test -z "$ac_cv_path_EGREP"; then
3341 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3342 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3343 { (exit 1); exit 1; }; }
3345 else
3346 ac_cv_path_EGREP=$EGREP
3351 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3352 $as_echo "$ac_cv_path_EGREP" >&6; }
3353 EGREP="$ac_cv_path_EGREP"
3356 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3357 $as_echo_n "checking for fgrep... " >&6; }
3358 if test "${ac_cv_path_FGREP+set}" = set; then
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3362 then ac_cv_path_FGREP="$GREP -F"
3363 else
3364 if test -z "$FGREP"; then
3365 ac_path_FGREP_found=false
3366 # Loop through the user's path and test for each of PROGNAME-LIST
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
3372 for ac_prog in fgrep; do
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3375 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3376 # Check for GNU ac_path_FGREP and select it if it is found.
3377 # Check for GNU $ac_path_FGREP
3378 case `"$ac_path_FGREP" --version 2>&1` in
3379 *GNU*)
3380 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3382 ac_count=0
3383 $as_echo_n 0123456789 >"conftest.in"
3384 while :
3386 cat "conftest.in" "conftest.in" >"conftest.tmp"
3387 mv "conftest.tmp" "conftest.in"
3388 cp "conftest.in" "conftest.nl"
3389 $as_echo 'FGREP' >> "conftest.nl"
3390 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3392 ac_count=`expr $ac_count + 1`
3393 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3394 # Best one so far, save it but keep looking for a better one
3395 ac_cv_path_FGREP="$ac_path_FGREP"
3396 ac_path_FGREP_max=$ac_count
3398 # 10*(2^10) chars as input seems more than enough
3399 test $ac_count -gt 10 && break
3400 done
3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3402 esac
3404 $ac_path_FGREP_found && break 3
3405 done
3406 done
3407 done
3408 IFS=$as_save_IFS
3409 if test -z "$ac_cv_path_FGREP"; then
3410 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3411 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3412 { (exit 1); exit 1; }; }
3414 else
3415 ac_cv_path_FGREP=$FGREP
3420 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3421 $as_echo "$ac_cv_path_FGREP" >&6; }
3422 FGREP="$ac_cv_path_FGREP"
3425 test -z "$GREP" && GREP=grep
3445 # Check whether --with-gnu-ld was given.
3446 if test "${with_gnu_ld+set}" = set; then
3447 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3448 else
3449 with_gnu_ld=no
3452 ac_prog=ld
3453 if test "$GCC" = yes; then
3454 # Check if gcc -print-prog-name=ld gives a path.
3455 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3456 $as_echo_n "checking for ld used by $CC... " >&6; }
3457 case $host in
3458 *-*-mingw*)
3459 # gcc leaves a trailing carriage return which upsets mingw
3460 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3462 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3463 esac
3464 case $ac_prog in
3465 # Accept absolute paths.
3466 [\\/]* | ?:[\\/]*)
3467 re_direlt='/[^/][^/]*/\.\./'
3468 # Canonicalize the pathname of ld
3469 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3470 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3471 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3472 done
3473 test -z "$LD" && LD="$ac_prog"
3476 # If it fails, then pretend we aren't using GCC.
3477 ac_prog=ld
3480 # If it is relative, then search for the first ld in PATH.
3481 with_gnu_ld=unknown
3483 esac
3484 elif test "$with_gnu_ld" = yes; then
3485 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3486 $as_echo_n "checking for GNU ld... " >&6; }
3487 else
3488 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3489 $as_echo_n "checking for non-GNU ld... " >&6; }
3491 if test "${lt_cv_path_LD+set}" = set; then
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if test -z "$LD"; then
3495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3496 for ac_dir in $PATH; do
3497 IFS="$lt_save_ifs"
3498 test -z "$ac_dir" && ac_dir=.
3499 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3500 lt_cv_path_LD="$ac_dir/$ac_prog"
3501 # Check to see if the program is GNU ld. I'd rather use --version,
3502 # but apparently some variants of GNU ld only accept -v.
3503 # Break only if it was the GNU/non-GNU ld that we prefer.
3504 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3505 *GNU* | *'with BFD'*)
3506 test "$with_gnu_ld" != no && break
3509 test "$with_gnu_ld" != yes && break
3511 esac
3513 done
3514 IFS="$lt_save_ifs"
3515 else
3516 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3520 LD="$lt_cv_path_LD"
3521 if test -n "$LD"; then
3522 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3523 $as_echo "$LD" >&6; }
3524 else
3525 { $as_echo "$as_me:$LINENO: result: no" >&5
3526 $as_echo "no" >&6; }
3528 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3529 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3530 { (exit 1); exit 1; }; }
3531 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3532 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3533 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3535 else
3536 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3537 case `$LD -v 2>&1 </dev/null` in
3538 *GNU* | *'with BFD'*)
3539 lt_cv_prog_gnu_ld=yes
3542 lt_cv_prog_gnu_ld=no
3544 esac
3546 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3547 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3548 with_gnu_ld=$lt_cv_prog_gnu_ld
3558 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3559 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3560 if test "${lt_cv_path_NM+set}" = set; then
3561 $as_echo_n "(cached) " >&6
3562 else
3563 if test -n "$NM"; then
3564 # Let the user override the test.
3565 lt_cv_path_NM="$NM"
3566 else
3567 lt_nm_to_check="${ac_tool_prefix}nm"
3568 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3569 lt_nm_to_check="$lt_nm_to_check nm"
3571 for lt_tmp_nm in $lt_nm_to_check; do
3572 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3573 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3574 IFS="$lt_save_ifs"
3575 test -z "$ac_dir" && ac_dir=.
3576 tmp_nm="$ac_dir/$lt_tmp_nm"
3577 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3578 # Check to see if the nm accepts a BSD-compat flag.
3579 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3580 # nm: unknown option "B" ignored
3581 # Tru64's nm complains that /dev/null is an invalid object file
3582 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3583 */dev/null* | *'Invalid file or object type'*)
3584 lt_cv_path_NM="$tmp_nm -B"
3585 break
3588 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3589 */dev/null*)
3590 lt_cv_path_NM="$tmp_nm -p"
3591 break
3594 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3595 continue # so that we can try to find one that supports BSD flags
3597 esac
3599 esac
3601 done
3602 IFS="$lt_save_ifs"
3603 done
3604 : ${lt_cv_path_NM=no}
3607 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3608 $as_echo "$lt_cv_path_NM" >&6; }
3609 if test "$lt_cv_path_NM" != "no"; then
3610 NM="$lt_cv_path_NM"
3611 else
3612 # Didn't find any BSD compatible name lister, look for dumpbin.
3613 if test -n "$ac_tool_prefix"; then
3614 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$DUMPBIN"; then
3624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3639 IFS=$as_save_IFS
3643 DUMPBIN=$ac_cv_prog_DUMPBIN
3644 if test -n "$DUMPBIN"; then
3645 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3646 $as_echo "$DUMPBIN" >&6; }
3647 else
3648 { $as_echo "$as_me:$LINENO: result: no" >&5
3649 $as_echo "no" >&6; }
3653 test -n "$DUMPBIN" && break
3654 done
3656 if test -z "$DUMPBIN"; then
3657 ac_ct_DUMPBIN=$DUMPBIN
3658 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3660 # Extract the first word of "$ac_prog", so it can be a program name with args.
3661 set dummy $ac_prog; ac_word=$2
3662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3665 $as_echo_n "(cached) " >&6
3666 else
3667 if test -n "$ac_ct_DUMPBIN"; then
3668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3669 else
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3681 done
3682 done
3683 IFS=$as_save_IFS
3687 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3688 if test -n "$ac_ct_DUMPBIN"; then
3689 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3690 $as_echo "$ac_ct_DUMPBIN" >&6; }
3691 else
3692 { $as_echo "$as_me:$LINENO: result: no" >&5
3693 $as_echo "no" >&6; }
3697 test -n "$ac_ct_DUMPBIN" && break
3698 done
3700 if test "x$ac_ct_DUMPBIN" = x; then
3701 DUMPBIN=":"
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713 DUMPBIN=$ac_ct_DUMPBIN
3718 if test "$DUMPBIN" != ":"; then
3719 NM="$DUMPBIN"
3722 test -z "$NM" && NM=nm
3729 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3730 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3731 if test "${lt_cv_nm_interface+set}" = set; then
3732 $as_echo_n "(cached) " >&6
3733 else
3734 lt_cv_nm_interface="BSD nm"
3735 echo "int some_variable = 0;" > conftest.$ac_ext
3736 (eval echo "\"\$as_me:3736: $ac_compile\"" >&5)
3737 (eval "$ac_compile" 2>conftest.err)
3738 cat conftest.err >&5
3739 (eval echo "\"\$as_me:3739: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3740 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3741 cat conftest.err >&5
3742 (eval echo "\"\$as_me:3742: output\"" >&5)
3743 cat conftest.out >&5
3744 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3745 lt_cv_nm_interface="MS dumpbin"
3747 rm -f conftest*
3749 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3750 $as_echo "$lt_cv_nm_interface" >&6; }
3752 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3753 $as_echo_n "checking whether ln -s works... " >&6; }
3754 LN_S=$as_ln_s
3755 if test "$LN_S" = "ln -s"; then
3756 { $as_echo "$as_me:$LINENO: result: yes" >&5
3757 $as_echo "yes" >&6; }
3758 else
3759 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3760 $as_echo "no, using $LN_S" >&6; }
3763 # find the maximum length of command line arguments
3764 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3765 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3766 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3767 $as_echo_n "(cached) " >&6
3768 else
3770 teststring="ABCD"
3772 case $build_os in
3773 msdosdjgpp*)
3774 # On DJGPP, this test can blow up pretty badly due to problems in libc
3775 # (any single argument exceeding 2000 bytes causes a buffer overrun
3776 # during glob expansion). Even if it were fixed, the result of this
3777 # check would be larger than it should be.
3778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3781 gnu*)
3782 # Under GNU Hurd, this test is not required because there is
3783 # no limit to the length of command line arguments.
3784 # Libtool will interpret -1 as no limit whatsoever
3785 lt_cv_sys_max_cmd_len=-1;
3788 cygwin* | mingw* | cegcc*)
3789 # On Win9x/ME, this test blows up -- it succeeds, but takes
3790 # about 5 minutes as the teststring grows exponentially.
3791 # Worse, since 9x/ME are not pre-emptively multitasking,
3792 # you end up with a "frozen" computer, even though with patience
3793 # the test eventually succeeds (with a max line length of 256k).
3794 # Instead, let's just punt: use the minimum linelength reported by
3795 # all of the supported platforms: 8192 (on NT/2K/XP).
3796 lt_cv_sys_max_cmd_len=8192;
3799 amigaos*)
3800 # On AmigaOS with pdksh, this test takes hours, literally.
3801 # So we just punt and use a minimum line length of 8192.
3802 lt_cv_sys_max_cmd_len=8192;
3805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3806 # This has been around since 386BSD, at least. Likely further.
3807 if test -x /sbin/sysctl; then
3808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3809 elif test -x /usr/sbin/sysctl; then
3810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3811 else
3812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3814 # And add a safety zone
3815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3819 interix*)
3820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3821 lt_cv_sys_max_cmd_len=196608
3824 osf*)
3825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3827 # nice to cause kernel panics so lets avoid the loop below.
3828 # First set a reasonable default.
3829 lt_cv_sys_max_cmd_len=16384
3831 if test -x /sbin/sysconfig; then
3832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3834 esac
3837 sco3.2v5*)
3838 lt_cv_sys_max_cmd_len=102400
3840 sysv5* | sco5v6* | sysv4.2uw2*)
3841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3842 if test -n "$kargmax"; then
3843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3844 else
3845 lt_cv_sys_max_cmd_len=32768
3849 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3850 if test -n "$lt_cv_sys_max_cmd_len"; then
3851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3853 else
3854 # Make teststring a little bigger before we do anything with it.
3855 # a 1K string should be a reasonable start.
3856 for i in 1 2 3 4 5 6 7 8 ; do
3857 teststring=$teststring$teststring
3858 done
3859 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3860 # If test is not a shell built-in, we'll probably end up computing a
3861 # maximum length that is only half of the actual maximum length, but
3862 # we can't tell.
3863 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3864 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3865 test $i != 17 # 1/2 MB should be enough
3867 i=`expr $i + 1`
3868 teststring=$teststring$teststring
3869 done
3870 # Only check the string length outside the loop.
3871 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3872 teststring=
3873 # Add a significant safety factor because C++ compilers can tack on
3874 # massive amounts of additional arguments before passing them to the
3875 # linker. It appears as though 1/2 is a usable value.
3876 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3879 esac
3883 if test -n $lt_cv_sys_max_cmd_len ; then
3884 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3885 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3886 else
3887 { $as_echo "$as_me:$LINENO: result: none" >&5
3888 $as_echo "none" >&6; }
3890 max_cmd_len=$lt_cv_sys_max_cmd_len
3897 : ${CP="cp -f"}
3898 : ${MV="mv -f"}
3899 : ${RM="rm -f"}
3901 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3902 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3903 # Try some XSI features
3904 xsi_shell=no
3905 ( _lt_dummy="a/b/c"
3906 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3907 = c,a/b,, \
3908 && eval 'test $(( 1 + 1 )) -eq 2 \
3909 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3910 && xsi_shell=yes
3911 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3912 $as_echo "$xsi_shell" >&6; }
3915 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3916 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3917 lt_shell_append=no
3918 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3919 >/dev/null 2>&1 \
3920 && lt_shell_append=yes
3921 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3922 $as_echo "$lt_shell_append" >&6; }
3925 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3926 lt_unset=unset
3927 else
3928 lt_unset=false
3935 # test EBCDIC or ASCII
3936 case `echo X|tr X '\101'` in
3937 A) # ASCII based system
3938 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3939 lt_SP2NL='tr \040 \012'
3940 lt_NL2SP='tr \015\012 \040\040'
3942 *) # EBCDIC based system
3943 lt_SP2NL='tr \100 \n'
3944 lt_NL2SP='tr \r\n \100\100'
3946 esac
3956 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3957 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3958 if test "${lt_cv_ld_reload_flag+set}" = set; then
3959 $as_echo_n "(cached) " >&6
3960 else
3961 lt_cv_ld_reload_flag='-r'
3963 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3964 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3965 reload_flag=$lt_cv_ld_reload_flag
3966 case $reload_flag in
3967 "" | " "*) ;;
3968 *) reload_flag=" $reload_flag" ;;
3969 esac
3970 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3971 case $host_os in
3972 darwin*)
3973 if test "$GCC" = yes; then
3974 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3975 else
3976 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3979 esac
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3992 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$OBJDUMP"; then
3998 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 OBJDUMP=$ac_cv_prog_OBJDUMP
4018 if test -n "$OBJDUMP"; then
4019 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4020 $as_echo "$OBJDUMP" >&6; }
4021 else
4022 { $as_echo "$as_me:$LINENO: result: no" >&5
4023 $as_echo "no" >&6; }
4028 if test -z "$ac_cv_prog_OBJDUMP"; then
4029 ac_ct_OBJDUMP=$OBJDUMP
4030 # Extract the first word of "objdump", so it can be a program name with args.
4031 set dummy objdump; ac_word=$2
4032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -n "$ac_ct_OBJDUMP"; then
4038 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4053 IFS=$as_save_IFS
4057 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4058 if test -n "$ac_ct_OBJDUMP"; then
4059 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4060 $as_echo "$ac_ct_OBJDUMP" >&6; }
4061 else
4062 { $as_echo "$as_me:$LINENO: result: no" >&5
4063 $as_echo "no" >&6; }
4066 if test "x$ac_ct_OBJDUMP" = x; then
4067 OBJDUMP="false"
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4072 whose name does not start with the host triplet. If you think this
4073 configuration is useful to you, please write to autoconf@gnu.org." >&5
4074 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4075 whose name does not start with the host triplet. If you think this
4076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4077 ac_tool_warned=yes ;;
4078 esac
4079 OBJDUMP=$ac_ct_OBJDUMP
4081 else
4082 OBJDUMP="$ac_cv_prog_OBJDUMP"
4085 test -z "$OBJDUMP" && OBJDUMP=objdump
4095 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4096 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4097 if test "${lt_cv_deplibs_check_method+set}" = set; then
4098 $as_echo_n "(cached) " >&6
4099 else
4100 lt_cv_file_magic_cmd='$MAGIC_CMD'
4101 lt_cv_file_magic_test_file=
4102 lt_cv_deplibs_check_method='unknown'
4103 # Need to set the preceding variable on all platforms that support
4104 # interlibrary dependencies.
4105 # 'none' -- dependencies not supported.
4106 # `unknown' -- same as none, but documents that we really don't know.
4107 # 'pass_all' -- all dependencies passed with no checks.
4108 # 'test_compile' -- check by making test program.
4109 # 'file_magic [[regex]]' -- check by looking for files in library path
4110 # which responds to the $file_magic_cmd with a given extended regex.
4111 # If you have `file' or equivalent on your system and you're not sure
4112 # whether `pass_all' will *always* work, you probably want this one.
4114 case $host_os in
4115 aix[4-9]*)
4116 lt_cv_deplibs_check_method=pass_all
4119 beos*)
4120 lt_cv_deplibs_check_method=pass_all
4123 bsdi[45]*)
4124 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4125 lt_cv_file_magic_cmd='/usr/bin/file -L'
4126 lt_cv_file_magic_test_file=/shlib/libc.so
4129 cygwin*)
4130 # func_win32_libid is a shell function defined in ltmain.sh
4131 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4132 lt_cv_file_magic_cmd='func_win32_libid'
4135 mingw* | pw32*)
4136 # Base MSYS/MinGW do not provide the 'file' command needed by
4137 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4138 # unless we find 'file', for example because we are cross-compiling.
4139 if ( file / ) >/dev/null 2>&1; then
4140 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4141 lt_cv_file_magic_cmd='func_win32_libid'
4142 else
4143 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4144 lt_cv_file_magic_cmd='$OBJDUMP -f'
4148 cegcc)
4149 # use the weaker test based on 'objdump'. See mingw*.
4150 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4151 lt_cv_file_magic_cmd='$OBJDUMP -f'
4154 darwin* | rhapsody*)
4155 lt_cv_deplibs_check_method=pass_all
4158 freebsd* | dragonfly*)
4159 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4160 case $host_cpu in
4161 i*86 )
4162 # Not sure whether the presence of OpenBSD here was a mistake.
4163 # Let's accept both of them until this is cleared up.
4164 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4165 lt_cv_file_magic_cmd=/usr/bin/file
4166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4168 esac
4169 else
4170 lt_cv_deplibs_check_method=pass_all
4174 gnu*)
4175 lt_cv_deplibs_check_method=pass_all
4178 hpux10.20* | hpux11*)
4179 lt_cv_file_magic_cmd=/usr/bin/file
4180 case $host_cpu in
4181 ia64*)
4182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4183 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4185 hppa*64*)
4186 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]'
4187 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4190 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4191 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4193 esac
4196 interix[3-9]*)
4197 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4201 irix5* | irix6* | nonstopux*)
4202 case $LD in
4203 *-32|*"-32 ") libmagic=32-bit;;
4204 *-n32|*"-n32 ") libmagic=N32;;
4205 *-64|*"-64 ") libmagic=64-bit;;
4206 *) libmagic=never-match;;
4207 esac
4208 lt_cv_deplibs_check_method=pass_all
4211 # This must be Linux ELF.
4212 linux* | k*bsd*-gnu)
4213 lt_cv_deplibs_check_method=pass_all
4216 netbsd*)
4217 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4218 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4219 else
4220 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4224 newos6*)
4225 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4226 lt_cv_file_magic_cmd=/usr/bin/file
4227 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4230 *nto* | *qnx*)
4231 lt_cv_deplibs_check_method=pass_all
4234 openbsd*)
4235 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4236 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4237 else
4238 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4242 osf3* | osf4* | osf5*)
4243 lt_cv_deplibs_check_method=pass_all
4246 rdos*)
4247 lt_cv_deplibs_check_method=pass_all
4250 solaris*)
4251 lt_cv_deplibs_check_method=pass_all
4254 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4255 lt_cv_deplibs_check_method=pass_all
4258 sysv4 | sysv4.3*)
4259 case $host_vendor in
4260 motorola)
4261 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]'
4262 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4264 ncr)
4265 lt_cv_deplibs_check_method=pass_all
4267 sequent)
4268 lt_cv_file_magic_cmd='/bin/file'
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4271 sni)
4272 lt_cv_file_magic_cmd='/bin/file'
4273 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4274 lt_cv_file_magic_test_file=/lib/libc.so
4276 siemens)
4277 lt_cv_deplibs_check_method=pass_all
4280 lt_cv_deplibs_check_method=pass_all
4282 esac
4285 tpf*)
4286 lt_cv_deplibs_check_method=pass_all
4288 esac
4291 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4292 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4293 file_magic_cmd=$lt_cv_file_magic_cmd
4294 deplibs_check_method=$lt_cv_deplibs_check_method
4295 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}ar; ac_word=$2
4311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if test "${ac_cv_prog_AR+set}" = set; then
4314 $as_echo_n "(cached) " >&6
4315 else
4316 if test -n "$AR"; then
4317 ac_cv_prog_AR="$AR" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4326 ac_cv_prog_AR="${ac_tool_prefix}ar"
4327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 break 2
4330 done
4331 done
4332 IFS=$as_save_IFS
4336 AR=$ac_cv_prog_AR
4337 if test -n "$AR"; then
4338 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4339 $as_echo "$AR" >&6; }
4340 else
4341 { $as_echo "$as_me:$LINENO: result: no" >&5
4342 $as_echo "no" >&6; }
4347 if test -z "$ac_cv_prog_AR"; then
4348 ac_ct_AR=$AR
4349 # Extract the first word of "ar", so it can be a program name with args.
4350 set dummy ar; ac_word=$2
4351 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$ac_ct_AR"; then
4357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_ac_ct_AR="ar"
4367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4372 IFS=$as_save_IFS
4376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4377 if test -n "$ac_ct_AR"; then
4378 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4379 $as_echo "$ac_ct_AR" >&6; }
4380 else
4381 { $as_echo "$as_me:$LINENO: result: no" >&5
4382 $as_echo "no" >&6; }
4385 if test "x$ac_ct_AR" = x; then
4386 AR="false"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4391 whose name does not start with the host triplet. If you think this
4392 configuration is useful to you, please write to autoconf@gnu.org." >&5
4393 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4394 whose name does not start with the host triplet. If you think this
4395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4396 ac_tool_warned=yes ;;
4397 esac
4398 AR=$ac_ct_AR
4400 else
4401 AR="$ac_cv_prog_AR"
4404 test -z "$AR" && AR=ar
4405 test -z "$AR_FLAGS" && AR_FLAGS=cru
4417 if test -n "$ac_tool_prefix"; then
4418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}strip; ac_word=$2
4420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 $as_echo_n "checking for $ac_word... " >&6; }
4422 if test "${ac_cv_prog_STRIP+set}" = set; then
4423 $as_echo_n "(cached) " >&6
4424 else
4425 if test -n "$STRIP"; then
4426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4427 else
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4429 for as_dir in $PATH
4431 IFS=$as_save_IFS
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 break 2
4439 done
4440 done
4441 IFS=$as_save_IFS
4445 STRIP=$ac_cv_prog_STRIP
4446 if test -n "$STRIP"; then
4447 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4448 $as_echo "$STRIP" >&6; }
4449 else
4450 { $as_echo "$as_me:$LINENO: result: no" >&5
4451 $as_echo "no" >&6; }
4456 if test -z "$ac_cv_prog_STRIP"; then
4457 ac_ct_STRIP=$STRIP
4458 # Extract the first word of "strip", so it can be a program name with args.
4459 set dummy strip; ac_word=$2
4460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 $as_echo_n "checking for $ac_word... " >&6; }
4462 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if test -n "$ac_ct_STRIP"; then
4466 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4467 else
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4471 IFS=$as_save_IFS
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_prog_ac_ct_STRIP="strip"
4476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477 break 2
4479 done
4480 done
4481 IFS=$as_save_IFS
4485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4486 if test -n "$ac_ct_STRIP"; then
4487 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4488 $as_echo "$ac_ct_STRIP" >&6; }
4489 else
4490 { $as_echo "$as_me:$LINENO: result: no" >&5
4491 $as_echo "no" >&6; }
4494 if test "x$ac_ct_STRIP" = x; then
4495 STRIP=":"
4496 else
4497 case $cross_compiling:$ac_tool_warned in
4498 yes:)
4499 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4500 whose name does not start with the host triplet. If you think this
4501 configuration is useful to you, please write to autoconf@gnu.org." >&5
4502 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4503 whose name does not start with the host triplet. If you think this
4504 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4505 ac_tool_warned=yes ;;
4506 esac
4507 STRIP=$ac_ct_STRIP
4509 else
4510 STRIP="$ac_cv_prog_STRIP"
4513 test -z "$STRIP" && STRIP=:
4520 if test -n "$ac_tool_prefix"; then
4521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_RANLIB+set}" = set; then
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$RANLIB"; then
4529 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4538 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 RANLIB=$ac_cv_prog_RANLIB
4549 if test -n "$RANLIB"; then
4550 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4551 $as_echo "$RANLIB" >&6; }
4552 else
4553 { $as_echo "$as_me:$LINENO: result: no" >&5
4554 $as_echo "no" >&6; }
4559 if test -z "$ac_cv_prog_RANLIB"; then
4560 ac_ct_RANLIB=$RANLIB
4561 # Extract the first word of "ranlib", so it can be a program name with args.
4562 set dummy ranlib; ac_word=$2
4563 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 $as_echo_n "checking for $ac_word... " >&6; }
4565 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4567 else
4568 if test -n "$ac_ct_RANLIB"; then
4569 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4570 else
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_ac_ct_RANLIB="ranlib"
4579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4588 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4589 if test -n "$ac_ct_RANLIB"; then
4590 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4591 $as_echo "$ac_ct_RANLIB" >&6; }
4592 else
4593 { $as_echo "$as_me:$LINENO: result: no" >&5
4594 $as_echo "no" >&6; }
4597 if test "x$ac_ct_RANLIB" = x; then
4598 RANLIB=":"
4599 else
4600 case $cross_compiling:$ac_tool_warned in
4601 yes:)
4602 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4603 whose name does not start with the host triplet. If you think this
4604 configuration is useful to you, please write to autoconf@gnu.org." >&5
4605 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4606 whose name does not start with the host triplet. If you think this
4607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4608 ac_tool_warned=yes ;;
4609 esac
4610 RANLIB=$ac_ct_RANLIB
4612 else
4613 RANLIB="$ac_cv_prog_RANLIB"
4616 test -z "$RANLIB" && RANLIB=:
4623 # Determine commands to create old-style static archives.
4624 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4625 old_postinstall_cmds='chmod 644 $oldlib'
4626 old_postuninstall_cmds=
4628 if test -n "$RANLIB"; then
4629 case $host_os in
4630 openbsd*)
4631 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4634 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4636 esac
4637 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4673 # If no C compiler was specified, use CC.
4674 LTCC=${LTCC-"$CC"}
4676 # If no C compiler flags were specified, use CFLAGS.
4677 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4679 # Allow CC to be a program name with arguments.
4680 compiler=$CC
4683 # Check for command to grab the raw symbol name followed by C symbol from nm.
4684 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4685 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4686 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4687 $as_echo_n "(cached) " >&6
4688 else
4690 # These are sane defaults that work on at least a few old systems.
4691 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4693 # Character class describing NM global symbol codes.
4694 symcode='[BCDEGRST]'
4696 # Regexp to match symbols that can be accessed directly from C.
4697 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4699 # Define system-specific variables.
4700 case $host_os in
4701 aix*)
4702 symcode='[BCDT]'
4704 cygwin* | mingw* | pw32* | cegcc*)
4705 symcode='[ABCDGISTW]'
4707 hpux*)
4708 if test "$host_cpu" = ia64; then
4709 symcode='[ABCDEGRST]'
4712 irix* | nonstopux*)
4713 symcode='[BCDEGRST]'
4715 osf*)
4716 symcode='[BCDEGQRST]'
4718 solaris*)
4719 symcode='[BDRT]'
4721 sco3.2v5*)
4722 symcode='[DT]'
4724 sysv4.2uw2*)
4725 symcode='[DT]'
4727 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4728 symcode='[ABDT]'
4730 sysv4)
4731 symcode='[DFNSTU]'
4733 esac
4735 # If we're using GNU nm, then use its standard symbol codes.
4736 case `$NM -V 2>&1` in
4737 *GNU* | *'with BFD'*)
4738 symcode='[ABCDGIRSTW]' ;;
4739 esac
4741 # Transform an extracted symbol line into a proper C declaration.
4742 # Some systems (esp. on ia64) link data and code symbols differently,
4743 # so use this general approach.
4744 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4746 # Transform an extracted symbol line into symbol name and symbol address
4747 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4748 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'"
4750 # Handle CRLF in mingw tool chain
4751 opt_cr=
4752 case $build_os in
4753 mingw*)
4754 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4756 esac
4758 # Try without a prefix underscore, then with it.
4759 for ac_symprfx in "" "_"; do
4761 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4762 symxfrm="\\1 $ac_symprfx\\2 \\2"
4764 # Write the raw and C identifiers.
4765 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4766 # Fake it for dumpbin and say T for any non-static function
4767 # and D for any global variable.
4768 # Also find C++ and __fastcall symbols from MSVC++,
4769 # which start with @ or ?.
4770 lt_cv_sys_global_symbol_pipe="$AWK '"\
4771 " {last_section=section; section=\$ 3};"\
4772 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4773 " \$ 0!~/External *\|/{next};"\
4774 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4775 " {if(hide[section]) next};"\
4776 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4777 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4778 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4779 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4780 " ' prfx=^$ac_symprfx"
4781 else
4782 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4785 # Check to see that the pipe works correctly.
4786 pipe_works=no
4788 rm -f conftest*
4789 cat > conftest.$ac_ext <<_LT_EOF
4790 #ifdef __cplusplus
4791 extern "C" {
4792 #endif
4793 char nm_test_var;
4794 void nm_test_func(void);
4795 void nm_test_func(void){}
4796 #ifdef __cplusplus
4798 #endif
4799 int main(){nm_test_var='a';nm_test_func();return(0);}
4800 _LT_EOF
4802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4803 (eval $ac_compile) 2>&5
4804 ac_status=$?
4805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; then
4807 # Now try to grab the symbols.
4808 nlist=conftest.nm
4809 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4810 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4811 ac_status=$?
4812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } && test -s "$nlist"; then
4814 # Try sorting and uniquifying the output.
4815 if sort "$nlist" | uniq > "$nlist"T; then
4816 mv -f "$nlist"T "$nlist"
4817 else
4818 rm -f "$nlist"T
4821 # Make sure that we snagged all the symbols we need.
4822 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4823 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4824 cat <<_LT_EOF > conftest.$ac_ext
4825 #ifdef __cplusplus
4826 extern "C" {
4827 #endif
4829 _LT_EOF
4830 # Now generate the symbol file.
4831 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4833 cat <<_LT_EOF >> conftest.$ac_ext
4835 /* The mapping between symbol names and symbols. */
4836 const struct {
4837 const char *name;
4838 void *address;
4840 lt__PROGRAM__LTX_preloaded_symbols[] =
4842 { "@PROGRAM@", (void *) 0 },
4843 _LT_EOF
4844 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4845 cat <<\_LT_EOF >> conftest.$ac_ext
4846 {0, (void *) 0}
4849 /* This works around a problem in FreeBSD linker */
4850 #ifdef FREEBSD_WORKAROUND
4851 static const void *lt_preloaded_setup() {
4852 return lt__PROGRAM__LTX_preloaded_symbols;
4854 #endif
4856 #ifdef __cplusplus
4858 #endif
4859 _LT_EOF
4860 # Now try linking the two files.
4861 mv conftest.$ac_objext conftstm.$ac_objext
4862 lt_save_LIBS="$LIBS"
4863 lt_save_CFLAGS="$CFLAGS"
4864 LIBS="conftstm.$ac_objext"
4865 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4867 (eval $ac_link) 2>&5
4868 ac_status=$?
4869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4871 pipe_works=yes
4873 LIBS="$lt_save_LIBS"
4874 CFLAGS="$lt_save_CFLAGS"
4875 else
4876 echo "cannot find nm_test_func in $nlist" >&5
4878 else
4879 echo "cannot find nm_test_var in $nlist" >&5
4881 else
4882 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4884 else
4885 echo "$progname: failed program was:" >&5
4886 cat conftest.$ac_ext >&5
4888 rm -rf conftest* conftst*
4890 # Do not use the global_symbol_pipe unless it works.
4891 if test "$pipe_works" = yes; then
4892 break
4893 else
4894 lt_cv_sys_global_symbol_pipe=
4896 done
4900 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4901 lt_cv_sys_global_symbol_to_cdecl=
4903 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4904 { $as_echo "$as_me:$LINENO: result: failed" >&5
4905 $as_echo "failed" >&6; }
4906 else
4907 { $as_echo "$as_me:$LINENO: result: ok" >&5
4908 $as_echo "ok" >&6; }
4933 # Check whether --enable-libtool-lock was given.
4934 if test "${enable_libtool_lock+set}" = set; then
4935 enableval=$enable_libtool_lock;
4938 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4940 # Some flags need to be propagated to the compiler or linker for good
4941 # libtool support.
4942 case $host in
4943 ia64-*-hpux*)
4944 # Find out which ABI we are using.
4945 echo 'int i;' > conftest.$ac_ext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4948 ac_status=$?
4949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; then
4951 case `/usr/bin/file conftest.$ac_objext` in
4952 *ELF-32*)
4953 HPUX_IA64_MODE="32"
4955 *ELF-64*)
4956 HPUX_IA64_MODE="64"
4958 esac
4960 rm -rf conftest*
4962 *-*-irix6*)
4963 # Find out which ABI we are using.
4964 echo '#line 4964 "configure"' > conftest.$ac_ext
4965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4966 (eval $ac_compile) 2>&5
4967 ac_status=$?
4968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; then
4970 if test "$lt_cv_prog_gnu_ld" = yes; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4972 *32-bit*)
4973 LD="${LD-ld} -melf32bsmip"
4975 *N32*)
4976 LD="${LD-ld} -melf32bmipn32"
4978 *64-bit*)
4979 LD="${LD-ld} -melf64bmip"
4981 esac
4982 else
4983 case `/usr/bin/file conftest.$ac_objext` in
4984 *32-bit*)
4985 LD="${LD-ld} -32"
4987 *N32*)
4988 LD="${LD-ld} -n32"
4990 *64-bit*)
4991 LD="${LD-ld} -64"
4993 esac
4996 rm -rf conftest*
4999 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5000 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5001 # Find out which ABI we are using.
5002 echo 'int i;' > conftest.$ac_ext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5004 (eval $ac_compile) 2>&5
5005 ac_status=$?
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; then
5008 case `/usr/bin/file conftest.o` in
5009 *32-bit*)
5010 case $host in
5011 x86_64-*kfreebsd*-gnu)
5012 LD="${LD-ld} -m elf_i386_fbsd"
5014 x86_64-*linux*)
5015 LD="${LD-ld} -m elf_i386"
5017 ppc64-*linux*|powerpc64-*linux*)
5018 LD="${LD-ld} -m elf32ppclinux"
5020 s390x-*linux*)
5021 LD="${LD-ld} -m elf_s390"
5023 sparc64-*linux*)
5024 LD="${LD-ld} -m elf32_sparc"
5026 esac
5028 *64-bit*)
5029 case $host in
5030 x86_64-*kfreebsd*-gnu)
5031 LD="${LD-ld} -m elf_x86_64_fbsd"
5033 x86_64-*linux*)
5034 LD="${LD-ld} -m elf_x86_64"
5036 ppc*-*linux*|powerpc*-*linux*)
5037 LD="${LD-ld} -m elf64ppc"
5039 s390*-*linux*|s390*-*tpf*)
5040 LD="${LD-ld} -m elf64_s390"
5042 sparc*-*linux*)
5043 LD="${LD-ld} -m elf64_sparc"
5045 esac
5047 esac
5049 rm -rf conftest*
5052 *-*-sco3.2v5*)
5053 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5054 SAVE_CFLAGS="$CFLAGS"
5055 CFLAGS="$CFLAGS -belf"
5056 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5057 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5058 if test "${lt_cv_cc_needs_belf+set}" = set; then
5059 $as_echo_n "(cached) " >&6
5060 else
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5067 cat >conftest.$ac_ext <<_ACEOF
5068 /* confdefs.h. */
5069 _ACEOF
5070 cat confdefs.h >>conftest.$ac_ext
5071 cat >>conftest.$ac_ext <<_ACEOF
5072 /* end confdefs.h. */
5075 main ()
5079 return 0;
5081 _ACEOF
5082 rm -f conftest.$ac_objext conftest$ac_exeext
5083 if { (ac_try="$ac_link"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5089 $as_echo "$ac_try_echo") >&5
5090 (eval "$ac_link") 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && {
5097 test -z "$ac_c_werror_flag" ||
5098 test ! -s conftest.err
5099 } && test -s conftest$ac_exeext && {
5100 test "$cross_compiling" = yes ||
5101 $as_test_x conftest$ac_exeext
5102 }; then
5103 lt_cv_cc_needs_belf=yes
5104 else
5105 $as_echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 lt_cv_cc_needs_belf=no
5111 rm -rf conftest.dSYM
5112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5113 conftest$ac_exeext conftest.$ac_ext
5114 ac_ext=c
5115 ac_cpp='$CPP $CPPFLAGS'
5116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5122 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5123 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5124 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5125 CFLAGS="$SAVE_CFLAGS"
5128 sparc*-*solaris*)
5129 # Find out which ABI we are using.
5130 echo 'int i;' > conftest.$ac_ext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5132 (eval $ac_compile) 2>&5
5133 ac_status=$?
5134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; then
5136 case `/usr/bin/file conftest.o` in
5137 *64-bit*)
5138 case $lt_cv_prog_gnu_ld in
5139 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5141 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5142 LD="${LD-ld} -64"
5145 esac
5147 esac
5149 rm -rf conftest*
5151 esac
5153 need_locks="$enable_libtool_lock"
5156 case $host_os in
5157 rhapsody* | darwin*)
5158 if test -n "$ac_tool_prefix"; then
5159 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5160 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -n "$DSYMUTIL"; then
5167 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5176 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5177 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5180 done
5181 done
5182 IFS=$as_save_IFS
5186 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5187 if test -n "$DSYMUTIL"; then
5188 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5189 $as_echo "$DSYMUTIL" >&6; }
5190 else
5191 { $as_echo "$as_me:$LINENO: result: no" >&5
5192 $as_echo "no" >&6; }
5197 if test -z "$ac_cv_prog_DSYMUTIL"; then
5198 ac_ct_DSYMUTIL=$DSYMUTIL
5199 # Extract the first word of "dsymutil", so it can be a program name with args.
5200 set dummy dsymutil; ac_word=$2
5201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5202 $as_echo_n "checking for $ac_word... " >&6; }
5203 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5204 $as_echo_n "(cached) " >&6
5205 else
5206 if test -n "$ac_ct_DSYMUTIL"; then
5207 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5208 else
5209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 for as_dir in $PATH
5212 IFS=$as_save_IFS
5213 test -z "$as_dir" && as_dir=.
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5216 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 break 2
5220 done
5221 done
5222 IFS=$as_save_IFS
5226 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5227 if test -n "$ac_ct_DSYMUTIL"; then
5228 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5229 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5230 else
5231 { $as_echo "$as_me:$LINENO: result: no" >&5
5232 $as_echo "no" >&6; }
5235 if test "x$ac_ct_DSYMUTIL" = x; then
5236 DSYMUTIL=":"
5237 else
5238 case $cross_compiling:$ac_tool_warned in
5239 yes:)
5240 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5241 whose name does not start with the host triplet. If you think this
5242 configuration is useful to you, please write to autoconf@gnu.org." >&5
5243 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5244 whose name does not start with the host triplet. If you think this
5245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5246 ac_tool_warned=yes ;;
5247 esac
5248 DSYMUTIL=$ac_ct_DSYMUTIL
5250 else
5251 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5254 if test -n "$ac_tool_prefix"; then
5255 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5256 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$NMEDIT"; then
5263 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 NMEDIT=$ac_cv_prog_NMEDIT
5283 if test -n "$NMEDIT"; then
5284 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5285 $as_echo "$NMEDIT" >&6; }
5286 else
5287 { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5293 if test -z "$ac_cv_prog_NMEDIT"; then
5294 ac_ct_NMEDIT=$NMEDIT
5295 # Extract the first word of "nmedit", so it can be a program name with args.
5296 set dummy nmedit; ac_word=$2
5297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$ac_ct_NMEDIT"; then
5303 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5313 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5323 if test -n "$ac_ct_NMEDIT"; then
5324 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5325 $as_echo "$ac_ct_NMEDIT" >&6; }
5326 else
5327 { $as_echo "$as_me:$LINENO: result: no" >&5
5328 $as_echo "no" >&6; }
5331 if test "x$ac_ct_NMEDIT" = x; then
5332 NMEDIT=":"
5333 else
5334 case $cross_compiling:$ac_tool_warned in
5335 yes:)
5336 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5337 whose name does not start with the host triplet. If you think this
5338 configuration is useful to you, please write to autoconf@gnu.org." >&5
5339 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5340 whose name does not start with the host triplet. If you think this
5341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5342 ac_tool_warned=yes ;;
5343 esac
5344 NMEDIT=$ac_ct_NMEDIT
5346 else
5347 NMEDIT="$ac_cv_prog_NMEDIT"
5350 if test -n "$ac_tool_prefix"; then
5351 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5352 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5353 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if test "${ac_cv_prog_LIPO+set}" = set; then
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$LIPO"; then
5359 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 LIPO=$ac_cv_prog_LIPO
5379 if test -n "$LIPO"; then
5380 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5381 $as_echo "$LIPO" >&6; }
5382 else
5383 { $as_echo "$as_me:$LINENO: result: no" >&5
5384 $as_echo "no" >&6; }
5389 if test -z "$ac_cv_prog_LIPO"; then
5390 ac_ct_LIPO=$LIPO
5391 # Extract the first word of "lipo", so it can be a program name with args.
5392 set dummy lipo; ac_word=$2
5393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5396 $as_echo_n "(cached) " >&6
5397 else
5398 if test -n "$ac_ct_LIPO"; then
5399 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5400 else
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402 for as_dir in $PATH
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_ac_ct_LIPO="lipo"
5409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5410 break 2
5412 done
5413 done
5414 IFS=$as_save_IFS
5418 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5419 if test -n "$ac_ct_LIPO"; then
5420 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5421 $as_echo "$ac_ct_LIPO" >&6; }
5422 else
5423 { $as_echo "$as_me:$LINENO: result: no" >&5
5424 $as_echo "no" >&6; }
5427 if test "x$ac_ct_LIPO" = x; then
5428 LIPO=":"
5429 else
5430 case $cross_compiling:$ac_tool_warned in
5431 yes:)
5432 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5433 whose name does not start with the host triplet. If you think this
5434 configuration is useful to you, please write to autoconf@gnu.org." >&5
5435 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5436 whose name does not start with the host triplet. If you think this
5437 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5438 ac_tool_warned=yes ;;
5439 esac
5440 LIPO=$ac_ct_LIPO
5442 else
5443 LIPO="$ac_cv_prog_LIPO"
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}otool; ac_word=$2
5449 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_OTOOL+set}" = set; then
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$OTOOL"; then
5455 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 OTOOL=$ac_cv_prog_OTOOL
5475 if test -n "$OTOOL"; then
5476 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5477 $as_echo "$OTOOL" >&6; }
5478 else
5479 { $as_echo "$as_me:$LINENO: result: no" >&5
5480 $as_echo "no" >&6; }
5485 if test -z "$ac_cv_prog_OTOOL"; then
5486 ac_ct_OTOOL=$OTOOL
5487 # Extract the first word of "otool", so it can be a program name with args.
5488 set dummy otool; ac_word=$2
5489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$ac_ct_OTOOL"; then
5495 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_OTOOL="otool"
5505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5510 IFS=$as_save_IFS
5514 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5515 if test -n "$ac_ct_OTOOL"; then
5516 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5517 $as_echo "$ac_ct_OTOOL" >&6; }
5518 else
5519 { $as_echo "$as_me:$LINENO: result: no" >&5
5520 $as_echo "no" >&6; }
5523 if test "x$ac_ct_OTOOL" = x; then
5524 OTOOL=":"
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5529 whose name does not start with the host triplet. If you think this
5530 configuration is useful to you, please write to autoconf@gnu.org." >&5
5531 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5532 whose name does not start with the host triplet. If you think this
5533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5534 ac_tool_warned=yes ;;
5535 esac
5536 OTOOL=$ac_ct_OTOOL
5538 else
5539 OTOOL="$ac_cv_prog_OTOOL"
5542 if test -n "$ac_tool_prefix"; then
5543 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5544 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5545 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$OTOOL64"; then
5551 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5561 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5564 done
5565 done
5566 IFS=$as_save_IFS
5570 OTOOL64=$ac_cv_prog_OTOOL64
5571 if test -n "$OTOOL64"; then
5572 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5573 $as_echo "$OTOOL64" >&6; }
5574 else
5575 { $as_echo "$as_me:$LINENO: result: no" >&5
5576 $as_echo "no" >&6; }
5581 if test -z "$ac_cv_prog_OTOOL64"; then
5582 ac_ct_OTOOL64=$OTOOL64
5583 # Extract the first word of "otool64", so it can be a program name with args.
5584 set dummy otool64; ac_word=$2
5585 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$ac_ct_OTOOL64"; then
5591 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_ac_ct_OTOOL64="otool64"
5601 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5604 done
5605 done
5606 IFS=$as_save_IFS
5610 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5611 if test -n "$ac_ct_OTOOL64"; then
5612 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5613 $as_echo "$ac_ct_OTOOL64" >&6; }
5614 else
5615 { $as_echo "$as_me:$LINENO: result: no" >&5
5616 $as_echo "no" >&6; }
5619 if test "x$ac_ct_OTOOL64" = x; then
5620 OTOOL64=":"
5621 else
5622 case $cross_compiling:$ac_tool_warned in
5623 yes:)
5624 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5625 whose name does not start with the host triplet. If you think this
5626 configuration is useful to you, please write to autoconf@gnu.org." >&5
5627 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5628 whose name does not start with the host triplet. If you think this
5629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5630 ac_tool_warned=yes ;;
5631 esac
5632 OTOOL64=$ac_ct_OTOOL64
5634 else
5635 OTOOL64="$ac_cv_prog_OTOOL64"
5664 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5665 $as_echo_n "checking for -single_module linker flag... " >&6; }
5666 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5667 $as_echo_n "(cached) " >&6
5668 else
5669 lt_cv_apple_cc_single_mod=no
5670 if test -z "${LT_MULTI_MODULE}"; then
5671 # By default we will add the -single_module flag. You can override
5672 # by either setting the environment variable LT_MULTI_MODULE
5673 # non-empty at configure time, or by adding -multi_module to the
5674 # link flags.
5675 rm -rf libconftest.dylib*
5676 echo "int foo(void){return 1;}" > conftest.c
5677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5678 -dynamiclib -Wl,-single_module conftest.c" >&5
5679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5681 _lt_result=$?
5682 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5683 lt_cv_apple_cc_single_mod=yes
5684 else
5685 cat conftest.err >&5
5687 rm -rf libconftest.dylib*
5688 rm -f conftest.*
5691 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5692 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5693 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5694 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5695 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5696 $as_echo_n "(cached) " >&6
5697 else
5698 lt_cv_ld_exported_symbols_list=no
5699 save_LDFLAGS=$LDFLAGS
5700 echo "_main" > conftest.sym
5701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5702 cat >conftest.$ac_ext <<_ACEOF
5703 /* confdefs.h. */
5704 _ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5710 main ()
5714 return 0;
5716 _ACEOF
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (ac_try="$ac_link"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724 $as_echo "$ac_try_echo") >&5
5725 (eval "$ac_link") 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest$ac_exeext && {
5735 test "$cross_compiling" = yes ||
5736 $as_test_x conftest$ac_exeext
5737 }; then
5738 lt_cv_ld_exported_symbols_list=yes
5739 else
5740 $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 lt_cv_ld_exported_symbols_list=no
5746 rm -rf conftest.dSYM
5747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5748 conftest$ac_exeext conftest.$ac_ext
5749 LDFLAGS="$save_LDFLAGS"
5752 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5754 case $host_os in
5755 rhapsody* | darwin1.[012])
5756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5757 darwin1.*)
5758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5759 darwin*) # darwin 5.x on
5760 # if running on 10.5 or later, the deployment target defaults
5761 # to the OS version, if on x86, and 10.4, the deployment
5762 # target defaults to 10.4. Don't you love it?
5763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5764 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5766 10.[012]*)
5767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5768 10.*)
5769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5770 esac
5772 esac
5773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5774 _lt_dar_single_mod='$single_module'
5776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5778 else
5779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5781 if test "$DSYMUTIL" != ":"; then
5782 _lt_dsymutil='~$DSYMUTIL $lib || :'
5783 else
5784 _lt_dsymutil=
5787 esac
5789 ac_ext=c
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5796 # On Suns, sometimes $CPP names a directory.
5797 if test -n "$CPP" && test -d "$CPP"; then
5798 CPP=
5800 if test -z "$CPP"; then
5801 if test "${ac_cv_prog_CPP+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5803 else
5804 # Double quotes because CPP needs to be expanded
5805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5807 ac_preproc_ok=false
5808 for ac_c_preproc_warn_flag in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat >conftest.$ac_ext <<_ACEOF
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #ifdef __STDC__
5823 # include <limits.h>
5824 #else
5825 # include <assert.h>
5826 #endif
5827 Syntax error
5828 _ACEOF
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5830 case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833 esac
5834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835 $as_echo "$ac_try_echo") >&5
5836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 ac_status=$?
5838 grep -v '^ *+' conftest.er1 >conftest.err
5839 rm -f conftest.er1
5840 cat conftest.err >&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } >/dev/null && {
5843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5845 }; then
5847 else
5848 $as_echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 # Broken: fails on valid input.
5852 continue
5855 rm -f conftest.err conftest.$ac_ext
5857 # OK, works on sane cases. Now check whether nonexistent headers
5858 # can be detected and how.
5859 cat >conftest.$ac_ext <<_ACEOF
5860 /* confdefs.h. */
5861 _ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <ac_nonexistent.h>
5866 _ACEOF
5867 if { (ac_try="$ac_cpp conftest.$ac_ext"
5868 case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871 esac
5872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873 $as_echo "$ac_try_echo") >&5
5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } >/dev/null && {
5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 }; then
5884 # Broken: success on invalid input.
5885 continue
5886 else
5887 $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 # Passes both tests.
5891 ac_preproc_ok=:
5892 break
5895 rm -f conftest.err conftest.$ac_ext
5897 done
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.err conftest.$ac_ext
5900 if $ac_preproc_ok; then
5901 break
5904 done
5905 ac_cv_prog_CPP=$CPP
5908 CPP=$ac_cv_prog_CPP
5909 else
5910 ac_cv_prog_CPP=$CPP
5912 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5913 $as_echo "$CPP" >&6; }
5914 ac_preproc_ok=false
5915 for ac_c_preproc_warn_flag in '' yes
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #ifdef __STDC__
5930 # include <limits.h>
5931 #else
5932 # include <assert.h>
5933 #endif
5934 Syntax error
5935 _ACEOF
5936 if { (ac_try="$ac_cpp conftest.$ac_ext"
5937 case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940 esac
5941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942 $as_echo "$ac_try_echo") >&5
5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null && {
5950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 }; then
5954 else
5955 $as_echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 # Broken: fails on valid input.
5959 continue
5962 rm -f conftest.err conftest.$ac_ext
5964 # OK, works on sane cases. Now check whether nonexistent headers
5965 # can be detected and how.
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <ac_nonexistent.h>
5973 _ACEOF
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5975 case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978 esac
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 }; then
5991 # Broken: success on invalid input.
5992 continue
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 # Passes both tests.
5998 ac_preproc_ok=:
5999 break
6002 rm -f conftest.err conftest.$ac_ext
6004 done
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then
6009 else
6010 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6011 See \`config.log' for more details." >&5
6012 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6013 See \`config.log' for more details." >&2;}
6014 { (exit 1); exit 1; }; }
6017 ac_ext=c
6018 ac_cpp='$CPP $CPPFLAGS'
6019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6024 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6025 $as_echo_n "checking for ANSI C header files... " >&6; }
6026 if test "${ac_cv_header_stdc+set}" = set; then
6027 $as_echo_n "(cached) " >&6
6028 else
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035 #include <stdlib.h>
6036 #include <stdarg.h>
6037 #include <string.h>
6038 #include <float.h>
6041 main ()
6045 return 0;
6047 _ACEOF
6048 rm -f conftest.$ac_objext
6049 if { (ac_try="$ac_compile"
6050 case "(($ac_try" in
6051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6052 *) ac_try_echo=$ac_try;;
6053 esac
6054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6055 $as_echo "$ac_try_echo") >&5
6056 (eval "$ac_compile") 2>conftest.er1
6057 ac_status=$?
6058 grep -v '^ *+' conftest.er1 >conftest.err
6059 rm -f conftest.er1
6060 cat conftest.err >&5
6061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } && {
6063 test -z "$ac_c_werror_flag" ||
6064 test ! -s conftest.err
6065 } && test -s conftest.$ac_objext; then
6066 ac_cv_header_stdc=yes
6067 else
6068 $as_echo "$as_me: failed program was:" >&5
6069 sed 's/^/| /' conftest.$ac_ext >&5
6071 ac_cv_header_stdc=no
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 if test $ac_cv_header_stdc = yes; then
6077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6078 cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h. */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h. */
6084 #include <string.h>
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "memchr" >/dev/null 2>&1; then
6090 else
6091 ac_cv_header_stdc=no
6093 rm -f conftest*
6097 if test $ac_cv_header_stdc = yes; then
6098 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <stdlib.h>
6107 _ACEOF
6108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6109 $EGREP "free" >/dev/null 2>&1; then
6111 else
6112 ac_cv_header_stdc=no
6114 rm -f conftest*
6118 if test $ac_cv_header_stdc = yes; then
6119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6120 if test "$cross_compiling" = yes; then
6122 else
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <ctype.h>
6130 #include <stdlib.h>
6131 #if ((' ' & 0x0FF) == 0x020)
6132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6134 #else
6135 # define ISLOWER(c) \
6136 (('a' <= (c) && (c) <= 'i') \
6137 || ('j' <= (c) && (c) <= 'r') \
6138 || ('s' <= (c) && (c) <= 'z'))
6139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6140 #endif
6142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6144 main ()
6146 int i;
6147 for (i = 0; i < 256; i++)
6148 if (XOR (islower (i), ISLOWER (i))
6149 || toupper (i) != TOUPPER (i))
6150 return 2;
6151 return 0;
6153 _ACEOF
6154 rm -f conftest$ac_exeext
6155 if { (ac_try="$ac_link"
6156 case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_link") 2>&5
6163 ac_status=$?
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6166 { (case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171 $as_echo "$ac_try_echo") >&5
6172 (eval "$ac_try") 2>&5
6173 ac_status=$?
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6177 else
6178 $as_echo "$as_me: program exited with status $ac_status" >&5
6179 $as_echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 ( exit $ac_status )
6183 ac_cv_header_stdc=no
6185 rm -rf conftest.dSYM
6186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6193 $as_echo "$ac_cv_header_stdc" >&6; }
6194 if test $ac_cv_header_stdc = yes; then
6196 cat >>confdefs.h <<\_ACEOF
6197 #define STDC_HEADERS 1
6198 _ACEOF
6202 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6212 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6213 inttypes.h stdint.h unistd.h
6215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6217 $as_echo_n "checking for $ac_header... " >&6; }
6218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 $ac_includes_default
6229 #include <$ac_header>
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (ac_try="$ac_compile"
6233 case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236 esac
6237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6238 $as_echo "$ac_try_echo") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6240 ac_status=$?
6241 grep -v '^ *+' conftest.er1 >conftest.err
6242 rm -f conftest.er1
6243 cat conftest.err >&5
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 eval "$as_ac_Header=yes"
6250 else
6251 $as_echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 eval "$as_ac_Header=no"
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259 ac_res=`eval 'as_val=${'$as_ac_Header'}
6260 $as_echo "$as_val"'`
6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6262 $as_echo "$ac_res" >&6; }
6263 if test `eval 'as_val=${'$as_ac_Header'}
6264 $as_echo "$as_val"'` = yes; then
6265 cat >>confdefs.h <<_ACEOF
6266 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 _ACEOF
6271 done
6275 for ac_header in dlfcn.h
6277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6279 $as_echo_n "checking for $ac_header... " >&6; }
6280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6281 $as_echo_n "(cached) " >&6
6282 else
6283 cat >conftest.$ac_ext <<_ACEOF
6284 /* confdefs.h. */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6291 #include <$ac_header>
6292 _ACEOF
6293 rm -f conftest.$ac_objext
6294 if { (ac_try="$ac_compile"
6295 case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298 esac
6299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6300 $as_echo "$ac_try_echo") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_c_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest.$ac_objext; then
6311 eval "$as_ac_Header=yes"
6312 else
6313 $as_echo "$as_me: failed program was:" >&5
6314 sed 's/^/| /' conftest.$ac_ext >&5
6316 eval "$as_ac_Header=no"
6319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 ac_res=`eval 'as_val=${'$as_ac_Header'}
6322 $as_echo "$as_val"'`
6323 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6324 $as_echo "$ac_res" >&6; }
6325 if test `eval 'as_val=${'$as_ac_Header'}
6326 $as_echo "$as_val"'` = yes; then
6327 cat >>confdefs.h <<_ACEOF
6328 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6329 _ACEOF
6333 done
6337 # Set options
6341 enable_dlopen=no
6344 enable_win32_dll=no
6347 # Check whether --enable-shared was given.
6348 if test "${enable_shared+set}" = set; then
6349 enableval=$enable_shared; p=${PACKAGE-default}
6350 case $enableval in
6351 yes) enable_shared=yes ;;
6352 no) enable_shared=no ;;
6354 enable_shared=no
6355 # Look at the argument we got. We use all the common list separators.
6356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6357 for pkg in $enableval; do
6358 IFS="$lt_save_ifs"
6359 if test "X$pkg" = "X$p"; then
6360 enable_shared=yes
6362 done
6363 IFS="$lt_save_ifs"
6365 esac
6366 else
6367 enable_shared=yes
6378 # Check whether --enable-static was given.
6379 if test "${enable_static+set}" = set; then
6380 enableval=$enable_static; p=${PACKAGE-default}
6381 case $enableval in
6382 yes) enable_static=yes ;;
6383 no) enable_static=no ;;
6385 enable_static=no
6386 # Look at the argument we got. We use all the common list separators.
6387 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6388 for pkg in $enableval; do
6389 IFS="$lt_save_ifs"
6390 if test "X$pkg" = "X$p"; then
6391 enable_static=yes
6393 done
6394 IFS="$lt_save_ifs"
6396 esac
6397 else
6398 enable_static=yes
6410 # Check whether --with-pic was given.
6411 if test "${with_pic+set}" = set; then
6412 withval=$with_pic; pic_mode="$withval"
6413 else
6414 pic_mode=default
6418 test -z "$pic_mode" && pic_mode=default
6426 # Check whether --enable-fast-install was given.
6427 if test "${enable_fast_install+set}" = set; then
6428 enableval=$enable_fast_install; p=${PACKAGE-default}
6429 case $enableval in
6430 yes) enable_fast_install=yes ;;
6431 no) enable_fast_install=no ;;
6433 enable_fast_install=no
6434 # Look at the argument we got. We use all the common list separators.
6435 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6436 for pkg in $enableval; do
6437 IFS="$lt_save_ifs"
6438 if test "X$pkg" = "X$p"; then
6439 enable_fast_install=yes
6441 done
6442 IFS="$lt_save_ifs"
6444 esac
6445 else
6446 enable_fast_install=yes
6459 # This can be used to rebuild libtool when needed
6460 LIBTOOL_DEPS="$ltmain"
6462 # Always use our own libtool.
6463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6489 test -z "$LN_S" && LN_S="ln -s"
6504 if test -n "${ZSH_VERSION+set}" ; then
6505 setopt NO_GLOB_SUBST
6508 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6509 $as_echo_n "checking for objdir... " >&6; }
6510 if test "${lt_cv_objdir+set}" = set; then
6511 $as_echo_n "(cached) " >&6
6512 else
6513 rm -f .libs 2>/dev/null
6514 mkdir .libs 2>/dev/null
6515 if test -d .libs; then
6516 lt_cv_objdir=.libs
6517 else
6518 # MS-DOS does not allow filenames that begin with a dot.
6519 lt_cv_objdir=_libs
6521 rmdir .libs 2>/dev/null
6523 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6524 $as_echo "$lt_cv_objdir" >&6; }
6525 objdir=$lt_cv_objdir
6531 cat >>confdefs.h <<_ACEOF
6532 #define LT_OBJDIR "$lt_cv_objdir/"
6533 _ACEOF
6551 case $host_os in
6552 aix3*)
6553 # AIX sometimes has problems with the GCC collect2 program. For some
6554 # reason, if we set the COLLECT_NAMES environment variable, the problems
6555 # vanish in a puff of smoke.
6556 if test "X${COLLECT_NAMES+set}" != Xset; then
6557 COLLECT_NAMES=
6558 export COLLECT_NAMES
6561 esac
6563 # Sed substitution that helps us do robust quoting. It backslashifies
6564 # metacharacters that are still active within double-quoted strings.
6565 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6567 # Same as above, but do not quote variable references.
6568 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6570 # Sed substitution to delay expansion of an escaped shell variable in a
6571 # double_quote_subst'ed string.
6572 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6574 # Sed substitution to delay expansion of an escaped single quote.
6575 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6577 # Sed substitution to avoid accidental globbing in evaled expressions
6578 no_glob_subst='s/\*/\\\*/g'
6580 # Global variables:
6581 ofile=libtool
6582 can_build_shared=yes
6584 # All known linkers require a `.a' archive for static linking (except MSVC,
6585 # which needs '.lib').
6586 libext=a
6588 with_gnu_ld="$lt_cv_prog_gnu_ld"
6590 old_CC="$CC"
6591 old_CFLAGS="$CFLAGS"
6593 # Set sane defaults for various variables
6594 test -z "$CC" && CC=cc
6595 test -z "$LTCC" && LTCC=$CC
6596 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6597 test -z "$LD" && LD=ld
6598 test -z "$ac_objext" && ac_objext=o
6600 for cc_temp in $compiler""; do
6601 case $cc_temp in
6602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6604 \-*) ;;
6605 *) break;;
6606 esac
6607 done
6608 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6611 # Only perform the check for file, if the check method requires it
6612 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6613 case $deplibs_check_method in
6614 file_magic*)
6615 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6616 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6617 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6618 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6619 $as_echo_n "(cached) " >&6
6620 else
6621 case $MAGIC_CMD in
6622 [\\/*] | ?:[\\/]*)
6623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6626 lt_save_MAGIC_CMD="$MAGIC_CMD"
6627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6629 for ac_dir in $ac_dummy; do
6630 IFS="$lt_save_ifs"
6631 test -z "$ac_dir" && ac_dir=.
6632 if test -f $ac_dir/${ac_tool_prefix}file; then
6633 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6634 if test -n "$file_magic_test_file"; then
6635 case $deplibs_check_method in
6636 "file_magic "*)
6637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6640 $EGREP "$file_magic_regex" > /dev/null; then
6642 else
6643 cat <<_LT_EOF 1>&2
6645 *** Warning: the command libtool uses to detect shared libraries,
6646 *** $file_magic_cmd, produces output that libtool cannot recognize.
6647 *** The result is that libtool may fail to recognize shared libraries
6648 *** as such. This will affect the creation of libtool libraries that
6649 *** depend on shared libraries, but programs linked with such libtool
6650 *** libraries will work regardless of this problem. Nevertheless, you
6651 *** may want to report the problem to your system manager and/or to
6652 *** bug-libtool@gnu.org
6654 _LT_EOF
6655 fi ;;
6656 esac
6658 break
6660 done
6661 IFS="$lt_save_ifs"
6662 MAGIC_CMD="$lt_save_MAGIC_CMD"
6664 esac
6667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6668 if test -n "$MAGIC_CMD"; then
6669 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6670 $as_echo "$MAGIC_CMD" >&6; }
6671 else
6672 { $as_echo "$as_me:$LINENO: result: no" >&5
6673 $as_echo "no" >&6; }
6680 if test -z "$lt_cv_path_MAGIC_CMD"; then
6681 if test -n "$ac_tool_prefix"; then
6682 { $as_echo "$as_me:$LINENO: checking for file" >&5
6683 $as_echo_n "checking for file... " >&6; }
6684 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6685 $as_echo_n "(cached) " >&6
6686 else
6687 case $MAGIC_CMD in
6688 [\\/*] | ?:[\\/]*)
6689 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6692 lt_save_MAGIC_CMD="$MAGIC_CMD"
6693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6694 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6695 for ac_dir in $ac_dummy; do
6696 IFS="$lt_save_ifs"
6697 test -z "$ac_dir" && ac_dir=.
6698 if test -f $ac_dir/file; then
6699 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6700 if test -n "$file_magic_test_file"; then
6701 case $deplibs_check_method in
6702 "file_magic "*)
6703 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6705 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6706 $EGREP "$file_magic_regex" > /dev/null; then
6708 else
6709 cat <<_LT_EOF 1>&2
6711 *** Warning: the command libtool uses to detect shared libraries,
6712 *** $file_magic_cmd, produces output that libtool cannot recognize.
6713 *** The result is that libtool may fail to recognize shared libraries
6714 *** as such. This will affect the creation of libtool libraries that
6715 *** depend on shared libraries, but programs linked with such libtool
6716 *** libraries will work regardless of this problem. Nevertheless, you
6717 *** may want to report the problem to your system manager and/or to
6718 *** bug-libtool@gnu.org
6720 _LT_EOF
6721 fi ;;
6722 esac
6724 break
6726 done
6727 IFS="$lt_save_ifs"
6728 MAGIC_CMD="$lt_save_MAGIC_CMD"
6730 esac
6733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6734 if test -n "$MAGIC_CMD"; then
6735 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6736 $as_echo "$MAGIC_CMD" >&6; }
6737 else
6738 { $as_echo "$as_me:$LINENO: result: no" >&5
6739 $as_echo "no" >&6; }
6743 else
6744 MAGIC_CMD=:
6750 esac
6752 # Use C for the default configuration in the libtool script
6754 lt_save_CC="$CC"
6755 ac_ext=c
6756 ac_cpp='$CPP $CPPFLAGS'
6757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6762 # Source file extension for C test sources.
6763 ac_ext=c
6765 # Object file extension for compiled C test sources.
6766 objext=o
6767 objext=$objext
6769 # Code to be used in simple compile tests
6770 lt_simple_compile_test_code="int some_variable = 0;"
6772 # Code to be used in simple link tests
6773 lt_simple_link_test_code='int main(){return(0);}'
6781 # If no C compiler was specified, use CC.
6782 LTCC=${LTCC-"$CC"}
6784 # If no C compiler flags were specified, use CFLAGS.
6785 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6787 # Allow CC to be a program name with arguments.
6788 compiler=$CC
6790 # Save the default compiler, since it gets overwritten when the other
6791 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6792 compiler_DEFAULT=$CC
6794 # save warnings/boilerplate of simple test code
6795 ac_outfile=conftest.$ac_objext
6796 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6797 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6798 _lt_compiler_boilerplate=`cat conftest.err`
6799 $RM conftest*
6801 ac_outfile=conftest.$ac_objext
6802 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6803 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6804 _lt_linker_boilerplate=`cat conftest.err`
6805 $RM -r conftest*
6808 if test -n "$compiler"; then
6810 lt_prog_compiler_no_builtin_flag=
6812 if test "$GCC" = yes; then
6813 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6815 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6816 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6817 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6818 $as_echo_n "(cached) " >&6
6819 else
6820 lt_cv_prog_compiler_rtti_exceptions=no
6821 ac_outfile=conftest.$ac_objext
6822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6823 lt_compiler_flag="-fno-rtti -fno-exceptions"
6824 # Insert the option either (1) after the last *FLAGS variable, or
6825 # (2) before a word containing "conftest.", or (3) at the end.
6826 # Note that $ac_compile itself does not contain backslashes and begins
6827 # with a dollar sign (not a hyphen), so the echo should work correctly.
6828 # The option is referenced via a variable to avoid confusing sed.
6829 lt_compile=`echo "$ac_compile" | $SED \
6830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6832 -e 's:$: $lt_compiler_flag:'`
6833 (eval echo "\"\$as_me:6833: $lt_compile\"" >&5)
6834 (eval "$lt_compile" 2>conftest.err)
6835 ac_status=$?
6836 cat conftest.err >&5
6837 echo "$as_me:6837: \$? = $ac_status" >&5
6838 if (exit $ac_status) && test -s "$ac_outfile"; then
6839 # The compiler can only warn and ignore the option if not recognized
6840 # So say no if there are warnings other than the usual output.
6841 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6844 lt_cv_prog_compiler_rtti_exceptions=yes
6847 $RM conftest*
6850 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6851 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6853 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6854 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6855 else
6866 lt_prog_compiler_wl=
6867 lt_prog_compiler_pic=
6868 lt_prog_compiler_static=
6870 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6871 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6873 if test "$GCC" = yes; then
6874 lt_prog_compiler_wl='-Wl,'
6875 lt_prog_compiler_static='-static'
6877 case $host_os in
6878 aix*)
6879 # All AIX code is PIC.
6880 if test "$host_cpu" = ia64; then
6881 # AIX 5 now supports IA64 processor
6882 lt_prog_compiler_static='-Bstatic'
6886 amigaos*)
6887 case $host_cpu in
6888 powerpc)
6889 # see comment about AmigaOS4 .so support
6890 lt_prog_compiler_pic='-fPIC'
6892 m68k)
6893 # FIXME: we need at least 68020 code to build shared libraries, but
6894 # adding the `-m68020' flag to GCC prevents building anything better,
6895 # like `-m68040'.
6896 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6898 esac
6901 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6902 # PIC is the default for these OSes.
6905 mingw* | cygwin* | pw32* | os2* | cegcc*)
6906 # This hack is so that the source file can tell whether it is being
6907 # built for inclusion in a dll (and should export symbols for example).
6908 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6909 # (--disable-auto-import) libraries
6910 lt_prog_compiler_pic='-DDLL_EXPORT'
6913 darwin* | rhapsody*)
6914 # PIC is the default on this platform
6915 # Common symbols not allowed in MH_DYLIB files
6916 lt_prog_compiler_pic='-fno-common'
6919 hpux*)
6920 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6921 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6922 # sets the default TLS model and affects inlining.
6923 case $host_cpu in
6924 hppa*64*)
6925 # +Z the default
6928 lt_prog_compiler_pic='-fPIC'
6930 esac
6933 interix[3-9]*)
6934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6935 # Instead, we relocate shared libraries at runtime.
6938 msdosdjgpp*)
6939 # Just because we use GCC doesn't mean we suddenly get shared libraries
6940 # on systems that don't support them.
6941 lt_prog_compiler_can_build_shared=no
6942 enable_shared=no
6945 *nto* | *qnx*)
6946 # QNX uses GNU C++, but need to define -shared option too, otherwise
6947 # it will coredump.
6948 lt_prog_compiler_pic='-fPIC -shared'
6951 sysv4*MP*)
6952 if test -d /usr/nec; then
6953 lt_prog_compiler_pic=-Kconform_pic
6958 lt_prog_compiler_pic='-fPIC'
6960 esac
6961 else
6962 # PORTME Check for flag to pass linker flags through the system compiler.
6963 case $host_os in
6964 aix*)
6965 lt_prog_compiler_wl='-Wl,'
6966 if test "$host_cpu" = ia64; then
6967 # AIX 5 now supports IA64 processor
6968 lt_prog_compiler_static='-Bstatic'
6969 else
6970 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6974 mingw* | cygwin* | pw32* | os2* | cegcc*)
6975 # This hack is so that the source file can tell whether it is being
6976 # built for inclusion in a dll (and should export symbols for example).
6977 lt_prog_compiler_pic='-DDLL_EXPORT'
6980 hpux9* | hpux10* | hpux11*)
6981 lt_prog_compiler_wl='-Wl,'
6982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6983 # not for PA HP-UX.
6984 case $host_cpu in
6985 hppa*64*|ia64*)
6986 # +Z the default
6989 lt_prog_compiler_pic='+Z'
6991 esac
6992 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6993 lt_prog_compiler_static='${wl}-a ${wl}archive'
6996 irix5* | irix6* | nonstopux*)
6997 lt_prog_compiler_wl='-Wl,'
6998 # PIC (with -KPIC) is the default.
6999 lt_prog_compiler_static='-non_shared'
7002 linux* | k*bsd*-gnu)
7003 case $cc_basename in
7004 # old Intel for x86_64 which still supported -KPIC.
7005 ecc*)
7006 lt_prog_compiler_wl='-Wl,'
7007 lt_prog_compiler_pic='-KPIC'
7008 lt_prog_compiler_static='-static'
7010 # icc used to be incompatible with GCC.
7011 # ICC 10 doesn't accept -KPIC any more.
7012 icc* | ifort*)
7013 lt_prog_compiler_wl='-Wl,'
7014 lt_prog_compiler_pic='-fPIC'
7015 lt_prog_compiler_static='-static'
7017 # Lahey Fortran 8.1.
7018 lf95*)
7019 lt_prog_compiler_wl='-Wl,'
7020 lt_prog_compiler_pic='--shared'
7021 lt_prog_compiler_static='--static'
7023 pgcc* | pgf77* | pgf90* | pgf95*)
7024 # Portland Group compilers (*not* the Pentium gcc compiler,
7025 # which looks to be a dead project)
7026 lt_prog_compiler_wl='-Wl,'
7027 lt_prog_compiler_pic='-fpic'
7028 lt_prog_compiler_static='-Bstatic'
7030 ccc*)
7031 lt_prog_compiler_wl='-Wl,'
7032 # All Alpha code is PIC.
7033 lt_prog_compiler_static='-non_shared'
7035 xl*)
7036 # IBM XL C 8.0/Fortran 10.1 on PPC
7037 lt_prog_compiler_wl='-Wl,'
7038 lt_prog_compiler_pic='-qpic'
7039 lt_prog_compiler_static='-qstaticlink'
7042 case `$CC -V 2>&1 | sed 5q` in
7043 *Sun\ C*)
7044 # Sun C 5.9
7045 lt_prog_compiler_pic='-KPIC'
7046 lt_prog_compiler_static='-Bstatic'
7047 lt_prog_compiler_wl='-Wl,'
7049 *Sun\ F*)
7050 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7051 lt_prog_compiler_pic='-KPIC'
7052 lt_prog_compiler_static='-Bstatic'
7053 lt_prog_compiler_wl=''
7055 esac
7057 esac
7060 newsos6)
7061 lt_prog_compiler_pic='-KPIC'
7062 lt_prog_compiler_static='-Bstatic'
7065 *nto* | *qnx*)
7066 # QNX uses GNU C++, but need to define -shared option too, otherwise
7067 # it will coredump.
7068 lt_prog_compiler_pic='-fPIC -shared'
7071 osf3* | osf4* | osf5*)
7072 lt_prog_compiler_wl='-Wl,'
7073 # All OSF/1 code is PIC.
7074 lt_prog_compiler_static='-non_shared'
7077 rdos*)
7078 lt_prog_compiler_static='-non_shared'
7081 solaris*)
7082 lt_prog_compiler_pic='-KPIC'
7083 lt_prog_compiler_static='-Bstatic'
7084 case $cc_basename in
7085 f77* | f90* | f95*)
7086 lt_prog_compiler_wl='-Qoption ld ';;
7088 lt_prog_compiler_wl='-Wl,';;
7089 esac
7092 sunos4*)
7093 lt_prog_compiler_wl='-Qoption ld '
7094 lt_prog_compiler_pic='-PIC'
7095 lt_prog_compiler_static='-Bstatic'
7098 sysv4 | sysv4.2uw2* | sysv4.3*)
7099 lt_prog_compiler_wl='-Wl,'
7100 lt_prog_compiler_pic='-KPIC'
7101 lt_prog_compiler_static='-Bstatic'
7104 sysv4*MP*)
7105 if test -d /usr/nec ;then
7106 lt_prog_compiler_pic='-Kconform_pic'
7107 lt_prog_compiler_static='-Bstatic'
7111 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7112 lt_prog_compiler_wl='-Wl,'
7113 lt_prog_compiler_pic='-KPIC'
7114 lt_prog_compiler_static='-Bstatic'
7117 unicos*)
7118 lt_prog_compiler_wl='-Wl,'
7119 lt_prog_compiler_can_build_shared=no
7122 uts4*)
7123 lt_prog_compiler_pic='-pic'
7124 lt_prog_compiler_static='-Bstatic'
7128 lt_prog_compiler_can_build_shared=no
7130 esac
7133 case $host_os in
7134 # For platforms which do not support PIC, -DPIC is meaningless:
7135 *djgpp*)
7136 lt_prog_compiler_pic=
7139 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7141 esac
7142 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7143 $as_echo "$lt_prog_compiler_pic" >&6; }
7151 # Check to make sure the PIC flag actually works.
7153 if test -n "$lt_prog_compiler_pic"; then
7154 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7155 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7156 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7157 $as_echo_n "(cached) " >&6
7158 else
7159 lt_cv_prog_compiler_pic_works=no
7160 ac_outfile=conftest.$ac_objext
7161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7162 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
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 # The option is referenced via a variable to avoid confusing sed.
7168 lt_compile=`echo "$ac_compile" | $SED \
7169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7171 -e 's:$: $lt_compiler_flag:'`
7172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5)
7173 (eval "$lt_compile" 2>conftest.err)
7174 ac_status=$?
7175 cat conftest.err >&5
7176 echo "$as_me:7176: \$? = $ac_status" >&5
7177 if (exit $ac_status) && test -s "$ac_outfile"; then
7178 # The compiler can only warn and ignore the option if not recognized
7179 # So say no if there are warnings other than the usual output.
7180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7183 lt_cv_prog_compiler_pic_works=yes
7186 $RM conftest*
7189 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7190 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7192 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7193 case $lt_prog_compiler_pic in
7194 "" | " "*) ;;
7195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7196 esac
7197 else
7198 lt_prog_compiler_pic=
7199 lt_prog_compiler_can_build_shared=no
7210 # Check to make sure the static flag actually works.
7212 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7213 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7214 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7215 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7216 $as_echo_n "(cached) " >&6
7217 else
7218 lt_cv_prog_compiler_static_works=no
7219 save_LDFLAGS="$LDFLAGS"
7220 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7221 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7222 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7223 # The linker can only warn and ignore the option if not recognized
7224 # So say no if there are warnings
7225 if test -s conftest.err; then
7226 # Append any errors to the config.log.
7227 cat conftest.err 1>&5
7228 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7230 if diff conftest.exp conftest.er2 >/dev/null; then
7231 lt_cv_prog_compiler_static_works=yes
7233 else
7234 lt_cv_prog_compiler_static_works=yes
7237 $RM -r conftest*
7238 LDFLAGS="$save_LDFLAGS"
7241 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7242 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7244 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7246 else
7247 lt_prog_compiler_static=
7256 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7258 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7259 $as_echo_n "(cached) " >&6
7260 else
7261 lt_cv_prog_compiler_c_o=no
7262 $RM -r conftest 2>/dev/null
7263 mkdir conftest
7264 cd conftest
7265 mkdir out
7266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7268 lt_compiler_flag="-o out/conftest2.$ac_objext"
7269 # Insert the option either (1) after the last *FLAGS variable, or
7270 # (2) before a word containing "conftest.", or (3) at the end.
7271 # Note that $ac_compile itself does not contain backslashes and begins
7272 # with a dollar sign (not a hyphen), so the echo should work correctly.
7273 lt_compile=`echo "$ac_compile" | $SED \
7274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7276 -e 's:$: $lt_compiler_flag:'`
7277 (eval echo "\"\$as_me:7277: $lt_compile\"" >&5)
7278 (eval "$lt_compile" 2>out/conftest.err)
7279 ac_status=$?
7280 cat out/conftest.err >&5
7281 echo "$as_me:7281: \$? = $ac_status" >&5
7282 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7283 then
7284 # The compiler can only warn and ignore the option if not recognized
7285 # So say no if there are warnings
7286 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7287 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7288 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7289 lt_cv_prog_compiler_c_o=yes
7292 chmod u+w . 2>&5
7293 $RM conftest*
7294 # SGI C++ compiler will create directory out/ii_files/ for
7295 # template instantiation
7296 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7297 $RM out/* && rmdir out
7298 cd ..
7299 $RM -r conftest
7300 $RM conftest*
7303 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7304 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7311 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7312 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7313 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7314 $as_echo_n "(cached) " >&6
7315 else
7316 lt_cv_prog_compiler_c_o=no
7317 $RM -r conftest 2>/dev/null
7318 mkdir conftest
7319 cd conftest
7320 mkdir out
7321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7323 lt_compiler_flag="-o out/conftest2.$ac_objext"
7324 # Insert the option either (1) after the last *FLAGS variable, or
7325 # (2) before a word containing "conftest.", or (3) at the end.
7326 # Note that $ac_compile itself does not contain backslashes and begins
7327 # with a dollar sign (not a hyphen), so the echo should work correctly.
7328 lt_compile=`echo "$ac_compile" | $SED \
7329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7331 -e 's:$: $lt_compiler_flag:'`
7332 (eval echo "\"\$as_me:7332: $lt_compile\"" >&5)
7333 (eval "$lt_compile" 2>out/conftest.err)
7334 ac_status=$?
7335 cat out/conftest.err >&5
7336 echo "$as_me:7336: \$? = $ac_status" >&5
7337 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7338 then
7339 # The compiler can only warn and ignore the option if not recognized
7340 # So say no if there are warnings
7341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7342 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7343 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7344 lt_cv_prog_compiler_c_o=yes
7347 chmod u+w . 2>&5
7348 $RM conftest*
7349 # SGI C++ compiler will create directory out/ii_files/ for
7350 # template instantiation
7351 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7352 $RM out/* && rmdir out
7353 cd ..
7354 $RM -r conftest
7355 $RM conftest*
7358 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7359 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7364 hard_links="nottested"
7365 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7366 # do not overwrite the value of need_locks provided by the user
7367 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7368 $as_echo_n "checking if we can lock with hard links... " >&6; }
7369 hard_links=yes
7370 $RM conftest*
7371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7372 touch conftest.a
7373 ln conftest.a conftest.b 2>&5 || hard_links=no
7374 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7375 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7376 $as_echo "$hard_links" >&6; }
7377 if test "$hard_links" = no; then
7378 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7379 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7380 need_locks=warn
7382 else
7383 need_locks=no
7391 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7392 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7394 runpath_var=
7395 allow_undefined_flag=
7396 always_export_symbols=no
7397 archive_cmds=
7398 archive_expsym_cmds=
7399 compiler_needs_object=no
7400 enable_shared_with_static_runtimes=no
7401 export_dynamic_flag_spec=
7402 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7403 hardcode_automatic=no
7404 hardcode_direct=no
7405 hardcode_direct_absolute=no
7406 hardcode_libdir_flag_spec=
7407 hardcode_libdir_flag_spec_ld=
7408 hardcode_libdir_separator=
7409 hardcode_minus_L=no
7410 hardcode_shlibpath_var=unsupported
7411 inherit_rpath=no
7412 link_all_deplibs=unknown
7413 module_cmds=
7414 module_expsym_cmds=
7415 old_archive_from_new_cmds=
7416 old_archive_from_expsyms_cmds=
7417 thread_safe_flag_spec=
7418 whole_archive_flag_spec=
7419 # include_expsyms should be a list of space-separated symbols to be *always*
7420 # included in the symbol list
7421 include_expsyms=
7422 # exclude_expsyms can be an extended regexp of symbols to exclude
7423 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7424 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7425 # as well as any symbol that contains `d'.
7426 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7427 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7428 # platforms (ab)use it in PIC code, but their linkers get confused if
7429 # the symbol is explicitly referenced. Since portable code cannot
7430 # rely on this symbol name, it's probably fine to never include it in
7431 # preloaded symbol tables.
7432 # Exclude shared library initialization/finalization symbols.
7433 extract_expsyms_cmds=
7435 case $host_os in
7436 cygwin* | mingw* | pw32* | cegcc*)
7437 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7438 # When not using gcc, we currently assume that we are using
7439 # Microsoft Visual C++.
7440 if test "$GCC" != yes; then
7441 with_gnu_ld=no
7444 interix*)
7445 # we just hope/assume this is gcc and not c89 (= MSVC++)
7446 with_gnu_ld=yes
7448 openbsd*)
7449 with_gnu_ld=no
7451 esac
7453 ld_shlibs=yes
7454 if test "$with_gnu_ld" = yes; then
7455 # If archive_cmds runs LD, not CC, wlarc should be empty
7456 wlarc='${wl}'
7458 # Set some defaults for GNU ld with shared library support. These
7459 # are reset later if shared libraries are not supported. Putting them
7460 # here allows them to be overridden if necessary.
7461 runpath_var=LD_RUN_PATH
7462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7463 export_dynamic_flag_spec='${wl}--export-dynamic'
7464 # ancient GNU ld didn't support --whole-archive et. al.
7465 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7467 else
7468 whole_archive_flag_spec=
7470 supports_anon_versioning=no
7471 case `$LD -v 2>&1` in
7472 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7473 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7474 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7475 *\ 2.11.*) ;; # other 2.11 versions
7476 *) supports_anon_versioning=yes ;;
7477 esac
7479 # See if GNU ld supports shared libraries.
7480 case $host_os in
7481 aix[3-9]*)
7482 # On AIX/PPC, the GNU linker is very broken
7483 if test "$host_cpu" != ia64; then
7484 ld_shlibs=no
7485 cat <<_LT_EOF 1>&2
7487 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7488 *** to be unable to reliably create shared libraries on AIX.
7489 *** Therefore, libtool is disabling shared libraries support. If you
7490 *** really care for shared libraries, you may want to modify your PATH
7491 *** so that a non-GNU linker is found, and then restart.
7493 _LT_EOF
7497 amigaos*)
7498 case $host_cpu in
7499 powerpc)
7500 # see comment about AmigaOS4 .so support
7501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7502 archive_expsym_cmds=''
7504 m68k)
7505 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)'
7506 hardcode_libdir_flag_spec='-L$libdir'
7507 hardcode_minus_L=yes
7509 esac
7512 beos*)
7513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7514 allow_undefined_flag=unsupported
7515 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7516 # support --undefined. This deserves some investigation. FIXME
7517 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7518 else
7519 ld_shlibs=no
7523 cygwin* | mingw* | pw32* | cegcc*)
7524 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7525 # as there is no search path for DLLs.
7526 hardcode_libdir_flag_spec='-L$libdir'
7527 allow_undefined_flag=unsupported
7528 always_export_symbols=no
7529 enable_shared_with_static_runtimes=yes
7530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7532 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7533 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7534 # If the export-symbols file already is a .def file (1st line
7535 # is EXPORTS), use it as is; otherwise, prepend...
7536 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7537 cp $export_symbols $output_objdir/$soname.def;
7538 else
7539 echo EXPORTS > $output_objdir/$soname.def;
7540 cat $export_symbols >> $output_objdir/$soname.def;
7542 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7543 else
7544 ld_shlibs=no
7548 interix[3-9]*)
7549 hardcode_direct=no
7550 hardcode_shlibpath_var=no
7551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7552 export_dynamic_flag_spec='${wl}-E'
7553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7554 # Instead, shared libraries are loaded at an image base (0x10000000 by
7555 # default) and relocated if they conflict, which is a slow very memory
7556 # consuming and fragmenting process. To avoid this, we pick a random,
7557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7558 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7560 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'
7563 gnu* | linux* | tpf* | k*bsd*-gnu)
7564 tmp_diet=no
7565 if test "$host_os" = linux-dietlibc; then
7566 case $cc_basename in
7567 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7568 esac
7570 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7571 && test "$tmp_diet" = no
7572 then
7573 tmp_addflag=
7574 tmp_sharedflag='-shared'
7575 case $cc_basename,$host_cpu in
7576 pgcc*) # Portland Group C compiler
7577 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'
7578 tmp_addflag=' $pic_flag'
7580 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7581 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'
7582 tmp_addflag=' $pic_flag -Mnomain' ;;
7583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7584 tmp_addflag=' -i_dynamic' ;;
7585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7586 tmp_addflag=' -i_dynamic -nofor_main' ;;
7587 ifc* | ifort*) # Intel Fortran compiler
7588 tmp_addflag=' -nofor_main' ;;
7589 lf95*) # Lahey Fortran 8.1
7590 whole_archive_flag_spec=
7591 tmp_sharedflag='--shared' ;;
7592 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7593 tmp_sharedflag='-qmkshrobj'
7594 tmp_addflag= ;;
7595 esac
7596 case `$CC -V 2>&1 | sed 5q` in
7597 *Sun\ C*) # Sun C 5.9
7598 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'
7599 compiler_needs_object=yes
7600 tmp_sharedflag='-G' ;;
7601 *Sun\ F*) # Sun Fortran 8.3
7602 tmp_sharedflag='-G' ;;
7603 esac
7604 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7606 if test "x$supports_anon_versioning" = xyes; then
7607 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7608 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7609 echo "local: *; };" >> $output_objdir/$libname.ver~
7610 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7613 case $cc_basename in
7614 xlf*)
7615 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7616 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7617 hardcode_libdir_flag_spec=
7618 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7619 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7620 if test "x$supports_anon_versioning" = xyes; then
7621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7623 echo "local: *; };" >> $output_objdir/$libname.ver~
7624 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7627 esac
7628 else
7629 ld_shlibs=no
7633 netbsd*)
7634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7636 wlarc=
7637 else
7638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7639 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7643 solaris*)
7644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7645 ld_shlibs=no
7646 cat <<_LT_EOF 1>&2
7648 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7649 *** create shared libraries on Solaris systems. Therefore, libtool
7650 *** is disabling shared libraries support. We urge you to upgrade GNU
7651 *** binutils to release 2.9.1 or newer. Another option is to modify
7652 *** your PATH or compiler configuration so that the native linker is
7653 *** used, and then restart.
7655 _LT_EOF
7656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7659 else
7660 ld_shlibs=no
7664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7665 case `$LD -v 2>&1` in
7666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7667 ld_shlibs=no
7668 cat <<_LT_EOF 1>&2
7670 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7671 *** reliably create shared libraries on SCO systems. Therefore, libtool
7672 *** is disabling shared libraries support. We urge you to upgrade GNU
7673 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7674 *** your PATH or compiler configuration so that the native linker is
7675 *** used, and then restart.
7677 _LT_EOF
7680 # For security reasons, it is highly recommended that you always
7681 # use absolute paths for naming shared libraries, and exclude the
7682 # DT_RUNPATH tag from executables and libraries. But doing so
7683 # requires that you compile everything twice, which is a pain.
7684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7688 else
7689 ld_shlibs=no
7692 esac
7695 sunos4*)
7696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7697 wlarc=
7698 hardcode_direct=yes
7699 hardcode_shlibpath_var=no
7703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7706 else
7707 ld_shlibs=no
7710 esac
7712 if test "$ld_shlibs" = no; then
7713 runpath_var=
7714 hardcode_libdir_flag_spec=
7715 export_dynamic_flag_spec=
7716 whole_archive_flag_spec=
7718 else
7719 # PORTME fill in a description of your system's linker (not GNU ld)
7720 case $host_os in
7721 aix3*)
7722 allow_undefined_flag=unsupported
7723 always_export_symbols=yes
7724 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'
7725 # Note: this linker hardcodes the directories in LIBPATH if there
7726 # are no directories specified by -L.
7727 hardcode_minus_L=yes
7728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7729 # Neither direct hardcoding nor static linking is supported with a
7730 # broken collect2.
7731 hardcode_direct=unsupported
7735 aix[4-9]*)
7736 if test "$host_cpu" = ia64; then
7737 # On IA64, the linker does run time linking by default, so we don't
7738 # have to do anything special.
7739 aix_use_runtimelinking=no
7740 exp_sym_flag='-Bexport'
7741 no_entry_flag=""
7742 else
7743 # If we're using GNU nm, then we don't want the "-C" option.
7744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7745 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7746 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'
7747 else
7748 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'
7750 aix_use_runtimelinking=no
7752 # Test if we are trying to use run time linking or normal
7753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7754 # need to do runtime linking.
7755 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7756 for ld_flag in $LDFLAGS; do
7757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7758 aix_use_runtimelinking=yes
7759 break
7761 done
7763 esac
7765 exp_sym_flag='-bexport'
7766 no_entry_flag='-bnoentry'
7769 # When large executables or shared objects are built, AIX ld can
7770 # have problems creating the table of contents. If linking a library
7771 # or program results in "error TOC overflow" add -mminimal-toc to
7772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7775 archive_cmds=''
7776 hardcode_direct=yes
7777 hardcode_direct_absolute=yes
7778 hardcode_libdir_separator=':'
7779 link_all_deplibs=yes
7780 file_list_spec='${wl}-f,'
7782 if test "$GCC" = yes; then
7783 case $host_os in aix4.[012]|aix4.[012].*)
7784 # We only want to do this on AIX 4.2 and lower, the check
7785 # below for broken collect2 doesn't work under 4.3+
7786 collect2name=`${CC} -print-prog-name=collect2`
7787 if test -f "$collect2name" &&
7788 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7789 then
7790 # We have reworked collect2
7792 else
7793 # We have old collect2
7794 hardcode_direct=unsupported
7795 # It fails to find uninstalled libraries when the uninstalled
7796 # path is not listed in the libpath. Setting hardcode_minus_L
7797 # to unsupported forces relinking
7798 hardcode_minus_L=yes
7799 hardcode_libdir_flag_spec='-L$libdir'
7800 hardcode_libdir_separator=
7803 esac
7804 shared_flag='-shared'
7805 if test "$aix_use_runtimelinking" = yes; then
7806 shared_flag="$shared_flag "'${wl}-G'
7808 else
7809 # not using gcc
7810 if test "$host_cpu" = ia64; then
7811 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7812 # chokes on -Wl,-G. The following line is correct:
7813 shared_flag='-G'
7814 else
7815 if test "$aix_use_runtimelinking" = yes; then
7816 shared_flag='${wl}-G'
7817 else
7818 shared_flag='${wl}-bM:SRE'
7823 export_dynamic_flag_spec='${wl}-bexpall'
7824 # It seems that -bexpall does not export symbols beginning with
7825 # underscore (_), so it is better to generate a list of symbols to export.
7826 always_export_symbols=yes
7827 if test "$aix_use_runtimelinking" = yes; then
7828 # Warning - without using the other runtime loading flags (-brtl),
7829 # -berok will link without error, but may produce a broken library.
7830 allow_undefined_flag='-berok'
7831 # Determine the default libpath from the value encoded in an
7832 # empty executable.
7833 cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h. */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7841 main ()
7845 return 0;
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (ac_try="$ac_link"
7850 case "(($ac_try" in
7851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852 *) ac_try_echo=$ac_try;;
7853 esac
7854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7855 $as_echo "$ac_try_echo") >&5
7856 (eval "$ac_link") 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest$ac_exeext && {
7866 test "$cross_compiling" = yes ||
7867 $as_test_x conftest$ac_exeext
7868 }; then
7870 lt_aix_libpath_sed='
7871 /Import File Strings/,/^$/ {
7872 /^0/ {
7873 s/^0 *\(.*\)$/\1/
7877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7878 # Check for a 64-bit object if we didn't find anything.
7879 if test -z "$aix_libpath"; then
7880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7882 else
7883 $as_echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7889 rm -rf conftest.dSYM
7890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7891 conftest$ac_exeext conftest.$ac_ext
7892 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7895 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"
7896 else
7897 if test "$host_cpu" = ia64; then
7898 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7899 allow_undefined_flag="-z nodefs"
7900 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"
7901 else
7902 # Determine the default libpath from the value encoded in an
7903 # empty executable.
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7912 main ()
7916 return 0;
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924 esac
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927 (eval "$ac_link") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest$ac_exeext && {
7937 test "$cross_compiling" = yes ||
7938 $as_test_x conftest$ac_exeext
7939 }; then
7941 lt_aix_libpath_sed='
7942 /Import File Strings/,/^$/ {
7943 /^0/ {
7944 s/^0 *\(.*\)$/\1/
7948 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7949 # Check for a 64-bit object if we didn't find anything.
7950 if test -z "$aix_libpath"; then
7951 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7953 else
7954 $as_echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7960 rm -rf conftest.dSYM
7961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7962 conftest$ac_exeext conftest.$ac_ext
7963 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7965 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7966 # Warning - without using the other run time loading flags,
7967 # -berok will link without error, but may produce a broken library.
7968 no_undefined_flag=' ${wl}-bernotok'
7969 allow_undefined_flag=' ${wl}-berok'
7970 # Exported symbols can be pulled into shared objects from archives
7971 whole_archive_flag_spec='$convenience'
7972 archive_cmds_need_lc=yes
7973 # This is similar to how AIX traditionally builds its shared libraries.
7974 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'
7979 amigaos*)
7980 case $host_cpu in
7981 powerpc)
7982 # see comment about AmigaOS4 .so support
7983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7984 archive_expsym_cmds=''
7986 m68k)
7987 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)'
7988 hardcode_libdir_flag_spec='-L$libdir'
7989 hardcode_minus_L=yes
7991 esac
7994 bsdi[45]*)
7995 export_dynamic_flag_spec=-rdynamic
7998 cygwin* | mingw* | pw32* | cegcc*)
7999 # When not using gcc, we currently assume that we are using
8000 # Microsoft Visual C++.
8001 # hardcode_libdir_flag_spec is actually meaningless, as there is
8002 # no search path for DLLs.
8003 hardcode_libdir_flag_spec=' '
8004 allow_undefined_flag=unsupported
8005 # Tell ltmain to make .lib files, not .a files.
8006 libext=lib
8007 # Tell ltmain to make .dll files, not .so files.
8008 shrext_cmds=".dll"
8009 # FIXME: Setting linknames here is a bad hack.
8010 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8011 # The linker will automatically build a .lib file if we build a DLL.
8012 old_archive_from_new_cmds='true'
8013 # FIXME: Should let the user specify the lib program.
8014 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8015 fix_srcfile_path='`cygpath -w "$srcfile"`'
8016 enable_shared_with_static_runtimes=yes
8019 darwin* | rhapsody*)
8022 archive_cmds_need_lc=no
8023 hardcode_direct=no
8024 hardcode_automatic=yes
8025 hardcode_shlibpath_var=unsupported
8026 whole_archive_flag_spec=''
8027 link_all_deplibs=yes
8028 allow_undefined_flag="$_lt_dar_allow_undefined"
8029 case $cc_basename in
8030 ifort*) _lt_dar_can_shared=yes ;;
8031 *) _lt_dar_can_shared=$GCC ;;
8032 esac
8033 if test "$_lt_dar_can_shared" = "yes"; then
8034 output_verbose_link_cmd=echo
8035 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8036 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8037 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}"
8038 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}"
8040 else
8041 ld_shlibs=no
8046 dgux*)
8047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048 hardcode_libdir_flag_spec='-L$libdir'
8049 hardcode_shlibpath_var=no
8052 freebsd1*)
8053 ld_shlibs=no
8056 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8057 # support. Future versions do this automatically, but an explicit c++rt0.o
8058 # does not break anything, and helps significantly (at the cost of a little
8059 # extra space).
8060 freebsd2.2*)
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8062 hardcode_libdir_flag_spec='-R$libdir'
8063 hardcode_direct=yes
8064 hardcode_shlibpath_var=no
8067 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8068 freebsd2*)
8069 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8070 hardcode_direct=yes
8071 hardcode_minus_L=yes
8072 hardcode_shlibpath_var=no
8075 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8076 freebsd* | dragonfly*)
8077 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8078 hardcode_libdir_flag_spec='-R$libdir'
8079 hardcode_direct=yes
8080 hardcode_shlibpath_var=no
8083 hpux9*)
8084 if test "$GCC" = yes; then
8085 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'
8086 else
8087 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'
8089 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8090 hardcode_libdir_separator=:
8091 hardcode_direct=yes
8093 # hardcode_minus_L: Not really in the search PATH,
8094 # but as the default location of the library.
8095 hardcode_minus_L=yes
8096 export_dynamic_flag_spec='${wl}-E'
8099 hpux10*)
8100 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8101 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8102 else
8103 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8105 if test "$with_gnu_ld" = no; then
8106 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8107 hardcode_libdir_flag_spec_ld='+b $libdir'
8108 hardcode_libdir_separator=:
8109 hardcode_direct=yes
8110 hardcode_direct_absolute=yes
8111 export_dynamic_flag_spec='${wl}-E'
8112 # hardcode_minus_L: Not really in the search PATH,
8113 # but as the default location of the library.
8114 hardcode_minus_L=yes
8118 hpux11*)
8119 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8120 case $host_cpu in
8121 hppa*64*)
8122 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8124 ia64*)
8125 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8128 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8130 esac
8131 else
8132 case $host_cpu in
8133 hppa*64*)
8134 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8136 ia64*)
8137 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8140 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8142 esac
8144 if test "$with_gnu_ld" = no; then
8145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8146 hardcode_libdir_separator=:
8148 case $host_cpu in
8149 hppa*64*|ia64*)
8150 hardcode_direct=no
8151 hardcode_shlibpath_var=no
8154 hardcode_direct=yes
8155 hardcode_direct_absolute=yes
8156 export_dynamic_flag_spec='${wl}-E'
8158 # hardcode_minus_L: Not really in the search PATH,
8159 # but as the default location of the library.
8160 hardcode_minus_L=yes
8162 esac
8166 irix5* | irix6* | nonstopux*)
8167 if test "$GCC" = yes; then
8168 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'
8169 # Try to use the -exported_symbol ld option, if it does not
8170 # work, assume that -exports_file does not work either and
8171 # implicitly export all symbols.
8172 save_LDFLAGS="$LDFLAGS"
8173 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8174 cat >conftest.$ac_ext <<_ACEOF
8175 int foo(void) {}
8176 _ACEOF
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (ac_try="$ac_link"
8179 case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182 esac
8183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8184 $as_echo "$ac_try_echo") >&5
8185 (eval "$ac_link") 2>conftest.er1
8186 ac_status=$?
8187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
8190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && {
8192 test -z "$ac_c_werror_flag" ||
8193 test ! -s conftest.err
8194 } && test -s conftest$ac_exeext && {
8195 test "$cross_compiling" = yes ||
8196 $as_test_x conftest$ac_exeext
8197 }; then
8198 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'
8200 else
8201 $as_echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8207 rm -rf conftest.dSYM
8208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8209 conftest$ac_exeext conftest.$ac_ext
8210 LDFLAGS="$save_LDFLAGS"
8211 else
8212 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'
8213 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'
8215 archive_cmds_need_lc='no'
8216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8217 hardcode_libdir_separator=:
8218 inherit_rpath=yes
8219 link_all_deplibs=yes
8222 netbsd*)
8223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8225 else
8226 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8228 hardcode_libdir_flag_spec='-R$libdir'
8229 hardcode_direct=yes
8230 hardcode_shlibpath_var=no
8233 newsos6)
8234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8235 hardcode_direct=yes
8236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8237 hardcode_libdir_separator=:
8238 hardcode_shlibpath_var=no
8241 *nto* | *qnx*)
8244 openbsd*)
8245 if test -f /usr/libexec/ld.so; then
8246 hardcode_direct=yes
8247 hardcode_shlibpath_var=no
8248 hardcode_direct_absolute=yes
8249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8250 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8251 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8253 export_dynamic_flag_spec='${wl}-E'
8254 else
8255 case $host_os in
8256 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8257 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8258 hardcode_libdir_flag_spec='-R$libdir'
8261 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8264 esac
8266 else
8267 ld_shlibs=no
8271 os2*)
8272 hardcode_libdir_flag_spec='-L$libdir'
8273 hardcode_minus_L=yes
8274 allow_undefined_flag=unsupported
8275 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'
8276 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8279 osf3*)
8280 if test "$GCC" = yes; then
8281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8282 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'
8283 else
8284 allow_undefined_flag=' -expect_unresolved \*'
8285 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'
8287 archive_cmds_need_lc='no'
8288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8289 hardcode_libdir_separator=:
8292 osf4* | osf5*) # as osf3* with the addition of -msym flag
8293 if test "$GCC" = yes; then
8294 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8295 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'
8296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8297 else
8298 allow_undefined_flag=' -expect_unresolved \*'
8299 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'
8300 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~
8301 $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'
8303 # Both c and cxx compiler support -rpath directly
8304 hardcode_libdir_flag_spec='-rpath $libdir'
8306 archive_cmds_need_lc='no'
8307 hardcode_libdir_separator=:
8310 solaris*)
8311 no_undefined_flag=' -z defs'
8312 if test "$GCC" = yes; then
8313 wlarc='${wl}'
8314 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8315 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8316 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8317 else
8318 case `$CC -V 2>&1` in
8319 *"Compilers 5.0"*)
8320 wlarc=''
8321 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8323 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8326 wlarc='${wl}'
8327 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8329 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8331 esac
8333 hardcode_libdir_flag_spec='-R$libdir'
8334 hardcode_shlibpath_var=no
8335 case $host_os in
8336 solaris2.[0-5] | solaris2.[0-5].*) ;;
8338 # The compiler driver will combine and reorder linker options,
8339 # but understands `-z linker_flag'. GCC discards it without `$wl',
8340 # but is careful enough not to reorder.
8341 # Supported since Solaris 2.6 (maybe 2.5.1?)
8342 if test "$GCC" = yes; then
8343 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8344 else
8345 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8348 esac
8349 link_all_deplibs=yes
8352 sunos4*)
8353 if test "x$host_vendor" = xsequent; then
8354 # Use $CC to link under sequent, because it throws in some extra .o
8355 # files that make .init and .fini sections work.
8356 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8357 else
8358 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8360 hardcode_libdir_flag_spec='-L$libdir'
8361 hardcode_direct=yes
8362 hardcode_minus_L=yes
8363 hardcode_shlibpath_var=no
8366 sysv4)
8367 case $host_vendor in
8368 sni)
8369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8370 hardcode_direct=yes # is this really true???
8372 siemens)
8373 ## LD is ld it makes a PLAMLIB
8374 ## CC just makes a GrossModule.
8375 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8376 reload_cmds='$CC -r -o $output$reload_objs'
8377 hardcode_direct=no
8379 motorola)
8380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8383 esac
8384 runpath_var='LD_RUN_PATH'
8385 hardcode_shlibpath_var=no
8388 sysv4.3*)
8389 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_shlibpath_var=no
8391 export_dynamic_flag_spec='-Bexport'
8394 sysv4*MP*)
8395 if test -d /usr/nec; then
8396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8397 hardcode_shlibpath_var=no
8398 runpath_var=LD_RUN_PATH
8399 hardcode_runpath_var=yes
8400 ld_shlibs=yes
8404 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8405 no_undefined_flag='${wl}-z,text'
8406 archive_cmds_need_lc=no
8407 hardcode_shlibpath_var=no
8408 runpath_var='LD_RUN_PATH'
8410 if test "$GCC" = yes; then
8411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8413 else
8414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8419 sysv5* | sco3.2v5* | sco5v6*)
8420 # Note: We can NOT use -z defs as we might desire, because we do not
8421 # link with -lc, and that would cause any symbols used from libc to
8422 # always be unresolved, which means just about no library would
8423 # ever link correctly. If we're not using GNU ld we use -z text
8424 # though, which does catch some bad symbols but isn't as heavy-handed
8425 # as -z defs.
8426 no_undefined_flag='${wl}-z,text'
8427 allow_undefined_flag='${wl}-z,nodefs'
8428 archive_cmds_need_lc=no
8429 hardcode_shlibpath_var=no
8430 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8431 hardcode_libdir_separator=':'
8432 link_all_deplibs=yes
8433 export_dynamic_flag_spec='${wl}-Bexport'
8434 runpath_var='LD_RUN_PATH'
8436 if test "$GCC" = yes; then
8437 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8438 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8439 else
8440 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8441 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 uts4*)
8446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_libdir_flag_spec='-L$libdir'
8448 hardcode_shlibpath_var=no
8452 ld_shlibs=no
8454 esac
8456 if test x$host_vendor = xsni; then
8457 case $host in
8458 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8459 export_dynamic_flag_spec='${wl}-Blargedynsym'
8461 esac
8465 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8466 $as_echo "$ld_shlibs" >&6; }
8467 test "$ld_shlibs" = no && can_build_shared=no
8469 with_gnu_ld=$with_gnu_ld
8486 # Do we need to explicitly link libc?
8488 case "x$archive_cmds_need_lc" in
8489 x|xyes)
8490 # Assume -lc should be added
8491 archive_cmds_need_lc=yes
8493 if test "$enable_shared" = yes && test "$GCC" = yes; then
8494 case $archive_cmds in
8495 *'~'*)
8496 # FIXME: we may have to deal with multi-command sequences.
8498 '$CC '*)
8499 # Test whether the compiler implicitly links with -lc since on some
8500 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8501 # to ld, don't add -lc before -lgcc.
8502 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8503 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8504 $RM conftest*
8505 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508 (eval $ac_compile) 2>&5
8509 ac_status=$?
8510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); } 2>conftest.err; then
8512 soname=conftest
8513 lib=conftest
8514 libobjs=conftest.$ac_objext
8515 deplibs=
8516 wl=$lt_prog_compiler_wl
8517 pic_flag=$lt_prog_compiler_pic
8518 compiler_flags=-v
8519 linker_flags=-v
8520 verstring=
8521 output_objdir=.
8522 libname=conftest
8523 lt_save_allow_undefined_flag=$allow_undefined_flag
8524 allow_undefined_flag=
8525 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8526 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8527 ac_status=$?
8528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }
8530 then
8531 archive_cmds_need_lc=no
8532 else
8533 archive_cmds_need_lc=yes
8535 allow_undefined_flag=$lt_save_allow_undefined_flag
8536 else
8537 cat conftest.err 1>&5
8539 $RM conftest*
8540 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8541 $as_echo "$archive_cmds_need_lc" >&6; }
8543 esac
8546 esac
8704 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8707 if test "$GCC" = yes; then
8708 case $host_os in
8709 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8710 *) lt_awk_arg="/^libraries:/" ;;
8711 esac
8712 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8714 # if the path contains ";" then we assume it to be the separator
8715 # otherwise default to the standard path separator (i.e. ":") - it is
8716 # assumed that no part of a normal pathname contains ";" but that should
8717 # okay in the real world where ";" in dirpaths is itself problematic.
8718 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8719 else
8720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8722 # Ok, now we have the path, separated by spaces, we can step through it
8723 # and add multilib dir if necessary.
8724 lt_tmp_lt_search_path_spec=
8725 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8726 for lt_sys_path in $lt_search_path_spec; do
8727 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8729 else
8730 test -d "$lt_sys_path" && \
8731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8733 done
8734 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8735 BEGIN {RS=" "; FS="/|\n";} {
8736 lt_foo="";
8737 lt_count=0;
8738 for (lt_i = NF; lt_i > 0; lt_i--) {
8739 if ($lt_i != "" && $lt_i != ".") {
8740 if ($lt_i == "..") {
8741 lt_count++;
8742 } else {
8743 if (lt_count == 0) {
8744 lt_foo="/" $lt_i lt_foo;
8745 } else {
8746 lt_count--;
8751 if (lt_foo != "") { lt_freq[lt_foo]++; }
8752 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8754 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8755 else
8756 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8758 library_names_spec=
8759 libname_spec='lib$name'
8760 soname_spec=
8761 shrext_cmds=".so"
8762 postinstall_cmds=
8763 postuninstall_cmds=
8764 finish_cmds=
8765 finish_eval=
8766 shlibpath_var=
8767 shlibpath_overrides_runpath=unknown
8768 version_type=none
8769 dynamic_linker="$host_os ld.so"
8770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8771 need_lib_prefix=unknown
8772 hardcode_into_libs=no
8774 # when you set need_version to no, make sure it does not cause -set_version
8775 # flags to be left without arguments
8776 need_version=unknown
8778 case $host_os in
8779 aix3*)
8780 version_type=linux
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782 shlibpath_var=LIBPATH
8784 # AIX 3 has no versioning support, so we append a major version to the name.
8785 soname_spec='${libname}${release}${shared_ext}$major'
8788 aix[4-9]*)
8789 version_type=linux
8790 need_lib_prefix=no
8791 need_version=no
8792 hardcode_into_libs=yes
8793 if test "$host_cpu" = ia64; then
8794 # AIX 5 supports IA64
8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796 shlibpath_var=LD_LIBRARY_PATH
8797 else
8798 # With GCC up to 2.95.x, collect2 would create an import file
8799 # for dependence libraries. The import file would start with
8800 # the line `#! .'. This would cause the generated library to
8801 # depend on `.', always an invalid library. This was fixed in
8802 # development snapshots of GCC prior to 3.0.
8803 case $host_os in
8804 aix4 | aix4.[01] | aix4.[01].*)
8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8806 echo ' yes '
8807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8809 else
8810 can_build_shared=no
8813 esac
8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815 # soname into executable. Probably we can add versioning support to
8816 # collect2, so additional links can be useful in future.
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819 # instead of lib<name>.a to let people know that these are not
8820 # typical AIX shared libraries.
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 else
8823 # We preserve .a as extension for shared libraries through AIX4.2
8824 # and later when we are not doing run time linking.
8825 library_names_spec='${libname}${release}.a $libname.a'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LIBPATH
8832 amigaos*)
8833 case $host_cpu in
8834 powerpc)
8835 # Since July 2007 AmigaOS4 officially supports .so libraries.
8836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839 m68k)
8840 library_names_spec='$libname.ixlibrary $libname.a'
8841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8842 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'
8844 esac
8847 beos*)
8848 library_names_spec='${libname}${shared_ext}'
8849 dynamic_linker="$host_os ld.so"
8850 shlibpath_var=LIBRARY_PATH
8853 bsdi[45]*)
8854 version_type=linux
8855 need_version=no
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 soname_spec='${libname}${release}${shared_ext}$major'
8858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8862 # the default ld.so.conf also contains /usr/contrib/lib and
8863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8864 # libtool to hard-code these into programs
8867 cygwin* | mingw* | pw32* | cegcc*)
8868 version_type=windows
8869 shrext_cmds=".dll"
8870 need_version=no
8871 need_lib_prefix=no
8873 case $GCC,$host_os in
8874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8875 library_names_spec='$libname.dll.a'
8876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8877 postinstall_cmds='base_file=`basename \${file}`~
8878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8879 dldir=$destdir/`dirname \$dlpath`~
8880 test -d \$dldir || mkdir -p \$dldir~
8881 $install_prog $dir/$dlname \$dldir/$dlname~
8882 chmod a+x \$dldir/$dlname~
8883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8887 dlpath=$dir/\$dldll~
8888 $RM \$dlpath'
8889 shlibpath_overrides_runpath=yes
8891 case $host_os in
8892 cygwin*)
8893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8897 mingw* | cegcc*)
8898 # MinGW DLLs use traditional 'lib' prefix
8899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8900 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8901 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8902 # It is most probably a Windows format PATH printed by
8903 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8904 # path with ; separators, and with drive letters. We can handle the
8905 # drive letters (cygwin fileutils understands them), so leave them,
8906 # especially as we might pass files found there to a mingw objdump,
8907 # which wouldn't understand a cygwinified path. Ahh.
8908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8909 else
8910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8913 pw32*)
8914 # pw32 DLLs use 'pw' prefix rather than 'lib'
8915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 esac
8921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8923 esac
8924 dynamic_linker='Win32 ld.exe'
8925 # FIXME: first we should search . and the directory the executable is in
8926 shlibpath_var=PATH
8929 darwin* | rhapsody*)
8930 dynamic_linker="$host_os dyld"
8931 version_type=darwin
8932 need_lib_prefix=no
8933 need_version=no
8934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8935 soname_spec='${libname}${release}${major}$shared_ext'
8936 shlibpath_overrides_runpath=yes
8937 shlibpath_var=DYLD_LIBRARY_PATH
8938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8940 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8941 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8944 dgux*)
8945 version_type=linux
8946 need_lib_prefix=no
8947 need_version=no
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 shlibpath_var=LD_LIBRARY_PATH
8953 freebsd1*)
8954 dynamic_linker=no
8957 freebsd* | dragonfly*)
8958 # DragonFly does not have aout. When/if they implement a new
8959 # versioning mechanism, adjust this.
8960 if test -x /usr/bin/objformat; then
8961 objformat=`/usr/bin/objformat`
8962 else
8963 case $host_os in
8964 freebsd[123]*) objformat=aout ;;
8965 *) objformat=elf ;;
8966 esac
8968 # Handle Gentoo/FreeBSD as it was Linux
8969 case $host_vendor in
8970 gentoo)
8971 version_type=linux ;;
8973 version_type=freebsd-$objformat ;;
8974 esac
8976 case $version_type in
8977 freebsd-elf*)
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8979 need_version=no
8980 need_lib_prefix=no
8982 freebsd-*)
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984 need_version=yes
8986 linux)
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 need_lib_prefix=no
8990 need_version=no
8992 esac
8993 shlibpath_var=LD_LIBRARY_PATH
8994 case $host_os in
8995 freebsd2*)
8996 shlibpath_overrides_runpath=yes
8998 freebsd3.[01]* | freebsdelf3.[01]*)
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9002 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9003 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9007 *) # from 4.6 on, and DragonFly
9008 shlibpath_overrides_runpath=yes
9009 hardcode_into_libs=yes
9011 esac
9014 gnu*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 hardcode_into_libs=yes
9024 hpux9* | hpux10* | hpux11*)
9025 # Give a soname corresponding to the major version so that dld.sl refuses to
9026 # link against other versions.
9027 version_type=sunos
9028 need_lib_prefix=no
9029 need_version=no
9030 case $host_cpu in
9031 ia64*)
9032 shrext_cmds='.so'
9033 hardcode_into_libs=yes
9034 dynamic_linker="$host_os dld.so"
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 if test "X$HPUX_IA64_MODE" = X32; then
9040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9041 else
9042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9046 hppa*64*)
9047 shrext_cmds='.sl'
9048 hardcode_into_libs=yes
9049 dynamic_linker="$host_os dld.sl"
9050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9058 shrext_cmds='.sl'
9059 dynamic_linker="$host_os dld.sl"
9060 shlibpath_var=SHLIB_PATH
9061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 soname_spec='${libname}${release}${shared_ext}$major'
9065 esac
9066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9067 postinstall_cmds='chmod 555 $lib'
9070 interix[3-9]*)
9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=no
9079 hardcode_into_libs=yes
9082 irix5* | irix6* | nonstopux*)
9083 case $host_os in
9084 nonstopux*) version_type=nonstopux ;;
9086 if test "$lt_cv_prog_gnu_ld" = yes; then
9087 version_type=linux
9088 else
9089 version_type=irix
9090 fi ;;
9091 esac
9092 need_lib_prefix=no
9093 need_version=no
9094 soname_spec='${libname}${release}${shared_ext}$major'
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9096 case $host_os in
9097 irix5* | nonstopux*)
9098 libsuff= shlibsuff=
9101 case $LD in # libtool.m4 will add one of these switches to LD
9102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9103 libsuff= shlibsuff= libmagic=32-bit;;
9104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9105 libsuff=32 shlibsuff=N32 libmagic=N32;;
9106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9108 *) libsuff= shlibsuff= libmagic=never-match;;
9109 esac
9111 esac
9112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9113 shlibpath_overrides_runpath=no
9114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9116 hardcode_into_libs=yes
9119 # No shared lib support for Linux oldld, aout, or coff.
9120 linux*oldld* | linux*aout* | linux*coff*)
9121 dynamic_linker=no
9124 # This must be Linux ELF.
9125 linux* | k*bsd*-gnu)
9126 version_type=linux
9127 need_lib_prefix=no
9128 need_version=no
9129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec='${libname}${release}${shared_ext}$major'
9131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=no
9134 # Some binutils ld are patched to set DT_RUNPATH
9135 save_LDFLAGS=$LDFLAGS
9136 save_libdir=$libdir
9137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9147 main ()
9151 return 0;
9153 _ACEOF
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (ac_try="$ac_link"
9156 case "(($ac_try" in
9157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9158 *) ac_try_echo=$ac_try;;
9159 esac
9160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9161 $as_echo "$ac_try_echo") >&5
9162 (eval "$ac_link") 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } && {
9169 test -z "$ac_c_werror_flag" ||
9170 test ! -s conftest.err
9171 } && test -s conftest$ac_exeext && {
9172 test "$cross_compiling" = yes ||
9173 $as_test_x conftest$ac_exeext
9174 }; then
9175 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9176 shlibpath_overrides_runpath=yes
9179 else
9180 $as_echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9186 rm -rf conftest.dSYM
9187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9188 conftest$ac_exeext conftest.$ac_ext
9189 LDFLAGS=$save_LDFLAGS
9190 libdir=$save_libdir
9192 # This implies no fast_install, which is unacceptable.
9193 # Some rework will be needed to allow for fast_install
9194 # before this can be enabled.
9195 hardcode_into_libs=yes
9197 # Append ld.so.conf contents to the search path
9198 if test -f /etc/ld.so.conf; then
9199 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' ' '`
9200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9203 # We used to test for /lib/ld.so.1 and disable shared libraries on
9204 # powerpc, because MkLinux only supported shared libraries with the
9205 # GNU dynamic linker. Since this was broken with cross compilers,
9206 # most powerpc-linux boxes support dynamic linking these days and
9207 # people can always --disable-shared, the test was removed, and we
9208 # assume the GNU/Linux dynamic linker is in use.
9209 dynamic_linker='GNU/Linux ld.so'
9212 netbsd*)
9213 version_type=sunos
9214 need_lib_prefix=no
9215 need_version=no
9216 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9218 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9219 dynamic_linker='NetBSD (a.out) ld.so'
9220 else
9221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9222 soname_spec='${libname}${release}${shared_ext}$major'
9223 dynamic_linker='NetBSD ld.elf_so'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9227 hardcode_into_libs=yes
9230 newsos6)
9231 version_type=linux
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 shlibpath_overrides_runpath=yes
9237 *nto* | *qnx*)
9238 version_type=qnx
9239 need_lib_prefix=no
9240 need_version=no
9241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9242 soname_spec='${libname}${release}${shared_ext}$major'
9243 shlibpath_var=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath=no
9245 hardcode_into_libs=yes
9246 dynamic_linker='ldqnx.so'
9249 openbsd*)
9250 version_type=sunos
9251 sys_lib_dlsearch_path_spec="/usr/lib"
9252 need_lib_prefix=no
9253 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9254 case $host_os in
9255 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9256 *) need_version=no ;;
9257 esac
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9260 shlibpath_var=LD_LIBRARY_PATH
9261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9262 case $host_os in
9263 openbsd2.[89] | openbsd2.[89].*)
9264 shlibpath_overrides_runpath=no
9267 shlibpath_overrides_runpath=yes
9269 esac
9270 else
9271 shlibpath_overrides_runpath=yes
9275 os2*)
9276 libname_spec='$name'
9277 shrext_cmds=".dll"
9278 need_lib_prefix=no
9279 library_names_spec='$libname${shared_ext} $libname.a'
9280 dynamic_linker='OS/2 ld.exe'
9281 shlibpath_var=LIBPATH
9284 osf3* | osf4* | osf5*)
9285 version_type=osf
9286 need_lib_prefix=no
9287 need_version=no
9288 soname_spec='${libname}${release}${shared_ext}$major'
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9295 rdos*)
9296 dynamic_linker=no
9299 solaris*)
9300 version_type=linux
9301 need_lib_prefix=no
9302 need_version=no
9303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9304 soname_spec='${libname}${release}${shared_ext}$major'
9305 shlibpath_var=LD_LIBRARY_PATH
9306 shlibpath_overrides_runpath=yes
9307 hardcode_into_libs=yes
9308 # ldd complains unless libraries are executable
9309 postinstall_cmds='chmod +x $lib'
9312 sunos4*)
9313 version_type=sunos
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9315 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes
9318 if test "$with_gnu_ld" = yes; then
9319 need_lib_prefix=no
9321 need_version=yes
9324 sysv4 | sysv4.3*)
9325 version_type=linux
9326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9327 soname_spec='${libname}${release}${shared_ext}$major'
9328 shlibpath_var=LD_LIBRARY_PATH
9329 case $host_vendor in
9330 sni)
9331 shlibpath_overrides_runpath=no
9332 need_lib_prefix=no
9333 runpath_var=LD_RUN_PATH
9335 siemens)
9336 need_lib_prefix=no
9338 motorola)
9339 need_lib_prefix=no
9340 need_version=no
9341 shlibpath_overrides_runpath=no
9342 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9344 esac
9347 sysv4*MP*)
9348 if test -d /usr/nec ;then
9349 version_type=linux
9350 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9351 soname_spec='$libname${shared_ext}.$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9357 version_type=freebsd-elf
9358 need_lib_prefix=no
9359 need_version=no
9360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 shlibpath_var=LD_LIBRARY_PATH
9363 shlibpath_overrides_runpath=yes
9364 hardcode_into_libs=yes
9365 if test "$with_gnu_ld" = yes; then
9366 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9367 else
9368 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9369 case $host_os in
9370 sco3.2v5*)
9371 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9373 esac
9375 sys_lib_dlsearch_path_spec='/usr/lib'
9378 tpf*)
9379 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9380 version_type=linux
9381 need_lib_prefix=no
9382 need_version=no
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 shlibpath_var=LD_LIBRARY_PATH
9385 shlibpath_overrides_runpath=no
9386 hardcode_into_libs=yes
9389 uts4*)
9390 version_type=linux
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9392 soname_spec='${libname}${release}${shared_ext}$major'
9393 shlibpath_var=LD_LIBRARY_PATH
9397 dynamic_linker=no
9399 esac
9400 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9401 $as_echo "$dynamic_linker" >&6; }
9402 test "$dynamic_linker" = no && can_build_shared=no
9404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9405 if test "$GCC" = yes; then
9406 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9409 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9410 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9413 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9502 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9504 hardcode_action=
9505 if test -n "$hardcode_libdir_flag_spec" ||
9506 test -n "$runpath_var" ||
9507 test "X$hardcode_automatic" = "Xyes" ; then
9509 # We can hardcode non-existent directories.
9510 if test "$hardcode_direct" != no &&
9511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9512 # have to relink, otherwise we might link with an installed library
9513 # when we should be linking with a yet-to-be-installed one
9514 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9515 test "$hardcode_minus_L" != no; then
9516 # Linking always hardcodes the temporary library directory.
9517 hardcode_action=relink
9518 else
9519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9520 hardcode_action=immediate
9522 else
9523 # We cannot hardcode anything, or else we can only hardcode existing
9524 # directories.
9525 hardcode_action=unsupported
9527 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9528 $as_echo "$hardcode_action" >&6; }
9530 if test "$hardcode_action" = relink ||
9531 test "$inherit_rpath" = yes; then
9532 # Fast installation is not supported
9533 enable_fast_install=no
9534 elif test "$shlibpath_overrides_runpath" = yes ||
9535 test "$enable_shared" = no; then
9536 # Fast installation is not necessary
9537 enable_fast_install=needless
9545 if test "x$enable_dlopen" != xyes; then
9546 enable_dlopen=unknown
9547 enable_dlopen_self=unknown
9548 enable_dlopen_self_static=unknown
9549 else
9550 lt_cv_dlopen=no
9551 lt_cv_dlopen_libs=
9553 case $host_os in
9554 beos*)
9555 lt_cv_dlopen="load_add_on"
9556 lt_cv_dlopen_libs=
9557 lt_cv_dlopen_self=yes
9560 mingw* | pw32* | cegcc*)
9561 lt_cv_dlopen="LoadLibrary"
9562 lt_cv_dlopen_libs=
9565 cygwin*)
9566 lt_cv_dlopen="dlopen"
9567 lt_cv_dlopen_libs=
9570 darwin*)
9571 # if libdl is installed we need to link against it
9572 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9573 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9574 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9575 $as_echo_n "(cached) " >&6
9576 else
9577 ac_check_lib_save_LIBS=$LIBS
9578 LIBS="-ldl $LIBS"
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9589 #ifdef __cplusplus
9590 extern "C"
9591 #endif
9592 char dlopen ();
9594 main ()
9596 return dlopen ();
9598 return 0;
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (ac_try="$ac_link"
9603 case "(($ac_try" in
9604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9605 *) ac_try_echo=$ac_try;;
9606 esac
9607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9608 $as_echo "$ac_try_echo") >&5
9609 (eval "$ac_link") 2>conftest.er1
9610 ac_status=$?
9611 grep -v '^ *+' conftest.er1 >conftest.err
9612 rm -f conftest.er1
9613 cat conftest.err >&5
9614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); } && {
9616 test -z "$ac_c_werror_flag" ||
9617 test ! -s conftest.err
9618 } && test -s conftest$ac_exeext && {
9619 test "$cross_compiling" = yes ||
9620 $as_test_x conftest$ac_exeext
9621 }; then
9622 ac_cv_lib_dl_dlopen=yes
9623 else
9624 $as_echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_cv_lib_dl_dlopen=no
9630 rm -rf conftest.dSYM
9631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9632 conftest$ac_exeext conftest.$ac_ext
9633 LIBS=$ac_check_lib_save_LIBS
9635 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9636 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9637 if test $ac_cv_lib_dl_dlopen = yes; then
9638 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9639 else
9641 lt_cv_dlopen="dyld"
9642 lt_cv_dlopen_libs=
9643 lt_cv_dlopen_self=yes
9650 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9651 $as_echo_n "checking for shl_load... " >&6; }
9652 if test "${ac_cv_func_shl_load+set}" = set; then
9653 $as_echo_n "(cached) " >&6
9654 else
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9663 #define shl_load innocuous_shl_load
9665 /* System header to define __stub macros and hopefully few prototypes,
9666 which can conflict with char shl_load (); below.
9667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9668 <limits.h> exists even on freestanding compilers. */
9670 #ifdef __STDC__
9671 # include <limits.h>
9672 #else
9673 # include <assert.h>
9674 #endif
9676 #undef shl_load
9678 /* Override any GCC internal prototype to avoid an error.
9679 Use char because int might match the return type of a GCC
9680 builtin and then its argument prototype would still apply. */
9681 #ifdef __cplusplus
9682 extern "C"
9683 #endif
9684 char shl_load ();
9685 /* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688 #if defined __stub_shl_load || defined __stub___shl_load
9689 choke me
9690 #endif
9693 main ()
9695 return shl_load ();
9697 return 0;
9699 _ACEOF
9700 rm -f conftest.$ac_objext conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9702 case "(($ac_try" in
9703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704 *) ac_try_echo=$ac_try;;
9705 esac
9706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9707 $as_echo "$ac_try_echo") >&5
9708 (eval "$ac_link") 2>conftest.er1
9709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } && {
9715 test -z "$ac_c_werror_flag" ||
9716 test ! -s conftest.err
9717 } && test -s conftest$ac_exeext && {
9718 test "$cross_compiling" = yes ||
9719 $as_test_x conftest$ac_exeext
9720 }; then
9721 ac_cv_func_shl_load=yes
9722 else
9723 $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_cv_func_shl_load=no
9729 rm -rf conftest.dSYM
9730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9731 conftest$ac_exeext conftest.$ac_ext
9733 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9734 $as_echo "$ac_cv_func_shl_load" >&6; }
9735 if test $ac_cv_func_shl_load = yes; then
9736 lt_cv_dlopen="shl_load"
9737 else
9738 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9739 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9740 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9741 $as_echo_n "(cached) " >&6
9742 else
9743 ac_check_lib_save_LIBS=$LIBS
9744 LIBS="-ldld $LIBS"
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h. */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any GCC internal prototype to avoid an error.
9753 Use char because int might match the return type of a GCC
9754 builtin and then its argument prototype would still apply. */
9755 #ifdef __cplusplus
9756 extern "C"
9757 #endif
9758 char shl_load ();
9760 main ()
9762 return shl_load ();
9764 return 0;
9766 _ACEOF
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (ac_try="$ac_link"
9769 case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772 esac
9773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9774 $as_echo "$ac_try_echo") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext && {
9785 test "$cross_compiling" = yes ||
9786 $as_test_x conftest$ac_exeext
9787 }; then
9788 ac_cv_lib_dld_shl_load=yes
9789 else
9790 $as_echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_cv_lib_dld_shl_load=no
9796 rm -rf conftest.dSYM
9797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS=$ac_check_lib_save_LIBS
9801 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9802 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9803 if test $ac_cv_lib_dld_shl_load = yes; then
9804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9805 else
9806 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9807 $as_echo_n "checking for dlopen... " >&6; }
9808 if test "${ac_cv_func_dlopen+set}" = set; then
9809 $as_echo_n "(cached) " >&6
9810 else
9811 cat >conftest.$ac_ext <<_ACEOF
9812 /* confdefs.h. */
9813 _ACEOF
9814 cat confdefs.h >>conftest.$ac_ext
9815 cat >>conftest.$ac_ext <<_ACEOF
9816 /* end confdefs.h. */
9817 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9819 #define dlopen innocuous_dlopen
9821 /* System header to define __stub macros and hopefully few prototypes,
9822 which can conflict with char dlopen (); below.
9823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9824 <limits.h> exists even on freestanding compilers. */
9826 #ifdef __STDC__
9827 # include <limits.h>
9828 #else
9829 # include <assert.h>
9830 #endif
9832 #undef dlopen
9834 /* Override any GCC internal prototype to avoid an error.
9835 Use char because int might match the return type of a GCC
9836 builtin and then its argument prototype would still apply. */
9837 #ifdef __cplusplus
9838 extern "C"
9839 #endif
9840 char dlopen ();
9841 /* The GNU C library defines this for functions which it implements
9842 to always fail with ENOSYS. Some functions are actually named
9843 something starting with __ and the normal name is an alias. */
9844 #if defined __stub_dlopen || defined __stub___dlopen
9845 choke me
9846 #endif
9849 main ()
9851 return dlopen ();
9853 return 0;
9855 _ACEOF
9856 rm -f conftest.$ac_objext conftest$ac_exeext
9857 if { (ac_try="$ac_link"
9858 case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861 esac
9862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9863 $as_echo "$ac_try_echo") >&5
9864 (eval "$ac_link") 2>conftest.er1
9865 ac_status=$?
9866 grep -v '^ *+' conftest.er1 >conftest.err
9867 rm -f conftest.er1
9868 cat conftest.err >&5
9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext && {
9874 test "$cross_compiling" = yes ||
9875 $as_test_x conftest$ac_exeext
9876 }; then
9877 ac_cv_func_dlopen=yes
9878 else
9879 $as_echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 ac_cv_func_dlopen=no
9885 rm -rf conftest.dSYM
9886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9887 conftest$ac_exeext conftest.$ac_ext
9889 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9890 $as_echo "$ac_cv_func_dlopen" >&6; }
9891 if test $ac_cv_func_dlopen = yes; then
9892 lt_cv_dlopen="dlopen"
9893 else
9894 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897 $as_echo_n "(cached) " >&6
9898 else
9899 ac_check_lib_save_LIBS=$LIBS
9900 LIBS="-ldl $LIBS"
9901 cat >conftest.$ac_ext <<_ACEOF
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char dlopen ();
9916 main ()
9918 return dlopen ();
9920 return 0;
9922 _ACEOF
9923 rm -f conftest.$ac_objext conftest$ac_exeext
9924 if { (ac_try="$ac_link"
9925 case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9928 esac
9929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9930 $as_echo "$ac_try_echo") >&5
9931 (eval "$ac_link") 2>conftest.er1
9932 ac_status=$?
9933 grep -v '^ *+' conftest.er1 >conftest.err
9934 rm -f conftest.er1
9935 cat conftest.err >&5
9936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && {
9938 test -z "$ac_c_werror_flag" ||
9939 test ! -s conftest.err
9940 } && test -s conftest$ac_exeext && {
9941 test "$cross_compiling" = yes ||
9942 $as_test_x conftest$ac_exeext
9943 }; then
9944 ac_cv_lib_dl_dlopen=yes
9945 else
9946 $as_echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9949 ac_cv_lib_dl_dlopen=no
9952 rm -rf conftest.dSYM
9953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
9955 LIBS=$ac_check_lib_save_LIBS
9957 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9959 if test $ac_cv_lib_dl_dlopen = yes; then
9960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9961 else
9962 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9963 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9964 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9965 $as_echo_n "(cached) " >&6
9966 else
9967 ac_check_lib_save_LIBS=$LIBS
9968 LIBS="-lsvld $LIBS"
9969 cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h. */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char dlopen ();
9984 main ()
9986 return dlopen ();
9988 return 0;
9990 _ACEOF
9991 rm -f conftest.$ac_objext conftest$ac_exeext
9992 if { (ac_try="$ac_link"
9993 case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996 esac
9997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9998 $as_echo "$ac_try_echo") >&5
9999 (eval "$ac_link") 2>conftest.er1
10000 ac_status=$?
10001 grep -v '^ *+' conftest.er1 >conftest.err
10002 rm -f conftest.er1
10003 cat conftest.err >&5
10004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); } && {
10006 test -z "$ac_c_werror_flag" ||
10007 test ! -s conftest.err
10008 } && test -s conftest$ac_exeext && {
10009 test "$cross_compiling" = yes ||
10010 $as_test_x conftest$ac_exeext
10011 }; then
10012 ac_cv_lib_svld_dlopen=yes
10013 else
10014 $as_echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 ac_cv_lib_svld_dlopen=no
10020 rm -rf conftest.dSYM
10021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10022 conftest$ac_exeext conftest.$ac_ext
10023 LIBS=$ac_check_lib_save_LIBS
10025 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10026 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10027 if test $ac_cv_lib_svld_dlopen = yes; then
10028 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10029 else
10030 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10031 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10032 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10033 $as_echo_n "(cached) " >&6
10034 else
10035 ac_check_lib_save_LIBS=$LIBS
10036 LIBS="-ldld $LIBS"
10037 cat >conftest.$ac_ext <<_ACEOF
10038 /* confdefs.h. */
10039 _ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10044 /* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10047 #ifdef __cplusplus
10048 extern "C"
10049 #endif
10050 char dld_link ();
10052 main ()
10054 return dld_link ();
10056 return 0;
10058 _ACEOF
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (ac_try="$ac_link"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10066 $as_echo "$ac_try_echo") >&5
10067 (eval "$ac_link") 2>conftest.er1
10068 ac_status=$?
10069 grep -v '^ *+' conftest.er1 >conftest.err
10070 rm -f conftest.er1
10071 cat conftest.err >&5
10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest$ac_exeext && {
10077 test "$cross_compiling" = yes ||
10078 $as_test_x conftest$ac_exeext
10079 }; then
10080 ac_cv_lib_dld_dld_link=yes
10081 else
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_lib_dld_dld_link=no
10088 rm -rf conftest.dSYM
10089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10094 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10095 if test $ac_cv_lib_dld_dld_link = yes; then
10096 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10115 esac
10117 if test "x$lt_cv_dlopen" != xno; then
10118 enable_dlopen=yes
10119 else
10120 enable_dlopen=no
10123 case $lt_cv_dlopen in
10124 dlopen)
10125 save_CPPFLAGS="$CPPFLAGS"
10126 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10128 save_LDFLAGS="$LDFLAGS"
10129 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10131 save_LIBS="$LIBS"
10132 LIBS="$lt_cv_dlopen_libs $LIBS"
10134 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10135 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10136 if test "${lt_cv_dlopen_self+set}" = set; then
10137 $as_echo_n "(cached) " >&6
10138 else
10139 if test "$cross_compiling" = yes; then :
10140 lt_cv_dlopen_self=cross
10141 else
10142 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10143 lt_status=$lt_dlunknown
10144 cat > conftest.$ac_ext <<_LT_EOF
10145 #line 10145 "configure"
10146 #include "confdefs.h"
10148 #if HAVE_DLFCN_H
10149 #include <dlfcn.h>
10150 #endif
10152 #include <stdio.h>
10154 #ifdef RTLD_GLOBAL
10155 # define LT_DLGLOBAL RTLD_GLOBAL
10156 #else
10157 # ifdef DL_GLOBAL
10158 # define LT_DLGLOBAL DL_GLOBAL
10159 # else
10160 # define LT_DLGLOBAL 0
10161 # endif
10162 #endif
10164 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10165 find out it does not work in some platform. */
10166 #ifndef LT_DLLAZY_OR_NOW
10167 # ifdef RTLD_LAZY
10168 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10169 # else
10170 # ifdef DL_LAZY
10171 # define LT_DLLAZY_OR_NOW DL_LAZY
10172 # else
10173 # ifdef RTLD_NOW
10174 # define LT_DLLAZY_OR_NOW RTLD_NOW
10175 # else
10176 # ifdef DL_NOW
10177 # define LT_DLLAZY_OR_NOW DL_NOW
10178 # else
10179 # define LT_DLLAZY_OR_NOW 0
10180 # endif
10181 # endif
10182 # endif
10183 # endif
10184 #endif
10186 void fnord() { int i=42;}
10187 int main ()
10189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10190 int status = $lt_dlunknown;
10192 if (self)
10194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10196 /* dlclose (self); */
10198 else
10199 puts (dlerror ());
10201 return status;
10203 _LT_EOF
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>&5
10206 ac_status=$?
10207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10209 (./conftest; exit; ) >&5 2>/dev/null
10210 lt_status=$?
10211 case x$lt_status in
10212 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10213 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10214 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10215 esac
10216 else :
10217 # compilation failed
10218 lt_cv_dlopen_self=no
10221 rm -fr conftest*
10225 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10226 $as_echo "$lt_cv_dlopen_self" >&6; }
10228 if test "x$lt_cv_dlopen_self" = xyes; then
10229 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10230 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10231 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10232 if test "${lt_cv_dlopen_self_static+set}" = set; then
10233 $as_echo_n "(cached) " >&6
10234 else
10235 if test "$cross_compiling" = yes; then :
10236 lt_cv_dlopen_self_static=cross
10237 else
10238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10239 lt_status=$lt_dlunknown
10240 cat > conftest.$ac_ext <<_LT_EOF
10241 #line 10241 "configure"
10242 #include "confdefs.h"
10244 #if HAVE_DLFCN_H
10245 #include <dlfcn.h>
10246 #endif
10248 #include <stdio.h>
10250 #ifdef RTLD_GLOBAL
10251 # define LT_DLGLOBAL RTLD_GLOBAL
10252 #else
10253 # ifdef DL_GLOBAL
10254 # define LT_DLGLOBAL DL_GLOBAL
10255 # else
10256 # define LT_DLGLOBAL 0
10257 # endif
10258 #endif
10260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10261 find out it does not work in some platform. */
10262 #ifndef LT_DLLAZY_OR_NOW
10263 # ifdef RTLD_LAZY
10264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10265 # else
10266 # ifdef DL_LAZY
10267 # define LT_DLLAZY_OR_NOW DL_LAZY
10268 # else
10269 # ifdef RTLD_NOW
10270 # define LT_DLLAZY_OR_NOW RTLD_NOW
10271 # else
10272 # ifdef DL_NOW
10273 # define LT_DLLAZY_OR_NOW DL_NOW
10274 # else
10275 # define LT_DLLAZY_OR_NOW 0
10276 # endif
10277 # endif
10278 # endif
10279 # endif
10280 #endif
10282 void fnord() { int i=42;}
10283 int main ()
10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286 int status = $lt_dlunknown;
10288 if (self)
10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292 /* dlclose (self); */
10294 else
10295 puts (dlerror ());
10297 return status;
10299 _LT_EOF
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301 (eval $ac_link) 2>&5
10302 ac_status=$?
10303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10305 (./conftest; exit; ) >&5 2>/dev/null
10306 lt_status=$?
10307 case x$lt_status in
10308 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10309 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10310 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10311 esac
10312 else :
10313 # compilation failed
10314 lt_cv_dlopen_self_static=no
10317 rm -fr conftest*
10321 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10322 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10325 CPPFLAGS="$save_CPPFLAGS"
10326 LDFLAGS="$save_LDFLAGS"
10327 LIBS="$save_LIBS"
10329 esac
10331 case $lt_cv_dlopen_self in
10332 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10333 *) enable_dlopen_self=unknown ;;
10334 esac
10336 case $lt_cv_dlopen_self_static in
10337 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10338 *) enable_dlopen_self_static=unknown ;;
10339 esac
10358 striplib=
10359 old_striplib=
10360 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10361 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10362 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10365 { $as_echo "$as_me:$LINENO: result: yes" >&5
10366 $as_echo "yes" >&6; }
10367 else
10368 # FIXME - insert some real tests, host_os isn't really good enough
10369 case $host_os in
10370 darwin*)
10371 if test -n "$STRIP" ; then
10372 striplib="$STRIP -x"
10373 old_striplib="$STRIP -S"
10374 { $as_echo "$as_me:$LINENO: result: yes" >&5
10375 $as_echo "yes" >&6; }
10376 else
10377 { $as_echo "$as_me:$LINENO: result: no" >&5
10378 $as_echo "no" >&6; }
10382 { $as_echo "$as_me:$LINENO: result: no" >&5
10383 $as_echo "no" >&6; }
10385 esac
10399 # Report which library types will actually be built
10400 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10401 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10402 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10403 $as_echo "$can_build_shared" >&6; }
10405 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10406 $as_echo_n "checking whether to build shared libraries... " >&6; }
10407 test "$can_build_shared" = "no" && enable_shared=no
10409 # On AIX, shared libraries and static libraries use the same namespace, and
10410 # are all built from PIC.
10411 case $host_os in
10412 aix3*)
10413 test "$enable_shared" = yes && enable_static=no
10414 if test -n "$RANLIB"; then
10415 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10416 postinstall_cmds='$RANLIB $lib'
10420 aix[4-9]*)
10421 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10422 test "$enable_shared" = yes && enable_static=no
10425 esac
10426 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10427 $as_echo "$enable_shared" >&6; }
10429 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10430 $as_echo_n "checking whether to build static libraries... " >&6; }
10431 # Make sure either enable_shared or enable_static is yes.
10432 test "$enable_shared" = yes || enable_static=yes
10433 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10434 $as_echo "$enable_static" >&6; }
10440 ac_ext=c
10441 ac_cpp='$CPP $CPPFLAGS'
10442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446 CC="$lt_save_CC"
10460 ac_config_commands="$ac_config_commands libtool"
10465 # Only expand once:
10468 # Find a good install program. We prefer a C program (faster),
10469 # so one script is as good as another. But avoid the broken or
10470 # incompatible versions:
10471 # SysV /etc/install, /usr/sbin/install
10472 # SunOS /usr/etc/install
10473 # IRIX /sbin/install
10474 # AIX /bin/install
10475 # AmigaOS /C/install, which installs bootblocks on floppy discs
10476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10479 # OS/2's system install, which has a completely different semantic
10480 # ./install, which can be erroneously created by make from ./install.sh.
10481 # Reject install programs that cannot install multiple files.
10482 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10483 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10484 if test -z "$INSTALL"; then
10485 if test "${ac_cv_path_install+set}" = set; then
10486 $as_echo_n "(cached) " >&6
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 # Account for people who put trailing slashes in PATH elements.
10494 case $as_dir/ in
10495 ./ | .// | /cC/* | \
10496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10497 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10498 /usr/ucb/* ) ;;
10500 # OSF1 and SCO ODT 3.0 have their own names for install.
10501 # Don't use installbsd from OSF since it installs stuff as root
10502 # by default.
10503 for ac_prog in ginstall scoinst install; do
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10506 if test $ac_prog = install &&
10507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10508 # AIX install. It has an incompatible calling convention.
10510 elif test $ac_prog = install &&
10511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10512 # program-specific install script used by HP pwplus--don't use.
10514 else
10515 rm -rf conftest.one conftest.two conftest.dir
10516 echo one > conftest.one
10517 echo two > conftest.two
10518 mkdir conftest.dir
10519 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10520 test -s conftest.one && test -s conftest.two &&
10521 test -s conftest.dir/conftest.one &&
10522 test -s conftest.dir/conftest.two
10523 then
10524 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10525 break 3
10529 done
10530 done
10532 esac
10534 done
10535 IFS=$as_save_IFS
10537 rm -rf conftest.one conftest.two conftest.dir
10540 if test "${ac_cv_path_install+set}" = set; then
10541 INSTALL=$ac_cv_path_install
10542 else
10543 # As a last resort, use the slow shell script. Don't cache a
10544 # value for INSTALL within a source directory, because that will
10545 # break other packages using the cache if that directory is
10546 # removed, or if the value is a relative name.
10547 INSTALL=$ac_install_sh
10550 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10551 $as_echo "$INSTALL" >&6; }
10553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10554 # It thinks the first close brace ends the variable substitution.
10555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10561 for ac_prog in gawk mawk nawk awk
10563 # Extract the first word of "$ac_prog", so it can be a program name with args.
10564 set dummy $ac_prog; ac_word=$2
10565 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10566 $as_echo_n "checking for $ac_word... " >&6; }
10567 if test "${ac_cv_prog_AWK+set}" = set; then
10568 $as_echo_n "(cached) " >&6
10569 else
10570 if test -n "$AWK"; then
10571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10572 else
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10580 ac_cv_prog_AWK="$ac_prog"
10581 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10584 done
10585 done
10586 IFS=$as_save_IFS
10590 AWK=$ac_cv_prog_AWK
10591 if test -n "$AWK"; then
10592 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10593 $as_echo "$AWK" >&6; }
10594 else
10595 { $as_echo "$as_me:$LINENO: result: no" >&5
10596 $as_echo "no" >&6; }
10600 test -n "$AWK" && break
10601 done
10604 #########
10605 # Enable large file support (if special flags are necessary)
10607 # Check whether --enable-largefile was given.
10608 if test "${enable_largefile+set}" = set; then
10609 enableval=$enable_largefile;
10612 if test "$enable_largefile" != no; then
10614 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10616 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10617 $as_echo_n "(cached) " >&6
10618 else
10619 ac_cv_sys_largefile_CC=no
10620 if test "$GCC" != yes; then
10621 ac_save_CC=$CC
10622 while :; do
10623 # IRIX 6.2 and later do not support large files by default,
10624 # so use the C compiler's -n32 option if that helps.
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 #include <sys/types.h>
10632 /* Check that off_t can represent 2**63 - 1 correctly.
10633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10634 since some C++ compilers masquerading as C compilers
10635 incorrectly reject 9223372036854775807. */
10636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10638 && LARGE_OFF_T % 2147483647 == 1)
10639 ? 1 : -1];
10641 main ()
10645 return 0;
10647 _ACEOF
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652 *) ac_try_echo=$ac_try;;
10653 esac
10654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10655 $as_echo "$ac_try_echo") >&5
10656 (eval "$ac_compile") 2>conftest.er1
10657 ac_status=$?
10658 grep -v '^ *+' conftest.er1 >conftest.err
10659 rm -f conftest.er1
10660 cat conftest.err >&5
10661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } && {
10663 test -z "$ac_c_werror_flag" ||
10664 test ! -s conftest.err
10665 } && test -s conftest.$ac_objext; then
10666 break
10667 else
10668 $as_echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10674 rm -f core conftest.err conftest.$ac_objext
10675 CC="$CC -n32"
10676 rm -f conftest.$ac_objext
10677 if { (ac_try="$ac_compile"
10678 case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681 esac
10682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10683 $as_echo "$ac_try_echo") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
10694 ac_cv_sys_largefile_CC=' -n32'; break
10695 else
10696 $as_echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10702 rm -f core conftest.err conftest.$ac_objext
10703 break
10704 done
10705 CC=$ac_save_CC
10706 rm -f conftest.$ac_ext
10709 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10710 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10711 if test "$ac_cv_sys_largefile_CC" != no; then
10712 CC=$CC$ac_cv_sys_largefile_CC
10715 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10716 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10717 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10718 $as_echo_n "(cached) " >&6
10719 else
10720 while :; do
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h. */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10727 #include <sys/types.h>
10728 /* Check that off_t can represent 2**63 - 1 correctly.
10729 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10730 since some C++ compilers masquerading as C compilers
10731 incorrectly reject 9223372036854775807. */
10732 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10733 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10734 && LARGE_OFF_T % 2147483647 == 1)
10735 ? 1 : -1];
10737 main ()
10741 return 0;
10743 _ACEOF
10744 rm -f conftest.$ac_objext
10745 if { (ac_try="$ac_compile"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10749 esac
10750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10751 $as_echo "$ac_try_echo") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10753 ac_status=$?
10754 grep -v '^ *+' conftest.er1 >conftest.err
10755 rm -f conftest.er1
10756 cat conftest.err >&5
10757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } && {
10759 test -z "$ac_c_werror_flag" ||
10760 test ! -s conftest.err
10761 } && test -s conftest.$ac_objext; then
10762 ac_cv_sys_file_offset_bits=no; break
10763 else
10764 $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h. */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h. */
10777 #define _FILE_OFFSET_BITS 64
10778 #include <sys/types.h>
10779 /* Check that off_t can represent 2**63 - 1 correctly.
10780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10781 since some C++ compilers masquerading as C compilers
10782 incorrectly reject 9223372036854775807. */
10783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10785 && LARGE_OFF_T % 2147483647 == 1)
10786 ? 1 : -1];
10788 main ()
10792 return 0;
10794 _ACEOF
10795 rm -f conftest.$ac_objext
10796 if { (ac_try="$ac_compile"
10797 case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800 esac
10801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10802 $as_echo "$ac_try_echo") >&5
10803 (eval "$ac_compile") 2>conftest.er1
10804 ac_status=$?
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
10808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
10812 } && test -s conftest.$ac_objext; then
10813 ac_cv_sys_file_offset_bits=64; break
10814 else
10815 $as_echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10822 ac_cv_sys_file_offset_bits=unknown
10823 break
10824 done
10826 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10827 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10828 case $ac_cv_sys_file_offset_bits in #(
10829 no | unknown) ;;
10831 cat >>confdefs.h <<_ACEOF
10832 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10833 _ACEOF
10835 esac
10836 rm -rf conftest*
10837 if test $ac_cv_sys_file_offset_bits = unknown; then
10838 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10839 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10840 if test "${ac_cv_sys_large_files+set}" = set; then
10841 $as_echo_n "(cached) " >&6
10842 else
10843 while :; do
10844 cat >conftest.$ac_ext <<_ACEOF
10845 /* confdefs.h. */
10846 _ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <sys/types.h>
10851 /* Check that off_t can represent 2**63 - 1 correctly.
10852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10853 since some C++ compilers masquerading as C compilers
10854 incorrectly reject 9223372036854775807. */
10855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10857 && LARGE_OFF_T % 2147483647 == 1)
10858 ? 1 : -1];
10860 main ()
10864 return 0;
10866 _ACEOF
10867 rm -f conftest.$ac_objext
10868 if { (ac_try="$ac_compile"
10869 case "(($ac_try" in
10870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871 *) ac_try_echo=$ac_try;;
10872 esac
10873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10874 $as_echo "$ac_try_echo") >&5
10875 (eval "$ac_compile") 2>conftest.er1
10876 ac_status=$?
10877 grep -v '^ *+' conftest.er1 >conftest.err
10878 rm -f conftest.er1
10879 cat conftest.err >&5
10880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10881 (exit $ac_status); } && {
10882 test -z "$ac_c_werror_flag" ||
10883 test ! -s conftest.err
10884 } && test -s conftest.$ac_objext; then
10885 ac_cv_sys_large_files=no; break
10886 else
10887 $as_echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 cat >conftest.$ac_ext <<_ACEOF
10895 /* confdefs.h. */
10896 _ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10900 #define _LARGE_FILES 1
10901 #include <sys/types.h>
10902 /* Check that off_t can represent 2**63 - 1 correctly.
10903 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10904 since some C++ compilers masquerading as C compilers
10905 incorrectly reject 9223372036854775807. */
10906 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10907 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10908 && LARGE_OFF_T % 2147483647 == 1)
10909 ? 1 : -1];
10911 main ()
10915 return 0;
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923 esac
10924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10925 $as_echo "$ac_try_echo") >&5
10926 (eval "$ac_compile") 2>conftest.er1
10927 ac_status=$?
10928 grep -v '^ *+' conftest.er1 >conftest.err
10929 rm -f conftest.er1
10930 cat conftest.err >&5
10931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && {
10933 test -z "$ac_c_werror_flag" ||
10934 test ! -s conftest.err
10935 } && test -s conftest.$ac_objext; then
10936 ac_cv_sys_large_files=1; break
10937 else
10938 $as_echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10945 ac_cv_sys_large_files=unknown
10946 break
10947 done
10949 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10950 $as_echo "$ac_cv_sys_large_files" >&6; }
10951 case $ac_cv_sys_large_files in #(
10952 no | unknown) ;;
10954 cat >>confdefs.h <<_ACEOF
10955 #define _LARGE_FILES $ac_cv_sys_large_files
10956 _ACEOF
10958 esac
10959 rm -rf conftest*
10964 #########
10965 # Check for needed/wanted data types
10966 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10967 $as_echo_n "checking for int8_t... " >&6; }
10968 if test "${ac_cv_type_int8_t+set}" = set; then
10969 $as_echo_n "(cached) " >&6
10970 else
10971 ac_cv_type_int8_t=no
10972 cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h. */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h. */
10978 $ac_includes_default
10980 main ()
10982 if (sizeof (int8_t))
10983 return 0;
10985 return 0;
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (ac_try="$ac_compile"
10990 case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993 esac
10994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10995 $as_echo "$ac_try_echo") >&5
10996 (eval "$ac_compile") 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest.$ac_objext; then
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 $ac_includes_default
11014 main ()
11016 if (sizeof ((int8_t)))
11017 return 0;
11019 return 0;
11021 _ACEOF
11022 rm -f conftest.$ac_objext
11023 if { (ac_try="$ac_compile"
11024 case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027 esac
11028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11029 $as_echo "$ac_try_echo") >&5
11030 (eval "$ac_compile") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest.$ac_objext; then
11041 else
11042 $as_echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11045 ac_cv_type_int8_t=yes
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049 else
11050 $as_echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11059 $as_echo "$ac_cv_type_int8_t" >&6; }
11060 if test $ac_cv_type_int8_t = yes; then
11062 cat >>confdefs.h <<_ACEOF
11063 #define HAVE_INT8_T 1
11064 _ACEOF
11068 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11069 $as_echo_n "checking for int16_t... " >&6; }
11070 if test "${ac_cv_type_int16_t+set}" = set; then
11071 $as_echo_n "(cached) " >&6
11072 else
11073 ac_cv_type_int16_t=no
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 $ac_includes_default
11082 main ()
11084 if (sizeof (int16_t))
11085 return 0;
11087 return 0;
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095 esac
11096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11097 $as_echo "$ac_try_echo") >&5
11098 (eval "$ac_compile") 2>conftest.er1
11099 ac_status=$?
11100 grep -v '^ *+' conftest.er1 >conftest.err
11101 rm -f conftest.er1
11102 cat conftest.err >&5
11103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest.$ac_objext; then
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h. */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 $ac_includes_default
11116 main ()
11118 if (sizeof ((int16_t)))
11119 return 0;
11121 return 0;
11123 _ACEOF
11124 rm -f conftest.$ac_objext
11125 if { (ac_try="$ac_compile"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11131 $as_echo "$ac_try_echo") >&5
11132 (eval "$ac_compile") 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && {
11139 test -z "$ac_c_werror_flag" ||
11140 test ! -s conftest.err
11141 } && test -s conftest.$ac_objext; then
11143 else
11144 $as_echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_cv_type_int16_t=yes
11150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151 else
11152 $as_echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11161 $as_echo "$ac_cv_type_int16_t" >&6; }
11162 if test $ac_cv_type_int16_t = yes; then
11164 cat >>confdefs.h <<_ACEOF
11165 #define HAVE_INT16_T 1
11166 _ACEOF
11170 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11171 $as_echo_n "checking for int32_t... " >&6; }
11172 if test "${ac_cv_type_int32_t+set}" = set; then
11173 $as_echo_n "(cached) " >&6
11174 else
11175 ac_cv_type_int32_t=no
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 $ac_includes_default
11184 main ()
11186 if (sizeof (int32_t))
11187 return 0;
11189 return 0;
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197 esac
11198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11199 $as_echo "$ac_try_echo") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 $ac_includes_default
11218 main ()
11220 if (sizeof ((int32_t)))
11221 return 0;
11223 return 0;
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231 esac
11232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11233 $as_echo "$ac_try_echo") >&5
11234 (eval "$ac_compile") 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } && {
11241 test -z "$ac_c_werror_flag" ||
11242 test ! -s conftest.err
11243 } && test -s conftest.$ac_objext; then
11245 else
11246 $as_echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11249 ac_cv_type_int32_t=yes
11252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 else
11254 $as_echo "$as_me: failed program was:" >&5
11255 sed 's/^/| /' conftest.$ac_ext >&5
11260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11262 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11263 $as_echo "$ac_cv_type_int32_t" >&6; }
11264 if test $ac_cv_type_int32_t = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_INT32_T 1
11268 _ACEOF
11272 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11273 $as_echo_n "checking for int64_t... " >&6; }
11274 if test "${ac_cv_type_int64_t+set}" = set; then
11275 $as_echo_n "(cached) " >&6
11276 else
11277 ac_cv_type_int64_t=no
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11286 main ()
11288 if (sizeof (int64_t))
11289 return 0;
11291 return 0;
11293 _ACEOF
11294 rm -f conftest.$ac_objext
11295 if { (ac_try="$ac_compile"
11296 case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299 esac
11300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11301 $as_echo "$ac_try_echo") >&5
11302 (eval "$ac_compile") 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } && {
11309 test -z "$ac_c_werror_flag" ||
11310 test ! -s conftest.err
11311 } && test -s conftest.$ac_objext; then
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 $ac_includes_default
11320 main ()
11322 if (sizeof ((int64_t)))
11323 return 0;
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11335 $as_echo "$ac_try_echo") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest.$ac_objext; then
11347 else
11348 $as_echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_cv_type_int64_t=yes
11354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355 else
11356 $as_echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11365 $as_echo "$ac_cv_type_int64_t" >&6; }
11366 if test $ac_cv_type_int64_t = yes; then
11368 cat >>confdefs.h <<_ACEOF
11369 #define HAVE_INT64_T 1
11370 _ACEOF
11374 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11375 $as_echo_n "checking for intptr_t... " >&6; }
11376 if test "${ac_cv_type_intptr_t+set}" = set; then
11377 $as_echo_n "(cached) " >&6
11378 else
11379 ac_cv_type_intptr_t=no
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 $ac_includes_default
11388 main ()
11390 if (sizeof (intptr_t))
11391 return 0;
11393 return 0;
11395 _ACEOF
11396 rm -f conftest.$ac_objext
11397 if { (ac_try="$ac_compile"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403 $as_echo "$ac_try_echo") >&5
11404 (eval "$ac_compile") 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest.$ac_objext; then
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 $ac_includes_default
11422 main ()
11424 if (sizeof ((intptr_t)))
11425 return 0;
11427 return 0;
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (ac_try="$ac_compile"
11432 case "(($ac_try" in
11433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11435 esac
11436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11437 $as_echo "$ac_try_echo") >&5
11438 (eval "$ac_compile") 2>conftest.er1
11439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest.$ac_objext; then
11449 else
11450 $as_echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_cv_type_intptr_t=yes
11456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457 else
11458 $as_echo "$as_me: failed program was:" >&5
11459 sed 's/^/| /' conftest.$ac_ext >&5
11464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11467 $as_echo "$ac_cv_type_intptr_t" >&6; }
11468 if test $ac_cv_type_intptr_t = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471 #define HAVE_INTPTR_T 1
11472 _ACEOF
11476 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11477 $as_echo_n "checking for uint8_t... " >&6; }
11478 if test "${ac_cv_type_uint8_t+set}" = set; then
11479 $as_echo_n "(cached) " >&6
11480 else
11481 ac_cv_type_uint8_t=no
11482 cat >conftest.$ac_ext <<_ACEOF
11483 /* confdefs.h. */
11484 _ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11490 main ()
11492 if (sizeof (uint8_t))
11493 return 0;
11495 return 0;
11497 _ACEOF
11498 rm -f conftest.$ac_objext
11499 if { (ac_try="$ac_compile"
11500 case "(($ac_try" in
11501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11502 *) ac_try_echo=$ac_try;;
11503 esac
11504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11505 $as_echo "$ac_try_echo") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11507 ac_status=$?
11508 grep -v '^ *+' conftest.er1 >conftest.err
11509 rm -f conftest.er1
11510 cat conftest.err >&5
11511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h. */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h. */
11522 $ac_includes_default
11524 main ()
11526 if (sizeof ((uint8_t)))
11527 return 0;
11529 return 0;
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537 esac
11538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11539 $as_echo "$ac_try_echo") >&5
11540 (eval "$ac_compile") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest.$ac_objext; then
11551 else
11552 $as_echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 ac_cv_type_uint8_t=yes
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 else
11560 $as_echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11569 $as_echo "$ac_cv_type_uint8_t" >&6; }
11570 if test $ac_cv_type_uint8_t = yes; then
11572 cat >>confdefs.h <<_ACEOF
11573 #define HAVE_UINT8_T 1
11574 _ACEOF
11578 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11579 $as_echo_n "checking for uint16_t... " >&6; }
11580 if test "${ac_cv_type_uint16_t+set}" = set; then
11581 $as_echo_n "(cached) " >&6
11582 else
11583 ac_cv_type_uint16_t=no
11584 cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h. */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h. */
11590 $ac_includes_default
11592 main ()
11594 if (sizeof (uint16_t))
11595 return 0;
11597 return 0;
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (ac_try="$ac_compile"
11602 case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605 esac
11606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11607 $as_echo "$ac_try_echo") >&5
11608 (eval "$ac_compile") 2>conftest.er1
11609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && {
11615 test -z "$ac_c_werror_flag" ||
11616 test ! -s conftest.err
11617 } && test -s conftest.$ac_objext; then
11618 cat >conftest.$ac_ext <<_ACEOF
11619 /* confdefs.h. */
11620 _ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 $ac_includes_default
11626 main ()
11628 if (sizeof ((uint16_t)))
11629 return 0;
11631 return 0;
11633 _ACEOF
11634 rm -f conftest.$ac_objext
11635 if { (ac_try="$ac_compile"
11636 case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639 esac
11640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11641 $as_echo "$ac_try_echo") >&5
11642 (eval "$ac_compile") 2>conftest.er1
11643 ac_status=$?
11644 grep -v '^ *+' conftest.er1 >conftest.err
11645 rm -f conftest.er1
11646 cat conftest.err >&5
11647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); } && {
11649 test -z "$ac_c_werror_flag" ||
11650 test ! -s conftest.err
11651 } && test -s conftest.$ac_objext; then
11653 else
11654 $as_echo "$as_me: failed program was:" >&5
11655 sed 's/^/| /' conftest.$ac_ext >&5
11657 ac_cv_type_uint16_t=yes
11660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661 else
11662 $as_echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11671 $as_echo "$ac_cv_type_uint16_t" >&6; }
11672 if test $ac_cv_type_uint16_t = yes; then
11674 cat >>confdefs.h <<_ACEOF
11675 #define HAVE_UINT16_T 1
11676 _ACEOF
11680 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11681 $as_echo_n "checking for uint32_t... " >&6; }
11682 if test "${ac_cv_type_uint32_t+set}" = set; then
11683 $as_echo_n "(cached) " >&6
11684 else
11685 ac_cv_type_uint32_t=no
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h. */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11692 $ac_includes_default
11694 main ()
11696 if (sizeof (uint32_t))
11697 return 0;
11699 return 0;
11701 _ACEOF
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11709 $as_echo "$ac_try_echo") >&5
11710 (eval "$ac_compile") 2>conftest.er1
11711 ac_status=$?
11712 grep -v '^ *+' conftest.er1 >conftest.err
11713 rm -f conftest.er1
11714 cat conftest.err >&5
11715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); } && {
11717 test -z "$ac_c_werror_flag" ||
11718 test ! -s conftest.err
11719 } && test -s conftest.$ac_objext; then
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 $ac_includes_default
11728 main ()
11730 if (sizeof ((uint32_t)))
11731 return 0;
11733 return 0;
11735 _ACEOF
11736 rm -f conftest.$ac_objext
11737 if { (ac_try="$ac_compile"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11741 esac
11742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11743 $as_echo "$ac_try_echo") >&5
11744 (eval "$ac_compile") 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } && {
11751 test -z "$ac_c_werror_flag" ||
11752 test ! -s conftest.err
11753 } && test -s conftest.$ac_objext; then
11755 else
11756 $as_echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11759 ac_cv_type_uint32_t=yes
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763 else
11764 $as_echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11773 $as_echo "$ac_cv_type_uint32_t" >&6; }
11774 if test $ac_cv_type_uint32_t = yes; then
11776 cat >>confdefs.h <<_ACEOF
11777 #define HAVE_UINT32_T 1
11778 _ACEOF
11782 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11783 $as_echo_n "checking for uint64_t... " >&6; }
11784 if test "${ac_cv_type_uint64_t+set}" = set; then
11785 $as_echo_n "(cached) " >&6
11786 else
11787 ac_cv_type_uint64_t=no
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794 $ac_includes_default
11796 main ()
11798 if (sizeof (uint64_t))
11799 return 0;
11801 return 0;
11803 _ACEOF
11804 rm -f conftest.$ac_objext
11805 if { (ac_try="$ac_compile"
11806 case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809 esac
11810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11811 $as_echo "$ac_try_echo") >&5
11812 (eval "$ac_compile") 2>conftest.er1
11813 ac_status=$?
11814 grep -v '^ *+' conftest.er1 >conftest.err
11815 rm -f conftest.er1
11816 cat conftest.err >&5
11817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } && {
11819 test -z "$ac_c_werror_flag" ||
11820 test ! -s conftest.err
11821 } && test -s conftest.$ac_objext; then
11822 cat >conftest.$ac_ext <<_ACEOF
11823 /* confdefs.h. */
11824 _ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11830 main ()
11832 if (sizeof ((uint64_t)))
11833 return 0;
11835 return 0;
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843 esac
11844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11845 $as_echo "$ac_try_echo") >&5
11846 (eval "$ac_compile") 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } && {
11853 test -z "$ac_c_werror_flag" ||
11854 test ! -s conftest.err
11855 } && test -s conftest.$ac_objext; then
11857 else
11858 $as_echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11861 ac_cv_type_uint64_t=yes
11864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865 else
11866 $as_echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11875 $as_echo "$ac_cv_type_uint64_t" >&6; }
11876 if test $ac_cv_type_uint64_t = yes; then
11878 cat >>confdefs.h <<_ACEOF
11879 #define HAVE_UINT64_T 1
11880 _ACEOF
11884 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11885 $as_echo_n "checking for uintptr_t... " >&6; }
11886 if test "${ac_cv_type_uintptr_t+set}" = set; then
11887 $as_echo_n "(cached) " >&6
11888 else
11889 ac_cv_type_uintptr_t=no
11890 cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h. */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h. */
11896 $ac_includes_default
11898 main ()
11900 if (sizeof (uintptr_t))
11901 return 0;
11903 return 0;
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11913 $as_echo "$ac_try_echo") >&5
11914 (eval "$ac_compile") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest.$ac_objext; then
11924 cat >conftest.$ac_ext <<_ACEOF
11925 /* confdefs.h. */
11926 _ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11932 main ()
11934 if (sizeof ((uintptr_t)))
11935 return 0;
11937 return 0;
11939 _ACEOF
11940 rm -f conftest.$ac_objext
11941 if { (ac_try="$ac_compile"
11942 case "(($ac_try" in
11943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11944 *) ac_try_echo=$ac_try;;
11945 esac
11946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11947 $as_echo "$ac_try_echo") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11949 ac_status=$?
11950 grep -v '^ *+' conftest.er1 >conftest.err
11951 rm -f conftest.er1
11952 cat conftest.err >&5
11953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11959 else
11960 $as_echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_type_uintptr_t=yes
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 else
11968 $as_echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11977 $as_echo "$ac_cv_type_uintptr_t" >&6; }
11978 if test $ac_cv_type_uintptr_t = yes; then
11980 cat >>confdefs.h <<_ACEOF
11981 #define HAVE_UINTPTR_T 1
11982 _ACEOF
11988 #########
11989 # Check for needed/wanted headers
11995 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
11997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12000 $as_echo_n "checking for $ac_header... " >&6; }
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002 $as_echo_n "(cached) " >&6
12004 ac_res=`eval 'as_val=${'$as_ac_Header'}
12005 $as_echo "$as_val"'`
12006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12007 $as_echo "$ac_res" >&6; }
12008 else
12009 # Is the header compilable?
12010 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12011 $as_echo_n "checking $ac_header usability... " >&6; }
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 $ac_includes_default
12019 #include <$ac_header>
12020 _ACEOF
12021 rm -f conftest.$ac_objext
12022 if { (ac_try="$ac_compile"
12023 case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026 esac
12027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12028 $as_echo "$ac_try_echo") >&5
12029 (eval "$ac_compile") 2>conftest.er1
12030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); } && {
12036 test -z "$ac_c_werror_flag" ||
12037 test ! -s conftest.err
12038 } && test -s conftest.$ac_objext; then
12039 ac_header_compiler=yes
12040 else
12041 $as_echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12044 ac_header_compiler=no
12047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12048 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12049 $as_echo "$ac_header_compiler" >&6; }
12051 # Is the header present?
12052 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12053 $as_echo_n "checking $ac_header presence... " >&6; }
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <$ac_header>
12061 _ACEOF
12062 if { (ac_try="$ac_cpp conftest.$ac_ext"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12066 esac
12067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12068 $as_echo "$ac_try_echo") >&5
12069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12070 ac_status=$?
12071 grep -v '^ *+' conftest.er1 >conftest.err
12072 rm -f conftest.er1
12073 cat conftest.err >&5
12074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } >/dev/null && {
12076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12077 test ! -s conftest.err
12078 }; then
12079 ac_header_preproc=yes
12080 else
12081 $as_echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 ac_header_preproc=no
12087 rm -f conftest.err conftest.$ac_ext
12088 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12089 $as_echo "$ac_header_preproc" >&6; }
12091 # So? What about this header?
12092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12093 yes:no: )
12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12095 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12098 ac_header_preproc=yes
12100 no:yes:* )
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12102 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12104 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12106 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12112 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12115 esac
12116 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 $as_echo_n "checking for $ac_header... " >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 $as_echo_n "(cached) " >&6
12120 else
12121 eval "$as_ac_Header=\$ac_header_preproc"
12123 ac_res=`eval 'as_val=${'$as_ac_Header'}
12124 $as_echo "$as_val"'`
12125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12126 $as_echo "$ac_res" >&6; }
12129 if test `eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'` = yes; then
12131 cat >>confdefs.h <<_ACEOF
12132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12133 _ACEOF
12137 done
12140 #########
12141 # Figure out whether or not we have these functions
12150 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
12152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12153 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12154 $as_echo_n "checking for $ac_func... " >&6; }
12155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12156 $as_echo_n "(cached) " >&6
12157 else
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12166 #define $ac_func innocuous_$ac_func
12168 /* System header to define __stub macros and hopefully few prototypes,
12169 which can conflict with char $ac_func (); below.
12170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12171 <limits.h> exists even on freestanding compilers. */
12173 #ifdef __STDC__
12174 # include <limits.h>
12175 #else
12176 # include <assert.h>
12177 #endif
12179 #undef $ac_func
12181 /* Override any GCC internal prototype to avoid an error.
12182 Use char because int might match the return type of a GCC
12183 builtin and then its argument prototype would still apply. */
12184 #ifdef __cplusplus
12185 extern "C"
12186 #endif
12187 char $ac_func ();
12188 /* The GNU C library defines this for functions which it implements
12189 to always fail with ENOSYS. Some functions are actually named
12190 something starting with __ and the normal name is an alias. */
12191 #if defined __stub_$ac_func || defined __stub___$ac_func
12192 choke me
12193 #endif
12196 main ()
12198 return $ac_func ();
12200 return 0;
12202 _ACEOF
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_link") 2>conftest.er1
12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext && {
12221 test "$cross_compiling" = yes ||
12222 $as_test_x conftest$ac_exeext
12223 }; then
12224 eval "$as_ac_var=yes"
12225 else
12226 $as_echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 eval "$as_ac_var=no"
12232 rm -rf conftest.dSYM
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234 conftest$ac_exeext conftest.$ac_ext
12236 ac_res=`eval 'as_val=${'$as_ac_var'}
12237 $as_echo "$as_val"'`
12238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12239 $as_echo "$ac_res" >&6; }
12240 if test `eval 'as_val=${'$as_ac_var'}
12241 $as_echo "$as_val"'` = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12244 _ACEOF
12247 done
12250 #########
12251 # By default, we use the amalgamation (this may be changed below...)
12253 USE_AMALGAMATION=1
12255 #########
12256 # See whether we can run specific tclsh versions known to work well;
12257 # if not, then we fall back to plain tclsh.
12258 # TODO: try other versions before falling back?
12260 for ac_prog in tclsh8.5 tclsh
12262 # Extract the first word of "$ac_prog", so it can be a program name with args.
12263 set dummy $ac_prog; ac_word=$2
12264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12265 $as_echo_n "checking for $ac_word... " >&6; }
12266 if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
12267 $as_echo_n "(cached) " >&6
12268 else
12269 if test -n "$TCLSH_CMD"; then
12270 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12271 else
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_TCLSH_CMD="$ac_prog"
12280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12283 done
12284 done
12285 IFS=$as_save_IFS
12289 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12290 if test -n "$TCLSH_CMD"; then
12291 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12292 $as_echo "$TCLSH_CMD" >&6; }
12293 else
12294 { $as_echo "$as_me:$LINENO: result: no" >&5
12295 $as_echo "no" >&6; }
12299 test -n "$TCLSH_CMD" && break
12300 done
12301 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12303 if test "$TCLSH_CMD" = "none"; then
12304 # If we can't find a local tclsh, then building the amalgamation will fail.
12305 # We act as though --disable-amalgamation has been used.
12306 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12307 USE_AMALGAMATION=0
12308 TCLSH_CMD="tclsh"
12313 if test "x${TCLLIBDIR+set}" != "xset" ; then
12314 TCLLIBDIR='$(libdir)'
12315 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12316 TCLLIBDIR=$i
12317 break
12318 done
12319 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12323 #########
12324 # Set up an appropriate program prefix
12326 if test "$program_prefix" = "NONE"; then
12327 program_prefix=""
12331 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12332 { $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12333 $as_echo "$as_me: Version set to $VERSION" >&6;}
12335 RELEASE=`cat $srcdir/VERSION`
12336 { $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12337 $as_echo "$as_me: Release set to $RELEASE" >&6;}
12339 VERSION_NUMBER=`cat $srcdir/VERSION \
12340 | sed 's/[^0-9]/ /g' \
12341 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
12342 { $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12343 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
12346 #########
12347 # Check to see if the --with-hints=FILE option is used. If there is none,
12348 # then check for a files named "$host.hints" and ../$hosts.hints where
12349 # $host is the hostname of the build system. If still no hints are
12350 # found, try looking in $system.hints and ../$system.hints where
12351 # $system is the result of uname -s.
12354 # Check whether --with-hints was given.
12355 if test "${with_hints+set}" = set; then
12356 withval=$with_hints; hints=$withval
12359 if test "$hints" = ""; then
12360 host=`hostname | sed 's/\..*//'`
12361 if test -r $host.hints; then
12362 hints=$host.hints
12363 else
12364 if test -r ../$host.hints; then
12365 hints=../$host.hints
12369 if test "$hints" = ""; then
12370 sys=`uname -s`
12371 if test -r $sys.hints; then
12372 hints=$sys.hints
12373 else
12374 if test -r ../$sys.hints; then
12375 hints=../$sys.hints
12379 if test "$hints" != ""; then
12380 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12381 $as_echo "reading hints from $hints" >&6; }
12382 . $hints
12385 #########
12386 # Locate a compiler for the build machine. This compiler should
12387 # generate command-line programs that run on the build machine.
12389 if test x"$cross_compiling" = xno; then
12390 BUILD_CC=$CC
12391 BUILD_CFLAGS=$CFLAGS
12392 else
12393 if test "${BUILD_CC+set}" != set; then
12394 for ac_prog in gcc cc cl
12396 # Extract the first word of "$ac_prog", so it can be a program name with args.
12397 set dummy $ac_prog; ac_word=$2
12398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12399 $as_echo_n "checking for $ac_word... " >&6; }
12400 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12401 $as_echo_n "(cached) " >&6
12402 else
12403 if test -n "$BUILD_CC"; then
12404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12405 else
12406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407 for as_dir in $PATH
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_prog_BUILD_CC="$ac_prog"
12414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12417 done
12418 done
12419 IFS=$as_save_IFS
12423 BUILD_CC=$ac_cv_prog_BUILD_CC
12424 if test -n "$BUILD_CC"; then
12425 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12426 $as_echo "$BUILD_CC" >&6; }
12427 else
12428 { $as_echo "$as_me:$LINENO: result: no" >&5
12429 $as_echo "no" >&6; }
12433 test -n "$BUILD_CC" && break
12434 done
12437 if test "${BUILD_CFLAGS+set}" != set; then
12438 BUILD_CFLAGS="-g"
12443 ##########
12444 # Do we want to support multithreaded use of sqlite
12446 # Check whether --enable-threadsafe was given.
12447 if test "${enable_threadsafe+set}" = set; then
12448 enableval=$enable_threadsafe;
12449 else
12450 enable_threadsafe=yes
12453 { $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
12454 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
12455 if test "$enable_threadsafe" = "no"; then
12456 SQLITE_THREADSAFE=0
12457 { $as_echo "$as_me:$LINENO: result: no" >&5
12458 $as_echo "no" >&6; }
12459 else
12460 SQLITE_THREADSAFE=1
12461 { $as_echo "$as_me:$LINENO: result: yes" >&5
12462 $as_echo "yes" >&6; }
12466 if test "$SQLITE_THREADSAFE" = "1"; then
12467 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
12468 $as_echo_n "checking for library containing pthread_create... " >&6; }
12469 if test "${ac_cv_search_pthread_create+set}" = set; then
12470 $as_echo_n "(cached) " >&6
12471 else
12472 ac_func_search_save_LIBS=$LIBS
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12480 /* Override any GCC internal prototype to avoid an error.
12481 Use char because int might match the return type of a GCC
12482 builtin and then its argument prototype would still apply. */
12483 #ifdef __cplusplus
12484 extern "C"
12485 #endif
12486 char pthread_create ();
12488 main ()
12490 return pthread_create ();
12492 return 0;
12494 _ACEOF
12495 for ac_lib in '' pthread; do
12496 if test -z "$ac_lib"; then
12497 ac_res="none required"
12498 else
12499 ac_res=-l$ac_lib
12500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (ac_try="$ac_link"
12504 case "(($ac_try" in
12505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506 *) ac_try_echo=$ac_try;;
12507 esac
12508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12509 $as_echo "$ac_try_echo") >&5
12510 (eval "$ac_link") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest$ac_exeext && {
12520 test "$cross_compiling" = yes ||
12521 $as_test_x conftest$ac_exeext
12522 }; then
12523 ac_cv_search_pthread_create=$ac_res
12524 else
12525 $as_echo "$as_me: failed program was:" >&5
12526 sed 's/^/| /' conftest.$ac_ext >&5
12531 rm -rf conftest.dSYM
12532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533 conftest$ac_exeext
12534 if test "${ac_cv_search_pthread_create+set}" = set; then
12535 break
12537 done
12538 if test "${ac_cv_search_pthread_create+set}" = set; then
12540 else
12541 ac_cv_search_pthread_create=no
12543 rm conftest.$ac_ext
12544 LIBS=$ac_func_search_save_LIBS
12546 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12547 $as_echo "$ac_cv_search_pthread_create" >&6; }
12548 ac_res=$ac_cv_search_pthread_create
12549 if test "$ac_res" != no; then
12550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12556 ##########
12557 # Do we want to allow a connection created in one thread to be used
12558 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12559 # due to bugs in the threading implementations. This is thus off by default.
12561 # Check whether --enable-cross-thread-connections was given.
12562 if test "${enable_cross_thread_connections+set}" = set; then
12563 enableval=$enable_cross_thread_connections;
12564 else
12565 enable_xthreadconnect=no
12568 { $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared across threads" >&5
12569 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12570 if test "$enable_xthreadconnect" = "no"; then
12571 XTHREADCONNECT=''
12572 { $as_echo "$as_me:$LINENO: result: no" >&5
12573 $as_echo "no" >&6; }
12574 else
12575 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12576 { $as_echo "$as_me:$LINENO: result: yes" >&5
12577 $as_echo "yes" >&6; }
12581 ##########
12582 # Do we want to support release
12584 # Check whether --enable-releasemode was given.
12585 if test "${enable_releasemode+set}" = set; then
12586 enableval=$enable_releasemode;
12587 else
12588 enable_releasemode=no
12591 { $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12592 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12593 if test "$enable_releasemode" = "no"; then
12594 ALLOWRELEASE=""
12595 { $as_echo "$as_me:$LINENO: result: no" >&5
12596 $as_echo "no" >&6; }
12597 else
12598 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12599 { $as_echo "$as_me:$LINENO: result: yes" >&5
12600 $as_echo "yes" >&6; }
12604 ##########
12605 # Do we want temporary databases in memory
12607 # Check whether --enable-tempstore was given.
12608 if test "${enable_tempstore+set}" = set; then
12609 enableval=$enable_tempstore;
12610 else
12611 enable_tempstore=no
12614 { $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
12615 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12616 case "$enable_tempstore" in
12617 never )
12618 TEMP_STORE=0
12619 { $as_echo "$as_me:$LINENO: result: never" >&5
12620 $as_echo "never" >&6; }
12622 no )
12623 TEMP_STORE=1
12624 { $as_echo "$as_me:$LINENO: result: no" >&5
12625 $as_echo "no" >&6; }
12627 yes )
12628 TEMP_STORE=2
12629 { $as_echo "$as_me:$LINENO: result: yes" >&5
12630 $as_echo "yes" >&6; }
12632 always )
12633 TEMP_STORE=3
12634 { $as_echo "$as_me:$LINENO: result: always" >&5
12635 $as_echo "always" >&6; }
12638 TEMP_STORE=1
12639 { $as_echo "$as_me:$LINENO: result: no" >&5
12640 $as_echo "no" >&6; }
12642 esac
12646 ###########
12647 # Lots of things are different if we are compiling for Windows using
12648 # the CYGWIN environment. So check for that special case and handle
12649 # things accordingly.
12651 { $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12652 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12653 if test "$config_BUILD_EXEEXT" = ".exe"; then
12654 CYGWIN=yes
12655 { $as_echo "$as_me:$LINENO: result: yes" >&5
12656 $as_echo "yes" >&6; }
12657 else
12658 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12659 $as_echo "unknown" >&6; }
12661 if test "$CYGWIN" != "yes"; then
12662 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12663 $as_echo_n "checking host system type... " >&6; }
12664 if test "${ac_cv_host+set}" = set; then
12665 $as_echo_n "(cached) " >&6
12666 else
12667 if test "x$host_alias" = x; then
12668 ac_cv_host=$ac_cv_build
12669 else
12670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12671 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12672 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12673 { (exit 1); exit 1; }; }
12677 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12678 $as_echo "$ac_cv_host" >&6; }
12679 case $ac_cv_host in
12680 *-*-*) ;;
12681 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12682 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12683 { (exit 1); exit 1; }; };;
12684 esac
12685 host=$ac_cv_host
12686 ac_save_IFS=$IFS; IFS='-'
12687 set x $ac_cv_host
12688 shift
12689 host_cpu=$1
12690 host_vendor=$2
12691 shift; shift
12692 # Remember, the first character of IFS is used to create $*,
12693 # except with old shells:
12694 host_os=$*
12695 IFS=$ac_save_IFS
12696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12699 case $host_os in
12700 *cygwin* ) CYGWIN=yes;;
12701 * ) CYGWIN=no;;
12702 esac
12705 if test "$CYGWIN" = "yes"; then
12706 BUILD_EXEEXT=.exe
12707 else
12708 BUILD_EXEEXT=$EXEEXT
12710 if test x"$cross_compiling" = xno; then
12711 TARGET_EXEEXT=$BUILD_EXEEXT
12712 else
12713 TARGET_EXEEXT=$config_TARGET_EXEEXT
12715 if test "$TARGET_EXEEXT" = ".exe"; then
12716 if test $OS2_SHELL ; then
12717 SQLITE_OS_UNIX=0
12718 SQLITE_OS_WIN=0
12719 SQLITE_OS_OS2=1
12720 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
12721 else
12722 SQLITE_OS_UNIX=0
12723 SQLITE_OS_WIN=1
12724 SQLITE_OS_OS2=0
12725 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12727 else
12728 SQLITE_OS_UNIX=1
12729 SQLITE_OS_WIN=0
12730 SQLITE_OS_OS2=0
12731 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12740 ##########
12741 # Figure out all the parameters needed to compile against Tcl.
12743 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12744 # macros in the in the tcl.m4 file of the standard TCL distribution.
12745 # Those macros could not be used directly since we have to make some
12746 # minor changes to accomodate systems that do not have TCL installed.
12748 # Check whether --enable-tcl was given.
12749 if test "${enable_tcl+set}" = set; then
12750 enableval=$enable_tcl; use_tcl=$enableval
12751 else
12752 use_tcl=yes
12755 if test "${use_tcl}" = "yes" ; then
12757 # Check whether --with-tcl was given.
12758 if test "${with_tcl+set}" = set; then
12759 withval=$with_tcl; with_tclconfig=${withval}
12762 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12763 $as_echo_n "checking for Tcl configuration... " >&6; }
12764 if test "${ac_cv_c_tclconfig+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12768 # First check to see if --with-tcl was specified.
12769 if test x"${with_tclconfig}" != x ; then
12770 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12771 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12772 else
12773 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12774 $as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12775 { (exit 1); exit 1; }; }
12779 # Start autosearch by asking tclsh
12780 if test x"${ac_cv_c_tclconfig}" = x ; then
12781 if test x"$cross_compiling" = xno; then
12782 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12784 if test -f "$i/tclConfig.sh" ; then
12785 ac_cv_c_tclconfig="$i"
12786 break
12788 done
12792 # then check for a private Tcl installation
12793 if test x"${ac_cv_c_tclconfig}" = x ; then
12794 for i in \
12795 ../tcl \
12796 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12797 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12798 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12799 ../../tcl \
12800 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12801 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12802 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12803 ../../../tcl \
12804 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12805 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12806 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12808 if test -f "$i/unix/tclConfig.sh" ; then
12809 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12810 break
12812 done
12815 # check in a few common install locations
12816 if test x"${ac_cv_c_tclconfig}" = x ; then
12817 for i in \
12818 `ls -d ${libdir} 2>/dev/null` \
12819 `ls -d /usr/local/lib 2>/dev/null` \
12820 `ls -d /usr/contrib/lib 2>/dev/null` \
12821 `ls -d /usr/lib 2>/dev/null`
12823 if test -f "$i/tclConfig.sh" ; then
12824 ac_cv_c_tclconfig=`(cd $i; pwd)`
12825 break
12827 done
12830 # check in a few other private locations
12831 if test x"${ac_cv_c_tclconfig}" = x ; then
12832 for i in \
12833 ${srcdir}/../tcl \
12834 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12835 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12836 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12838 if test -f "$i/unix/tclConfig.sh" ; then
12839 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12840 break
12842 done
12848 if test x"${ac_cv_c_tclconfig}" = x ; then
12849 use_tcl=no
12850 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
12851 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12852 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
12853 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
12854 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
12855 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12856 else
12857 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12858 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12859 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12861 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
12862 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12863 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12864 { $as_echo "$as_me:$LINENO: result: loading" >&5
12865 $as_echo "loading" >&6; }
12866 . $TCL_BIN_DIR/tclConfig.sh
12867 else
12868 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12869 $as_echo "file not found" >&6; }
12873 # If the TCL_BIN_DIR is the build directory (not the install directory),
12874 # then set the common variable name to the value of the build variables.
12875 # For example, the variable TCL_LIB_SPEC will be set to the value
12876 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12877 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12878 # installed and uninstalled version of Tcl.
12881 if test -f $TCL_BIN_DIR/Makefile ; then
12882 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12883 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12884 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12888 # eval is required to do the TCL_DBGX substitution
12891 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12892 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12893 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12895 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12896 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12897 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12913 if test "${use_tcl}" = "no" ; then
12914 HAVE_TCL=""
12915 else
12916 HAVE_TCL=1
12920 ##########
12921 # Figure out what C libraries are required to compile programs
12922 # that use "readline()" library.
12924 TARGET_READLINE_LIBS=""
12925 TARGET_READLINE_INC=""
12926 TARGET_HAVE_READLINE=0
12927 # Check whether --enable-readline was given.
12928 if test "${enable_readline+set}" = set; then
12929 enableval=$enable_readline; with_readline=$enableval
12930 else
12931 with_readline=auto
12935 if test x"$with_readline" != xno; then
12936 found="yes"
12939 # Check whether --with-readline-lib was given.
12940 if test "${with_readline_lib+set}" = set; then
12941 withval=$with_readline_lib; with_readline_lib=$withval
12942 else
12943 with_readline_lib="auto"
12946 if test "x$with_readline_lib" = xauto; then
12947 save_LIBS="$LIBS"
12948 LIBS=""
12949 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
12950 $as_echo_n "checking for library containing tgetent... " >&6; }
12951 if test "${ac_cv_search_tgetent+set}" = set; then
12952 $as_echo_n "(cached) " >&6
12953 else
12954 ac_func_search_save_LIBS=$LIBS
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h. */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12962 /* Override any GCC internal prototype to avoid an error.
12963 Use char because int might match the return type of a GCC
12964 builtin and then its argument prototype would still apply. */
12965 #ifdef __cplusplus
12966 extern "C"
12967 #endif
12968 char tgetent ();
12970 main ()
12972 return tgetent ();
12974 return 0;
12976 _ACEOF
12977 for ac_lib in '' readline ncurses curses termcap; do
12978 if test -z "$ac_lib"; then
12979 ac_res="none required"
12980 else
12981 ac_res=-l$ac_lib
12982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12984 rm -f conftest.$ac_objext conftest$ac_exeext
12985 if { (ac_try="$ac_link"
12986 case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989 esac
12990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12991 $as_echo "$ac_try_echo") >&5
12992 (eval "$ac_link") 2>conftest.er1
12993 ac_status=$?
12994 grep -v '^ *+' conftest.er1 >conftest.err
12995 rm -f conftest.er1
12996 cat conftest.err >&5
12997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } && {
12999 test -z "$ac_c_werror_flag" ||
13000 test ! -s conftest.err
13001 } && test -s conftest$ac_exeext && {
13002 test "$cross_compiling" = yes ||
13003 $as_test_x conftest$ac_exeext
13004 }; then
13005 ac_cv_search_tgetent=$ac_res
13006 else
13007 $as_echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13013 rm -rf conftest.dSYM
13014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13015 conftest$ac_exeext
13016 if test "${ac_cv_search_tgetent+set}" = set; then
13017 break
13019 done
13020 if test "${ac_cv_search_tgetent+set}" = set; then
13022 else
13023 ac_cv_search_tgetent=no
13025 rm conftest.$ac_ext
13026 LIBS=$ac_func_search_save_LIBS
13028 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13029 $as_echo "$ac_cv_search_tgetent" >&6; }
13030 ac_res=$ac_cv_search_tgetent
13031 if test "$ac_res" != no; then
13032 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13033 term_LIBS="$LIBS"
13034 else
13035 term_LIBS=""
13038 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13039 $as_echo_n "checking for readline in -lreadline... " >&6; }
13040 if test "${ac_cv_lib_readline_readline+set}" = set; then
13041 $as_echo_n "(cached) " >&6
13042 else
13043 ac_check_lib_save_LIBS=$LIBS
13044 LIBS="-lreadline $LIBS"
13045 cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h. */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13055 #ifdef __cplusplus
13056 extern "C"
13057 #endif
13058 char readline ();
13060 main ()
13062 return readline ();
13064 return 0;
13066 _ACEOF
13067 rm -f conftest.$ac_objext conftest$ac_exeext
13068 if { (ac_try="$ac_link"
13069 case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072 esac
13073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13074 $as_echo "$ac_try_echo") >&5
13075 (eval "$ac_link") 2>conftest.er1
13076 ac_status=$?
13077 grep -v '^ *+' conftest.er1 >conftest.err
13078 rm -f conftest.er1
13079 cat conftest.err >&5
13080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } && {
13082 test -z "$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13084 } && test -s conftest$ac_exeext && {
13085 test "$cross_compiling" = yes ||
13086 $as_test_x conftest$ac_exeext
13087 }; then
13088 ac_cv_lib_readline_readline=yes
13089 else
13090 $as_echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13093 ac_cv_lib_readline_readline=no
13096 rm -rf conftest.dSYM
13097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13098 conftest$ac_exeext conftest.$ac_ext
13099 LIBS=$ac_check_lib_save_LIBS
13101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13102 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13103 if test $ac_cv_lib_readline_readline = yes; then
13104 TARGET_READLINE_LIBS="-lreadline"
13105 else
13106 found="no"
13109 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13110 LIBS="$save_LIBS"
13111 else
13112 TARGET_READLINE_LIBS="$with_readline_lib"
13116 # Check whether --with-readline-inc was given.
13117 if test "${with_readline_inc+set}" = set; then
13118 withval=$with_readline_inc; with_readline_inc=$withval
13119 else
13120 with_readline_inc="auto"
13123 if test "x$with_readline_inc" = xauto; then
13124 if test "${ac_cv_header_readline_h+set}" = set; then
13125 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13126 $as_echo_n "checking for readline.h... " >&6; }
13127 if test "${ac_cv_header_readline_h+set}" = set; then
13128 $as_echo_n "(cached) " >&6
13130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13131 $as_echo "$ac_cv_header_readline_h" >&6; }
13132 else
13133 # Is the header compilable?
13134 { $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13135 $as_echo_n "checking readline.h usability... " >&6; }
13136 cat >conftest.$ac_ext <<_ACEOF
13137 /* confdefs.h. */
13138 _ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13143 #include <readline.h>
13144 _ACEOF
13145 rm -f conftest.$ac_objext
13146 if { (ac_try="$ac_compile"
13147 case "(($ac_try" in
13148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149 *) ac_try_echo=$ac_try;;
13150 esac
13151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13152 $as_echo "$ac_try_echo") >&5
13153 (eval "$ac_compile") 2>conftest.er1
13154 ac_status=$?
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
13158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest.$ac_objext; then
13163 ac_header_compiler=yes
13164 else
13165 $as_echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 ac_header_compiler=no
13171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13172 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13173 $as_echo "$ac_header_compiler" >&6; }
13175 # Is the header present?
13176 { $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13177 $as_echo_n "checking readline.h presence... " >&6; }
13178 cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h. */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h. */
13184 #include <readline.h>
13185 _ACEOF
13186 if { (ac_try="$ac_cpp conftest.$ac_ext"
13187 case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190 esac
13191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13192 $as_echo "$ac_try_echo") >&5
13193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } >/dev/null && {
13200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 }; then
13203 ac_header_preproc=yes
13204 else
13205 $as_echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_header_preproc=no
13211 rm -f conftest.err conftest.$ac_ext
13212 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13213 $as_echo "$ac_header_preproc" >&6; }
13215 # So? What about this header?
13216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13217 yes:no: )
13218 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13219 $as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13220 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13221 $as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13222 ac_header_preproc=yes
13224 no:yes:* )
13225 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13226 $as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13227 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13228 $as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13229 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13230 $as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13231 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13232 $as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13234 $as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13235 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13236 $as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13239 esac
13240 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13241 $as_echo_n "checking for readline.h... " >&6; }
13242 if test "${ac_cv_header_readline_h+set}" = set; then
13243 $as_echo_n "(cached) " >&6
13244 else
13245 ac_cv_header_readline_h=$ac_header_preproc
13247 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13248 $as_echo "$ac_cv_header_readline_h" >&6; }
13251 if test $ac_cv_header_readline_h = yes; then
13252 found="yes"
13253 else
13255 found="no"
13256 if test "$cross_compiling" != yes; then
13257 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13258 for subdir in include include/readline; do
13259 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
13260 { $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13261 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13262 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13263 $as_echo_n "(cached) " >&6
13264 else
13265 test "$cross_compiling" = yes &&
13266 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13267 $as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13268 { (exit 1); exit 1; }; }
13269 if test -r "$dir/$subdir/readline.h"; then
13270 eval "$as_ac_File=yes"
13271 else
13272 eval "$as_ac_File=no"
13275 ac_res=`eval 'as_val=${'$as_ac_File'}
13276 $as_echo "$as_val"'`
13277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13278 $as_echo "$ac_res" >&6; }
13279 if test `eval 'as_val=${'$as_ac_File'}
13280 $as_echo "$as_val"'` = yes; then
13281 found=yes
13284 if test "$found" = "yes"; then
13285 TARGET_READLINE_INC="-I$dir/$subdir"
13286 break
13288 done
13289 test "$found" = "yes" && break
13290 done
13296 else
13297 TARGET_READLINE_INC="$with_readline_inc"
13300 if test x"$found" = xno; then
13301 TARGET_READLINE_LIBS=""
13302 TARGET_READLINE_INC=""
13303 TARGET_HAVE_READLINE=0
13304 else
13305 TARGET_HAVE_READLINE=1
13313 ##########
13314 # Figure out what C libraries are required to compile programs
13315 # that use "fdatasync()" function.
13317 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13318 $as_echo_n "checking for library containing fdatasync... " >&6; }
13319 if test "${ac_cv_search_fdatasync+set}" = set; then
13320 $as_echo_n "(cached) " >&6
13321 else
13322 ac_func_search_save_LIBS=$LIBS
13323 cat >conftest.$ac_ext <<_ACEOF
13324 /* confdefs.h. */
13325 _ACEOF
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13330 /* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 char fdatasync ();
13338 main ()
13340 return fdatasync ();
13342 return 0;
13344 _ACEOF
13345 for ac_lib in '' rt; do
13346 if test -z "$ac_lib"; then
13347 ac_res="none required"
13348 else
13349 ac_res=-l$ac_lib
13350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357 esac
13358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13359 $as_echo "$ac_try_echo") >&5
13360 (eval "$ac_link") 2>conftest.er1
13361 ac_status=$?
13362 grep -v '^ *+' conftest.er1 >conftest.err
13363 rm -f conftest.er1
13364 cat conftest.err >&5
13365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); } && {
13367 test -z "$ac_c_werror_flag" ||
13368 test ! -s conftest.err
13369 } && test -s conftest$ac_exeext && {
13370 test "$cross_compiling" = yes ||
13371 $as_test_x conftest$ac_exeext
13372 }; then
13373 ac_cv_search_fdatasync=$ac_res
13374 else
13375 $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13381 rm -rf conftest.dSYM
13382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13383 conftest$ac_exeext
13384 if test "${ac_cv_search_fdatasync+set}" = set; then
13385 break
13387 done
13388 if test "${ac_cv_search_fdatasync+set}" = set; then
13390 else
13391 ac_cv_search_fdatasync=no
13393 rm conftest.$ac_ext
13394 LIBS=$ac_func_search_save_LIBS
13396 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13397 $as_echo "$ac_cv_search_fdatasync" >&6; }
13398 ac_res=$ac_cv_search_fdatasync
13399 if test "$ac_res" != no; then
13400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13405 #########
13406 # check for debug enabled
13407 # Check whether --enable-debug was given.
13408 if test "${enable_debug+set}" = set; then
13409 enableval=$enable_debug; use_debug=$enableval
13410 else
13411 use_debug=no
13414 if test "${use_debug}" = "yes" ; then
13415 TARGET_DEBUG="-DSQLITE_DEBUG=1"
13416 else
13417 TARGET_DEBUG="-DNDEBUG"
13421 #########
13422 # See whether we should use the amalgamation to build
13423 # Check whether --enable-amalgamation was given.
13424 if test "${enable_amalgamation+set}" = set; then
13425 enableval=$enable_amalgamation; use_amalgamation=$enableval
13426 else
13427 use_amalgamation=yes
13430 if test "${use_amalgamation}" != "yes" ; then
13431 USE_AMALGAMATION=0
13435 #########
13436 # See whether we should allow loadable extensions
13437 # Check whether --enable-load-extension was given.
13438 if test "${enable_load_extension+set}" = set; then
13439 enableval=$enable_load_extension; use_loadextension=$enableval
13440 else
13441 use_loadextension=no
13444 if test "${use_loadextension}" = "yes" ; then
13445 OPT_FEATURE_FLAGS=""
13446 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13447 $as_echo_n "checking for library containing dlopen... " >&6; }
13448 if test "${ac_cv_search_dlopen+set}" = set; then
13449 $as_echo_n "(cached) " >&6
13450 else
13451 ac_func_search_save_LIBS=$LIBS
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13459 /* Override any GCC internal prototype to avoid an error.
13460 Use char because int might match the return type of a GCC
13461 builtin and then its argument prototype would still apply. */
13462 #ifdef __cplusplus
13463 extern "C"
13464 #endif
13465 char dlopen ();
13467 main ()
13469 return dlopen ();
13471 return 0;
13473 _ACEOF
13474 for ac_lib in '' dl; do
13475 if test -z "$ac_lib"; then
13476 ac_res="none required"
13477 else
13478 ac_res=-l$ac_lib
13479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13481 rm -f conftest.$ac_objext conftest$ac_exeext
13482 if { (ac_try="$ac_link"
13483 case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486 esac
13487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13488 $as_echo "$ac_try_echo") >&5
13489 (eval "$ac_link") 2>conftest.er1
13490 ac_status=$?
13491 grep -v '^ *+' conftest.er1 >conftest.err
13492 rm -f conftest.er1
13493 cat conftest.err >&5
13494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); } && {
13496 test -z "$ac_c_werror_flag" ||
13497 test ! -s conftest.err
13498 } && test -s conftest$ac_exeext && {
13499 test "$cross_compiling" = yes ||
13500 $as_test_x conftest$ac_exeext
13501 }; then
13502 ac_cv_search_dlopen=$ac_res
13503 else
13504 $as_echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13510 rm -rf conftest.dSYM
13511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13512 conftest$ac_exeext
13513 if test "${ac_cv_search_dlopen+set}" = set; then
13514 break
13516 done
13517 if test "${ac_cv_search_dlopen+set}" = set; then
13519 else
13520 ac_cv_search_dlopen=no
13522 rm conftest.$ac_ext
13523 LIBS=$ac_func_search_save_LIBS
13525 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13526 $as_echo "$ac_cv_search_dlopen" >&6; }
13527 ac_res=$ac_cv_search_dlopen
13528 if test "$ac_res" != no; then
13529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13533 else
13534 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13537 #########
13538 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
13539 for option in $CFLAGS $CPPFLAGS
13541 case $option in
13542 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13543 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13544 esac
13545 done
13549 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13550 ac_temp_CFLAGS=""
13551 for option in $CFLAGS
13553 case $option in
13554 -DSQLITE_OMIT*) ;;
13555 -DSQLITE_ENABLE*) ;;
13556 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13557 esac
13558 done
13559 CFLAGS=$ac_temp_CFLAGS
13562 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13563 ac_temp_CPPFLAGS=""
13564 for option in $CPPFLAGS
13566 case $option in
13567 -DSQLITE_OMIT*) ;;
13568 -DSQLITE_ENABLE*) ;;
13569 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13570 esac
13571 done
13572 CPPFLAGS=$ac_temp_CPPFLAGS
13575 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13576 ac_temp_BUILD_CFLAGS=""
13577 for option in $BUILD_CFLAGS
13579 case $option in
13580 -DSQLITE_OMIT*) ;;
13581 -DSQLITE_ENABLE*) ;;
13582 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13583 esac
13584 done
13585 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13588 #########
13589 # See whether we should use GCOV
13590 # Check whether --enable-gcov was given.
13591 if test "${enable_gcov+set}" = set; then
13592 enableval=$enable_gcov; use_gcov=$enableval
13593 else
13594 use_gcov=no
13597 if test "${use_gcov}" = "yes" ; then
13598 USE_GCOV=1
13599 else
13600 USE_GCOV=0
13605 #########
13606 # Output the config header
13607 ac_config_headers="$ac_config_headers config.h"
13610 #########
13611 # Generate the output files.
13614 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13616 cat >confcache <<\_ACEOF
13617 # This file is a shell script that caches the results of configure
13618 # tests run on this system so they can be shared between configure
13619 # scripts and configure runs, see configure's option --config-cache.
13620 # It is not useful on other systems. If it contains results you don't
13621 # want to keep, you may remove or edit it.
13623 # config.status only pays attention to the cache file if you give it
13624 # the --recheck option to rerun configure.
13626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13628 # following values.
13630 _ACEOF
13632 # The following way of writing the cache mishandles newlines in values,
13633 # but we know of no workaround that is simple, portable, and efficient.
13634 # So, we kill variables containing newlines.
13635 # Ultrix sh set writes to stderr and can't be redirected directly,
13636 # and sets the high bit in the cache file unless we assign to the vars.
13638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13639 eval ac_val=\$$ac_var
13640 case $ac_val in #(
13641 *${as_nl}*)
13642 case $ac_var in #(
13643 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13644 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13645 esac
13646 case $ac_var in #(
13647 _ | IFS | as_nl) ;; #(
13648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13649 *) $as_unset $ac_var ;;
13650 esac ;;
13651 esac
13652 done
13654 (set) 2>&1 |
13655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13656 *${as_nl}ac_space=\ *)
13657 # `set' does not quote correctly, so add quotes (double-quote
13658 # substitution turns \\\\ into \\, and sed turns \\ into \).
13659 sed -n \
13660 "s/'/'\\\\''/g;
13661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13662 ;; #(
13664 # `set' quotes correctly as required by POSIX, so do not add quotes.
13665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13667 esac |
13668 sort
13670 sed '
13671 /^ac_cv_env_/b end
13672 t clear
13673 :clear
13674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13675 t end
13676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13677 :end' >>confcache
13678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13679 if test -w "$cache_file"; then
13680 test "x$cache_file" != "x/dev/null" &&
13681 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13682 $as_echo "$as_me: updating cache $cache_file" >&6;}
13683 cat confcache >$cache_file
13684 else
13685 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13686 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13689 rm -f confcache
13691 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13692 # Let make expand exec_prefix.
13693 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13695 DEFS=-DHAVE_CONFIG_H
13697 ac_libobjs=
13698 ac_ltlibobjs=
13699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13700 # 1. Remove the extension, and $U if already installed.
13701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13702 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13704 # will be set to the directory where LIBOBJS objects are built.
13705 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13706 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13707 done
13708 LIBOBJS=$ac_libobjs
13710 LTLIBOBJS=$ac_ltlibobjs
13714 : ${CONFIG_STATUS=./config.status}
13715 ac_write_fail=0
13716 ac_clean_files_save=$ac_clean_files
13717 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13718 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13719 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13720 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721 #! $SHELL
13722 # Generated by $as_me.
13723 # Run this file to recreate the current configuration.
13724 # Compiler output produced by configure, useful for debugging
13725 # configure, is in config.log if it exists.
13727 debug=false
13728 ac_cs_recheck=false
13729 ac_cs_silent=false
13730 SHELL=\${CONFIG_SHELL-$SHELL}
13731 _ACEOF
13733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13734 ## --------------------- ##
13735 ## M4sh Initialization. ##
13736 ## --------------------- ##
13738 # Be more Bourne compatible
13739 DUALCASE=1; export DUALCASE # for MKS sh
13740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13741 emulate sh
13742 NULLCMD=:
13743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13744 # is contrary to our usage. Disable this feature.
13745 alias -g '${1+"$@"}'='"$@"'
13746 setopt NO_GLOB_SUBST
13747 else
13748 case `(set -o) 2>/dev/null` in
13749 *posix*) set -o posix ;;
13750 esac
13757 # PATH needs CR
13758 # Avoid depending upon Character Ranges.
13759 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13762 as_cr_digits='0123456789'
13763 as_cr_alnum=$as_cr_Letters$as_cr_digits
13765 as_nl='
13767 export as_nl
13768 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13769 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13771 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13772 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13773 as_echo='printf %s\n'
13774 as_echo_n='printf %s'
13775 else
13776 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13777 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13778 as_echo_n='/usr/ucb/echo -n'
13779 else
13780 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13781 as_echo_n_body='eval
13782 arg=$1;
13783 case $arg in
13784 *"$as_nl"*)
13785 expr "X$arg" : "X\\(.*\\)$as_nl";
13786 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13787 esac;
13788 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13790 export as_echo_n_body
13791 as_echo_n='sh -c $as_echo_n_body as_echo'
13793 export as_echo_body
13794 as_echo='sh -c $as_echo_body as_echo'
13797 # The user is always right.
13798 if test "${PATH_SEPARATOR+set}" != set; then
13799 PATH_SEPARATOR=:
13800 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13801 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13802 PATH_SEPARATOR=';'
13806 # Support unset when possible.
13807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13808 as_unset=unset
13809 else
13810 as_unset=false
13814 # IFS
13815 # We need space, tab and new line, in precisely that order. Quoting is
13816 # there to prevent editors from complaining about space-tab.
13817 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13818 # splitting by setting IFS to empty value.)
13819 IFS=" "" $as_nl"
13821 # Find who we are. Look in the path if we contain no directory separator.
13822 case $0 in
13823 *[\\/]* ) as_myself=$0 ;;
13824 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13830 done
13831 IFS=$as_save_IFS
13834 esac
13835 # We did not find ourselves, most probably we were run as `sh COMMAND'
13836 # in which case we are not to be found in the path.
13837 if test "x$as_myself" = x; then
13838 as_myself=$0
13840 if test ! -f "$as_myself"; then
13841 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13842 { (exit 1); exit 1; }
13845 # Work around bugs in pre-3.0 UWIN ksh.
13846 for as_var in ENV MAIL MAILPATH
13847 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13848 done
13849 PS1='$ '
13850 PS2='> '
13851 PS4='+ '
13853 # NLS nuisances.
13854 LC_ALL=C
13855 export LC_ALL
13856 LANGUAGE=C
13857 export LANGUAGE
13859 # Required to use basename.
13860 if expr a : '\(a\)' >/dev/null 2>&1 &&
13861 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13862 as_expr=expr
13863 else
13864 as_expr=false
13867 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13868 as_basename=basename
13869 else
13870 as_basename=false
13874 # Name of the executable.
13875 as_me=`$as_basename -- "$0" ||
13876 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13877 X"$0" : 'X\(//\)$' \| \
13878 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13879 $as_echo X/"$0" |
13880 sed '/^.*\/\([^/][^/]*\)\/*$/{
13881 s//\1/
13884 /^X\/\(\/\/\)$/{
13885 s//\1/
13888 /^X\/\(\/\).*/{
13889 s//\1/
13892 s/.*/./; q'`
13894 # CDPATH.
13895 $as_unset CDPATH
13899 as_lineno_1=$LINENO
13900 as_lineno_2=$LINENO
13901 test "x$as_lineno_1" != "x$as_lineno_2" &&
13902 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13904 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13905 # uniformly replaced by the line number. The first 'sed' inserts a
13906 # line-number line after each line using $LINENO; the second 'sed'
13907 # does the real work. The second script uses 'N' to pair each
13908 # line-number line with the line containing $LINENO, and appends
13909 # trailing '-' during substitution so that $LINENO is not a special
13910 # case at line end.
13911 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13912 # scripts with optimization help from Paolo Bonzini. Blame Lee
13913 # E. McMahon (1931-1989) for sed's syntax. :-)
13914 sed -n '
13916 /[$]LINENO/=
13917 ' <$as_myself |
13918 sed '
13919 s/[$]LINENO.*/&-/
13920 t lineno
13922 :lineno
13924 :loop
13925 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13926 t loop
13927 s/-\n.*//
13928 ' >$as_me.lineno &&
13929 chmod +x "$as_me.lineno" ||
13930 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13931 { (exit 1); exit 1; }; }
13933 # Don't try to exec as it changes $[0], causing all sort of problems
13934 # (the dirname of $[0] is not the place where we might find the
13935 # original and so on. Autoconf is especially sensitive to this).
13936 . "./$as_me.lineno"
13937 # Exit status is that of the last command.
13938 exit
13942 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13943 as_dirname=dirname
13944 else
13945 as_dirname=false
13948 ECHO_C= ECHO_N= ECHO_T=
13949 case `echo -n x` in
13950 -n*)
13951 case `echo 'x\c'` in
13952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13953 *) ECHO_C='\c';;
13954 esac;;
13956 ECHO_N='-n';;
13957 esac
13958 if expr a : '\(a\)' >/dev/null 2>&1 &&
13959 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13960 as_expr=expr
13961 else
13962 as_expr=false
13965 rm -f conf$$ conf$$.exe conf$$.file
13966 if test -d conf$$.dir; then
13967 rm -f conf$$.dir/conf$$.file
13968 else
13969 rm -f conf$$.dir
13970 mkdir conf$$.dir 2>/dev/null
13972 if (echo >conf$$.file) 2>/dev/null; then
13973 if ln -s conf$$.file conf$$ 2>/dev/null; then
13974 as_ln_s='ln -s'
13975 # ... but there are two gotchas:
13976 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13977 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13978 # In both cases, we have to default to `cp -p'.
13979 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13980 as_ln_s='cp -p'
13981 elif ln conf$$.file conf$$ 2>/dev/null; then
13982 as_ln_s=ln
13983 else
13984 as_ln_s='cp -p'
13986 else
13987 as_ln_s='cp -p'
13989 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13990 rmdir conf$$.dir 2>/dev/null
13992 if mkdir -p . 2>/dev/null; then
13993 as_mkdir_p=:
13994 else
13995 test -d ./-p && rmdir ./-p
13996 as_mkdir_p=false
13999 if test -x / >/dev/null 2>&1; then
14000 as_test_x='test -x'
14001 else
14002 if ls -dL / >/dev/null 2>&1; then
14003 as_ls_L_option=L
14004 else
14005 as_ls_L_option=
14007 as_test_x='
14008 eval sh -c '\''
14009 if test -d "$1"; then
14010 test -d "$1/.";
14011 else
14012 case $1 in
14013 -*)set "./$1";;
14014 esac;
14015 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14016 ???[sx]*):;;*)false;;esac;fi
14017 '\'' sh
14020 as_executable_p=$as_test_x
14022 # Sed expression to map a string onto a valid CPP name.
14023 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14025 # Sed expression to map a string onto a valid variable name.
14026 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14029 exec 6>&1
14031 # Save the log message, to keep $[0] and so on meaningful, and to
14032 # report actual input values of CONFIG_FILES etc. instead of their
14033 # values after options handling.
14034 ac_log="
14035 This file was extended by sqlite $as_me 3.8.0, which was
14036 generated by GNU Autoconf 2.62. Invocation command line was
14038 CONFIG_FILES = $CONFIG_FILES
14039 CONFIG_HEADERS = $CONFIG_HEADERS
14040 CONFIG_LINKS = $CONFIG_LINKS
14041 CONFIG_COMMANDS = $CONFIG_COMMANDS
14042 $ $0 $@
14044 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14047 _ACEOF
14049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14050 # Files that config.status was made for.
14051 config_files="$ac_config_files"
14052 config_headers="$ac_config_headers"
14053 config_commands="$ac_config_commands"
14055 _ACEOF
14057 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14058 ac_cs_usage="\
14059 \`$as_me' instantiates files from templates according to the
14060 current configuration.
14062 Usage: $0 [OPTIONS] [FILE]...
14064 -h, --help print this help, then exit
14065 -V, --version print version number and configuration settings, then exit
14066 -q, --quiet do not print progress messages
14067 -d, --debug don't remove temporary files
14068 --recheck update $as_me by reconfiguring in the same conditions
14069 --file=FILE[:TEMPLATE]
14070 instantiate the configuration file FILE
14071 --header=FILE[:TEMPLATE]
14072 instantiate the configuration header FILE
14074 Configuration files:
14075 $config_files
14077 Configuration headers:
14078 $config_headers
14080 Configuration commands:
14081 $config_commands
14083 Report bugs to <bug-autoconf@gnu.org>."
14085 _ACEOF
14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14087 ac_cs_version="\\
14088 sqlite config.status 3.8.0
14089 configured by $0, generated by GNU Autoconf 2.62,
14090 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14092 Copyright (C) 2008 Free Software Foundation, Inc.
14093 This config.status script is free software; the Free Software Foundation
14094 gives unlimited permission to copy, distribute and modify it."
14096 ac_pwd='$ac_pwd'
14097 srcdir='$srcdir'
14098 INSTALL='$INSTALL'
14099 AWK='$AWK'
14100 test -n "\$AWK" || AWK=awk
14101 _ACEOF
14103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14104 # The default lists apply if the user does not specify any file.
14105 ac_need_defaults=:
14106 while test $# != 0
14108 case $1 in
14109 --*=*)
14110 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14111 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14112 ac_shift=:
14115 ac_option=$1
14116 ac_optarg=$2
14117 ac_shift=shift
14119 esac
14121 case $ac_option in
14122 # Handling of the options.
14123 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14124 ac_cs_recheck=: ;;
14125 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14126 $as_echo "$ac_cs_version"; exit ;;
14127 --debug | --debu | --deb | --de | --d | -d )
14128 debug=: ;;
14129 --file | --fil | --fi | --f )
14130 $ac_shift
14131 case $ac_optarg in
14132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14133 esac
14134 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14135 ac_need_defaults=false;;
14136 --header | --heade | --head | --hea )
14137 $ac_shift
14138 case $ac_optarg in
14139 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14140 esac
14141 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14142 ac_need_defaults=false;;
14143 --he | --h)
14144 # Conflict between --help and --header
14145 { $as_echo "$as_me: error: ambiguous option: $1
14146 Try \`$0 --help' for more information." >&2
14147 { (exit 1); exit 1; }; };;
14148 --help | --hel | -h )
14149 $as_echo "$ac_cs_usage"; exit ;;
14150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14151 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14152 ac_cs_silent=: ;;
14154 # This is an error.
14155 -*) { $as_echo "$as_me: error: unrecognized option: $1
14156 Try \`$0 --help' for more information." >&2
14157 { (exit 1); exit 1; }; } ;;
14159 *) ac_config_targets="$ac_config_targets $1"
14160 ac_need_defaults=false ;;
14162 esac
14163 shift
14164 done
14166 ac_configure_extra_args=
14168 if $ac_cs_silent; then
14169 exec 6>/dev/null
14170 ac_configure_extra_args="$ac_configure_extra_args --silent"
14173 _ACEOF
14174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14175 if \$ac_cs_recheck; then
14176 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14177 shift
14178 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14179 CONFIG_SHELL='$SHELL'
14180 export CONFIG_SHELL
14181 exec "\$@"
14184 _ACEOF
14185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14186 exec 5>>config.log
14188 echo
14189 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14190 ## Running $as_me. ##
14191 _ASBOX
14192 $as_echo "$ac_log"
14193 } >&5
14195 _ACEOF
14196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14198 # INIT-COMMANDS
14202 # The HP-UX ksh and POSIX shell print the target directory to stdout
14203 # if CDPATH is set.
14204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14206 sed_quote_subst='$sed_quote_subst'
14207 double_quote_subst='$double_quote_subst'
14208 delay_variable_subst='$delay_variable_subst'
14209 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14210 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14211 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14212 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14213 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14214 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14215 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14216 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14217 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14218 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14219 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14220 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14221 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14222 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14223 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14224 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14225 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14226 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14227 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14228 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14229 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14230 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14231 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14232 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14233 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14234 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14235 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14236 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14237 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14238 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14239 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14240 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14241 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14242 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14243 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14244 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14245 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14246 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14247 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14248 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14249 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14250 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14251 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14252 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14253 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"`'
14254 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"`'
14255 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14256 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14257 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14258 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14259 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14260 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14261 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14262 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14263 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14264 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14265 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14266 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14267 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14268 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14269 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14270 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14271 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14272 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14273 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14274 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14275 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14276 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14277 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14278 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14279 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14280 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14281 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14282 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14283 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14284 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14285 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14286 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14287 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14288 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14289 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14290 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14291 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14292 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14293 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14294 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14295 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14296 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14297 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14298 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14299 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14300 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14301 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14302 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14303 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14304 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14305 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14306 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14307 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14308 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14309 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14310 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14311 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14312 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14313 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14314 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14315 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14316 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14318 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14319 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14320 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14321 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14322 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14323 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14324 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14325 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14326 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14328 LTCC='$LTCC'
14329 LTCFLAGS='$LTCFLAGS'
14330 compiler='$compiler_DEFAULT'
14332 # Quote evaled strings.
14333 for var in SED \
14334 GREP \
14335 EGREP \
14336 FGREP \
14337 LD \
14338 NM \
14339 LN_S \
14340 lt_SP2NL \
14341 lt_NL2SP \
14342 reload_flag \
14343 OBJDUMP \
14344 deplibs_check_method \
14345 file_magic_cmd \
14346 AR \
14347 AR_FLAGS \
14348 STRIP \
14349 RANLIB \
14350 CC \
14351 CFLAGS \
14352 compiler \
14353 lt_cv_sys_global_symbol_pipe \
14354 lt_cv_sys_global_symbol_to_cdecl \
14355 lt_cv_sys_global_symbol_to_c_name_address \
14356 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14357 SHELL \
14358 ECHO \
14359 lt_prog_compiler_no_builtin_flag \
14360 lt_prog_compiler_wl \
14361 lt_prog_compiler_pic \
14362 lt_prog_compiler_static \
14363 lt_cv_prog_compiler_c_o \
14364 need_locks \
14365 DSYMUTIL \
14366 NMEDIT \
14367 LIPO \
14368 OTOOL \
14369 OTOOL64 \
14370 shrext_cmds \
14371 export_dynamic_flag_spec \
14372 whole_archive_flag_spec \
14373 compiler_needs_object \
14374 with_gnu_ld \
14375 allow_undefined_flag \
14376 no_undefined_flag \
14377 hardcode_libdir_flag_spec \
14378 hardcode_libdir_flag_spec_ld \
14379 hardcode_libdir_separator \
14380 fix_srcfile_path \
14381 exclude_expsyms \
14382 include_expsyms \
14383 file_list_spec \
14384 variables_saved_for_relink \
14385 libname_spec \
14386 library_names_spec \
14387 soname_spec \
14388 finish_eval \
14389 old_striplib \
14390 striplib; do
14391 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14392 *[\\\\\\\`\\"\\\$]*)
14393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14398 esac
14399 done
14401 # Double-quote double-evaled strings.
14402 for var in reload_cmds \
14403 old_postinstall_cmds \
14404 old_postuninstall_cmds \
14405 old_archive_cmds \
14406 extract_expsyms_cmds \
14407 old_archive_from_new_cmds \
14408 old_archive_from_expsyms_cmds \
14409 archive_cmds \
14410 archive_expsym_cmds \
14411 module_cmds \
14412 module_expsym_cmds \
14413 export_symbols_cmds \
14414 prelink_cmds \
14415 postinstall_cmds \
14416 postuninstall_cmds \
14417 finish_cmds \
14418 sys_lib_search_path_spec \
14419 sys_lib_dlsearch_path_spec; do
14420 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14421 *[\\\\\\\`\\"\\\$]*)
14422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14427 esac
14428 done
14430 # Fix-up fallback echo if it was mangled by the above quoting rules.
14431 case \$lt_ECHO in
14432 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14434 esac
14436 ac_aux_dir='$ac_aux_dir'
14437 xsi_shell='$xsi_shell'
14438 lt_shell_append='$lt_shell_append'
14440 # See if we are running on zsh, and set the options which allow our
14441 # commands through without removal of \ escapes INIT.
14442 if test -n "\${ZSH_VERSION+set}" ; then
14443 setopt NO_GLOB_SUBST
14447 PACKAGE='$PACKAGE'
14448 VERSION='$VERSION'
14449 TIMESTAMP='$TIMESTAMP'
14450 RM='$RM'
14451 ofile='$ofile'
14456 _ACEOF
14458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14460 # Handling of arguments.
14461 for ac_config_target in $ac_config_targets
14463 case $ac_config_target in
14464 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14465 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14466 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14467 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14469 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14470 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14471 { (exit 1); exit 1; }; };;
14472 esac
14473 done
14476 # If the user did not use the arguments to specify the items to instantiate,
14477 # then the envvar interface is used. Set only those that are not.
14478 # We use the long form for the default assignment because of an extremely
14479 # bizarre bug on SunOS 4.1.3.
14480 if $ac_need_defaults; then
14481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14486 # Have a temporary directory for convenience. Make it in the build tree
14487 # simply because there is no reason against having it here, and in addition,
14488 # creating and moving files from /tmp can sometimes cause problems.
14489 # Hook for its removal unless debugging.
14490 # Note that there is a small window in which the directory will not be cleaned:
14491 # after its creation but before its name has been assigned to `$tmp'.
14492 $debug ||
14494 tmp=
14495 trap 'exit_status=$?
14496 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14498 trap '{ (exit 1); exit 1; }' 1 2 13 15
14500 # Create a (secure) tmp directory for tmp files.
14503 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14504 test -n "$tmp" && test -d "$tmp"
14505 } ||
14507 tmp=./conf$$-$RANDOM
14508 (umask 077 && mkdir "$tmp")
14509 } ||
14511 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14512 { (exit 1); exit 1; }
14515 # Set up the scripts for CONFIG_FILES section.
14516 # No need to generate them if there are no CONFIG_FILES.
14517 # This happens for instance with `./config.status config.h'.
14518 if test -n "$CONFIG_FILES"; then
14521 ac_cr=' '
14522 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14523 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14524 ac_cs_awk_cr='\\r'
14525 else
14526 ac_cs_awk_cr=$ac_cr
14529 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14530 _ACEOF
14534 echo "cat >conf$$subs.awk <<_ACEOF" &&
14535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14536 echo "_ACEOF"
14537 } >conf$$subs.sh ||
14538 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14539 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14540 { (exit 1); exit 1; }; }
14541 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14542 ac_delim='%!_!# '
14543 for ac_last_try in false false false false false :; do
14544 . ./conf$$subs.sh ||
14545 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14546 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14547 { (exit 1); exit 1; }; }
14549 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14550 break
14551 elif $ac_last_try; then
14552 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14553 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14554 { (exit 1); exit 1; }; }
14555 else
14556 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14558 done
14559 rm -f conf$$subs.sh
14561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14562 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14563 _ACEOF
14564 sed -n '
14566 s/^/S["/; s/!.*/"]=/
14569 s/^[^!]*!//
14570 :repl
14571 t repl
14572 s/'"$ac_delim"'$//
14573 t delim
14576 s/\(.\{148\}\).*/\1/
14577 t more1
14578 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14581 b repl
14582 :more1
14583 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14586 s/.\{148\}//
14587 t nl
14588 :delim
14590 s/\(.\{148\}\).*/\1/
14591 t more2
14592 s/["\\]/\\&/g; s/^/"/; s/$/"/
14595 :more2
14596 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14599 s/.\{148\}//
14600 t delim
14601 ' <conf$$subs.awk | sed '
14602 /^[^""]/{
14604 s/\n//
14606 ' >>$CONFIG_STATUS || ac_write_fail=1
14607 rm -f conf$$subs.awk
14608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14609 _ACAWK
14610 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14611 for (key in S) S_is_set[key] = 1
14612 FS = "\a"
14616 line = $ 0
14617 nfields = split(line, field, "@")
14618 substed = 0
14619 len = length(field[1])
14620 for (i = 2; i < nfields; i++) {
14621 key = field[i]
14622 keylen = length(key)
14623 if (S_is_set[key]) {
14624 value = S[key]
14625 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14626 len += length(value) + length(field[++i])
14627 substed = 1
14628 } else
14629 len += 1 + keylen
14632 print line
14635 _ACAWK
14636 _ACEOF
14637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14638 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14639 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14640 else
14642 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14643 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14644 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14645 { (exit 1); exit 1; }; }
14646 _ACEOF
14648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14650 # trailing colons and then remove the whole line if VPATH becomes empty
14651 # (actually we leave an empty line to preserve line numbers).
14652 if test "x$srcdir" = x.; then
14653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14654 s/:*\$(srcdir):*/:/
14655 s/:*\${srcdir}:*/:/
14656 s/:*@srcdir@:*/:/
14657 s/^\([^=]*=[ ]*\):*/\1/
14658 s/:*$//
14659 s/^[^=]*=[ ]*$//
14663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14664 fi # test -n "$CONFIG_FILES"
14666 # Set up the scripts for CONFIG_HEADERS section.
14667 # No need to generate them if there are no CONFIG_HEADERS.
14668 # This happens for instance with `./config.status Makefile'.
14669 if test -n "$CONFIG_HEADERS"; then
14670 cat >"$tmp/defines.awk" <<\_ACAWK ||
14671 BEGIN {
14672 _ACEOF
14674 # Transform confdefs.h into an awk script `defines.awk', embedded as
14675 # here-document in config.status, that substitutes the proper values into
14676 # config.h.in to produce config.h.
14678 # Create a delimiter string that does not exist in confdefs.h, to ease
14679 # handling of long lines.
14680 ac_delim='%!_!# '
14681 for ac_last_try in false false :; do
14682 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14683 if test -z "$ac_t"; then
14684 break
14685 elif $ac_last_try; then
14686 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14687 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14688 { (exit 1); exit 1; }; }
14689 else
14690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14692 done
14694 # For the awk script, D is an array of macro values keyed by name,
14695 # likewise P contains macro parameters if any. Preserve backslash
14696 # newline sequences.
14698 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14699 sed -n '
14700 s/.\{148\}/&'"$ac_delim"'/g
14701 t rset
14702 :rset
14703 s/^[ ]*#[ ]*define[ ][ ]*/ /
14704 t def
14706 :def
14707 s/\\$//
14708 t bsnl
14709 s/["\\]/\\&/g
14710 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14711 D["\1"]=" \3"/p
14712 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14714 :bsnl
14715 s/["\\]/\\&/g
14716 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14717 D["\1"]=" \3\\\\\\n"\\/p
14718 t cont
14719 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14720 t cont
14722 :cont
14724 s/.\{148\}/&'"$ac_delim"'/g
14725 t clear
14726 :clear
14727 s/\\$//
14728 t bsnlc
14729 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14731 :bsnlc
14732 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14733 b cont
14734 ' <confdefs.h | sed '
14735 s/'"$ac_delim"'/"\\\
14736 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14739 for (key in D) D_is_set[key] = 1
14740 FS = "\a"
14742 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14743 line = \$ 0
14744 split(line, arg, " ")
14745 if (arg[1] == "#") {
14746 defundef = arg[2]
14747 mac1 = arg[3]
14748 } else {
14749 defundef = substr(arg[1], 2)
14750 mac1 = arg[2]
14752 split(mac1, mac2, "(") #)
14753 macro = mac2[1]
14754 if (D_is_set[macro]) {
14755 # Preserve the white space surrounding the "#".
14756 prefix = substr(line, 1, index(line, defundef) - 1)
14757 print prefix "define", macro P[macro] D[macro]
14758 next
14759 } else {
14760 # Replace #undef with comments. This is necessary, for example,
14761 # in the case of _POSIX_SOURCE, which is predefined and required
14762 # on some systems where configure will not decide to define it.
14763 if (defundef == "undef") {
14764 print "/*", line, "*/"
14765 next
14769 { print }
14770 _ACAWK
14771 _ACEOF
14772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14774 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14775 { (exit 1); exit 1; }; }
14776 fi # test -n "$CONFIG_HEADERS"
14779 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14780 shift
14781 for ac_tag
14783 case $ac_tag in
14784 :[FHLC]) ac_mode=$ac_tag; continue;;
14785 esac
14786 case $ac_mode$ac_tag in
14787 :[FHL]*:*);;
14788 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14789 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14790 { (exit 1); exit 1; }; };;
14791 :[FH]-) ac_tag=-:-;;
14792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14793 esac
14794 ac_save_IFS=$IFS
14795 IFS=:
14796 set x $ac_tag
14797 IFS=$ac_save_IFS
14798 shift
14799 ac_file=$1
14800 shift
14802 case $ac_mode in
14803 :L) ac_source=$1;;
14804 :[FH])
14805 ac_file_inputs=
14806 for ac_f
14808 case $ac_f in
14809 -) ac_f="$tmp/stdin";;
14810 *) # Look for the file first in the build tree, then in the source tree
14811 # (if the path is not absolute). The absolute path cannot be DOS-style,
14812 # because $ac_f cannot contain `:'.
14813 test -f "$ac_f" ||
14814 case $ac_f in
14815 [\\/$]*) false;;
14816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14817 esac ||
14818 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14819 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14820 { (exit 1); exit 1; }; };;
14821 esac
14822 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14823 ac_file_inputs="$ac_file_inputs '$ac_f'"
14824 done
14826 # Let's still pretend it is `configure' which instantiates (i.e., don't
14827 # use $as_me), people would be surprised to read:
14828 # /* config.h. Generated by config.status. */
14829 configure_input='Generated from '`
14830 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14831 `' by configure.'
14832 if test x"$ac_file" != x-; then
14833 configure_input="$ac_file. $configure_input"
14834 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14835 $as_echo "$as_me: creating $ac_file" >&6;}
14837 # Neutralize special characters interpreted by sed in replacement strings.
14838 case $configure_input in #(
14839 *\&* | *\|* | *\\* )
14840 ac_sed_conf_input=`$as_echo "$configure_input" |
14841 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14842 *) ac_sed_conf_input=$configure_input;;
14843 esac
14845 case $ac_tag in
14846 *:-:* | *:-) cat >"$tmp/stdin" \
14847 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14848 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14849 { (exit 1); exit 1; }; } ;;
14850 esac
14852 esac
14854 ac_dir=`$as_dirname -- "$ac_file" ||
14855 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14856 X"$ac_file" : 'X\(//\)[^/]' \| \
14857 X"$ac_file" : 'X\(//\)$' \| \
14858 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14859 $as_echo X"$ac_file" |
14860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14861 s//\1/
14864 /^X\(\/\/\)[^/].*/{
14865 s//\1/
14868 /^X\(\/\/\)$/{
14869 s//\1/
14872 /^X\(\/\).*/{
14873 s//\1/
14876 s/.*/./; q'`
14877 { as_dir="$ac_dir"
14878 case $as_dir in #(
14879 -*) as_dir=./$as_dir;;
14880 esac
14881 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14882 as_dirs=
14883 while :; do
14884 case $as_dir in #(
14885 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14886 *) as_qdir=$as_dir;;
14887 esac
14888 as_dirs="'$as_qdir' $as_dirs"
14889 as_dir=`$as_dirname -- "$as_dir" ||
14890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14891 X"$as_dir" : 'X\(//\)[^/]' \| \
14892 X"$as_dir" : 'X\(//\)$' \| \
14893 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14894 $as_echo X"$as_dir" |
14895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14896 s//\1/
14899 /^X\(\/\/\)[^/].*/{
14900 s//\1/
14903 /^X\(\/\/\)$/{
14904 s//\1/
14907 /^X\(\/\).*/{
14908 s//\1/
14911 s/.*/./; q'`
14912 test -d "$as_dir" && break
14913 done
14914 test -z "$as_dirs" || eval "mkdir $as_dirs"
14915 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14916 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14917 { (exit 1); exit 1; }; }; }
14918 ac_builddir=.
14920 case "$ac_dir" in
14921 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14924 # A ".." for each directory in $ac_dir_suffix.
14925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14926 case $ac_top_builddir_sub in
14927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14929 esac ;;
14930 esac
14931 ac_abs_top_builddir=$ac_pwd
14932 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14933 # for backward compatibility:
14934 ac_top_builddir=$ac_top_build_prefix
14936 case $srcdir in
14937 .) # We are building in place.
14938 ac_srcdir=.
14939 ac_top_srcdir=$ac_top_builddir_sub
14940 ac_abs_top_srcdir=$ac_pwd ;;
14941 [\\/]* | ?:[\\/]* ) # Absolute name.
14942 ac_srcdir=$srcdir$ac_dir_suffix;
14943 ac_top_srcdir=$srcdir
14944 ac_abs_top_srcdir=$srcdir ;;
14945 *) # Relative name.
14946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14947 ac_top_srcdir=$ac_top_build_prefix$srcdir
14948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14949 esac
14950 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14953 case $ac_mode in
14956 # CONFIG_FILE
14959 case $INSTALL in
14960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14961 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14962 esac
14963 _ACEOF
14965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14966 # If the template does not know about datarootdir, expand it.
14967 # FIXME: This hack should be removed a few years after 2.60.
14968 ac_datarootdir_hack=; ac_datarootdir_seen=
14970 ac_sed_dataroot='
14971 /datarootdir/ {
14975 /@datadir@/p
14976 /@docdir@/p
14977 /@infodir@/p
14978 /@localedir@/p
14979 /@mandir@/p
14981 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14982 *datarootdir*) ac_datarootdir_seen=yes;;
14983 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14984 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14985 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14986 _ACEOF
14987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14988 ac_datarootdir_hack='
14989 s&@datadir@&$datadir&g
14990 s&@docdir@&$docdir&g
14991 s&@infodir@&$infodir&g
14992 s&@localedir@&$localedir&g
14993 s&@mandir@&$mandir&g
14994 s&\\\${datarootdir}&$datarootdir&g' ;;
14995 esac
14996 _ACEOF
14998 # Neutralize VPATH when `$srcdir' = `.'.
14999 # Shell code in configure.ac might set extrasub.
15000 # FIXME: do we really want to maintain this feature?
15001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15002 ac_sed_extra="$ac_vpsub
15003 $extrasub
15004 _ACEOF
15005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15008 s|@configure_input@|$ac_sed_conf_input|;t t
15009 s&@top_builddir@&$ac_top_builddir_sub&;t t
15010 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15011 s&@srcdir@&$ac_srcdir&;t t
15012 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15013 s&@top_srcdir@&$ac_top_srcdir&;t t
15014 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15015 s&@builddir@&$ac_builddir&;t t
15016 s&@abs_builddir@&$ac_abs_builddir&;t t
15017 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15018 s&@INSTALL@&$ac_INSTALL&;t t
15019 $ac_datarootdir_hack
15021 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15022 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15023 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15024 { (exit 1); exit 1; }; }
15026 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15027 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15030 which seems to be undefined. Please make sure it is defined." >&5
15031 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15032 which seems to be undefined. Please make sure it is defined." >&2;}
15034 rm -f "$tmp/stdin"
15035 case $ac_file in
15036 -) cat "$tmp/out" && rm -f "$tmp/out";;
15037 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15038 esac \
15039 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15040 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15041 { (exit 1); exit 1; }; }
15045 # CONFIG_HEADER
15047 if test x"$ac_file" != x-; then
15049 $as_echo "/* $configure_input */" \
15050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15051 } >"$tmp/config.h" \
15052 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15053 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15054 { (exit 1); exit 1; }; }
15055 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15056 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15057 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15058 else
15059 rm -f "$ac_file"
15060 mv "$tmp/config.h" "$ac_file" \
15061 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15062 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15063 { (exit 1); exit 1; }; }
15065 else
15066 $as_echo "/* $configure_input */" \
15067 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15068 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15069 $as_echo "$as_me: error: could not create -" >&2;}
15070 { (exit 1); exit 1; }; }
15074 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15075 $as_echo "$as_me: executing $ac_file commands" >&6;}
15077 esac
15080 case $ac_file$ac_mode in
15081 "libtool":C)
15083 # See if we are running on zsh, and set the options which allow our
15084 # commands through without removal of \ escapes.
15085 if test -n "${ZSH_VERSION+set}" ; then
15086 setopt NO_GLOB_SUBST
15089 cfgfile="${ofile}T"
15090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15091 $RM "$cfgfile"
15093 cat <<_LT_EOF >> "$cfgfile"
15094 #! $SHELL
15096 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15097 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15099 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15101 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15102 # 2006, 2007, 2008 Free Software Foundation, Inc.
15103 # Written by Gordon Matzigkeit, 1996
15105 # This file is part of GNU Libtool.
15107 # GNU Libtool is free software; you can redistribute it and/or
15108 # modify it under the terms of the GNU General Public License as
15109 # published by the Free Software Foundation; either version 2 of
15110 # the License, or (at your option) any later version.
15112 # As a special exception to the GNU General Public License,
15113 # if you distribute this file as part of a program or library that
15114 # is built using GNU Libtool, you may include this file under the
15115 # same distribution terms that you use for the rest of that program.
15117 # GNU Libtool is distributed in the hope that it will be useful,
15118 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15119 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15120 # GNU General Public License for more details.
15122 # You should have received a copy of the GNU General Public License
15123 # along with GNU Libtool; see the file COPYING. If not, a copy
15124 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15125 # obtained by writing to the Free Software Foundation, Inc.,
15126 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15129 # The names of the tagged configurations supported by this script.
15130 available_tags=""
15132 # ### BEGIN LIBTOOL CONFIG
15134 # Which release of libtool.m4 was used?
15135 macro_version=$macro_version
15136 macro_revision=$macro_revision
15138 # Whether or not to build shared libraries.
15139 build_libtool_libs=$enable_shared
15141 # Whether or not to build static libraries.
15142 build_old_libs=$enable_static
15144 # What type of objects to build.
15145 pic_mode=$pic_mode
15147 # Whether or not to optimize for fast installation.
15148 fast_install=$enable_fast_install
15150 # The host system.
15151 host_alias=$host_alias
15152 host=$host
15153 host_os=$host_os
15155 # The build system.
15156 build_alias=$build_alias
15157 build=$build
15158 build_os=$build_os
15160 # A sed program that does not truncate output.
15161 SED=$lt_SED
15163 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15164 Xsed="\$SED -e 1s/^X//"
15166 # A grep program that handles long lines.
15167 GREP=$lt_GREP
15169 # An ERE matcher.
15170 EGREP=$lt_EGREP
15172 # A literal string matcher.
15173 FGREP=$lt_FGREP
15175 # A BSD- or MS-compatible name lister.
15176 NM=$lt_NM
15178 # Whether we need soft or hard links.
15179 LN_S=$lt_LN_S
15181 # What is the maximum length of a command?
15182 max_cmd_len=$max_cmd_len
15184 # Object file suffix (normally "o").
15185 objext=$ac_objext
15187 # Executable file suffix (normally "").
15188 exeext=$exeext
15190 # whether the shell understands "unset".
15191 lt_unset=$lt_unset
15193 # turn spaces into newlines.
15194 SP2NL=$lt_lt_SP2NL
15196 # turn newlines into spaces.
15197 NL2SP=$lt_lt_NL2SP
15199 # How to create reloadable object files.
15200 reload_flag=$lt_reload_flag
15201 reload_cmds=$lt_reload_cmds
15203 # An object symbol dumper.
15204 OBJDUMP=$lt_OBJDUMP
15206 # Method to check whether dependent libraries are shared objects.
15207 deplibs_check_method=$lt_deplibs_check_method
15209 # Command to use when deplibs_check_method == "file_magic".
15210 file_magic_cmd=$lt_file_magic_cmd
15212 # The archiver.
15213 AR=$lt_AR
15214 AR_FLAGS=$lt_AR_FLAGS
15216 # A symbol stripping program.
15217 STRIP=$lt_STRIP
15219 # Commands used to install an old-style archive.
15220 RANLIB=$lt_RANLIB
15221 old_postinstall_cmds=$lt_old_postinstall_cmds
15222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15224 # A C compiler.
15225 LTCC=$lt_CC
15227 # LTCC compiler flags.
15228 LTCFLAGS=$lt_CFLAGS
15230 # Take the output of nm and produce a listing of raw symbols and C names.
15231 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15233 # Transform the output of nm in a proper C declaration.
15234 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15236 # Transform the output of nm in a C name address pair.
15237 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15239 # Transform the output of nm in a C name address pair when lib prefix is needed.
15240 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15242 # The name of the directory that contains temporary libtool files.
15243 objdir=$objdir
15245 # Shell to use when invoking shell scripts.
15246 SHELL=$lt_SHELL
15248 # An echo program that does not interpret backslashes.
15249 ECHO=$lt_ECHO
15251 # Used to examine libraries when file_magic_cmd begins with "file".
15252 MAGIC_CMD=$MAGIC_CMD
15254 # Must we lock files when doing compilation?
15255 need_locks=$lt_need_locks
15257 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15258 DSYMUTIL=$lt_DSYMUTIL
15260 # Tool to change global to local symbols on Mac OS X.
15261 NMEDIT=$lt_NMEDIT
15263 # Tool to manipulate fat objects and archives on Mac OS X.
15264 LIPO=$lt_LIPO
15266 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15267 OTOOL=$lt_OTOOL
15269 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15270 OTOOL64=$lt_OTOOL64
15272 # Old archive suffix (normally "a").
15273 libext=$libext
15275 # Shared library suffix (normally ".so").
15276 shrext_cmds=$lt_shrext_cmds
15278 # The commands to extract the exported symbol list from a shared archive.
15279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15281 # Variables whose values should be saved in libtool wrapper scripts and
15282 # restored at link time.
15283 variables_saved_for_relink=$lt_variables_saved_for_relink
15285 # Do we need the "lib" prefix for modules?
15286 need_lib_prefix=$need_lib_prefix
15288 # Do we need a version for libraries?
15289 need_version=$need_version
15291 # Library versioning type.
15292 version_type=$version_type
15294 # Shared library runtime path variable.
15295 runpath_var=$runpath_var
15297 # Shared library path variable.
15298 shlibpath_var=$shlibpath_var
15300 # Is shlibpath searched before the hard-coded library search path?
15301 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15303 # Format of library name prefix.
15304 libname_spec=$lt_libname_spec
15306 # List of archive names. First name is the real one, the rest are links.
15307 # The last name is the one that the linker finds with -lNAME
15308 library_names_spec=$lt_library_names_spec
15310 # The coded name of the library, if different from the real name.
15311 soname_spec=$lt_soname_spec
15313 # Command to use after installation of a shared archive.
15314 postinstall_cmds=$lt_postinstall_cmds
15316 # Command to use after uninstallation of a shared archive.
15317 postuninstall_cmds=$lt_postuninstall_cmds
15319 # Commands used to finish a libtool library installation in a directory.
15320 finish_cmds=$lt_finish_cmds
15322 # As "finish_cmds", except a single script fragment to be evaled but
15323 # not shown.
15324 finish_eval=$lt_finish_eval
15326 # Whether we should hardcode library paths into libraries.
15327 hardcode_into_libs=$hardcode_into_libs
15329 # Compile-time system search path for libraries.
15330 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15332 # Run-time system search path for libraries.
15333 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15335 # Whether dlopen is supported.
15336 dlopen_support=$enable_dlopen
15338 # Whether dlopen of programs is supported.
15339 dlopen_self=$enable_dlopen_self
15341 # Whether dlopen of statically linked programs is supported.
15342 dlopen_self_static=$enable_dlopen_self_static
15344 # Commands to strip libraries.
15345 old_striplib=$lt_old_striplib
15346 striplib=$lt_striplib
15349 # The linker used to build libraries.
15350 LD=$lt_LD
15352 # Commands used to build an old-style archive.
15353 old_archive_cmds=$lt_old_archive_cmds
15355 # A language specific compiler.
15356 CC=$lt_compiler
15358 # Is the compiler the GNU compiler?
15359 with_gcc=$GCC
15361 # Compiler flag to turn off builtin functions.
15362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15364 # How to pass a linker flag through the compiler.
15365 wl=$lt_lt_prog_compiler_wl
15367 # Additional compiler flags for building library objects.
15368 pic_flag=$lt_lt_prog_compiler_pic
15370 # Compiler flag to prevent dynamic linking.
15371 link_static_flag=$lt_lt_prog_compiler_static
15373 # Does compiler simultaneously support -c and -o options?
15374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15376 # Whether or not to add -lc for building shared libraries.
15377 build_libtool_need_lc=$archive_cmds_need_lc
15379 # Whether or not to disallow shared libs when runtime libs are static.
15380 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15382 # Compiler flag to allow reflexive dlopens.
15383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15385 # Compiler flag to generate shared objects directly from archives.
15386 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15388 # Whether the compiler copes with passing no objects directly.
15389 compiler_needs_object=$lt_compiler_needs_object
15391 # Create an old-style archive from a shared archive.
15392 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15394 # Create a temporary old-style archive to link instead of a shared archive.
15395 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15397 # Commands used to build a shared archive.
15398 archive_cmds=$lt_archive_cmds
15399 archive_expsym_cmds=$lt_archive_expsym_cmds
15401 # Commands used to build a loadable module if different from building
15402 # a shared archive.
15403 module_cmds=$lt_module_cmds
15404 module_expsym_cmds=$lt_module_expsym_cmds
15406 # Whether we are building with GNU ld or not.
15407 with_gnu_ld=$lt_with_gnu_ld
15409 # Flag that allows shared libraries with undefined symbols to be built.
15410 allow_undefined_flag=$lt_allow_undefined_flag
15412 # Flag that enforces no undefined symbols.
15413 no_undefined_flag=$lt_no_undefined_flag
15415 # Flag to hardcode \$libdir into a binary during linking.
15416 # This must work even if \$libdir does not exist
15417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15419 # If ld is used when linking, flag to hardcode \$libdir into a binary
15420 # during linking. This must work even if \$libdir does not exist.
15421 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15423 # Whether we need a single "-rpath" flag with a separated argument.
15424 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15426 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15427 # DIR into the resulting binary.
15428 hardcode_direct=$hardcode_direct
15430 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15431 # DIR into the resulting binary and the resulting library dependency is
15432 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15433 # library is relocated.
15434 hardcode_direct_absolute=$hardcode_direct_absolute
15436 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15437 # into the resulting binary.
15438 hardcode_minus_L=$hardcode_minus_L
15440 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15441 # into the resulting binary.
15442 hardcode_shlibpath_var=$hardcode_shlibpath_var
15444 # Set to "yes" if building a shared library automatically hardcodes DIR
15445 # into the library and all subsequent libraries and executables linked
15446 # against it.
15447 hardcode_automatic=$hardcode_automatic
15449 # Set to yes if linker adds runtime paths of dependent libraries
15450 # to runtime path list.
15451 inherit_rpath=$inherit_rpath
15453 # Whether libtool must link a program against all its dependency libraries.
15454 link_all_deplibs=$link_all_deplibs
15456 # Fix the shell variable \$srcfile for the compiler.
15457 fix_srcfile_path=$lt_fix_srcfile_path
15459 # Set to "yes" if exported symbols are required.
15460 always_export_symbols=$always_export_symbols
15462 # The commands to list exported symbols.
15463 export_symbols_cmds=$lt_export_symbols_cmds
15465 # Symbols that should not be listed in the preloaded symbols.
15466 exclude_expsyms=$lt_exclude_expsyms
15468 # Symbols that must always be exported.
15469 include_expsyms=$lt_include_expsyms
15471 # Commands necessary for linking programs (against libraries) with templates.
15472 prelink_cmds=$lt_prelink_cmds
15474 # Specify filename containing input files.
15475 file_list_spec=$lt_file_list_spec
15477 # How to hardcode a shared library path into an executable.
15478 hardcode_action=$hardcode_action
15480 # ### END LIBTOOL CONFIG
15482 _LT_EOF
15484 case $host_os in
15485 aix3*)
15486 cat <<\_LT_EOF >> "$cfgfile"
15487 # AIX sometimes has problems with the GCC collect2 program. For some
15488 # reason, if we set the COLLECT_NAMES environment variable, the problems
15489 # vanish in a puff of smoke.
15490 if test "X${COLLECT_NAMES+set}" != Xset; then
15491 COLLECT_NAMES=
15492 export COLLECT_NAMES
15494 _LT_EOF
15496 esac
15499 ltmain="$ac_aux_dir/ltmain.sh"
15502 # We use sed instead of cat because bash on DJGPP gets confused if
15503 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15504 # text mode, it properly converts lines to CR/LF. This bash problem
15505 # is reportedly fixed, but why not run on old versions too?
15506 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15507 || (rm -f "$cfgfile"; exit 1)
15509 case $xsi_shell in
15510 yes)
15511 cat << \_LT_EOF >> "$cfgfile"
15513 # func_dirname file append nondir_replacement
15514 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15515 # otherwise set result to NONDIR_REPLACEMENT.
15516 func_dirname ()
15518 case ${1} in
15519 */*) func_dirname_result="${1%/*}${2}" ;;
15520 * ) func_dirname_result="${3}" ;;
15521 esac
15524 # func_basename file
15525 func_basename ()
15527 func_basename_result="${1##*/}"
15530 # func_dirname_and_basename file append nondir_replacement
15531 # perform func_basename and func_dirname in a single function
15532 # call:
15533 # dirname: Compute the dirname of FILE. If nonempty,
15534 # add APPEND to the result, otherwise set result
15535 # to NONDIR_REPLACEMENT.
15536 # value returned in "$func_dirname_result"
15537 # basename: Compute filename of FILE.
15538 # value retuned in "$func_basename_result"
15539 # Implementation must be kept synchronized with func_dirname
15540 # and func_basename. For efficiency, we do not delegate to
15541 # those functions but instead duplicate the functionality here.
15542 func_dirname_and_basename ()
15544 case ${1} in
15545 */*) func_dirname_result="${1%/*}${2}" ;;
15546 * ) func_dirname_result="${3}" ;;
15547 esac
15548 func_basename_result="${1##*/}"
15551 # func_stripname prefix suffix name
15552 # strip PREFIX and SUFFIX off of NAME.
15553 # PREFIX and SUFFIX must not contain globbing or regex special
15554 # characters, hashes, percent signs, but SUFFIX may contain a leading
15555 # dot (in which case that matches only a dot).
15556 func_stripname ()
15558 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15559 # positional parameters, so assign one to ordinary parameter first.
15560 func_stripname_result=${3}
15561 func_stripname_result=${func_stripname_result#"${1}"}
15562 func_stripname_result=${func_stripname_result%"${2}"}
15565 # func_opt_split
15566 func_opt_split ()
15568 func_opt_split_opt=${1%%=*}
15569 func_opt_split_arg=${1#*=}
15572 # func_lo2o object
15573 func_lo2o ()
15575 case ${1} in
15576 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15577 *) func_lo2o_result=${1} ;;
15578 esac
15581 # func_xform libobj-or-source
15582 func_xform ()
15584 func_xform_result=${1%.*}.lo
15587 # func_arith arithmetic-term...
15588 func_arith ()
15590 func_arith_result=$(( $* ))
15593 # func_len string
15594 # STRING may not start with a hyphen.
15595 func_len ()
15597 func_len_result=${#1}
15600 _LT_EOF
15602 *) # Bourne compatible functions.
15603 cat << \_LT_EOF >> "$cfgfile"
15605 # func_dirname file append nondir_replacement
15606 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15607 # otherwise set result to NONDIR_REPLACEMENT.
15608 func_dirname ()
15610 # Extract subdirectory from the argument.
15611 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15612 if test "X$func_dirname_result" = "X${1}"; then
15613 func_dirname_result="${3}"
15614 else
15615 func_dirname_result="$func_dirname_result${2}"
15619 # func_basename file
15620 func_basename ()
15622 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15626 # func_stripname prefix suffix name
15627 # strip PREFIX and SUFFIX off of NAME.
15628 # PREFIX and SUFFIX must not contain globbing or regex special
15629 # characters, hashes, percent signs, but SUFFIX may contain a leading
15630 # dot (in which case that matches only a dot).
15631 # func_strip_suffix prefix name
15632 func_stripname ()
15634 case ${2} in
15635 .*) func_stripname_result=`$ECHO "X${3}" \
15636 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15637 *) func_stripname_result=`$ECHO "X${3}" \
15638 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15639 esac
15642 # sed scripts:
15643 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15644 my_sed_long_arg='1s/^-[^=]*=//'
15646 # func_opt_split
15647 func_opt_split ()
15649 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15650 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15653 # func_lo2o object
15654 func_lo2o ()
15656 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15659 # func_xform libobj-or-source
15660 func_xform ()
15662 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15665 # func_arith arithmetic-term...
15666 func_arith ()
15668 func_arith_result=`expr "$@"`
15671 # func_len string
15672 # STRING may not start with a hyphen.
15673 func_len ()
15675 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15678 _LT_EOF
15679 esac
15681 case $lt_shell_append in
15682 yes)
15683 cat << \_LT_EOF >> "$cfgfile"
15685 # func_append var value
15686 # Append VALUE to the end of shell variable VAR.
15687 func_append ()
15689 eval "$1+=\$2"
15691 _LT_EOF
15694 cat << \_LT_EOF >> "$cfgfile"
15696 # func_append var value
15697 # Append VALUE to the end of shell variable VAR.
15698 func_append ()
15700 eval "$1=\$$1\$2"
15703 _LT_EOF
15705 esac
15708 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15709 || (rm -f "$cfgfile"; exit 1)
15711 mv -f "$cfgfile" "$ofile" ||
15712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15713 chmod +x "$ofile"
15717 esac
15718 done # for ac_tag
15721 { (exit 0); exit 0; }
15722 _ACEOF
15723 chmod +x $CONFIG_STATUS
15724 ac_clean_files=$ac_clean_files_save
15726 test $ac_write_fail = 0 ||
15727 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15728 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15729 { (exit 1); exit 1; }; }
15732 # configure is writing to config.log, and then calls config.status.
15733 # config.status does its own redirection, appending to config.log.
15734 # Unfortunately, on DOS this fails, as config.log is still kept open
15735 # by configure, so config.status won't be able to write to it; its
15736 # output is simply discarded. So we exec the FD to /dev/null,
15737 # effectively closing config.log, so it can be properly (re)opened and
15738 # appended to by config.status. When coming back to configure, we
15739 # need to make the FD available again.
15740 if test "$no_create" != yes; then
15741 ac_cs_success=:
15742 ac_config_status_args=
15743 test "$silent" = yes &&
15744 ac_config_status_args="$ac_config_status_args --quiet"
15745 exec 5>/dev/null
15746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15747 exec 5>>config.log
15748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15749 # would make configure fail if this is the last instruction.
15750 $ac_cs_success || { (exit 1); exit 1; }
15752 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15753 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15754 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}