2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.37.2.
5 # Report bugs to <http://www.sqlite.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://www.sqlite.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='sqlite'
592 PACKAGE_TARNAME='sqlite'
593 PACKAGE_VERSION='3.37.2'
594 PACKAGE_STRING='sqlite 3.37.2'
595 PACKAGE_BUGREPORT='http://www.sqlite.org'
598 ac_unique_file="sqlite3.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
703 INSTALL_STRIP_PROGRAM
746 program_transform_name
759 enable_option_checking
762 enable_dependency_tracking
774 enable_dynamic_extensions
785 ac_precious_vars='build_alias
797 # Initialize some variables set by options.
799 ac_init_version=false
800 ac_unrecognized_opts=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
811 program_transform_name=s,x,x,
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 runstatedir='${localstatedir}/run'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=no ;;
917 -docdir | --docdir | --docdi | --doc | --do)
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
941 eval enable_$ac_useropt=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
956 -help | --help | --hel | --he | -h)
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1114 -site=* | --site=* | --sit=*)
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval with_$ac_useropt=no ;;
1173 # Obsolete; use --with-x.
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1241 # Be sure to have absolute directory names.
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1345 \`configure' configures sqlite 3.37.2 to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of sqlite 3.37.2:";;
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --disable-largefile omit support for large files
1427 --enable-dependency-tracking
1428 do not reject slow dependency extractors
1429 --disable-dependency-tracking
1430 speeds up one-time build
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --enable-editline use BSD libedit
1437 --enable-readline use readline
1438 --enable-threadsafe build a thread-safe library [default=yes]
1439 --enable-dynamic-extensions
1440 support loadable extensions [default=yes]
1441 --enable-math SQL math functions [default=yes]
1442 --enable-fts4 include fts4 support [default=yes]
1443 --enable-fts3 include fts3 support [default=no]
1444 --enable-fts5 include fts5 support [default=yes]
1445 --enable-json1 include json1 support [default=yes]
1446 --enable-rtree include rtree support [default=yes]
1447 --enable-session enable the session extension [default=no]
1448 --enable-debug build with debugging features enabled [default=no]
1449 --enable-static-shell statically link libsqlite3 into shell tool
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1457 --with-aix-soname=aix|svr4|both
1458 shared library versioning (aka "SONAME") variant to
1459 provide on AIX, [default=aix].
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1462 compiler's sysroot if not specified).
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1473 User-defined run-time library search path.
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to <http://www.sqlite.org>.
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1509 .) # We are building in place.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1542 sqlite configure 3.37.2
1543 generated by GNU Autoconf 2.69
1545 Copyright (C) 2012 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_c_try_link LINENO
1595 # -----------------------
1596 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext conftest$ac_exeext
1601 if { { ac_try="$ac_link"
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_link") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest$ac_exeext && {
1620 test "$cross_compiling" = yes ||
1621 test -x conftest$ac_exeext
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1631 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1632 # interfere with the next link command; also delete a directory that is
1633 # left behind by Apple's compiler. We do this before executing the actions.
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1638 } # ac_fn_c_try_link
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1657 if ac_fn_c_try_compile "$LINENO"; then :
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 } # ac_fn_c_check_header_compile
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } > conftest.i && {
1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1765 #define $2 innocuous_$2
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char $2 (); below.
1769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770 <limits.h> exists even on freestanding compilers. */
1773 # include <limits.h>
1775 # include <assert.h>
1780 /* Override any GCC internal prototype to avoid an error.
1781 Use char because int might match the return type of a GCC
1782 builtin and then its argument prototype would still apply. */
1787 /* The GNU C library defines this for functions which it implements
1788 to always fail with ENOSYS. Some functions are actually named
1789 something starting with __ and the normal name is an alias. */
1790 #if defined __stub_$2 || defined __stub___$2
1802 if ac_fn_c_try_link "$LINENO"; then :
1807 rm -f core conftest.err conftest.$ac_objext \
1808 conftest$ac_exeext conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 } # ac_fn_c_check_func
1817 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1818 # ---------------------------------------------
1819 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1821 ac_fn_c_check_decl ()
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 as_decl_name=`echo $2|sed 's/ *(.*//'`
1825 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1827 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1828 if eval \${$3+:} false; then :
1829 $as_echo_n "(cached) " >&6
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1837 #ifndef $as_decl_name
1839 (void) $as_decl_use;
1841 (void) $as_decl_name;
1849 if ac_fn_c_try_compile "$LINENO"; then :
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 } # ac_fn_c_check_decl
1863 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1864 # -------------------------------------------------------
1865 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1866 # the include files in INCLUDES and setting the cache variable VAR
1868 ac_fn_c_check_header_mongrel ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 if eval \${$3+:} false; then :
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1881 # Is the header compilable?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1883 $as_echo_n "checking $2 usability... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1889 if ac_fn_c_try_compile "$LINENO"; then :
1890 ac_header_compiler=yes
1892 ac_header_compiler=no
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1896 $as_echo "$ac_header_compiler" >&6; }
1898 # Is the header present?
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1900 $as_echo_n "checking $2 presence... " >&6; }
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1905 if ac_fn_c_try_cpp "$LINENO"; then :
1906 ac_header_preproc=yes
1908 ac_header_preproc=no
1910 rm -f conftest.err conftest.i conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1912 $as_echo "$ac_header_preproc" >&6; }
1914 # So? What about this header?
1915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1918 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1924 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1926 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1928 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1930 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ( $as_echo "## ------------------------------------ ##
1934 ## Report this to http://www.sqlite.org ##
1935 ## ------------------------------------ ##"
1936 ) | sed "s/^/$as_me: WARNING: /" >&2
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1944 eval "$3=\$ac_header_compiler"
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_header_mongrel
1953 cat >config.log <<_ACEOF
1954 This file contains any messages produced by compilers while
1955 running configure, to aid debugging if configure makes a mistake.
1957 It was created by sqlite $as_me 3.37.2, which was
1958 generated by GNU Autoconf 2.69. Invocation command line was
1970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1977 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1979 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1980 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1982 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1983 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1984 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1985 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 $as_echo "PATH: $as_dir"
2010 # Keep a trace of the command line.
2011 # Strip out --no-create and --no-recursion so they do not pile up.
2012 # Strip out --silent because we don't want to record it for future runs.
2013 # Also quote any args containing shell meta-characters.
2014 # Make two passes to allow for proper duplicate-argument suppression.
2018 ac_must_keep_next=false
2024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2026 | -silent | --silent | --silen | --sile | --sil)
2029 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2034 as_fn_append ac_configure_args1 " '$ac_arg'"
2035 if test $ac_must_keep_next = true; then
2036 ac_must_keep_next=false # Got value, back to normal.
2039 *=* | --config-cache | -C | -disable-* | --disable-* \
2040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2042 | -with-* | --with-* | -without-* | --without-* | --x)
2043 case "$ac_configure_args0 " in
2044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2047 -* ) ac_must_keep_next=true ;;
2050 as_fn_append ac_configure_args " '$ac_arg'"
2055 { ac_configure_args0=; unset ac_configure_args0;}
2056 { ac_configure_args1=; unset ac_configure_args1;}
2058 # When interrupted or exit'd, cleanup temporary files, and complete
2059 # config.log. We remove comments because anyway the quotes in there
2060 # would cause problems or look ugly.
2061 # WARNING: Use '\'' to represent an apostrophe within the trap.
2062 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2063 trap 'exit_status=$?
2064 # Save into config.log some information that might help in debugging.
2068 $as_echo "## ---------------- ##
2069 ## Cache variables. ##
2070 ## ---------------- ##"
2072 # The following way of writing the cache mishandles newlines in values,
2074 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2075 eval ac_val=\$$ac_var
2079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2083 _ | IFS | as_nl) ;; #(
2084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2085 *) { eval $ac_var=; unset $ac_var;} ;;
2090 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2091 *${as_nl}ac_space=\ *)
2093 "s/'\''/'\''\\\\'\'''\''/g;
2094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2097 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2104 $as_echo "## ----------------- ##
2105 ## Output variables. ##
2106 ## ----------------- ##"
2108 for ac_var in $ac_subst_vars
2110 eval ac_val=\$$ac_var
2112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 $as_echo "$ac_var='\''$ac_val'\''"
2118 if test -n "$ac_subst_files"; then
2119 $as_echo "## ------------------- ##
2120 ## File substitutions. ##
2121 ## ------------------- ##"
2123 for ac_var in $ac_subst_files
2125 eval ac_val=\$$ac_var
2127 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 $as_echo "$ac_var='\''$ac_val'\''"
2134 if test -s confdefs.h; then
2135 $as_echo "## ----------- ##
2142 test "$ac_signal" != 0 &&
2143 $as_echo "$as_me: caught signal $ac_signal"
2144 $as_echo "$as_me: exit $exit_status"
2146 rm -f core *.core core.conftest.* &&
2147 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150 for ac_signal in 1 2 13 15; do
2151 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2155 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2156 rm -f -r conftest* confdefs.h
2158 $as_echo "/* confdefs.h */" > confdefs.h
2160 # Predefined preprocessor variables.
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_URL "$PACKAGE_URL"
2187 # Let the site file select an alternate cache file if it wants to.
2188 # Prefer an explicitly selected file to automatically selected ones.
2191 if test -n "$CONFIG_SITE"; then
2192 # We do not want a PATH search for config.site.
2193 case $CONFIG_SITE in #((
2194 -*) ac_site_file1=./$CONFIG_SITE;;
2195 */*) ac_site_file1=$CONFIG_SITE;;
2196 *) ac_site_file1=./$CONFIG_SITE;;
2198 elif test "x$prefix" != xNONE; then
2199 ac_site_file1=$prefix/share/config.site
2200 ac_site_file2=$prefix/etc/config.site
2202 ac_site_file1=$ac_default_prefix/share/config.site
2203 ac_site_file2=$ac_default_prefix/etc/config.site
2205 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2207 test "x$ac_site_file" = xNONE && continue
2208 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2210 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2211 sed 's/^/| /' "$ac_site_file" >&5
2213 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 as_fn_error $? "failed to load site script $ac_site_file
2216 See \`config.log' for more details" "$LINENO" 5; }
2220 if test -r "$cache_file"; then
2221 # Some versions of bash will fail to source /dev/null (special files
2222 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2223 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2225 $as_echo "$as_me: loading cache $cache_file" >&6;}
2227 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2228 *) . "./$cache_file";;
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2233 $as_echo "$as_me: creating cache $cache_file" >&6;}
2237 # Check that the precious variables saved in the cache have kept the same
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242 eval ac_new_set=\$ac_env_${ac_var}_set
2243 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244 eval ac_new_val=\$ac_env_${ac_var}_value
2245 case $ac_old_set,$ac_new_set in
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249 ac_cache_corrupted=: ;;
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253 ac_cache_corrupted=: ;;
2256 if test "x$ac_old_val" != "x$ac_new_val"; then
2257 # differences in whitespace do not lead to failure.
2258 ac_old_val_w=`echo x $ac_old_val`
2259 ac_new_val_w=`echo x $ac_new_val`
2260 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263 ac_cache_corrupted=:
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267 eval $ac_var=\$ac_old_val
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2270 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 # Pass precious variables to config.status.
2276 if test "$ac_new_set" = set; then
2278 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 *) ac_arg=$ac_var=$ac_new_val ;;
2281 case " $ac_configure_args " in
2282 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2283 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 if $ac_cache_corrupted; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2307 for ac_dir in . "$srcdir"/.; do
2308 if test -f "$ac_dir/install-sh"; then
2310 ac_install_sh="$ac_aux_dir/install-sh -c"
2312 elif test -f "$ac_dir/install.sh"; then
2314 ac_install_sh="$ac_aux_dir/install.sh -c"
2316 elif test -f "$ac_dir/shtool"; then
2318 ac_install_sh="$ac_aux_dir/shtool install -c"
2322 if test -z "$ac_aux_dir"; then
2323 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2326 # These three variables are undocumented and unsupported,
2327 # and are intended to be withdrawn in a future Autoconf release.
2328 # They can cause serious problems if a builder's source tree is in a directory
2329 # whose full name contains unusual characters.
2330 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2331 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2332 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2337 am__api_version='1.15'
2339 # Find a good install program. We prefer a C program (faster),
2340 # so one script is as good as another. But avoid the broken or
2341 # incompatible versions:
2342 # SysV /etc/install, /usr/sbin/install
2343 # SunOS /usr/etc/install
2344 # IRIX /sbin/install
2346 # AmigaOS /C/install, which installs bootblocks on floppy discs
2347 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2348 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2349 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2350 # OS/2's system install, which has a completely different semantic
2351 # ./install, which can be erroneously created by make from ./install.sh.
2352 # Reject install programs that cannot install multiple files.
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2354 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2355 if test -z "$INSTALL"; then
2356 if ${ac_cv_path_install+:} false; then :
2357 $as_echo_n "(cached) " >&6
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 # Account for people who put trailing slashes in PATH elements.
2365 case $as_dir/ in #((
2366 ./ | .// | /[cC]/* | \
2367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2368 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2371 # OSF1 and SCO ODT 3.0 have their own names for install.
2372 # Don't use installbsd from OSF since it installs stuff as root
2374 for ac_prog in ginstall scoinst install; do
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2377 if test $ac_prog = install &&
2378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2379 # AIX install. It has an incompatible calling convention.
2381 elif test $ac_prog = install &&
2382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2383 # program-specific install script used by HP pwplus--don't use.
2386 rm -rf conftest.one conftest.two conftest.dir
2387 echo one > conftest.one
2388 echo two > conftest.two
2390 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2391 test -s conftest.one && test -s conftest.two &&
2392 test -s conftest.dir/conftest.one &&
2393 test -s conftest.dir/conftest.two
2395 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2408 rm -rf conftest.one conftest.two conftest.dir
2411 if test "${ac_cv_path_install+set}" = set; then
2412 INSTALL=$ac_cv_path_install
2414 # As a last resort, use the slow shell script. Don't cache a
2415 # value for INSTALL within a source directory, because that will
2416 # break other packages using the cache if that directory is
2417 # removed, or if the value is a relative name.
2418 INSTALL=$ac_install_sh
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2422 $as_echo "$INSTALL" >&6; }
2424 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2425 # It thinks the first close brace ends the variable substitution.
2426 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2428 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2430 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2433 $as_echo_n "checking whether build environment is sane... " >&6; }
2434 # Reject unsafe characters in $srcdir or the absolute working directory
2435 # name. Accept space and tab only in the latter.
2439 *[\\\"\#\$\&\'\`$am_lf]*)
2440 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2443 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2444 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2447 # Do 'set' in a subshell so we don't clobber the current shell's
2448 # arguments. Must try -L first in case configure is actually a
2449 # symlink; some systems play weird games with the mod time of symlinks
2450 # (eg FreeBSD returns the mod time of the symlink's containing
2454 for am_try in 1 2; do
2455 echo "timestamp, slept: $am_has_slept" > conftest.file
2456 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2457 if test "$*" = "X"; then
2459 set X `ls -t "$srcdir/configure" conftest.file`
2461 if test "$*" != "X $srcdir/configure conftest.file" \
2462 && test "$*" != "X conftest.file $srcdir/configure"; then
2464 # If neither matched, then we have a broken ls. This can happen
2465 # if, for instance, CONFIG_SHELL is bash and it inherits a
2466 # broken ls alias from the environment. This has actually
2467 # happened. Such a system could not be considered "sane".
2468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2469 alias in your environment" "$LINENO" 5
2471 if test "$2" = conftest.file || test $am_try -eq 2; then
2478 test "$2" = conftest.file
2484 as_fn_error $? "newly created file is older than distributed files!
2485 Check your system clock" "$LINENO" 5
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2488 $as_echo "yes" >&6; }
2489 # If we didn't sleep, we still need to ensure time stamps of config.status and
2490 # generated files are strictly newer.
2492 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2499 test "$program_prefix" != NONE &&
2500 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2501 # Use a double $ so make ignores it.
2502 test "$program_suffix" != NONE &&
2503 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2504 # Double any \ or $.
2505 # By default was `s,x,x', remove it if useless.
2506 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2507 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2509 # Expand $ac_aux_dir to an absolute path.
2510 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2512 if test x"${MISSING+set}" != xset; then
2515 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2517 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2520 # Use eval to expand $SHELL
2521 if eval "$MISSING --is-lightweight"; then
2522 am_missing_run="$MISSING "
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2526 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2529 if test x"${install_sh+set}" != xset; then
2532 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2534 install_sh="\${SHELL} $am_aux_dir/install-sh"
2538 # Installed binaries are usually stripped using 'strip' when the user
2539 # run "make install-strip". However 'strip' might not be the right
2540 # tool to use in cross-compilation environments, therefore Automake
2541 # will honor the 'STRIP' environment variable to overrule this program.
2542 if test "$cross_compiling" != no; then
2543 if test -n "$ac_tool_prefix"; then
2544 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2545 set dummy ${ac_tool_prefix}strip; ac_word=$2
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2547 $as_echo_n "checking for $ac_word... " >&6; }
2548 if ${ac_cv_prog_STRIP+:} false; then :
2549 $as_echo_n "(cached) " >&6
2551 if test -n "$STRIP"; then
2552 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir=.
2559 for ac_exec_ext in '' $ac_executable_extensions; do
2560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2561 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 STRIP=$ac_cv_prog_STRIP
2572 if test -n "$STRIP"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2574 $as_echo "$STRIP" >&6; }
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2577 $as_echo "no" >&6; }
2582 if test -z "$ac_cv_prog_STRIP"; then
2584 # Extract the first word of "strip", so it can be a program name with args.
2585 set dummy strip; ac_word=$2
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2587 $as_echo_n "checking for $ac_word... " >&6; }
2588 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2589 $as_echo_n "(cached) " >&6
2591 if test -n "$ac_ct_STRIP"; then
2592 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_prog_ac_ct_STRIP="strip"
2602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2612 if test -n "$ac_ct_STRIP"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2614 $as_echo "$ac_ct_STRIP" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2620 if test "x$ac_ct_STRIP" = x; then
2623 case $cross_compiling:$ac_tool_warned in
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2627 ac_tool_warned=yes ;;
2632 STRIP="$ac_cv_prog_STRIP"
2636 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2639 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2640 if test -z "$MKDIR_P"; then
2641 if ${ac_cv_path_mkdir+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2648 test -z "$as_dir" && as_dir=.
2649 for ac_prog in mkdir gmkdir; do
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2652 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2653 'mkdir (GNU coreutils) '* | \
2654 'mkdir (coreutils) '* | \
2655 'mkdir (fileutils) '4.1*)
2656 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2666 test -d ./--version && rmdir ./--version
2667 if test "${ac_cv_path_mkdir+set}" = set; then
2668 MKDIR_P="$ac_cv_path_mkdir -p"
2670 # As a last resort, use the slow shell script. Don't cache a
2671 # value for MKDIR_P within a source directory, because that will
2672 # break other packages using the cache if that directory is
2673 # removed, or if the value is a relative name.
2674 MKDIR_P="$ac_install_sh -d"
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2678 $as_echo "$MKDIR_P" >&6; }
2680 for ac_prog in gawk mawk nawk awk
2682 # Extract the first word of "$ac_prog", so it can be a program name with args.
2683 set dummy $ac_prog; ac_word=$2
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685 $as_echo_n "checking for $ac_word... " >&6; }
2686 if ${ac_cv_prog_AWK+:} false; then :
2687 $as_echo_n "(cached) " >&6
2689 if test -n "$AWK"; then
2690 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
2698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699 ac_cv_prog_AWK="$ac_prog"
2700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 if test -n "$AWK"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712 $as_echo "$AWK" >&6; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2719 test -n "$AWK" && break
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2725 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727 $as_echo_n "(cached) " >&6
2729 cat >conftest.make <<\_ACEOF
2732 @echo '@@@%%%=$(MAKE)=@@@%%%'
2734 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2737 eval ac_cv_prog_make_${ac_make}_set=yes;;
2739 eval ac_cv_prog_make_${ac_make}_set=no;;
2743 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745 $as_echo "yes" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 SET_MAKE="MAKE=${MAKE-make}"
2753 rm -rf .tst 2>/dev/null
2754 mkdir .tst 2>/dev/null
2755 if test -d .tst; then
2760 rmdir .tst 2>/dev/null
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=1;;
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if $as_echo 'TRUE=$(BAR$(V))
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2787 am_cv_make_support_nested_variables=no
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2801 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2802 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2803 # is not polluted with repeated "-I."
2804 am__isrc=' -I$(srcdir)'
2805 # test to see if srcdir already configured
2806 if test -f $srcdir/config.status; then
2807 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2811 # test whether we have cygpath
2812 if test -z "$CYGPATH_W"; then
2813 if (cygpath --version) >/dev/null 2>/dev/null; then
2814 CYGPATH_W='cygpath -w'
2821 # Define the identity of the package.
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE "$PACKAGE"
2831 cat >>confdefs.h <<_ACEOF
2832 #define VERSION "$VERSION"
2835 # Some tools Automake needs.
2837 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2840 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2843 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2846 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2849 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2851 # For better backward compatibility. To be removed once Automake 1.9.x
2852 # dies out for good. For more background, see:
2853 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2854 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2855 mkdir_p='$(MKDIR_P)'
2857 # We need awk for the "check" target (and possibly the TAP driver). The
2858 # system "awk" is bad on some platforms.
2859 # Always define AMTAR for backward compatibility. Yes, it's still used
2860 # in the wild :-( We should find a proper way to deprecate it ...
2864 # We'll loop over all known methods to create a tar archive until one works.
2865 _am_tools='gnutar pax cpio none'
2867 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2874 # POSIX will say in a future version that running "rm -f" with no argument
2875 # is OK; and we want to be able to make that assumption in our Makefile
2876 # recipes. So use an aggressive probe to check that the usage we want is
2877 # actually supported "in the wild" to an acceptable degree.
2878 # See automake bug#10828.
2879 # To make any issue more visible, cause the running configure to be aborted
2880 # by default if the 'rm' program in use doesn't match our expectations; the
2881 # user can still override this though.
2882 if rm -f && rm -fr && rm -rf; then : OK; else
2886 Your 'rm' program seems unable to run without file operands specified
2887 on the command line, even when the '-f' option is present. This is contrary
2888 to the behaviour of most rm programs out there, and not conforming with
2889 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2891 Please tell bug-automake@gnu.org about your system, including the value
2892 of your $PATH and any error possibly output before this message. This
2893 can help us improve future automake versions.
2896 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2897 echo 'Configuration will proceed anyway, since you have set the' >&2
2898 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2902 Aborting the configuration process, to ensure you take notice of the issue.
2904 You can download and install GNU coreutils to get an 'rm' implementation
2905 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2907 If you want to complete the configuration process using your problematic
2908 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2909 to "yes", and re-run configure.
2912 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2917 DEPDIR="${am__leading_dot}deps"
2919 ac_config_commands="$ac_config_commands depfiles"
2922 am_make=${MAKE-make}
2923 cat > confinc << 'END'
2925 @echo this is the am__doit target
2928 # If we don't find an include directive, just comment out the code.
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2930 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2934 # First try GNU make style include.
2935 echo "include confinc" > confmf
2936 # Ignore all kinds of additional output from 'make'.
2937 case `$am_make -s -f confmf 2> /dev/null` in #(
2938 *the\ am__doit\ target*)
2944 # Now try BSD make style include.
2945 if test "$am__include" = "#"; then
2946 echo '.include "confinc"' > confmf
2947 case `$am_make -s -f confmf 2> /dev/null` in #(
2948 *the\ am__doit\ target*)
2949 am__include=.include
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2958 $as_echo "$_am_result" >&6; }
2959 rm -f confinc confmf
2961 # Check whether --enable-dependency-tracking was given.
2962 if test "${enable_dependency_tracking+set}" = set; then :
2963 enableval=$enable_dependency_tracking;
2966 if test "x$enable_dependency_tracking" != xno; then
2967 am_depcomp="$ac_aux_dir/depcomp"
2971 if test "x$enable_dependency_tracking" != xno; then
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3024 if test -z "$ac_cv_prog_CC"; then
3026 # Extract the first word of "gcc", so it can be a program name with args.
3027 set dummy gcc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3033 if test -n "$ac_ct_CC"; then
3034 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_ac_ct_CC="gcc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 $as_echo "$ac_ct_CC" >&6; }
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 $as_echo "no" >&6; }
3062 if test "x$ac_ct_CC" = x; then
3065 case $cross_compiling:$ac_tool_warned in
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069 ac_tool_warned=yes ;;
3077 if test -z "$CC"; then
3078 if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3080 set dummy ${ac_tool_prefix}cc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_CC+:} false; then :
3084 $as_echo_n "(cached) " >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_CC="${ac_tool_prefix}cc"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109 $as_echo "$CC" >&6; }
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3118 if test -z "$CC"; then
3119 # Extract the first word of "cc", so it can be a program name with args.
3120 set dummy cc; ac_word=$2
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; }
3123 if ${ac_cv_prog_CC+:} false; then :
3124 $as_echo_n "(cached) " >&6
3126 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3138 ac_prog_rejected=yes
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test $ac_prog_rejected = yes; then
3150 # We found a bogon in the path, so make sure we never use it.
3151 set dummy $ac_cv_prog_CC
3153 if test $# != 0; then
3154 # We chose a different compiler from the bogus one.
3155 # However, it has the same basename, so the bogon will be chosen
3156 # first if we set CC to just the basename; use the full file name.
3158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3164 if test -n "$CC"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3166 $as_echo "$CC" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3174 if test -z "$CC"; then
3175 if test -n "$ac_tool_prefix"; then
3176 for ac_prog in cl.exe
3178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3179 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181 $as_echo_n "checking for $ac_word... " >&6; }
3182 if ${ac_cv_prog_CC+:} false; then :
3183 $as_echo_n "(cached) " >&6
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
3188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3195 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208 $as_echo "$CC" >&6; }
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3215 test -n "$CC" && break
3218 if test -z "$CC"; then
3220 for ac_prog in cl.exe
3222 # Extract the first word of "$ac_prog", so it can be a program name with args.
3223 set dummy $ac_prog; ac_word=$2
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3225 $as_echo_n "checking for $ac_word... " >&6; }
3226 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_ac_ct_CC="$ac_prog"
3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3252 $as_echo "$ac_ct_CC" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3259 test -n "$ac_ct_CC" && break
3262 if test "x$ac_ct_CC" = x; then
3265 case $cross_compiling:$ac_tool_warned in
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3269 ac_tool_warned=yes ;;
3278 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3280 as_fn_error $? "no acceptable C compiler found in \$PATH
3281 See \`config.log' for more details" "$LINENO" 5; }
3283 # Provide some information about the compiler.
3284 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3287 for ac_option in --version -v -V -qversion; do
3288 { { ac_try="$ac_compiler $ac_option >&5"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3297 if test -s conftest.err; then
3299 ... rest of stderr output deleted ...
3300 10q' conftest.err >conftest.er1
3301 cat conftest.er1 >&5
3303 rm -f conftest.er1 conftest.err
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3319 ac_clean_files_save=$ac_clean_files
3320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3321 # Try to create an executable without -o first, disregard a.out.
3322 # It will help us diagnose broken compilers, and finding out an intuition
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3325 $as_echo_n "checking whether the C compiler works... " >&6; }
3326 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3328 # The possible output files:
3329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3332 for ac_file in $ac_files
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3341 if { { ac_try="$ac_link_default"
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_link_default") 2>&5
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; then :
3352 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3353 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3354 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3355 # so that the user can short-circuit this test for compilers unknown to
3357 for ac_file in $ac_files ''
3359 test -f "$ac_file" || continue
3361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3364 # We found the default executable, but exeext='' is most
3368 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3370 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 # We set ac_cv_exeext here because the later test for it is not
3373 # safe: cross compilers may not add the suffix if given an `-o'
3374 # argument, so we may need to know it at that point already.
3375 # Even if this section looks crufty: it has the advantage of
3382 test "$ac_cv_exeext" = no && ac_cv_exeext=
3387 if test -z "$ac_file"; then :
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 $as_echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error 77 "C compiler cannot create executables
3396 See \`config.log' for more details" "$LINENO" 5; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3399 $as_echo "yes" >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3402 $as_echo_n "checking for C compiler default output file name... " >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3404 $as_echo "$ac_file" >&6; }
3405 ac_exeext=$ac_cv_exeext
3407 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3408 ac_clean_files=$ac_clean_files_save
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3410 $as_echo_n "checking for suffix of executables... " >&6; }
3411 if { { ac_try="$ac_link"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417 $as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_link") 2>&5
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; then :
3422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3423 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3424 # work properly (i.e., refer to `conftest.exe'), while it won't with
3426 for ac_file in conftest.exe conftest conftest.*; do
3427 test -f "$ac_file" || continue
3429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3438 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3439 See \`config.log' for more details" "$LINENO" 5; }
3441 rm -f conftest conftest$ac_cv_exeext
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3443 $as_echo "$ac_cv_exeext" >&6; }
3445 rm -f conftest.$ac_ext
3446 EXEEXT=$ac_cv_exeext
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3454 FILE *f = fopen ("conftest.out", "w");
3455 return ferror (f) || fclose (f) != 0;
3461 ac_clean_files="$ac_clean_files conftest.out"
3462 # Check that the compiler produces executables we can run. If not, either
3463 # the compiler is broken, or we cross compile.
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3465 $as_echo_n "checking whether we are cross compiling... " >&6; }
3466 if test "$cross_compiling" != yes; then
3467 { { ac_try="$ac_link"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473 $as_echo "$ac_try_echo"; } >&5
3474 (eval "$ac_link") 2>&5
3476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477 test $ac_status = 0; }
3478 if { ac_try='./conftest$ac_cv_exeext'
3479 { { case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_try") 2>&5
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; }; then
3491 if test "$cross_compiling" = maybe; then
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error $? "cannot run C compiled programs.
3497 If you meant to cross compile, use \`--host'.
3498 See \`config.log' for more details" "$LINENO" 5; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3503 $as_echo "$cross_compiling" >&6; }
3505 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3506 ac_clean_files=$ac_clean_files_save
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3508 $as_echo_n "checking for suffix of object files... " >&6; }
3509 if ${ac_cv_objext+:} false; then :
3510 $as_echo_n "(cached) " >&6
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3523 rm -f conftest.o conftest.obj
3524 if { { ac_try="$ac_compile"
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_compile") 2>&5
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 for ac_file in conftest.o conftest.obj conftest.*; do
3536 test -f "$ac_file" || continue;
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3544 $as_echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3549 as_fn_error $? "cannot compute suffix of object files: cannot compile
3550 See \`config.log' for more details" "$LINENO" 5; }
3552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3555 $as_echo "$ac_cv_objext" >&6; }
3556 OBJEXT=$ac_cv_objext
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3559 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3560 if ${ac_cv_c_compiler_gnu+:} false; then :
3561 $as_echo_n "(cached) " >&6
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3577 if ac_fn_c_try_compile "$LINENO"; then :
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3587 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3588 if test $ac_compiler_gnu = yes; then
3593 ac_test_CFLAGS=${CFLAGS+set}
3594 ac_save_CFLAGS=$CFLAGS
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3596 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3597 if ${ac_cv_prog_cc_g+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 ac_save_c_werror_flag=$ac_c_werror_flag
3601 ac_c_werror_flag=yes
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 if ac_fn_c_try_compile "$LINENO"; then :
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3630 if ac_fn_c_try_compile "$LINENO"; then :
3633 ac_c_werror_flag=$ac_save_c_werror_flag
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3646 if ac_fn_c_try_compile "$LINENO"; then :
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 ac_c_werror_flag=$ac_save_c_werror_flag
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3657 $as_echo "$ac_cv_prog_cc_g" >&6; }
3658 if test "$ac_test_CFLAGS" = set; then
3659 CFLAGS=$ac_save_CFLAGS
3660 elif test $ac_cv_prog_cc_g = yes; then
3661 if test "$GCC" = yes; then
3667 if test "$GCC" = yes; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3675 if ${ac_cv_prog_cc_c89+:} false; then :
3676 $as_echo_n "(cached) " >&6
3678 ac_cv_prog_cc_c89=no
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3686 struct buf { int x; };
3687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3688 static char *e (p, i)
3694 static char *f (char * (*g) (char **, int), char **p, ...)
3699 s = g (p, va_arg (v,int));
3704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3705 function prototypes and stuff, but not '\xHH' hex character constants.
3706 These don't provoke an error unfortunately, instead are silently treated
3707 as 'x'. The following induces an error, until -std is added to get
3708 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3709 array size at least. It's necessary to write '\x00'==0 to get something
3710 that's true only with -std. */
3711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3714 inside strings and character constants. */
3716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3718 int test (int i, double x);
3719 struct s1 {int (*f) (int a);};
3720 struct s2 {int (*f) (double a);};
3721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3727 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3733 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3735 CC="$ac_save_CC $ac_arg"
3736 if ac_fn_c_try_compile "$LINENO"; then :
3737 ac_cv_prog_cc_c89=$ac_arg
3739 rm -f core conftest.err conftest.$ac_objext
3740 test "x$ac_cv_prog_cc_c89" != "xno" && break
3742 rm -f conftest.$ac_ext
3747 case "x$ac_cv_prog_cc_c89" in
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3750 $as_echo "none needed" >&6; } ;;
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3753 $as_echo "unsupported" >&6; } ;;
3755 CC="$CC $ac_cv_prog_cc_c89"
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3757 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3759 if test "x$ac_cv_prog_cc_c89" != xno; then :
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3775 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3776 if ${am_cv_prog_cc_c_o+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3790 # Make sure it works both with $CC and with simple cc.
3791 # Following AC_PROG_CC_C_O, we do the test twice because some
3792 # compilers refuse to overwrite an existing .o file with -o,
3793 # though they will create one.
3794 am_cv_prog_cc_c_o=yes
3796 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3797 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } \
3801 && test -f conftest2.$ac_objext; then
3804 am_cv_prog_cc_c_o=no
3808 rm -f core conftest*
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3812 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3813 if test "$am_cv_prog_cc_c_o" != yes; then
3814 # Losing compiler, so override with the script.
3815 # FIXME: It is wrong to rewrite CC.
3816 # But if we don't then we get into trouble of one sort or another.
3817 # A longer-term fix would be to have automake use am__CC in this case,
3818 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3819 CC="$am_aux_dir/compile $CC"
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828 depcc="$CC" am_compiler_list=
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3831 $as_echo_n "checking dependency style of $depcc... " >&6; }
3832 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3833 $as_echo_n "(cached) " >&6
3835 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3836 # We make a subdir and do the tests there. Otherwise we can end up
3837 # making bogus files that we don't know about and never remove. For
3838 # instance it was reported that on HP-UX the gcc test will end up
3839 # making a dummy file named 'D' -- because '-MD' means "put the output
3843 # Copy depcomp to subdir because otherwise we won't find it if we're
3844 # using a relative directory.
3845 cp "$am_depcomp" conftest.dir
3847 # We will build objects and dependencies in a subdirectory because
3848 # it helps to detect inapplicable dependency modes. For instance
3849 # both Tru64's cc and ICC support -MD to output dependencies as a
3850 # side effect of compilation, but ICC will put the dependencies in
3851 # the current directory while Tru64 will put them in the object
3855 am_cv_CC_dependencies_compiler_type=none
3856 if test "$am_compiler_list" = ""; then
3857 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3860 case " $depcc " in #(
3861 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3864 for depmode in $am_compiler_list; do
3865 # Setup a source with many dependencies, because some compilers
3866 # like to wrap large dependency lists on column 80 (with \), and
3867 # we should not choose a depcomp mode which is confused by this.
3869 # We need to recreate these files for each test, as the compiler may
3870 # overwrite some of them when testing with obscure command lines.
3871 # This happens at least with the AIX C compiler.
3873 for i in 1 2 3 4 5 6; do
3874 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3875 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3876 # Solaris 10 /bin/sh.
3877 echo '/* dummy */' > sub/conftst$i.h
3879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3882 # mode. It turns out that the SunPro C++ compiler does not properly
3883 # handle '-M -o', and we need to detect this. Also, some Intel
3884 # versions had trouble with output in subdirs.
3885 am__obj=sub/conftest.${OBJEXT-o}
3886 am__minus_obj="-o $am__obj"
3889 # This depmode causes a compiler race in universal mode.
3890 test "$am__universal" = false || continue
3893 # After this tag, mechanisms are not by side-effect, so they'll
3894 # only be used when explicitly requested.
3895 if test "x$enable_dependency_tracking" = xyes; then
3901 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3902 # This compiler won't grok '-c -o', but also, the minuso test has
3903 # not run yet. These depmodes are late enough in the game, and
3904 # so weak that their functioning should not be impacted.
3905 am__obj=conftest.${OBJEXT-o}
3910 if depmode=$depmode \
3911 source=sub/conftest.c object=$am__obj \
3912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3914 >/dev/null 2>conftest.err &&
3915 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3917 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3918 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3919 # icc doesn't choke on unknown options, it will just issue warnings
3920 # or remarks (even with -Werror). So we grep stderr for any message
3921 # that says an option was ignored or not supported.
3922 # When given -MP, icc 7.0 and 7.1 complain thusly:
3923 # icc: Command line warning: ignoring option '-M'; no argument required
3924 # The diagnosis changed in icc 8.0:
3925 # icc: Command line remark: option '-MP' not supported
3926 if (grep 'ignoring option' conftest.err ||
3927 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3928 am_cv_CC_dependencies_compiler_type=$depmode
3937 am_cv_CC_dependencies_compiler_type=none
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3942 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3943 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3946 test "x$enable_dependency_tracking" != xno \
3947 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCC_FALSE='#'
3951 am__fastdepCC_TRUE='#'
3952 am__fastdepCC_FALSE=
3957 # Check whether --enable-largefile was given.
3958 if test "${enable_largefile+set}" = set; then :
3959 enableval=$enable_largefile;
3962 if test "$enable_largefile" != no; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3965 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3966 if ${ac_cv_sys_largefile_CC+:} false; then :
3967 $as_echo_n "(cached) " >&6
3969 ac_cv_sys_largefile_CC=no
3970 if test "$GCC" != yes; then
3973 # IRIX 6.2 and later do not support large files by default,
3974 # so use the C compiler's -n32 option if that helps.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3977 #include <sys/types.h>
3978 /* Check that off_t can represent 2**63 - 1 correctly.
3979 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3980 since some C++ compilers masquerading as C compilers
3981 incorrectly reject 9223372036854775807. */
3982 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
3983 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3984 && LARGE_OFF_T % 2147483647 == 1)
3994 if ac_fn_c_try_compile "$LINENO"; then :
3997 rm -f core conftest.err conftest.$ac_objext
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_sys_largefile_CC=' -n32'; break
4002 rm -f core conftest.err conftest.$ac_objext
4006 rm -f conftest.$ac_ext
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4010 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4011 if test "$ac_cv_sys_largefile_CC" != no; then
4012 CC=$CC$ac_cv_sys_largefile_CC
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4016 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4017 if ${ac_cv_sys_file_offset_bits+:} false; then :
4018 $as_echo_n "(cached) " >&6
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <sys/types.h>
4024 /* Check that off_t can represent 2**63 - 1 correctly.
4025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4026 since some C++ compilers masquerading as C compilers
4027 incorrectly reject 9223372036854775807. */
4028 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4030 && LARGE_OFF_T % 2147483647 == 1)
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_sys_file_offset_bits=no; break
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #define _FILE_OFFSET_BITS 64
4047 #include <sys/types.h>
4048 /* Check that off_t can represent 2**63 - 1 correctly.
4049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050 since some C++ compilers masquerading as C compilers
4051 incorrectly reject 9223372036854775807. */
4052 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054 && LARGE_OFF_T % 2147483647 == 1)
4064 if ac_fn_c_try_compile "$LINENO"; then :
4065 ac_cv_sys_file_offset_bits=64; break
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_sys_file_offset_bits=unknown
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4073 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4074 case $ac_cv_sys_file_offset_bits in #(
4077 cat >>confdefs.h <<_ACEOF
4078 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4083 if test $ac_cv_sys_file_offset_bits = unknown; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4085 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4086 if ${ac_cv_sys_large_files+:} false; then :
4087 $as_echo_n "(cached) " >&6
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 /* Check that off_t can represent 2**63 - 1 correctly.
4094 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4095 since some C++ compilers masquerading as C compilers
4096 incorrectly reject 9223372036854775807. */
4097 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4098 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4099 && LARGE_OFF_T % 2147483647 == 1)
4109 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_cv_sys_large_files=no; break
4112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 #define _LARGE_FILES 1
4116 #include <sys/types.h>
4117 /* Check that off_t can represent 2**63 - 1 correctly.
4118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4119 since some C++ compilers masquerading as C compilers
4120 incorrectly reject 9223372036854775807. */
4121 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4123 && LARGE_OFF_T % 2147483647 == 1)
4133 if ac_fn_c_try_compile "$LINENO"; then :
4134 ac_cv_sys_large_files=1; break
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_sys_large_files=unknown
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4142 $as_echo "$ac_cv_sys_large_files" >&6; }
4143 case $ac_cv_sys_large_files in #(
4146 cat >>confdefs.h <<_ACEOF
4147 #define _LARGE_FILES $ac_cv_sys_large_files
4158 # Check for required programs.
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4166 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_CC+:} false; then :
4170 $as_echo_n "(cached) " >&6
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 if test -n "$CC"; then
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195 $as_echo "$CC" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4203 if test -z "$ac_cv_prog_CC"; then
4205 # Extract the first word of "gcc", so it can be a program name with args.
4206 set dummy gcc; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4210 $as_echo_n "(cached) " >&6
4212 if test -n "$ac_ct_CC"; then
4213 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_ac_ct_CC="gcc"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4233 if test -n "$ac_ct_CC"; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4235 $as_echo "$ac_ct_CC" >&6; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 $as_echo "no" >&6; }
4241 if test "x$ac_ct_CC" = x; then
4244 case $cross_compiling:$ac_tool_warned in
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4248 ac_tool_warned=yes ;;
4256 if test -z "$CC"; then
4257 if test -n "$ac_tool_prefix"; then
4258 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4259 set dummy ${ac_tool_prefix}cc; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_CC+:} false; then :
4263 $as_echo_n "(cached) " >&6
4265 if test -n "$CC"; then
4266 ac_cv_prog_CC="$CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_CC="${ac_tool_prefix}cc"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 if test -n "$CC"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4288 $as_echo "$CC" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4297 if test -z "$CC"; then
4298 # Extract the first word of "cc", so it can be a program name with args.
4299 set dummy cc; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_CC+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -n "$CC"; then
4306 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4317 ac_prog_rejected=yes
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 if test $ac_prog_rejected = yes; then
4329 # We found a bogon in the path, so make sure we never use it.
4330 set dummy $ac_cv_prog_CC
4332 if test $# != 0; then
4333 # We chose a different compiler from the bogus one.
4334 # However, it has the same basename, so the bogon will be chosen
4335 # first if we set CC to just the basename; use the full file name.
4337 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4343 if test -n "$CC"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4345 $as_echo "$CC" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4353 if test -z "$CC"; then
4354 if test -n "$ac_tool_prefix"; then
4355 for ac_prog in cl.exe
4357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_CC+:} false; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$CC"; then
4365 ac_cv_prog_CC="$CC" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 if test -n "$CC"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4387 $as_echo "$CC" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4394 test -n "$CC" && break
4397 if test -z "$CC"; then
4399 for ac_prog in cl.exe
4401 # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4406 $as_echo_n "(cached) " >&6
4408 if test -n "$ac_ct_CC"; then
4409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_ac_ct_CC="$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4429 if test -n "$ac_ct_CC"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4431 $as_echo "$ac_ct_CC" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 test -n "$ac_ct_CC" && break
4441 if test "x$ac_ct_CC" = x; then
4444 case $cross_compiling:$ac_tool_warned in
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4457 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "no acceptable C compiler found in \$PATH
4460 See \`config.log' for more details" "$LINENO" 5; }
4462 # Provide some information about the compiler.
4463 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4466 for ac_option in --version -v -V -qversion; do
4467 { { ac_try="$ac_compiler $ac_option >&5"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4473 $as_echo "$ac_try_echo"; } >&5
4474 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4476 if test -s conftest.err; then
4478 ... rest of stderr output deleted ...
4479 10q' conftest.err >conftest.er1
4480 cat conftest.er1 >&5
4482 rm -f conftest.er1 conftest.err
4483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484 test $ac_status = 0; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4488 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4489 if ${ac_cv_c_compiler_gnu+:} false; then :
4490 $as_echo_n "(cached) " >&6
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4506 if ac_fn_c_try_compile "$LINENO"; then :
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4517 if test $ac_compiler_gnu = yes; then
4522 ac_test_CFLAGS=${CFLAGS+set}
4523 ac_save_CFLAGS=$CFLAGS
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4526 if ${ac_cv_prog_cc_g+:} false; then :
4527 $as_echo_n "(cached) " >&6
4529 ac_save_c_werror_flag=$ac_c_werror_flag
4530 ac_c_werror_flag=yes
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4544 if ac_fn_c_try_compile "$LINENO"; then :
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4559 if ac_fn_c_try_compile "$LINENO"; then :
4562 ac_c_werror_flag=$ac_save_c_werror_flag
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4575 if ac_fn_c_try_compile "$LINENO"; then :
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_c_werror_flag=$ac_save_c_werror_flag
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586 $as_echo "$ac_cv_prog_cc_g" >&6; }
4587 if test "$ac_test_CFLAGS" = set; then
4588 CFLAGS=$ac_save_CFLAGS
4589 elif test $ac_cv_prog_cc_g = yes; then
4590 if test "$GCC" = yes; then
4596 if test "$GCC" = yes; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604 if ${ac_cv_prog_cc_c89+:} false; then :
4605 $as_echo_n "(cached) " >&6
4607 ac_cv_prog_cc_c89=no
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4614 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4615 struct buf { int x; };
4616 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617 static char *e (p, i)
4623 static char *f (char * (*g) (char **, int), char **p, ...)
4628 s = g (p, va_arg (v,int));
4633 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4634 function prototypes and stuff, but not '\xHH' hex character constants.
4635 These don't provoke an error unfortunately, instead are silently treated
4636 as 'x'. The following induces an error, until -std is added to get
4637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4638 array size at least. It's necessary to write '\x00'==0 to get something
4639 that's true only with -std. */
4640 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4642 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643 inside strings and character constants. */
4645 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4647 int test (int i, double x);
4648 struct s1 {int (*f) (int a);};
4649 struct s2 {int (*f) (double a);};
4650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4656 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4661 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4662 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4664 CC="$ac_save_CC $ac_arg"
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_prog_cc_c89=$ac_arg
4668 rm -f core conftest.err conftest.$ac_objext
4669 test "x$ac_cv_prog_cc_c89" != "xno" && break
4671 rm -f conftest.$ac_ext
4676 case "x$ac_cv_prog_cc_c89" in
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4679 $as_echo "none needed" >&6; } ;;
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4682 $as_echo "unsupported" >&6; } ;;
4684 CC="$CC $ac_cv_prog_cc_c89"
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4686 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4688 if test "x$ac_cv_prog_cc_c89" != xno; then :
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 ac_cpp='$CPP $CPPFLAGS'
4700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4704 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4705 if ${am_cv_prog_cc_c_o+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4719 # Make sure it works both with $CC and with simple cc.
4720 # Following AC_PROG_CC_C_O, we do the test twice because some
4721 # compilers refuse to overwrite an existing .o file with -o,
4722 # though they will create one.
4723 am_cv_prog_cc_c_o=yes
4725 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4726 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } \
4730 && test -f conftest2.$ac_objext; then
4733 am_cv_prog_cc_c_o=no
4737 rm -f core conftest*
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4741 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4742 if test "$am_cv_prog_cc_c_o" != yes; then
4743 # Losing compiler, so override with the script.
4744 # FIXME: It is wrong to rewrite CC.
4745 # But if we don't then we get into trouble of one sort or another.
4746 # A longer-term fix would be to have automake use am__CC in this case,
4747 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4748 CC="$am_aux_dir/compile $CC"
4751 ac_cpp='$CPP $CPPFLAGS'
4752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757 depcc="$CC" am_compiler_list=
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760 $as_echo_n "checking dependency style of $depcc... " >&6; }
4761 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4762 $as_echo_n "(cached) " >&6
4764 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4765 # We make a subdir and do the tests there. Otherwise we can end up
4766 # making bogus files that we don't know about and never remove. For
4767 # instance it was reported that on HP-UX the gcc test will end up
4768 # making a dummy file named 'D' -- because '-MD' means "put the output
4772 # Copy depcomp to subdir because otherwise we won't find it if we're
4773 # using a relative directory.
4774 cp "$am_depcomp" conftest.dir
4776 # We will build objects and dependencies in a subdirectory because
4777 # it helps to detect inapplicable dependency modes. For instance
4778 # both Tru64's cc and ICC support -MD to output dependencies as a
4779 # side effect of compilation, but ICC will put the dependencies in
4780 # the current directory while Tru64 will put them in the object
4784 am_cv_CC_dependencies_compiler_type=none
4785 if test "$am_compiler_list" = ""; then
4786 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4789 case " $depcc " in #(
4790 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4793 for depmode in $am_compiler_list; do
4794 # Setup a source with many dependencies, because some compilers
4795 # like to wrap large dependency lists on column 80 (with \), and
4796 # we should not choose a depcomp mode which is confused by this.
4798 # We need to recreate these files for each test, as the compiler may
4799 # overwrite some of them when testing with obscure command lines.
4800 # This happens at least with the AIX C compiler.
4802 for i in 1 2 3 4 5 6; do
4803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4804 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4805 # Solaris 10 /bin/sh.
4806 echo '/* dummy */' > sub/conftst$i.h
4808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4810 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4811 # mode. It turns out that the SunPro C++ compiler does not properly
4812 # handle '-M -o', and we need to detect this. Also, some Intel
4813 # versions had trouble with output in subdirs.
4814 am__obj=sub/conftest.${OBJEXT-o}
4815 am__minus_obj="-o $am__obj"
4818 # This depmode causes a compiler race in universal mode.
4819 test "$am__universal" = false || continue
4822 # After this tag, mechanisms are not by side-effect, so they'll
4823 # only be used when explicitly requested.
4824 if test "x$enable_dependency_tracking" = xyes; then
4830 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4831 # This compiler won't grok '-c -o', but also, the minuso test has
4832 # not run yet. These depmodes are late enough in the game, and
4833 # so weak that their functioning should not be impacted.
4834 am__obj=conftest.${OBJEXT-o}
4839 if depmode=$depmode \
4840 source=sub/conftest.c object=$am__obj \
4841 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4842 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4843 >/dev/null 2>conftest.err &&
4844 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4845 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4846 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4847 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4848 # icc doesn't choke on unknown options, it will just issue warnings
4849 # or remarks (even with -Werror). So we grep stderr for any message
4850 # that says an option was ignored or not supported.
4851 # When given -MP, icc 7.0 and 7.1 complain thusly:
4852 # icc: Command line warning: ignoring option '-M'; no argument required
4853 # The diagnosis changed in icc 8.0:
4854 # icc: Command line remark: option '-MP' not supported
4855 if (grep 'ignoring option' conftest.err ||
4856 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4857 am_cv_CC_dependencies_compiler_type=$depmode
4866 am_cv_CC_dependencies_compiler_type=none
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4871 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4872 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4875 test "x$enable_dependency_tracking" != xno \
4876 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4878 am__fastdepCC_FALSE='#'
4880 am__fastdepCC_TRUE='#'
4881 am__fastdepCC_FALSE=
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4888 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4893 macro_version='2.4.6'
4894 macro_revision='2.4.6'
4908 ltmain=$ac_aux_dir/ltmain.sh
4910 # Make sure we can run config.sub.
4911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4912 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4915 $as_echo_n "checking build system type... " >&6; }
4916 if ${ac_cv_build+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 ac_build_alias=$build_alias
4920 test "x$ac_build_alias" = x &&
4921 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4922 test "x$ac_build_alias" = x &&
4923 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4929 $as_echo "$ac_cv_build" >&6; }
4930 case $ac_cv_build in
4932 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4935 ac_save_IFS=$IFS; IFS='-'
4941 # Remember, the first character of IFS is used to create $*,
4942 # except with old shells:
4945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4949 $as_echo_n "checking host system type... " >&6; }
4950 if ${ac_cv_host+:} false; then :
4951 $as_echo_n "(cached) " >&6
4953 if test "x$host_alias" = x; then
4954 ac_cv_host=$ac_cv_build
4956 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4957 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4962 $as_echo "$ac_cv_host" >&6; }
4965 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4968 ac_save_IFS=$IFS; IFS='-'
4974 # Remember, the first character of IFS is used to create $*,
4975 # except with old shells:
4978 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4981 # Backslashify metacharacters that are still active within
4982 # double-quoted strings.
4983 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4985 # Same as above, but do not quote variable references.
4986 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4988 # Sed substitution to delay expansion of an escaped shell variable in a
4989 # double_quote_subst'ed string.
4990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4992 # Sed substitution to delay expansion of an escaped single quote.
4993 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4995 # Sed substitution to avoid accidental globbing in evaled expressions
4996 no_glob_subst='s/\*/\\\*/g'
4998 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4999 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5000 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5003 $as_echo_n "checking how to print strings... " >&6; }
5004 # Test print first, because it will be a builtin if present.
5005 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5006 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5008 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5011 # Use this function as a fallback that always works.
5012 func_fallback_echo ()
5014 eval 'cat <<_LTECHO_EOF
5018 ECHO='func_fallback_echo'
5021 # func_echo_all arg...
5022 # Invoke $ECHO with all args, space-separated.
5029 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5030 $as_echo "printf" >&6; } ;;
5031 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5032 $as_echo "print -r" >&6; } ;;
5033 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5034 $as_echo "cat" >&6; } ;;
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5051 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5052 if ${ac_cv_path_SED+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5056 for ac_i in 1 2 3 4 5 6 7; do
5057 ac_script="$ac_script$as_nl$ac_script"
5059 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5060 { ac_script=; unset ac_script;}
5061 if test -z "$SED"; then
5062 ac_path_SED_found=false
5063 # Loop through the user's path and test for each of PROGNAME-LIST
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 test -z "$as_dir" && as_dir=.
5069 for ac_prog in sed gsed; do
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5072 as_fn_executable_p "$ac_path_SED" || continue
5073 # Check for GNU ac_path_SED and select it if it is found.
5074 # Check for GNU $ac_path_SED
5075 case `"$ac_path_SED" --version 2>&1` in
5077 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5080 $as_echo_n 0123456789 >"conftest.in"
5083 cat "conftest.in" "conftest.in" >"conftest.tmp"
5084 mv "conftest.tmp" "conftest.in"
5085 cp "conftest.in" "conftest.nl"
5086 $as_echo '' >> "conftest.nl"
5087 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5088 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5089 as_fn_arith $ac_count + 1 && ac_count=$as_val
5090 if test $ac_count -gt ${ac_path_SED_max-0}; then
5091 # Best one so far, save it but keep looking for a better one
5092 ac_cv_path_SED="$ac_path_SED"
5093 ac_path_SED_max=$ac_count
5095 # 10*(2^10) chars as input seems more than enough
5096 test $ac_count -gt 10 && break
5098 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5101 $ac_path_SED_found && break 3
5106 if test -z "$ac_cv_path_SED"; then
5107 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5115 $as_echo "$ac_cv_path_SED" >&6; }
5116 SED="$ac_cv_path_SED"
5119 test -z "$SED" && SED=sed
5120 Xsed="$SED -e 1s/^X//"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5133 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5134 if ${ac_cv_path_GREP+:} false; then :
5135 $as_echo_n "(cached) " >&6
5137 if test -z "$GREP"; then
5138 ac_path_GREP_found=false
5139 # Loop through the user's path and test for each of PROGNAME-LIST
5140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144 test -z "$as_dir" && as_dir=.
5145 for ac_prog in grep ggrep; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5148 as_fn_executable_p "$ac_path_GREP" || continue
5149 # Check for GNU ac_path_GREP and select it if it is found.
5150 # Check for GNU $ac_path_GREP
5151 case `"$ac_path_GREP" --version 2>&1` in
5153 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5156 $as_echo_n 0123456789 >"conftest.in"
5159 cat "conftest.in" "conftest.in" >"conftest.tmp"
5160 mv "conftest.tmp" "conftest.in"
5161 cp "conftest.in" "conftest.nl"
5162 $as_echo 'GREP' >> "conftest.nl"
5163 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165 as_fn_arith $ac_count + 1 && ac_count=$as_val
5166 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5167 # Best one so far, save it but keep looking for a better one
5168 ac_cv_path_GREP="$ac_path_GREP"
5169 ac_path_GREP_max=$ac_count
5171 # 10*(2^10) chars as input seems more than enough
5172 test $ac_count -gt 10 && break
5174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 $ac_path_GREP_found && break 3
5182 if test -z "$ac_cv_path_GREP"; then
5183 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 ac_cv_path_GREP=$GREP
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5191 $as_echo "$ac_cv_path_GREP" >&6; }
5192 GREP="$ac_cv_path_GREP"
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5196 $as_echo_n "checking for egrep... " >&6; }
5197 if ${ac_cv_path_EGREP+:} false; then :
5198 $as_echo_n "(cached) " >&6
5200 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5201 then ac_cv_path_EGREP="$GREP -E"
5203 if test -z "$EGREP"; then
5204 ac_path_EGREP_found=false
5205 # Loop through the user's path and test for each of PROGNAME-LIST
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5210 test -z "$as_dir" && as_dir=.
5211 for ac_prog in egrep; do
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5214 as_fn_executable_p "$ac_path_EGREP" || continue
5215 # Check for GNU ac_path_EGREP and select it if it is found.
5216 # Check for GNU $ac_path_EGREP
5217 case `"$ac_path_EGREP" --version 2>&1` in
5219 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5222 $as_echo_n 0123456789 >"conftest.in"
5225 cat "conftest.in" "conftest.in" >"conftest.tmp"
5226 mv "conftest.tmp" "conftest.in"
5227 cp "conftest.in" "conftest.nl"
5228 $as_echo 'EGREP' >> "conftest.nl"
5229 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5231 as_fn_arith $ac_count + 1 && ac_count=$as_val
5232 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5233 # Best one so far, save it but keep looking for a better one
5234 ac_cv_path_EGREP="$ac_path_EGREP"
5235 ac_path_EGREP_max=$ac_count
5237 # 10*(2^10) chars as input seems more than enough
5238 test $ac_count -gt 10 && break
5240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5243 $ac_path_EGREP_found && break 3
5248 if test -z "$ac_cv_path_EGREP"; then
5249 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5252 ac_cv_path_EGREP=$EGREP
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5258 $as_echo "$ac_cv_path_EGREP" >&6; }
5259 EGREP="$ac_cv_path_EGREP"
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5263 $as_echo_n "checking for fgrep... " >&6; }
5264 if ${ac_cv_path_FGREP+:} false; then :
5265 $as_echo_n "(cached) " >&6
5267 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5268 then ac_cv_path_FGREP="$GREP -F"
5270 if test -z "$FGREP"; then
5271 ac_path_FGREP_found=false
5272 # Loop through the user's path and test for each of PROGNAME-LIST
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277 test -z "$as_dir" && as_dir=.
5278 for ac_prog in fgrep; do
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5281 as_fn_executable_p "$ac_path_FGREP" || continue
5282 # Check for GNU ac_path_FGREP and select it if it is found.
5283 # Check for GNU $ac_path_FGREP
5284 case `"$ac_path_FGREP" --version 2>&1` in
5286 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5289 $as_echo_n 0123456789 >"conftest.in"
5292 cat "conftest.in" "conftest.in" >"conftest.tmp"
5293 mv "conftest.tmp" "conftest.in"
5294 cp "conftest.in" "conftest.nl"
5295 $as_echo 'FGREP' >> "conftest.nl"
5296 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5298 as_fn_arith $ac_count + 1 && ac_count=$as_val
5299 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5300 # Best one so far, save it but keep looking for a better one
5301 ac_cv_path_FGREP="$ac_path_FGREP"
5302 ac_path_FGREP_max=$ac_count
5304 # 10*(2^10) chars as input seems more than enough
5305 test $ac_count -gt 10 && break
5307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 $ac_path_FGREP_found && break 3
5315 if test -z "$ac_cv_path_FGREP"; then
5316 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 ac_cv_path_FGREP=$FGREP
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5325 $as_echo "$ac_cv_path_FGREP" >&6; }
5326 FGREP="$ac_cv_path_FGREP"
5329 test -z "$GREP" && GREP=grep
5349 # Check whether --with-gnu-ld was given.
5350 if test "${with_gnu_ld+set}" = set; then :
5351 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5357 if test yes = "$GCC"; then
5358 # Check if gcc -print-prog-name=ld gives a path.
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5360 $as_echo_n "checking for ld used by $CC... " >&6; }
5363 # gcc leaves a trailing carriage return, which upsets mingw
5364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5369 # Accept absolute paths.
5371 re_direlt='/[^/][^/]*/\.\./'
5372 # Canonicalize the pathname of ld
5373 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5374 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5375 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5377 test -z "$LD" && LD=$ac_prog
5380 # If it fails, then pretend we aren't using GCC.
5384 # If it is relative, then search for the first ld in PATH.
5388 elif test yes = "$with_gnu_ld"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5390 $as_echo_n "checking for GNU ld... " >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5393 $as_echo_n "checking for non-GNU ld... " >&6; }
5395 if ${lt_cv_path_LD+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -z "$LD"; then
5399 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5400 for ac_dir in $PATH; do
5402 test -z "$ac_dir" && ac_dir=.
5403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5404 lt_cv_path_LD=$ac_dir/$ac_prog
5405 # Check to see if the program is GNU ld. I'd rather use --version,
5406 # but apparently some variants of GNU ld only accept -v.
5407 # Break only if it was the GNU/non-GNU ld that we prefer.
5408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5409 *GNU* | *'with BFD'*)
5410 test no != "$with_gnu_ld" && break
5413 test yes != "$with_gnu_ld" && break
5420 lt_cv_path_LD=$LD # Let the user override the test with a path.
5425 if test -n "$LD"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5427 $as_echo "$LD" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5432 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5435 if ${lt_cv_prog_gnu_ld+:} false; then :
5436 $as_echo_n "(cached) " >&6
5438 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5439 case `$LD -v 2>&1 </dev/null` in
5440 *GNU* | *'with BFD'*)
5441 lt_cv_prog_gnu_ld=yes
5444 lt_cv_prog_gnu_ld=no
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5449 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5450 with_gnu_ld=$lt_cv_prog_gnu_ld
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5461 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5462 if ${lt_cv_path_NM+:} false; then :
5463 $as_echo_n "(cached) " >&6
5465 if test -n "$NM"; then
5466 # Let the user override the test.
5469 lt_nm_to_check=${ac_tool_prefix}nm
5470 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5471 lt_nm_to_check="$lt_nm_to_check nm"
5473 for lt_tmp_nm in $lt_nm_to_check; do
5474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5475 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5477 test -z "$ac_dir" && ac_dir=.
5478 tmp_nm=$ac_dir/$lt_tmp_nm
5479 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5480 # Check to see if the nm accepts a BSD-compat flag.
5481 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5482 # nm: unknown option "B" ignored
5483 # Tru64's nm complains that /dev/null is an invalid object file
5484 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5486 mingw*) lt_bad_file=conftest.nm/nofile ;;
5487 *) lt_bad_file=/dev/null ;;
5489 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5490 *$lt_bad_file* | *'Invalid file or object type'*)
5491 lt_cv_path_NM="$tmp_nm -B"
5495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5497 lt_cv_path_NM="$tmp_nm -p"
5501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5502 continue # so that we can try to find one that supports BSD flags
5511 : ${lt_cv_path_NM=no}
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5515 $as_echo "$lt_cv_path_NM" >&6; }
5516 if test no != "$lt_cv_path_NM"; then
5519 # Didn't find any BSD compatible name lister, look for dumpbin.
5520 if test -n "$DUMPBIN"; then :
5521 # Let the user override the test.
5523 if test -n "$ac_tool_prefix"; then
5524 for ac_prog in dumpbin "link -dump"
5526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_DUMPBIN+:} false; then :
5531 $as_echo_n "(cached) " >&6
5533 if test -n "$DUMPBIN"; then
5534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 DUMPBIN=$ac_cv_prog_DUMPBIN
5554 if test -n "$DUMPBIN"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5556 $as_echo "$DUMPBIN" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 test -n "$DUMPBIN" && break
5566 if test -z "$DUMPBIN"; then
5567 ac_ct_DUMPBIN=$DUMPBIN
5568 for ac_prog in dumpbin "link -dump"
5570 # Extract the first word of "$ac_prog", so it can be a program name with args.
5571 set dummy $ac_prog; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -n "$ac_ct_DUMPBIN"; then
5578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5598 if test -n "$ac_ct_DUMPBIN"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5600 $as_echo "$ac_ct_DUMPBIN" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5607 test -n "$ac_ct_DUMPBIN" && break
5610 if test "x$ac_ct_DUMPBIN" = x; then
5613 case $cross_compiling:$ac_tool_warned in
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5617 ac_tool_warned=yes ;;
5619 DUMPBIN=$ac_ct_DUMPBIN
5623 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5625 DUMPBIN="$DUMPBIN -symbols -headers"
5633 if test : != "$DUMPBIN"; then
5637 test -z "$NM" && NM=nm
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5645 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5646 if ${lt_cv_nm_interface+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 lt_cv_nm_interface="BSD nm"
5650 echo "int some_variable = 0;" > conftest.$ac_ext
5651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5652 (eval "$ac_compile" 2>conftest.err)
5653 cat conftest.err >&5
5654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5656 cat conftest.err >&5
5657 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5658 cat conftest.out >&5
5659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5660 lt_cv_nm_interface="MS dumpbin"
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5665 $as_echo "$lt_cv_nm_interface" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5668 $as_echo_n "checking whether ln -s works... " >&6; }
5670 if test "$LN_S" = "ln -s"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672 $as_echo "yes" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5675 $as_echo "no, using $LN_S" >&6; }
5678 # find the maximum length of command line arguments
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5680 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5681 if ${lt_cv_sys_max_cmd_len+:} false; then :
5682 $as_echo_n "(cached) " >&6
5689 # On DJGPP, this test can blow up pretty badly due to problems in libc
5690 # (any single argument exceeding 2000 bytes causes a buffer overrun
5691 # during glob expansion). Even if it were fixed, the result of this
5692 # check would be larger than it should be.
5693 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5697 # Under GNU Hurd, this test is not required because there is
5698 # no limit to the length of command line arguments.
5699 # Libtool will interpret -1 as no limit whatsoever
5700 lt_cv_sys_max_cmd_len=-1;
5703 cygwin* | mingw* | cegcc*)
5704 # On Win9x/ME, this test blows up -- it succeeds, but takes
5705 # about 5 minutes as the teststring grows exponentially.
5706 # Worse, since 9x/ME are not pre-emptively multitasking,
5707 # you end up with a "frozen" computer, even though with patience
5708 # the test eventually succeeds (with a max line length of 256k).
5709 # Instead, let's just punt: use the minimum linelength reported by
5710 # all of the supported platforms: 8192 (on NT/2K/XP).
5711 lt_cv_sys_max_cmd_len=8192;
5715 # On MiNT this can take a long time and run out of memory.
5716 lt_cv_sys_max_cmd_len=8192;
5720 # On AmigaOS with pdksh, this test takes hours, literally.
5721 # So we just punt and use a minimum line length of 8192.
5722 lt_cv_sys_max_cmd_len=8192;
5725 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5726 # This has been around since 386BSD, at least. Likely further.
5727 if test -x /sbin/sysctl; then
5728 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5729 elif test -x /usr/sbin/sysctl; then
5730 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5732 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5734 # And add a safety zone
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5740 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5741 lt_cv_sys_max_cmd_len=196608
5745 # The test takes a long time on OS/2.
5746 lt_cv_sys_max_cmd_len=8192
5750 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5751 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5752 # nice to cause kernel panics so lets avoid the loop below.
5753 # First set a reasonable default.
5754 lt_cv_sys_max_cmd_len=16384
5756 if test -x /sbin/sysconfig; then
5757 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5758 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5763 lt_cv_sys_max_cmd_len=102400
5765 sysv5* | sco5v6* | sysv4.2uw2*)
5766 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5767 if test -n "$kargmax"; then
5768 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5770 lt_cv_sys_max_cmd_len=32768
5774 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5775 if test -n "$lt_cv_sys_max_cmd_len" && \
5776 test undefined != "$lt_cv_sys_max_cmd_len"; then
5777 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5778 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5780 # Make teststring a little bigger before we do anything with it.
5781 # a 1K string should be a reasonable start.
5782 for i in 1 2 3 4 5 6 7 8; do
5783 teststring=$teststring$teststring
5785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5786 # If test is not a shell built-in, we'll probably end up computing a
5787 # maximum length that is only half of the actual maximum length, but
5789 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5790 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5791 test 17 != "$i" # 1/2 MB should be enough
5794 teststring=$teststring$teststring
5796 # Only check the string length outside the loop.
5797 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5799 # Add a significant safety factor because C++ compilers can tack on
5800 # massive amounts of additional arguments before passing them to the
5801 # linker. It appears as though 1/2 is a usable value.
5802 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5809 if test -n "$lt_cv_sys_max_cmd_len"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5811 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5814 $as_echo "none" >&6; }
5816 max_cmd_len=$lt_cv_sys_max_cmd_len
5827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5837 # test EBCDIC or ASCII
5838 case `echo X|tr X '\101'` in
5839 A) # ASCII based system
5840 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5841 lt_SP2NL='tr \040 \012'
5842 lt_NL2SP='tr \015\012 \040\040'
5844 *) # EBCDIC based system
5845 lt_SP2NL='tr \100 \n'
5846 lt_NL2SP='tr \r\n \100\100'
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5859 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5860 if ${lt_cv_to_host_file_cmd+:} false; then :
5861 $as_echo_n "(cached) " >&6
5866 *-*-mingw* ) # actually msys
5867 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5870 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5872 * ) # otherwise, assume *nix
5873 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5879 *-*-mingw* ) # actually msys
5880 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5883 lt_cv_to_host_file_cmd=func_convert_file_noop
5885 * ) # otherwise, assume *nix
5886 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5890 * ) # unhandled hosts (and "normal" native builds)
5891 lt_cv_to_host_file_cmd=func_convert_file_noop
5897 to_host_file_cmd=$lt_cv_to_host_file_cmd
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5899 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5906 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5907 if ${lt_cv_to_tool_file_cmd+:} false; then :
5908 $as_echo_n "(cached) " >&6
5910 #assume ordinary cross tools, or native build.
5911 lt_cv_to_tool_file_cmd=func_convert_file_noop
5915 *-*-mingw* ) # actually msys
5916 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5926 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5933 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5934 if ${lt_cv_ld_reload_flag+:} false; then :
5935 $as_echo_n "(cached) " >&6
5937 lt_cv_ld_reload_flag='-r'
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5940 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5941 reload_flag=$lt_cv_ld_reload_flag
5942 case $reload_flag in
5944 *) reload_flag=" $reload_flag" ;;
5946 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5948 cygwin* | mingw* | pw32* | cegcc*)
5949 if test yes != "$GCC"; then
5954 if test yes = "$GCC"; then
5955 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5970 if test -n "$ac_tool_prefix"; then
5971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5974 $as_echo_n "checking for $ac_word... " >&6; }
5975 if ${ac_cv_prog_OBJDUMP+:} false; then :
5976 $as_echo_n "(cached) " >&6
5978 if test -n "$OBJDUMP"; then
5979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 test -z "$as_dir" && as_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 OBJDUMP=$ac_cv_prog_OBJDUMP
5999 if test -n "$OBJDUMP"; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6001 $as_echo "$OBJDUMP" >&6; }
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6004 $as_echo "no" >&6; }
6009 if test -z "$ac_cv_prog_OBJDUMP"; then
6010 ac_ct_OBJDUMP=$OBJDUMP
6011 # Extract the first word of "objdump", so it can be a program name with args.
6012 set dummy objdump; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014 $as_echo_n "checking for $ac_word... " >&6; }
6015 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 if test -n "$ac_ct_OBJDUMP"; then
6019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6039 if test -n "$ac_ct_OBJDUMP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6041 $as_echo "$ac_ct_OBJDUMP" >&6; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044 $as_echo "no" >&6; }
6047 if test "x$ac_ct_OBJDUMP" = x; then
6050 case $cross_compiling:$ac_tool_warned in
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6054 ac_tool_warned=yes ;;
6056 OBJDUMP=$ac_ct_OBJDUMP
6059 OBJDUMP="$ac_cv_prog_OBJDUMP"
6062 test -z "$OBJDUMP" && OBJDUMP=objdump
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6074 if ${lt_cv_deplibs_check_method+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 lt_cv_file_magic_cmd='$MAGIC_CMD'
6078 lt_cv_file_magic_test_file=
6079 lt_cv_deplibs_check_method='unknown'
6080 # Need to set the preceding variable on all platforms that support
6081 # interlibrary dependencies.
6082 # 'none' -- dependencies not supported.
6083 # 'unknown' -- same as none, but documents that we really don't know.
6084 # 'pass_all' -- all dependencies passed with no checks.
6085 # 'test_compile' -- check by making test program.
6086 # 'file_magic [[regex]]' -- check by looking for files in library path
6087 # that responds to the $file_magic_cmd with a given extended regex.
6088 # If you have 'file' or equivalent on your system and you're not sure
6089 # whether 'pass_all' will *always* work, you probably want this one.
6093 lt_cv_deplibs_check_method=pass_all
6097 lt_cv_deplibs_check_method=pass_all
6101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6102 lt_cv_file_magic_cmd='/usr/bin/file -L'
6103 lt_cv_file_magic_test_file=/shlib/libc.so
6107 # func_win32_libid is a shell function defined in ltmain.sh
6108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6109 lt_cv_file_magic_cmd='func_win32_libid'
6113 # Base MSYS/MinGW do not provide the 'file' command needed by
6114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6115 # unless we find 'file', for example because we are cross-compiling.
6116 if ( file / ) >/dev/null 2>&1; then
6117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6118 lt_cv_file_magic_cmd='func_win32_libid'
6120 # Keep this pattern in sync with the one in func_win32_libid.
6121 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6122 lt_cv_file_magic_cmd='$OBJDUMP -f'
6127 # use the weaker test based on 'objdump'. See mingw*.
6128 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6129 lt_cv_file_magic_cmd='$OBJDUMP -f'
6132 darwin* | rhapsody*)
6133 lt_cv_deplibs_check_method=pass_all
6136 freebsd* | dragonfly*)
6137 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6140 # Not sure whether the presence of OpenBSD here was a mistake.
6141 # Let's accept both of them until this is cleared up.
6142 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6143 lt_cv_file_magic_cmd=/usr/bin/file
6144 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6148 lt_cv_deplibs_check_method=pass_all
6153 lt_cv_deplibs_check_method=pass_all
6156 hpux10.20* | hpux11*)
6157 lt_cv_file_magic_cmd=/usr/bin/file
6160 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6161 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6165 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6168 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6169 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6175 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6179 irix5* | irix6* | nonstopux*)
6181 *-32|*"-32 ") libmagic=32-bit;;
6182 *-n32|*"-n32 ") libmagic=N32;;
6183 *-64|*"-64 ") libmagic=64-bit;;
6184 *) libmagic=never-match;;
6186 lt_cv_deplibs_check_method=pass_all
6189 # This must be glibc/ELF.
6190 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6191 lt_cv_deplibs_check_method=pass_all
6194 netbsd* | netbsdelf*-gnu)
6195 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6198 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6203 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6204 lt_cv_file_magic_cmd=/usr/bin/file
6205 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6209 lt_cv_deplibs_check_method=pass_all
6213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6216 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6220 osf3* | osf4* | osf5*)
6221 lt_cv_deplibs_check_method=pass_all
6225 lt_cv_deplibs_check_method=pass_all
6229 lt_cv_deplibs_check_method=pass_all
6232 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6233 lt_cv_deplibs_check_method=pass_all
6237 case $host_vendor in
6239 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]'
6240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6243 lt_cv_deplibs_check_method=pass_all
6246 lt_cv_file_magic_cmd='/bin/file'
6247 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6250 lt_cv_file_magic_cmd='/bin/file'
6251 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6252 lt_cv_file_magic_test_file=/lib/libc.so
6255 lt_cv_deplibs_check_method=pass_all
6258 lt_cv_deplibs_check_method=pass_all
6264 lt_cv_deplibs_check_method=pass_all
6267 lt_cv_deplibs_check_method=pass_all
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6273 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6277 if test "$build" = "$host"; then
6280 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6283 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6289 file_magic_cmd=$lt_cv_file_magic_cmd
6290 deplibs_check_method=$lt_cv_deplibs_check_method
6291 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6314 if test -n "$ac_tool_prefix"; then
6315 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6316 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if ${ac_cv_prog_DLLTOOL+:} false; then :
6320 $as_echo_n "(cached) " >&6
6322 if test -n "$DLLTOOL"; then
6323 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6332 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342 DLLTOOL=$ac_cv_prog_DLLTOOL
6343 if test -n "$DLLTOOL"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6345 $as_echo "$DLLTOOL" >&6; }
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6353 if test -z "$ac_cv_prog_DLLTOOL"; then
6354 ac_ct_DLLTOOL=$DLLTOOL
6355 # Extract the first word of "dlltool", so it can be a program name with args.
6356 set dummy dlltool; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6360 $as_echo_n "(cached) " >&6
6362 if test -n "$ac_ct_DLLTOOL"; then
6363 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6383 if test -n "$ac_ct_DLLTOOL"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6385 $as_echo "$ac_ct_DLLTOOL" >&6; }
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6391 if test "x$ac_ct_DLLTOOL" = x; then
6394 case $cross_compiling:$ac_tool_warned in
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6398 ac_tool_warned=yes ;;
6400 DLLTOOL=$ac_ct_DLLTOOL
6403 DLLTOOL="$ac_cv_prog_DLLTOOL"
6406 test -z "$DLLTOOL" && DLLTOOL=dlltool
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6418 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6419 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6420 $as_echo_n "(cached) " >&6
6422 lt_cv_sharedlib_from_linklib_cmd='unknown'
6425 cygwin* | mingw* | pw32* | cegcc*)
6426 # two different shell functions defined in ltmain.sh;
6427 # decide which one to use based on capabilities of $DLLTOOL
6428 case `$DLLTOOL --help 2>&1` in
6429 *--identify-strict*)
6430 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6433 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6438 # fallback: assume linklib IS sharedlib
6439 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6445 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6446 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6447 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6455 if test -n "$ac_tool_prefix"; then
6458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_AR+:} false; then :
6463 $as_echo_n "(cached) " >&6
6465 if test -n "$AR"; then
6466 ac_cv_prog_AR="$AR" # Let the user override the test.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 if test -n "$AR"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6488 $as_echo "$AR" >&6; }
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6495 test -n "$AR" && break
6498 if test -z "$AR"; then
6502 # Extract the first word of "$ac_prog", so it can be a program name with args.
6503 set dummy $ac_prog; ac_word=$2
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6505 $as_echo_n "checking for $ac_word... " >&6; }
6506 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6507 $as_echo_n "(cached) " >&6
6509 if test -n "$ac_ct_AR"; then
6510 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 test -z "$as_dir" && as_dir=.
6517 for ac_exec_ext in '' $ac_executable_extensions; do
6518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6519 ac_cv_prog_ac_ct_AR="$ac_prog"
6520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6530 if test -n "$ac_ct_AR"; then
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6532 $as_echo "$ac_ct_AR" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6535 $as_echo "no" >&6; }
6539 test -n "$ac_ct_AR" && break
6542 if test "x$ac_ct_AR" = x; then
6545 case $cross_compiling:$ac_tool_warned in
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6549 ac_tool_warned=yes ;;
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6569 $as_echo_n "checking for archiver @FILE support... " >&6; }
6570 if ${lt_cv_ar_at_file+:} false; then :
6571 $as_echo_n "(cached) " >&6
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6585 if ac_fn_c_try_compile "$LINENO"; then :
6586 echo conftest.$ac_objext > conftest.lst
6587 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6589 (eval $lt_ar_try) 2>&5
6591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6592 test $ac_status = 0; }
6593 if test 0 -eq "$ac_status"; then
6594 # Ensure the archiver fails upon bogus file names.
6595 rm -f conftest.$ac_objext libconftest.a
6596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6597 (eval $lt_ar_try) 2>&5
6599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600 test $ac_status = 0; }
6601 if test 0 -ne "$ac_status"; then
6605 rm -f conftest.* libconftest.a
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6612 $as_echo "$lt_cv_ar_at_file" >&6; }
6614 if test no = "$lt_cv_ar_at_file"; then
6617 archiver_list_spec=$lt_cv_ar_at_file
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}strip; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_STRIP+:} false; then :
6632 $as_echo_n "(cached) " >&6
6634 if test -n "$STRIP"; then
6635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 STRIP=$ac_cv_prog_STRIP
6655 if test -n "$STRIP"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6657 $as_echo "$STRIP" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_STRIP"; then
6667 # Extract the first word of "strip", so it can be a program name with args.
6668 set dummy strip; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6672 $as_echo_n "(cached) " >&6
6674 if test -n "$ac_ct_STRIP"; then
6675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_STRIP="strip"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6695 if test -n "$ac_ct_STRIP"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6697 $as_echo "$ac_ct_STRIP" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_STRIP" = x; then
6706 case $cross_compiling:$ac_tool_warned in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6715 STRIP="$ac_cv_prog_STRIP"
6718 test -z "$STRIP" && STRIP=:
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_RANLIB+:} false; then :
6731 $as_echo_n "(cached) " >&6
6733 if test -n "$RANLIB"; then
6734 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 RANLIB=$ac_cv_prog_RANLIB
6754 if test -n "$RANLIB"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6756 $as_echo "$RANLIB" >&6; }
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6764 if test -z "$ac_cv_prog_RANLIB"; then
6765 ac_ct_RANLIB=$RANLIB
6766 # Extract the first word of "ranlib", so it can be a program name with args.
6767 set dummy ranlib; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6771 $as_echo_n "(cached) " >&6
6773 if test -n "$ac_ct_RANLIB"; then
6774 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_ac_ct_RANLIB="ranlib"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6794 if test -n "$ac_ct_RANLIB"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6796 $as_echo "$ac_ct_RANLIB" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6802 if test "x$ac_ct_RANLIB" = x; then
6805 case $cross_compiling:$ac_tool_warned in
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6811 RANLIB=$ac_ct_RANLIB
6814 RANLIB="$ac_cv_prog_RANLIB"
6817 test -z "$RANLIB" && RANLIB=:
6824 # Determine commands to create old-style static archives.
6825 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6826 old_postinstall_cmds='chmod 644 $oldlib'
6827 old_postuninstall_cmds=
6829 if test -n "$RANLIB"; then
6832 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6835 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6838 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6843 lock_old_archive_extraction=yes ;;
6845 lock_old_archive_extraction=no ;;
6886 # If no C compiler was specified, use CC.
6889 # If no C compiler flags were specified, use CFLAGS.
6890 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6892 # Allow CC to be a program name with arguments.
6896 # Check for command to grab the raw symbol name followed by C symbol from nm.
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6898 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6899 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6900 $as_echo_n "(cached) " >&6
6903 # These are sane defaults that work on at least a few old systems.
6904 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6906 # Character class describing NM global symbol codes.
6907 symcode='[BCDEGRST]'
6909 # Regexp to match symbols that can be accessed directly from C.
6910 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6912 # Define system-specific variables.
6917 cygwin* | mingw* | pw32* | cegcc*)
6918 symcode='[ABCDGISTW]'
6921 if test ia64 = "$host_cpu"; then
6922 symcode='[ABCDEGRST]'
6926 symcode='[BCDEGRST]'
6929 symcode='[BCDEGQRST]'
6940 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948 # If we're using GNU nm, then use its standard symbol codes.
6949 case `$NM -V 2>&1` in
6950 *GNU* | *'with BFD'*)
6951 symcode='[ABCDGIRSTW]' ;;
6954 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6955 # Gets list of data symbols to import.
6956 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6957 # Adjust the below global symbol transforms to fixup imported variables.
6958 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6959 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6960 lt_c_name_lib_hook="\
6961 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6962 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6964 # Disable hooks by default.
6965 lt_cv_sys_global_symbol_to_import=
6971 # Transform an extracted symbol line into a proper C declaration.
6972 # Some systems (esp. on ia64) link data and code symbols differently,
6973 # so use this general approach.
6974 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6976 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6977 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6979 # Transform an extracted symbol line into symbol name and symbol address
6980 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6982 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6983 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6985 # Transform an extracted symbol line into symbol name with lib prefix and
6987 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6988 $lt_c_name_lib_hook\
6989 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6990 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6991 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6993 # Handle CRLF in mingw tool chain
6997 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7001 # Try without a prefix underscore, then with it.
7002 for ac_symprfx in "" "_"; do
7004 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7005 symxfrm="\\1 $ac_symprfx\\2 \\2"
7007 # Write the raw and C identifiers.
7008 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7009 # Fake it for dumpbin and say T for any non-static function,
7010 # D for any global variable and I for any imported variable.
7011 # Also find C++ and __fastcall symbols from MSVC++,
7012 # which start with @ or ?.
7013 lt_cv_sys_global_symbol_pipe="$AWK '"\
7014 " {last_section=section; section=\$ 3};"\
7015 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7016 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7017 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7018 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7019 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7020 " \$ 0!~/External *\|/{next};"\
7021 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7022 " {if(hide[section]) next};"\
7023 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7024 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7025 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7026 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7027 " ' prfx=^$ac_symprfx"
7029 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7031 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7033 # Check to see that the pipe works correctly.
7037 cat > conftest.$ac_ext <<_LT_EOF
7042 void nm_test_func(void);
7043 void nm_test_func(void){}
7047 int main(){nm_test_var='a';nm_test_func();return(0);}
7050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7051 (eval $ac_compile) 2>&5
7053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7054 test $ac_status = 0; }; then
7055 # Now try to grab the symbols.
7057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7058 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7061 test $ac_status = 0; } && test -s "$nlist"; then
7062 # Try sorting and uniquifying the output.
7063 if sort "$nlist" | uniq > "$nlist"T; then
7064 mv -f "$nlist"T "$nlist"
7069 # Make sure that we snagged all the symbols we need.
7070 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7071 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7072 cat <<_LT_EOF > conftest.$ac_ext
7073 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7074 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7075 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7076 relocations are performed -- see ld's documentation on pseudo-relocs. */
7077 # define LT_DLSYM_CONST
7078 #elif defined __osf__
7079 /* This system does not cope well with relocations in const data. */
7080 # define LT_DLSYM_CONST
7082 # define LT_DLSYM_CONST const
7090 # Now generate the symbol file.
7091 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7093 cat <<_LT_EOF >> conftest.$ac_ext
7095 /* The mapping between symbol names and symbols. */
7096 LT_DLSYM_CONST struct {
7100 lt__PROGRAM__LTX_preloaded_symbols[] =
7102 { "@PROGRAM@", (void *) 0 },
7104 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7105 cat <<\_LT_EOF >> conftest.$ac_ext
7109 /* This works around a problem in FreeBSD linker */
7110 #ifdef FREEBSD_WORKAROUND
7111 static const void *lt_preloaded_setup() {
7112 return lt__PROGRAM__LTX_preloaded_symbols;
7120 # Now try linking the two files.
7121 mv conftest.$ac_objext conftstm.$ac_objext
7122 lt_globsym_save_LIBS=$LIBS
7123 lt_globsym_save_CFLAGS=$CFLAGS
7124 LIBS=conftstm.$ac_objext
7125 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7127 (eval $ac_link) 2>&5
7129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7130 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7133 LIBS=$lt_globsym_save_LIBS
7134 CFLAGS=$lt_globsym_save_CFLAGS
7136 echo "cannot find nm_test_func in $nlist" >&5
7139 echo "cannot find nm_test_var in $nlist" >&5
7142 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145 echo "$progname: failed program was:" >&5
7146 cat conftest.$ac_ext >&5
7148 rm -rf conftest* conftst*
7150 # Do not use the global_symbol_pipe unless it works.
7151 if test yes = "$pipe_works"; then
7154 lt_cv_sys_global_symbol_pipe=
7160 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7161 lt_cv_sys_global_symbol_to_cdecl=
7163 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7165 $as_echo "failed" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7168 $as_echo "ok" >&6; }
7171 # Response file support.
7172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7173 nm_file_list_spec='@'
7174 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7175 nm_file_list_spec='@'
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7215 $as_echo_n "checking for sysroot... " >&6; }
7217 # Check whether --with-sysroot was given.
7218 if test "${with_sysroot+set}" = set; then :
7219 withval=$with_sysroot;
7226 case $with_sysroot in #(
7228 if test yes = "$GCC"; then
7229 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7233 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7239 $as_echo "$with_sysroot" >&6; }
7240 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7245 $as_echo "${lt_sysroot:-no}" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7252 $as_echo_n "checking for a working dd... " >&6; }
7253 if ${ac_cv_path_lt_DD+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 printf 0123456789abcdef0123456789abcdef >conftest.i
7257 cat conftest.i conftest.i >conftest2.i
7259 if test -z "$lt_DD"; then
7260 ac_path_lt_DD_found=false
7261 # Loop through the user's path and test for each of PROGNAME-LIST
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_prog in dd; do
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7270 as_fn_executable_p "$ac_path_lt_DD" || continue
7271 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7272 cmp -s conftest.i conftest.out \
7273 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7275 $ac_path_lt_DD_found && break 3
7280 if test -z "$ac_cv_path_lt_DD"; then
7284 ac_cv_path_lt_DD=$lt_DD
7287 rm -f conftest.i conftest2.i conftest.out
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7290 $as_echo "$ac_cv_path_lt_DD" >&6; }
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7294 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7295 if ${lt_cv_truncate_bin+:} false; then :
7296 $as_echo_n "(cached) " >&6
7298 printf 0123456789abcdef0123456789abcdef >conftest.i
7299 cat conftest.i conftest.i >conftest2.i
7301 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7302 cmp -s conftest.i conftest.out \
7303 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7305 rm -f conftest.i conftest2.i conftest.out
7306 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7309 $as_echo "$lt_cv_truncate_bin" >&6; }
7317 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7320 for cc_temp in $*""; do
7322 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7323 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7328 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333 enableval=$enable_libtool_lock;
7336 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7338 # Some flags need to be propagated to the compiler or linker for good
7342 # Find out what ABI is being produced by ac_compile, and set mode
7343 # options accordingly.
7344 echo 'int i;' > conftest.$ac_ext
7345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7346 (eval $ac_compile) 2>&5
7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; then
7350 case `/usr/bin/file conftest.$ac_objext` in
7362 # Find out what ABI is being produced by ac_compile, and set linker
7363 # options accordingly.
7364 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7366 (eval $ac_compile) 2>&5
7368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7369 test $ac_status = 0; }; then
7370 if test yes = "$lt_cv_prog_gnu_ld"; then
7371 case `/usr/bin/file conftest.$ac_objext` in
7373 LD="${LD-ld} -melf32bsmip"
7376 LD="${LD-ld} -melf32bmipn32"
7379 LD="${LD-ld} -melf64bmip"
7383 case `/usr/bin/file conftest.$ac_objext` in
7400 # Find out what ABI is being produced by ac_compile, and set linker
7401 # options accordingly.
7402 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7404 (eval $ac_compile) 2>&5
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7409 case `/usr/bin/file conftest.$ac_objext` in
7417 case `/usr/bin/file conftest.$ac_objext` in
7419 emul="${emul}btsmip"
7422 emul="${emul}ltsmip"
7425 case `/usr/bin/file conftest.$ac_objext` in
7430 LD="${LD-ld} -m $emul"
7435 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7436 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7437 # Find out what ABI is being produced by ac_compile, and set linker
7438 # options accordingly. Note that the listed cases only cover the
7439 # situations where additional linker options are needed (such as when
7440 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7441 # vice versa); the common cases where no linker options are needed do
7442 # not appear in the list.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `/usr/bin/file conftest.o` in
7452 x86_64-*kfreebsd*-gnu)
7453 LD="${LD-ld} -m elf_i386_fbsd"
7456 case `/usr/bin/file conftest.o` in
7458 LD="${LD-ld} -m elf32_x86_64"
7461 LD="${LD-ld} -m elf_i386"
7465 powerpc64le-*linux*)
7466 LD="${LD-ld} -m elf32lppclinux"
7469 LD="${LD-ld} -m elf32ppclinux"
7472 LD="${LD-ld} -m elf_s390"
7475 LD="${LD-ld} -m elf32_sparc"
7481 x86_64-*kfreebsd*-gnu)
7482 LD="${LD-ld} -m elf_x86_64_fbsd"
7485 LD="${LD-ld} -m elf_x86_64"
7488 LD="${LD-ld} -m elf64lppc"
7491 LD="${LD-ld} -m elf64ppc"
7493 s390*-*linux*|s390*-*tpf*)
7494 LD="${LD-ld} -m elf64_s390"
7497 LD="${LD-ld} -m elf64_sparc"
7507 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7509 CFLAGS="$CFLAGS -belf"
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7511 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7512 if ${lt_cv_cc_needs_belf+:} false; then :
7513 $as_echo_n "(cached) " >&6
7516 ac_cpp='$CPP $CPPFLAGS'
7517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7532 if ac_fn_c_try_link "$LINENO"; then :
7533 lt_cv_cc_needs_belf=yes
7535 lt_cv_cc_needs_belf=no
7537 rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7540 ac_cpp='$CPP $CPPFLAGS'
7541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7547 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7548 if test yes != "$lt_cv_cc_needs_belf"; then
7549 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7554 # Find out what ABI is being produced by ac_compile, and set linker
7555 # options accordingly.
7556 echo 'int i;' > conftest.$ac_ext
7557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558 (eval $ac_compile) 2>&5
7560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561 test $ac_status = 0; }; then
7562 case `/usr/bin/file conftest.o` in
7564 case $lt_cv_prog_gnu_ld in
7567 i?86-*-solaris*|x86_64-*-solaris*)
7568 LD="${LD-ld} -m elf_x86_64"
7571 LD="${LD-ld} -m elf64_sparc"
7574 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7575 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7580 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7592 need_locks=$enable_libtool_lock
7594 if test -n "$ac_tool_prefix"; then
7595 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7596 set dummy ${ac_tool_prefix}mt; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7600 $as_echo_n "(cached) " >&6
7602 if test -n "$MANIFEST_TOOL"; then
7603 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 test -z "$as_dir" && as_dir=.
7610 for ac_exec_ext in '' $ac_executable_extensions; do
7611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7612 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7623 if test -n "$MANIFEST_TOOL"; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7625 $as_echo "$MANIFEST_TOOL" >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628 $as_echo "no" >&6; }
7633 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7634 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7635 # Extract the first word of "mt", so it can be a program name with args.
7636 set dummy mt; ac_word=$2
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638 $as_echo_n "checking for $ac_word... " >&6; }
7639 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7640 $as_echo_n "(cached) " >&6
7642 if test -n "$ac_ct_MANIFEST_TOOL"; then
7643 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 test -z "$as_dir" && as_dir=.
7650 for ac_exec_ext in '' $ac_executable_extensions; do
7651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7652 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7663 if test -n "$ac_ct_MANIFEST_TOOL"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7665 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7671 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7674 case $cross_compiling:$ac_tool_warned in
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678 ac_tool_warned=yes ;;
7680 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7683 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7686 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7688 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7689 if ${lt_cv_path_mainfest_tool+:} false; then :
7690 $as_echo_n "(cached) " >&6
7692 lt_cv_path_mainfest_tool=no
7693 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7694 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7695 cat conftest.err >&5
7696 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7697 lt_cv_path_mainfest_tool=yes
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7702 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7703 if test yes != "$lt_cv_path_mainfest_tool"; then
7713 rhapsody* | darwin*)
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7718 $as_echo_n "checking for $ac_word... " >&6; }
7719 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7720 $as_echo_n "(cached) " >&6
7722 if test -n "$DSYMUTIL"; then
7723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7743 if test -n "$DSYMUTIL"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7745 $as_echo "$DSYMUTIL" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7753 if test -z "$ac_cv_prog_DSYMUTIL"; then
7754 ac_ct_DSYMUTIL=$DSYMUTIL
7755 # Extract the first word of "dsymutil", so it can be a program name with args.
7756 set dummy dsymutil; ac_word=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7760 $as_echo_n "(cached) " >&6
7762 if test -n "$ac_ct_DSYMUTIL"; then
7763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7783 if test -n "$ac_ct_DSYMUTIL"; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7785 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7791 if test "x$ac_ct_DSYMUTIL" = x; then
7794 case $cross_compiling:$ac_tool_warned in
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7798 ac_tool_warned=yes ;;
7800 DSYMUTIL=$ac_ct_DSYMUTIL
7803 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if ${ac_cv_prog_NMEDIT+:} false; then :
7812 $as_echo_n "(cached) " >&6
7814 if test -n "$NMEDIT"; then
7815 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7824 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 NMEDIT=$ac_cv_prog_NMEDIT
7835 if test -n "$NMEDIT"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7837 $as_echo "$NMEDIT" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7845 if test -z "$ac_cv_prog_NMEDIT"; then
7846 ac_ct_NMEDIT=$NMEDIT
7847 # Extract the first word of "nmedit", so it can be a program name with args.
7848 set dummy nmedit; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7852 $as_echo_n "(cached) " >&6
7854 if test -n "$ac_ct_NMEDIT"; then
7855 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7875 if test -n "$ac_ct_NMEDIT"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7877 $as_echo "$ac_ct_NMEDIT" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7883 if test "x$ac_ct_NMEDIT" = x; then
7886 case $cross_compiling:$ac_tool_warned in
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7892 NMEDIT=$ac_ct_NMEDIT
7895 NMEDIT="$ac_cv_prog_NMEDIT"
7898 if test -n "$ac_tool_prefix"; then
7899 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7900 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_LIPO+:} false; then :
7904 $as_echo_n "(cached) " >&6
7906 if test -n "$LIPO"; then
7907 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 LIPO=$ac_cv_prog_LIPO
7927 if test -n "$LIPO"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7929 $as_echo "$LIPO" >&6; }
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7937 if test -z "$ac_cv_prog_LIPO"; then
7939 # Extract the first word of "lipo", so it can be a program name with args.
7940 set dummy lipo; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 if test -n "$ac_ct_LIPO"; then
7947 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953 test -z "$as_dir" && as_dir=.
7954 for ac_exec_ext in '' $ac_executable_extensions; do
7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7956 ac_cv_prog_ac_ct_LIPO="lipo"
7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7967 if test -n "$ac_ct_LIPO"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7969 $as_echo "$ac_ct_LIPO" >&6; }
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7975 if test "x$ac_ct_LIPO" = x; then
7978 case $cross_compiling:$ac_tool_warned in
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7982 ac_tool_warned=yes ;;
7987 LIPO="$ac_cv_prog_LIPO"
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}otool; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_OTOOL+:} false; then :
7996 $as_echo_n "(cached) " >&6
7998 if test -n "$OTOOL"; then
7999 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 OTOOL=$ac_cv_prog_OTOOL
8019 if test -n "$OTOOL"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8021 $as_echo "$OTOOL" >&6; }
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8029 if test -z "$ac_cv_prog_OTOOL"; then
8031 # Extract the first word of "otool", so it can be a program name with args.
8032 set dummy otool; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8036 $as_echo_n "(cached) " >&6
8038 if test -n "$ac_ct_OTOOL"; then
8039 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_ac_ct_OTOOL="otool"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8059 if test -n "$ac_ct_OTOOL"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8061 $as_echo "$ac_ct_OTOOL" >&6; }
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8067 if test "x$ac_ct_OTOOL" = x; then
8070 case $cross_compiling:$ac_tool_warned in
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8079 OTOOL="$ac_cv_prog_OTOOL"
8082 if test -n "$ac_tool_prefix"; then
8083 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_OTOOL64+:} false; then :
8088 $as_echo_n "(cached) " >&6
8090 if test -n "$OTOOL64"; then
8091 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 OTOOL64=$ac_cv_prog_OTOOL64
8111 if test -n "$OTOOL64"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8113 $as_echo "$OTOOL64" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8121 if test -z "$ac_cv_prog_OTOOL64"; then
8122 ac_ct_OTOOL64=$OTOOL64
8123 # Extract the first word of "otool64", so it can be a program name with args.
8124 set dummy otool64; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8128 $as_echo_n "(cached) " >&6
8130 if test -n "$ac_ct_OTOOL64"; then
8131 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_OTOOL64="otool64"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8151 if test -n "$ac_ct_OTOOL64"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8153 $as_echo "$ac_ct_OTOOL64" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8159 if test "x$ac_ct_OTOOL64" = x; then
8162 case $cross_compiling:$ac_tool_warned in
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8168 OTOOL64=$ac_ct_OTOOL64
8171 OTOOL64="$ac_cv_prog_OTOOL64"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8201 $as_echo_n "checking for -single_module linker flag... " >&6; }
8202 if ${lt_cv_apple_cc_single_mod+:} false; then :
8203 $as_echo_n "(cached) " >&6
8205 lt_cv_apple_cc_single_mod=no
8206 if test -z "$LT_MULTI_MODULE"; then
8207 # By default we will add the -single_module flag. You can override
8208 # by either setting the environment variable LT_MULTI_MODULE
8209 # non-empty at configure time, or by adding -multi_module to the
8211 rm -rf libconftest.dylib*
8212 echo "int foo(void){return 1;}" > conftest.c
8213 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c" >&5
8215 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8216 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8218 # If there is a non-empty error log, and "single_module"
8219 # appears in it, assume the flag caused a linker warning
8220 if test -s conftest.err && $GREP single_module conftest.err; then
8221 cat conftest.err >&5
8222 # Otherwise, if the output was created with a 0 exit code from
8223 # the compiler, it worked.
8224 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8225 lt_cv_apple_cc_single_mod=yes
8227 cat conftest.err >&5
8229 rm -rf libconftest.dylib*
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8234 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8237 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8238 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8239 $as_echo_n "(cached) " >&6
8241 lt_cv_ld_exported_symbols_list=no
8242 save_LDFLAGS=$LDFLAGS
8243 echo "_main" > conftest.sym
8244 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246 /* end confdefs.h. */
8256 if ac_fn_c_try_link "$LINENO"; then :
8257 lt_cv_ld_exported_symbols_list=yes
8259 lt_cv_ld_exported_symbols_list=no
8261 rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8263 LDFLAGS=$save_LDFLAGS
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8267 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8270 $as_echo_n "checking for -force_load linker flag... " >&6; }
8271 if ${lt_cv_ld_force_load+:} false; then :
8272 $as_echo_n "(cached) " >&6
8274 lt_cv_ld_force_load=no
8275 cat > conftest.c << _LT_EOF
8276 int forced_loaded() { return 2;}
8278 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8279 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8280 echo "$AR cru libconftest.a conftest.o" >&5
8281 $AR cru libconftest.a conftest.o 2>&5
8282 echo "$RANLIB libconftest.a" >&5
8283 $RANLIB libconftest.a 2>&5
8284 cat > conftest.c << _LT_EOF
8285 int main() { return 0;}
8287 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8288 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8290 if test -s conftest.err && $GREP force_load conftest.err; then
8291 cat conftest.err >&5
8292 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8293 lt_cv_ld_force_load=yes
8295 cat conftest.err >&5
8297 rm -f conftest.err libconftest.a conftest conftest.c
8298 rm -rf conftest.dSYM
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8302 $as_echo "$lt_cv_ld_force_load" >&6; }
8304 rhapsody* | darwin1.[012])
8305 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8307 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8308 darwin*) # darwin 5.x on
8309 # if running on 10.5 or later, the deployment target defaults
8310 # to the OS version, if on x86, and 10.4, the deployment
8311 # target defaults to 10.4. Don't you love it?
8312 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8313 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8314 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8316 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8318 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8322 if test yes = "$lt_cv_apple_cc_single_mod"; then
8323 _lt_dar_single_mod='$single_module'
8325 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8326 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8328 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8330 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8331 _lt_dsymutil='~$DSYMUTIL $lib || :'
8338 # func_munge_path_list VARIABLE PATH
8339 # -----------------------------------
8340 # VARIABLE is name of variable containing _space_ separated list of
8341 # directories to be munged by the contents of PATH, which is string
8344 # string "DIR[ DIR]" will be prepended to VARIABLE
8346 # string "DIR[ DIR]" will be appended to VARIABLE
8347 # "DIRP[:DIRP]::[DIRA:]DIRA"
8348 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8349 # "DIRA[ DIRA]" will be appended to VARIABLE
8351 # VARIABLE will be replaced by "DIR[ DIR]"
8352 func_munge_path_list ()
8358 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8361 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8364 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8365 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8368 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8374 ac_cpp='$CPP $CPPFLAGS'
8375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8379 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8380 # On Suns, sometimes $CPP names a directory.
8381 if test -n "$CPP" && test -d "$CPP"; then
8384 if test -z "$CPP"; then
8385 if ${ac_cv_prog_CPP+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 # Double quotes because CPP needs to be expanded
8389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8392 for ac_c_preproc_warn_flag in '' yes
8394 # Use a header file that comes with gcc, so configuring glibc
8395 # with a fresh cross-compiler works.
8396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397 # <limits.h> exists even on freestanding compilers.
8398 # On the NeXT, cc -E runs the code through the compiler's parser,
8399 # not just through cpp. "Syntax error" is here to catch this case.
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8403 # include <limits.h>
8405 # include <assert.h>
8409 if ac_fn_c_try_cpp "$LINENO"; then :
8412 # Broken: fails on valid input.
8415 rm -f conftest.err conftest.i conftest.$ac_ext
8417 # OK, works on sane cases. Now check whether nonexistent headers
8418 # can be detected and how.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 #include <ac_nonexistent.h>
8423 if ac_fn_c_try_cpp "$LINENO"; then :
8424 # Broken: success on invalid input.
8427 # Passes both tests.
8431 rm -f conftest.err conftest.i conftest.$ac_ext
8434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8435 rm -f conftest.i conftest.err conftest.$ac_ext
8436 if $ac_preproc_ok; then :
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8449 $as_echo "$CPP" >&6; }
8451 for ac_c_preproc_warn_flag in '' yes
8453 # Use a header file that comes with gcc, so configuring glibc
8454 # with a fresh cross-compiler works.
8455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 # <limits.h> exists even on freestanding compilers.
8457 # On the NeXT, cc -E runs the code through the compiler's parser,
8458 # not just through cpp. "Syntax error" is here to catch this case.
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8462 # include <limits.h>
8464 # include <assert.h>
8468 if ac_fn_c_try_cpp "$LINENO"; then :
8471 # Broken: fails on valid input.
8474 rm -f conftest.err conftest.i conftest.$ac_ext
8476 # OK, works on sane cases. Now check whether nonexistent headers
8477 # can be detected and how.
8478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8479 /* end confdefs.h. */
8480 #include <ac_nonexistent.h>
8482 if ac_fn_c_try_cpp "$LINENO"; then :
8483 # Broken: success on invalid input.
8486 # Passes both tests.
8490 rm -f conftest.err conftest.i conftest.$ac_ext
8493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8494 rm -f conftest.i conftest.err conftest.$ac_ext
8495 if $ac_preproc_ok; then :
8498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8500 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8501 See \`config.log' for more details" "$LINENO" 5; }
8505 ac_cpp='$CPP $CPPFLAGS'
8506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8512 $as_echo_n "checking for ANSI C header files... " >&6; }
8513 if ${ac_cv_header_stdc+:} false; then :
8514 $as_echo_n "(cached) " >&6
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h. */
8531 if ac_fn_c_try_compile "$LINENO"; then :
8532 ac_cv_header_stdc=yes
8534 ac_cv_header_stdc=no
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 if test $ac_cv_header_stdc = yes; then
8539 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8546 $EGREP "memchr" >/dev/null 2>&1; then :
8549 ac_cv_header_stdc=no
8555 if test $ac_cv_header_stdc = yes; then
8556 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8563 $EGREP "free" >/dev/null 2>&1; then :
8566 ac_cv_header_stdc=no
8572 if test $ac_cv_header_stdc = yes; then
8573 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8574 if test "$cross_compiling" = yes; then :
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8581 #if ((' ' & 0x0FF) == 0x020)
8582 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8583 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8585 # define ISLOWER(c) \
8586 (('a' <= (c) && (c) <= 'i') \
8587 || ('j' <= (c) && (c) <= 'r') \
8588 || ('s' <= (c) && (c) <= 'z'))
8589 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8592 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8597 for (i = 0; i < 256; i++)
8598 if (XOR (islower (i), ISLOWER (i))
8599 || toupper (i) != TOUPPER (i))
8604 if ac_fn_c_try_run "$LINENO"; then :
8607 ac_cv_header_stdc=no
8609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8610 conftest.$ac_objext conftest.beam conftest.$ac_ext
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8616 $as_echo "$ac_cv_header_stdc" >&6; }
8617 if test $ac_cv_header_stdc = yes; then
8619 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8623 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8624 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8625 inttypes.h stdint.h unistd.h
8627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8630 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8631 cat >>confdefs.h <<_ACEOF
8632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8640 for ac_header in dlfcn.h
8642 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8644 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8645 cat >>confdefs.h <<_ACEOF
8646 #define HAVE_DLFCN_H 1
8667 # Check whether --enable-shared was given.
8668 if test "${enable_shared+set}" = set; then :
8669 enableval=$enable_shared; p=${PACKAGE-default}
8671 yes) enable_shared=yes ;;
8672 no) enable_shared=no ;;
8675 # Look at the argument we got. We use all the common list separators.
8676 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8677 for pkg in $enableval; do
8679 if test "X$pkg" = "X$p"; then
8698 # Check whether --enable-static was given.
8699 if test "${enable_static+set}" = set; then :
8700 enableval=$enable_static; p=${PACKAGE-default}
8702 yes) enable_static=yes ;;
8703 no) enable_static=no ;;
8706 # Look at the argument we got. We use all the common list separators.
8707 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8708 for pkg in $enableval; do
8710 if test "X$pkg" = "X$p"; then
8730 # Check whether --with-pic was given.
8731 if test "${with_pic+set}" = set; then :
8732 withval=$with_pic; lt_p=${PACKAGE-default}
8734 yes|no) pic_mode=$withval ;;
8737 # Look at the argument we got. We use all the common list separators.
8738 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8739 for lt_pkg in $withval; do
8741 if test "X$lt_pkg" = "X$lt_p"; then
8759 # Check whether --enable-fast-install was given.
8760 if test "${enable_fast_install+set}" = set; then :
8761 enableval=$enable_fast_install; p=${PACKAGE-default}
8763 yes) enable_fast_install=yes ;;
8764 no) enable_fast_install=no ;;
8766 enable_fast_install=no
8767 # Look at the argument we got. We use all the common list separators.
8768 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8769 for pkg in $enableval; do
8771 if test "X$pkg" = "X$p"; then
8772 enable_fast_install=yes
8779 enable_fast_install=yes
8789 shared_archive_member_spec=
8790 case $host,$enable_shared in
8791 power*-*-aix[5-9]*,yes)
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8793 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8795 # Check whether --with-aix-soname was given.
8796 if test "${with_aix_soname+set}" = set; then :
8797 withval=$with_aix_soname; case $withval in
8801 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8804 lt_cv_with_aix_soname=$with_aix_soname
8806 if ${lt_cv_with_aix_soname+:} false; then :
8807 $as_echo_n "(cached) " >&6
8809 lt_cv_with_aix_soname=aix
8812 with_aix_soname=$lt_cv_with_aix_soname
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8816 $as_echo "$with_aix_soname" >&6; }
8817 if test aix != "$with_aix_soname"; then
8818 # For the AIX way of multilib, we name the shared archive member
8819 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8820 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8821 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8822 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8823 if test 64 = "${OBJECT_MODE-32}"; then
8824 shared_archive_member_spec=shr_64
8826 shared_archive_member_spec=shr
8844 # This can be used to rebuild libtool when needed
8845 LIBTOOL_DEPS=$ltmain
8847 # Always use our own libtool.
8848 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8879 test -z "$LN_S" && LN_S="ln -s"
8894 if test -n "${ZSH_VERSION+set}"; then
8895 setopt NO_GLOB_SUBST
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8899 $as_echo_n "checking for objdir... " >&6; }
8900 if ${lt_cv_objdir+:} false; then :
8901 $as_echo_n "(cached) " >&6
8903 rm -f .libs 2>/dev/null
8904 mkdir .libs 2>/dev/null
8905 if test -d .libs; then
8908 # MS-DOS does not allow filenames that begin with a dot.
8911 rmdir .libs 2>/dev/null
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8914 $as_echo "$lt_cv_objdir" >&6; }
8915 objdir=$lt_cv_objdir
8921 cat >>confdefs.h <<_ACEOF
8922 #define LT_OBJDIR "$lt_cv_objdir/"
8930 # AIX sometimes has problems with the GCC collect2 program. For some
8931 # reason, if we set the COLLECT_NAMES environment variable, the problems
8932 # vanish in a puff of smoke.
8933 if test set != "${COLLECT_NAMES+set}"; then
8935 export COLLECT_NAMES
8942 can_build_shared=yes
8944 # All known linkers require a '.a' archive for static linking (except MSVC,
8945 # which needs '.lib').
8948 with_gnu_ld=$lt_cv_prog_gnu_ld
8953 # Set sane defaults for various variables
8954 test -z "$CC" && CC=cc
8955 test -z "$LTCC" && LTCC=$CC
8956 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8957 test -z "$LD" && LD=ld
8958 test -z "$ac_objext" && ac_objext=o
8960 func_cc_basename $compiler
8961 cc_basename=$func_cc_basename_result
8964 # Only perform the check for file, if the check method requires it
8965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8966 case $deplibs_check_method in
8968 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8970 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8972 $as_echo_n "(cached) " >&6
8976 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8979 lt_save_MAGIC_CMD=$MAGIC_CMD
8980 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8982 for ac_dir in $ac_dummy; do
8984 test -z "$ac_dir" && ac_dir=.
8985 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8986 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8987 if test -n "$file_magic_test_file"; then
8988 case $deplibs_check_method in
8990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8991 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8993 $EGREP "$file_magic_regex" > /dev/null; then
8998 *** Warning: the command libtool uses to detect shared libraries,
8999 *** $file_magic_cmd, produces output that libtool cannot recognize.
9000 *** The result is that libtool may fail to recognize shared libraries
9001 *** as such. This will affect the creation of libtool libraries that
9002 *** depend on shared libraries, but programs linked with such libtool
9003 *** libraries will work regardless of this problem. Nevertheless, you
9004 *** may want to report the problem to your system manager and/or to
9005 *** bug-libtool@gnu.org
9015 MAGIC_CMD=$lt_save_MAGIC_CMD
9020 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9021 if test -n "$MAGIC_CMD"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9023 $as_echo "$MAGIC_CMD" >&6; }
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9033 if test -z "$lt_cv_path_MAGIC_CMD"; then
9034 if test -n "$ac_tool_prefix"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9036 $as_echo_n "checking for file... " >&6; }
9037 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9038 $as_echo_n "(cached) " >&6
9042 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9045 lt_save_MAGIC_CMD=$MAGIC_CMD
9046 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9048 for ac_dir in $ac_dummy; do
9050 test -z "$ac_dir" && ac_dir=.
9051 if test -f "$ac_dir/file"; then
9052 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9053 if test -n "$file_magic_test_file"; then
9054 case $deplibs_check_method in
9056 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9057 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9059 $EGREP "$file_magic_regex" > /dev/null; then
9064 *** Warning: the command libtool uses to detect shared libraries,
9065 *** $file_magic_cmd, produces output that libtool cannot recognize.
9066 *** The result is that libtool may fail to recognize shared libraries
9067 *** as such. This will affect the creation of libtool libraries that
9068 *** depend on shared libraries, but programs linked with such libtool
9069 *** libraries will work regardless of this problem. Nevertheless, you
9070 *** may want to report the problem to your system manager and/or to
9071 *** bug-libtool@gnu.org
9081 MAGIC_CMD=$lt_save_MAGIC_CMD
9086 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9087 if test -n "$MAGIC_CMD"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9089 $as_echo "$MAGIC_CMD" >&6; }
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9105 # Use C for the default configuration in the libtool script
9109 ac_cpp='$CPP $CPPFLAGS'
9110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9115 # Source file extension for C test sources.
9118 # Object file extension for compiled C test sources.
9122 # Code to be used in simple compile tests
9123 lt_simple_compile_test_code="int some_variable = 0;"
9125 # Code to be used in simple link tests
9126 lt_simple_link_test_code='int main(){return(0);}'
9134 # If no C compiler was specified, use CC.
9137 # If no C compiler flags were specified, use CFLAGS.
9138 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9140 # Allow CC to be a program name with arguments.
9143 # Save the default compiler, since it gets overwritten when the other
9144 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9145 compiler_DEFAULT=$CC
9147 # save warnings/boilerplate of simple test code
9148 ac_outfile=conftest.$ac_objext
9149 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9150 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9151 _lt_compiler_boilerplate=`cat conftest.err`
9154 ac_outfile=conftest.$ac_objext
9155 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9156 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9157 _lt_linker_boilerplate=`cat conftest.err`
9161 if test -n "$compiler"; then
9163 lt_prog_compiler_no_builtin_flag=
9165 if test yes = "$GCC"; then
9166 case $cc_basename in
9168 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9170 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9174 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9175 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9176 $as_echo_n "(cached) " >&6
9178 lt_cv_prog_compiler_rtti_exceptions=no
9179 ac_outfile=conftest.$ac_objext
9180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9181 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9182 # Insert the option either (1) after the last *FLAGS variable, or
9183 # (2) before a word containing "conftest.", or (3) at the end.
9184 # Note that $ac_compile itself does not contain backslashes and begins
9185 # with a dollar sign (not a hyphen), so the echo should work correctly.
9186 # The option is referenced via a variable to avoid confusing sed.
9187 lt_compile=`echo "$ac_compile" | $SED \
9188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9190 -e 's:$: $lt_compiler_flag:'`
9191 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9192 (eval "$lt_compile" 2>conftest.err)
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 if (exit $ac_status) && test -s "$ac_outfile"; then
9197 # The compiler can only warn and ignore the option if not recognized
9198 # So say no if there are warnings other than the usual output.
9199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_rtti_exceptions=yes
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9209 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9211 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9212 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9224 lt_prog_compiler_wl=
9225 lt_prog_compiler_pic=
9226 lt_prog_compiler_static=
9229 if test yes = "$GCC"; then
9230 lt_prog_compiler_wl='-Wl,'
9231 lt_prog_compiler_static='-static'
9235 # All AIX code is PIC.
9236 if test ia64 = "$host_cpu"; then
9237 # AIX 5 now supports IA64 processor
9238 lt_prog_compiler_static='-Bstatic'
9240 lt_prog_compiler_pic='-fPIC'
9246 # see comment about AmigaOS4 .so support
9247 lt_prog_compiler_pic='-fPIC'
9250 # FIXME: we need at least 68020 code to build shared libraries, but
9251 # adding the '-m68020' flag to GCC prevents building anything better,
9253 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9258 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9259 # PIC is the default for these OSes.
9262 mingw* | cygwin* | pw32* | os2* | cegcc*)
9263 # This hack is so that the source file can tell whether it is being
9264 # built for inclusion in a dll (and should export symbols for example).
9265 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9266 # (--disable-auto-import) libraries
9267 lt_prog_compiler_pic='-DDLL_EXPORT'
9270 lt_prog_compiler_static='$wl-static'
9275 darwin* | rhapsody*)
9276 # PIC is the default on this platform
9277 # Common symbols not allowed in MH_DYLIB files
9278 lt_prog_compiler_pic='-fno-common'
9282 # PIC is the default for Haiku.
9283 # The "-static" flag exists, but is broken.
9284 lt_prog_compiler_static=
9288 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9289 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9290 # sets the default TLS model and affects inlining.
9296 lt_prog_compiler_pic='-fPIC'
9302 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9303 # Instead, we relocate shared libraries at runtime.
9307 # Just because we use GCC doesn't mean we suddenly get shared libraries
9308 # on systems that don't support them.
9309 lt_prog_compiler_can_build_shared=no
9314 # QNX uses GNU C++, but need to define -shared option too, otherwise
9316 lt_prog_compiler_pic='-fPIC -shared'
9320 if test -d /usr/nec; then
9321 lt_prog_compiler_pic=-Kconform_pic
9326 lt_prog_compiler_pic='-fPIC'
9330 case $cc_basename in
9331 nvcc*) # Cuda Compiler Driver 2.2
9332 lt_prog_compiler_wl='-Xlinker '
9333 if test -n "$lt_prog_compiler_pic"; then
9334 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9339 # PORTME Check for flag to pass linker flags through the system compiler.
9342 lt_prog_compiler_wl='-Wl,'
9343 if test ia64 = "$host_cpu"; then
9344 # AIX 5 now supports IA64 processor
9345 lt_prog_compiler_static='-Bstatic'
9347 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9351 darwin* | rhapsody*)
9352 # PIC is the default on this platform
9353 # Common symbols not allowed in MH_DYLIB files
9354 lt_prog_compiler_pic='-fno-common'
9355 case $cc_basename in
9357 # NAG Fortran compiler
9358 lt_prog_compiler_wl='-Wl,-Wl,,'
9359 lt_prog_compiler_pic='-PIC'
9360 lt_prog_compiler_static='-Bstatic'
9365 mingw* | cygwin* | pw32* | os2* | cegcc*)
9366 # This hack is so that the source file can tell whether it is being
9367 # built for inclusion in a dll (and should export symbols for example).
9368 lt_prog_compiler_pic='-DDLL_EXPORT'
9371 lt_prog_compiler_static='$wl-static'
9376 hpux9* | hpux10* | hpux11*)
9377 lt_prog_compiler_wl='-Wl,'
9378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9385 lt_prog_compiler_pic='+Z'
9388 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9389 lt_prog_compiler_static='$wl-a ${wl}archive'
9392 irix5* | irix6* | nonstopux*)
9393 lt_prog_compiler_wl='-Wl,'
9394 # PIC (with -KPIC) is the default.
9395 lt_prog_compiler_static='-non_shared'
9398 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9399 case $cc_basename in
9400 # old Intel for x86_64, which still supported -KPIC.
9402 lt_prog_compiler_wl='-Wl,'
9403 lt_prog_compiler_pic='-KPIC'
9404 lt_prog_compiler_static='-static'
9406 # icc used to be incompatible with GCC.
9407 # ICC 10 doesn't accept -KPIC any more.
9409 lt_prog_compiler_wl='-Wl,'
9410 lt_prog_compiler_pic='-fPIC'
9411 lt_prog_compiler_static='-static'
9413 # Lahey Fortran 8.1.
9415 lt_prog_compiler_wl='-Wl,'
9416 lt_prog_compiler_pic='--shared'
9417 lt_prog_compiler_static='--static'
9420 # NAG Fortran compiler
9421 lt_prog_compiler_wl='-Wl,-Wl,,'
9422 lt_prog_compiler_pic='-PIC'
9423 lt_prog_compiler_static='-Bstatic'
9426 # Fabrice Bellard et al's Tiny C Compiler
9427 lt_prog_compiler_wl='-Wl,'
9428 lt_prog_compiler_pic='-fPIC'
9429 lt_prog_compiler_static='-static'
9431 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9432 # Portland Group compilers (*not* the Pentium gcc compiler,
9433 # which looks to be a dead project)
9434 lt_prog_compiler_wl='-Wl,'
9435 lt_prog_compiler_pic='-fpic'
9436 lt_prog_compiler_static='-Bstatic'
9439 lt_prog_compiler_wl='-Wl,'
9440 # All Alpha code is PIC.
9441 lt_prog_compiler_static='-non_shared'
9443 xl* | bgxl* | bgf* | mpixl*)
9444 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9445 lt_prog_compiler_wl='-Wl,'
9446 lt_prog_compiler_pic='-qpic'
9447 lt_prog_compiler_static='-qstaticlink'
9450 case `$CC -V 2>&1 | sed 5q` in
9451 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9452 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9453 lt_prog_compiler_pic='-KPIC'
9454 lt_prog_compiler_static='-Bstatic'
9455 lt_prog_compiler_wl=''
9457 *Sun\ F* | *Sun*Fortran*)
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9460 lt_prog_compiler_wl='-Qoption ld '
9464 lt_prog_compiler_pic='-KPIC'
9465 lt_prog_compiler_static='-Bstatic'
9466 lt_prog_compiler_wl='-Wl,'
9468 *Intel*\ [CF]*Compiler*)
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_pic='-fPIC'
9471 lt_prog_compiler_static='-static'
9474 lt_prog_compiler_wl='-Wl,'
9475 lt_prog_compiler_pic='-fpic'
9476 lt_prog_compiler_static='-Bstatic'
9484 lt_prog_compiler_pic='-KPIC'
9485 lt_prog_compiler_static='-Bstatic'
9489 # QNX uses GNU C++, but need to define -shared option too, otherwise
9491 lt_prog_compiler_pic='-fPIC -shared'
9494 osf3* | osf4* | osf5*)
9495 lt_prog_compiler_wl='-Wl,'
9496 # All OSF/1 code is PIC.
9497 lt_prog_compiler_static='-non_shared'
9501 lt_prog_compiler_static='-non_shared'
9505 lt_prog_compiler_pic='-KPIC'
9506 lt_prog_compiler_static='-Bstatic'
9507 case $cc_basename in
9508 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9509 lt_prog_compiler_wl='-Qoption ld ';;
9511 lt_prog_compiler_wl='-Wl,';;
9516 lt_prog_compiler_wl='-Qoption ld '
9517 lt_prog_compiler_pic='-PIC'
9518 lt_prog_compiler_static='-Bstatic'
9521 sysv4 | sysv4.2uw2* | sysv4.3*)
9522 lt_prog_compiler_wl='-Wl,'
9523 lt_prog_compiler_pic='-KPIC'
9524 lt_prog_compiler_static='-Bstatic'
9528 if test -d /usr/nec; then
9529 lt_prog_compiler_pic='-Kconform_pic'
9530 lt_prog_compiler_static='-Bstatic'
9534 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9535 lt_prog_compiler_wl='-Wl,'
9536 lt_prog_compiler_pic='-KPIC'
9537 lt_prog_compiler_static='-Bstatic'
9541 lt_prog_compiler_wl='-Wl,'
9542 lt_prog_compiler_can_build_shared=no
9546 lt_prog_compiler_pic='-pic'
9547 lt_prog_compiler_static='-Bstatic'
9551 lt_prog_compiler_can_build_shared=no
9557 # For platforms that do not support PIC, -DPIC is meaningless:
9559 lt_prog_compiler_pic=
9562 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9567 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9568 if ${lt_cv_prog_compiler_pic+:} false; then :
9569 $as_echo_n "(cached) " >&6
9571 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9574 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9575 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9578 # Check to make sure the PIC flag actually works.
9580 if test -n "$lt_prog_compiler_pic"; then
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9582 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9583 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9584 $as_echo_n "(cached) " >&6
9586 lt_cv_prog_compiler_pic_works=no
9587 ac_outfile=conftest.$ac_objext
9588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9589 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9590 # Insert the option either (1) after the last *FLAGS variable, or
9591 # (2) before a word containing "conftest.", or (3) at the end.
9592 # Note that $ac_compile itself does not contain backslashes and begins
9593 # with a dollar sign (not a hyphen), so the echo should work correctly.
9594 # The option is referenced via a variable to avoid confusing sed.
9595 lt_compile=`echo "$ac_compile" | $SED \
9596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9598 -e 's:$: $lt_compiler_flag:'`
9599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9600 (eval "$lt_compile" 2>conftest.err)
9602 cat conftest.err >&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 if (exit $ac_status) && test -s "$ac_outfile"; then
9605 # The compiler can only warn and ignore the option if not recognized
9606 # So say no if there are warnings other than the usual output.
9607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9609 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_pic_works=yes
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9617 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9619 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9620 case $lt_prog_compiler_pic in
9622 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9625 lt_prog_compiler_pic=
9626 lt_prog_compiler_can_build_shared=no
9642 # Check to make sure the static flag actually works.
9644 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9646 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9647 if ${lt_cv_prog_compiler_static_works+:} false; then :
9648 $as_echo_n "(cached) " >&6
9650 lt_cv_prog_compiler_static_works=no
9651 save_LDFLAGS=$LDFLAGS
9652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9655 # The linker can only warn and ignore the option if not recognized
9656 # So say no if there are warnings
9657 if test -s conftest.err; then
9658 # Append any errors to the config.log.
9659 cat conftest.err 1>&5
9660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9662 if diff conftest.exp conftest.er2 >/dev/null; then
9663 lt_cv_prog_compiler_static_works=yes
9666 lt_cv_prog_compiler_static_works=yes
9670 LDFLAGS=$save_LDFLAGS
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9674 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9676 if test yes = "$lt_cv_prog_compiler_static_works"; then
9679 lt_prog_compiler_static=
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9690 if ${lt_cv_prog_compiler_c_o+:} false; then :
9691 $as_echo_n "(cached) " >&6
9693 lt_cv_prog_compiler_c_o=no
9694 $RM -r conftest 2>/dev/null
9698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9700 lt_compiler_flag="-o out/conftest2.$ac_objext"
9701 # Insert the option either (1) after the last *FLAGS variable, or
9702 # (2) before a word containing "conftest.", or (3) at the end.
9703 # Note that $ac_compile itself does not contain backslashes and begins
9704 # with a dollar sign (not a hyphen), so the echo should work correctly.
9705 lt_compile=`echo "$ac_compile" | $SED \
9706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9708 -e 's:$: $lt_compiler_flag:'`
9709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9710 (eval "$lt_compile" 2>out/conftest.err)
9712 cat out/conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9716 # The compiler can only warn and ignore the option if not recognized
9717 # So say no if there are warnings
9718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler_c_o=yes
9726 # SGI C++ compiler will create directory out/ii_files/ for
9727 # template instantiation
9728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9729 $RM out/* && rmdir out
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9736 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9744 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9745 if ${lt_cv_prog_compiler_c_o+:} false; then :
9746 $as_echo_n "(cached) " >&6
9748 lt_cv_prog_compiler_c_o=no
9749 $RM -r conftest 2>/dev/null
9753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9755 lt_compiler_flag="-o out/conftest2.$ac_objext"
9756 # Insert the option either (1) after the last *FLAGS variable, or
9757 # (2) before a word containing "conftest.", or (3) at the end.
9758 # Note that $ac_compile itself does not contain backslashes and begins
9759 # with a dollar sign (not a hyphen), so the echo should work correctly.
9760 lt_compile=`echo "$ac_compile" | $SED \
9761 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9762 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9763 -e 's:$: $lt_compiler_flag:'`
9764 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9765 (eval "$lt_compile" 2>out/conftest.err)
9767 cat out/conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9771 # The compiler can only warn and ignore the option if not recognized
9772 # So say no if there are warnings
9773 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9774 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9775 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9776 lt_cv_prog_compiler_c_o=yes
9781 # SGI C++ compiler will create directory out/ii_files/ for
9782 # template instantiation
9783 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9784 $RM out/* && rmdir out
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9791 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9796 hard_links=nottested
9797 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9798 # do not overwrite the value of need_locks provided by the user
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9800 $as_echo_n "checking if we can lock with hard links... " >&6; }
9803 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9805 ln conftest.a conftest.b 2>&5 || hard_links=no
9806 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9808 $as_echo "$hard_links" >&6; }
9809 if test no = "$hard_links"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9811 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9824 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9827 allow_undefined_flag=
9828 always_export_symbols=no
9830 archive_expsym_cmds=
9831 compiler_needs_object=no
9832 enable_shared_with_static_runtimes=no
9833 export_dynamic_flag_spec=
9834 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9835 hardcode_automatic=no
9837 hardcode_direct_absolute=no
9838 hardcode_libdir_flag_spec=
9839 hardcode_libdir_separator=
9841 hardcode_shlibpath_var=unsupported
9843 link_all_deplibs=unknown
9846 old_archive_from_new_cmds=
9847 old_archive_from_expsyms_cmds=
9848 thread_safe_flag_spec=
9849 whole_archive_flag_spec=
9850 # include_expsyms should be a list of space-separated symbols to be *always*
9851 # included in the symbol list
9853 # exclude_expsyms can be an extended regexp of symbols to exclude
9854 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9855 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9856 # as well as any symbol that contains 'd'.
9857 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9858 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9859 # platforms (ab)use it in PIC code, but their linkers get confused if
9860 # the symbol is explicitly referenced. Since portable code cannot
9861 # rely on this symbol name, it's probably fine to never include it in
9862 # preloaded symbol tables.
9863 # Exclude shared library initialization/finalization symbols.
9864 extract_expsyms_cmds=
9867 cygwin* | mingw* | pw32* | cegcc*)
9868 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9869 # When not using gcc, we currently assume that we are using
9870 # Microsoft Visual C++.
9871 if test yes != "$GCC"; then
9876 # we just hope/assume this is gcc and not c89 (= MSVC++)
9882 linux* | k*bsd*-gnu | gnu*)
9889 # On some targets, GNU ld is compatible enough with the native linker
9890 # that we're better off using the native interface for both.
9891 lt_use_gnu_ld_interface=no
9892 if test yes = "$with_gnu_ld"; then
9895 # The AIX port of GNU ld has always aspired to compatibility
9896 # with the native linker. However, as the warning in the GNU ld
9897 # block says, versions before 2.19.5* couldn't really create working
9898 # shared libraries, regardless of the interface used.
9899 case `$LD -v 2>&1` in
9900 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9901 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9902 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9904 lt_use_gnu_ld_interface=yes
9909 lt_use_gnu_ld_interface=yes
9914 if test yes = "$lt_use_gnu_ld_interface"; then
9915 # If archive_cmds runs LD, not CC, wlarc should be empty
9918 # Set some defaults for GNU ld with shared library support. These
9919 # are reset later if shared libraries are not supported. Putting them
9920 # here allows them to be overridden if necessary.
9921 runpath_var=LD_RUN_PATH
9922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923 export_dynamic_flag_spec='$wl--export-dynamic'
9924 # ancient GNU ld didn't support --whole-archive et. al.
9925 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9926 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9928 whole_archive_flag_spec=
9930 supports_anon_versioning=no
9931 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9932 *GNU\ gold*) supports_anon_versioning=yes ;;
9933 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9934 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9935 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9936 *\ 2.11.*) ;; # other 2.11 versions
9937 *) supports_anon_versioning=yes ;;
9940 # See if GNU ld supports shared libraries.
9943 # On AIX/PPC, the GNU linker is very broken
9944 if test ia64 != "$host_cpu"; then
9948 *** Warning: the GNU linker, at least up to release 2.19, is reported
9949 *** to be unable to reliably create shared libraries on AIX.
9950 *** Therefore, libtool is disabling shared libraries support. If you
9951 *** really care for shared libraries, you may want to install binutils
9952 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9953 *** You will then need to restart the configuration process.
9962 # see comment about AmigaOS4 .so support
9963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9964 archive_expsym_cmds=''
9967 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)'
9968 hardcode_libdir_flag_spec='-L$libdir'
9969 hardcode_minus_L=yes
9975 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9976 allow_undefined_flag=unsupported
9977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9978 # support --undefined. This deserves some investigation. FIXME
9979 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9985 cygwin* | mingw* | pw32* | cegcc*)
9986 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9987 # as there is no search path for DLLs.
9988 hardcode_libdir_flag_spec='-L$libdir'
9989 export_dynamic_flag_spec='$wl--export-all-symbols'
9990 allow_undefined_flag=unsupported
9991 always_export_symbols=no
9992 enable_shared_with_static_runtimes=yes
9993 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9994 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9996 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9998 # If the export-symbols file already is a .def file, use it as
9999 # is; otherwise, prepend EXPORTS...
10000 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10001 cp $export_symbols $output_objdir/$soname.def;
10003 echo EXPORTS > $output_objdir/$soname.def;
10004 cat $export_symbols >> $output_objdir/$soname.def;
10006 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10014 link_all_deplibs=yes
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_minus_L=yes
10020 allow_undefined_flag=unsupported
10022 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10025 $ECHO EXPORTS >> $output_objdir/$libname.def~
10026 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10027 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10028 emximp -o $lib $output_objdir/$libname.def'
10029 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10030 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10031 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10032 $ECHO EXPORTS >> $output_objdir/$libname.def~
10033 prefix_cmds="$SED"~
10034 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10035 prefix_cmds="$prefix_cmds -e 1d";
10037 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10038 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10039 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10040 emximp -o $lib $output_objdir/$libname.def'
10041 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10042 enable_shared_with_static_runtimes=yes
10047 hardcode_shlibpath_var=no
10048 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10049 export_dynamic_flag_spec='$wl-E'
10050 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10051 # Instead, shared libraries are loaded at an image base (0x10000000 by
10052 # default) and relocated if they conflict, which is a slow very memory
10053 # consuming and fragmenting process. To avoid this, we pick a random,
10054 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10055 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10056 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10057 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'
10060 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10062 if test linux-dietlibc = "$host_os"; then
10063 case $cc_basename in
10064 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10067 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10068 && test no = "$tmp_diet"
10070 tmp_addflag=' $pic_flag'
10071 tmp_sharedflag='-shared'
10072 case $cc_basename,$host_cpu in
10073 pgcc*) # Portland Group C compiler
10074 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10075 tmp_addflag=' $pic_flag'
10077 pgf77* | pgf90* | pgf95* | pgfortran*)
10078 # Portland Group f77 and f90 compilers
10079 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10080 tmp_addflag=' $pic_flag -Mnomain' ;;
10081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10082 tmp_addflag=' -i_dynamic' ;;
10083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10084 tmp_addflag=' -i_dynamic -nofor_main' ;;
10085 ifc* | ifort*) # Intel Fortran compiler
10086 tmp_addflag=' -nofor_main' ;;
10087 lf95*) # Lahey Fortran 8.1
10088 whole_archive_flag_spec=
10089 tmp_sharedflag='--shared' ;;
10090 nagfor*) # NAGFOR 5.3
10091 tmp_sharedflag='-Wl,-shared' ;;
10092 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10093 tmp_sharedflag='-qmkshrobj'
10095 nvcc*) # Cuda Compiler Driver 2.2
10096 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10097 compiler_needs_object=yes
10100 case `$CC -V 2>&1 | sed 5q` in
10101 *Sun\ C*) # Sun C 5.9
10102 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10103 compiler_needs_object=yes
10104 tmp_sharedflag='-G' ;;
10105 *Sun\ F*) # Sun Fortran 8.3
10106 tmp_sharedflag='-G' ;;
10108 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10110 if test yes = "$supports_anon_versioning"; then
10111 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10113 echo "local: *; };" >> $output_objdir/$libname.ver~
10114 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10117 case $cc_basename in
10119 export_dynamic_flag_spec='-rdynamic'
10121 xlf* | bgf* | bgxlf* | mpixlf*)
10122 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10123 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10124 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10125 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10126 if test yes = "$supports_anon_versioning"; then
10127 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10129 echo "local: *; };" >> $output_objdir/$libname.ver~
10130 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10139 netbsd* | netbsdelf*-gnu)
10140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10144 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10145 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10150 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10154 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10155 *** create shared libraries on Solaris systems. Therefore, libtool
10156 *** is disabling shared libraries support. We urge you to upgrade GNU
10157 *** binutils to release 2.9.1 or newer. Another option is to modify
10158 *** your PATH or compiler configuration so that the native linker is
10159 *** used, and then restart.
10162 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10164 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10170 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10171 case `$LD -v 2>&1` in
10172 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10176 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10177 *** reliably create shared libraries on SCO systems. Therefore, libtool
10178 *** is disabling shared libraries support. We urge you to upgrade GNU
10179 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10180 *** your PATH or compiler configuration so that the native linker is
10181 *** used, and then restart.
10186 # For security reasons, it is highly recommended that you always
10187 # use absolute paths for naming shared libraries, and exclude the
10188 # DT_RUNPATH tag from executables and libraries. But doing so
10189 # requires that you compile everything twice, which is a pain.
10190 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10202 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10204 hardcode_direct=yes
10205 hardcode_shlibpath_var=no
10209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10211 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10218 if test no = "$ld_shlibs"; then
10220 hardcode_libdir_flag_spec=
10221 export_dynamic_flag_spec=
10222 whole_archive_flag_spec=
10225 # PORTME fill in a description of your system's linker (not GNU ld)
10228 allow_undefined_flag=unsupported
10229 always_export_symbols=yes
10230 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'
10231 # Note: this linker hardcodes the directories in LIBPATH if there
10232 # are no directories specified by -L.
10233 hardcode_minus_L=yes
10234 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10235 # Neither direct hardcoding nor static linking is supported with a
10237 hardcode_direct=unsupported
10242 if test ia64 = "$host_cpu"; then
10243 # On IA64, the linker does run time linking by default, so we don't
10244 # have to do anything special.
10245 aix_use_runtimelinking=no
10246 exp_sym_flag='-Bexport'
10249 # If we're using GNU nm, then we don't want the "-C" option.
10250 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10251 # Without the "-l" option, or with the "-B" option, AIX nm treats
10252 # weak defined symbols like other global defined symbols, whereas
10253 # GNU nm marks them as "W".
10254 # While the 'weak' keyword is ignored in the Export File, we need
10255 # it in the Import File for the 'aix-soname' feature, so we have
10256 # to replace the "-B" option with "-P" for AIX nm.
10257 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10258 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10260 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10262 aix_use_runtimelinking=no
10264 # Test if we are trying to use run time linking or normal
10265 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10266 # have runtime linking enabled, and use it for executables.
10267 # For shared libraries, we enable/disable runtime linking
10268 # depending on the kind of the shared library created -
10269 # when "with_aix_soname,aix_use_runtimelinking" is:
10270 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10271 # "aix,yes" lib.so shared, rtl:yes, for executables
10272 # lib.a static archive
10273 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10274 # lib.a(lib.so.V) shared, rtl:no, for executables
10275 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10276 # lib.a(lib.so.V) shared, rtl:no
10277 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10278 # lib.a static archive
10279 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10280 for ld_flag in $LDFLAGS; do
10281 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10282 aix_use_runtimelinking=yes
10286 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10287 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10288 # so we don't have lib.a shared libs to link our executables.
10289 # We have to force runtime linking in this case.
10290 aix_use_runtimelinking=yes
10291 LDFLAGS="$LDFLAGS -Wl,-brtl"
10296 exp_sym_flag='-bexport'
10297 no_entry_flag='-bnoentry'
10300 # When large executables or shared objects are built, AIX ld can
10301 # have problems creating the table of contents. If linking a library
10302 # or program results in "error TOC overflow" add -mminimal-toc to
10303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10307 hardcode_direct=yes
10308 hardcode_direct_absolute=yes
10309 hardcode_libdir_separator=':'
10310 link_all_deplibs=yes
10311 file_list_spec='$wl-f,'
10312 case $with_aix_soname,$aix_use_runtimelinking in
10313 aix,*) ;; # traditional, no import file
10314 svr4,* | *,yes) # use import file
10315 # The Import File defines what to hardcode.
10317 hardcode_direct_absolute=no
10321 if test yes = "$GCC"; then
10322 case $host_os in aix4.[012]|aix4.[012].*)
10323 # We only want to do this on AIX 4.2 and lower, the check
10324 # below for broken collect2 doesn't work under 4.3+
10325 collect2name=`$CC -print-prog-name=collect2`
10326 if test -f "$collect2name" &&
10327 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10329 # We have reworked collect2
10332 # We have old collect2
10333 hardcode_direct=unsupported
10334 # It fails to find uninstalled libraries when the uninstalled
10335 # path is not listed in the libpath. Setting hardcode_minus_L
10336 # to unsupported forces relinking
10337 hardcode_minus_L=yes
10338 hardcode_libdir_flag_spec='-L$libdir'
10339 hardcode_libdir_separator=
10343 shared_flag='-shared'
10344 if test yes = "$aix_use_runtimelinking"; then
10345 shared_flag="$shared_flag "'$wl-G'
10347 # Need to ensure runtime linking is disabled for the traditional
10348 # shared library, or the linker may eventually find shared libraries
10349 # /with/ Import File - we do not want to mix them.
10350 shared_flag_aix='-shared'
10351 shared_flag_svr4='-shared $wl-G'
10354 if test ia64 = "$host_cpu"; then
10355 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10356 # chokes on -Wl,-G. The following line is correct:
10359 if test yes = "$aix_use_runtimelinking"; then
10360 shared_flag='$wl-G'
10362 shared_flag='$wl-bM:SRE'
10364 shared_flag_aix='$wl-bM:SRE'
10365 shared_flag_svr4='$wl-G'
10369 export_dynamic_flag_spec='$wl-bexpall'
10370 # It seems that -bexpall does not export symbols beginning with
10371 # underscore (_), so it is better to generate a list of symbols to export.
10372 always_export_symbols=yes
10373 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10374 # Warning - without using the other runtime loading flags (-brtl),
10375 # -berok will link without error, but may produce a broken library.
10376 allow_undefined_flag='-berok'
10377 # Determine the default libpath from the value encoded in an
10378 # empty executable.
10379 if test set = "${lt_cv_aix_libpath+set}"; then
10380 aix_libpath=$lt_cv_aix_libpath
10382 if ${lt_cv_aix_libpath_+:} false; then :
10383 $as_echo_n "(cached) " >&6
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10396 if ac_fn_c_try_link "$LINENO"; then :
10398 lt_aix_libpath_sed='
10399 /Import File Strings/,/^$/ {
10401 s/^0 *\([^ ]*\) *$/\1/
10405 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406 # Check for a 64-bit object if we didn't find anything.
10407 if test -z "$lt_cv_aix_libpath_"; then
10408 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test -z "$lt_cv_aix_libpath_"; then
10414 lt_cv_aix_libpath_=/usr/lib:/lib
10419 aix_libpath=$lt_cv_aix_libpath_
10422 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10423 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10425 if test ia64 = "$host_cpu"; then
10426 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10427 allow_undefined_flag="-z nodefs"
10428 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"
10430 # Determine the default libpath from the value encoded in an
10431 # empty executable.
10432 if test set = "${lt_cv_aix_libpath+set}"; then
10433 aix_libpath=$lt_cv_aix_libpath
10435 if ${lt_cv_aix_libpath_+:} false; then :
10436 $as_echo_n "(cached) " >&6
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10449 if ac_fn_c_try_link "$LINENO"; then :
10451 lt_aix_libpath_sed='
10452 /Import File Strings/,/^$/ {
10454 s/^0 *\([^ ]*\) *$/\1/
10458 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10459 # Check for a 64-bit object if we didn't find anything.
10460 if test -z "$lt_cv_aix_libpath_"; then
10461 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10464 rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466 if test -z "$lt_cv_aix_libpath_"; then
10467 lt_cv_aix_libpath_=/usr/lib:/lib
10472 aix_libpath=$lt_cv_aix_libpath_
10475 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10476 # Warning - without using the other run time loading flags,
10477 # -berok will link without error, but may produce a broken library.
10478 no_undefined_flag=' $wl-bernotok'
10479 allow_undefined_flag=' $wl-berok'
10480 if test yes = "$with_gnu_ld"; then
10481 # We only use this code for GNU lds that support --whole-archive.
10482 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10484 # Exported symbols can be pulled into shared objects from archives
10485 whole_archive_flag_spec='$convenience'
10487 archive_cmds_need_lc=yes
10488 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10489 # -brtl affects multiple linker settings, -berok does not and is overridden later
10490 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10491 if test svr4 != "$with_aix_soname"; then
10492 # This is similar to how AIX traditionally builds its shared libraries.
10493 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10495 if test aix != "$with_aix_soname"; then
10496 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10498 # used by -dlpreopen to get the symbols
10499 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10501 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10509 # see comment about AmigaOS4 .so support
10510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10511 archive_expsym_cmds=''
10514 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)'
10515 hardcode_libdir_flag_spec='-L$libdir'
10516 hardcode_minus_L=yes
10522 export_dynamic_flag_spec=-rdynamic
10525 cygwin* | mingw* | pw32* | cegcc*)
10526 # When not using gcc, we currently assume that we are using
10527 # Microsoft Visual C++.
10528 # hardcode_libdir_flag_spec is actually meaningless, as there is
10529 # no search path for DLLs.
10530 case $cc_basename in
10533 hardcode_libdir_flag_spec=' '
10534 allow_undefined_flag=unsupported
10535 always_export_symbols=yes
10537 # Tell ltmain to make .lib files, not .a files.
10539 # Tell ltmain to make .dll files, not .so files.
10541 # FIXME: Setting linknames here is a bad hack.
10542 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10543 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10544 cp "$export_symbols" "$output_objdir/$soname.def";
10545 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10547 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10549 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10551 # The linker will not automatically build a static lib if we build a DLL.
10552 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10553 enable_shared_with_static_runtimes=yes
10554 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10555 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10557 old_postinstall_cmds='chmod 644 $oldlib'
10558 postlink_cmds='lt_outputfile="@OUTPUT@"~
10559 lt_tool_outputfile="@TOOL_OUTPUT@"~
10560 case $lt_outputfile in
10563 lt_outputfile=$lt_outputfile.exe
10564 lt_tool_outputfile=$lt_tool_outputfile.exe
10567 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10568 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10569 $RM "$lt_outputfile.manifest";
10573 # Assume MSVC wrapper
10574 hardcode_libdir_flag_spec=' '
10575 allow_undefined_flag=unsupported
10576 # Tell ltmain to make .lib files, not .a files.
10578 # Tell ltmain to make .dll files, not .so files.
10580 # FIXME: Setting linknames here is a bad hack.
10581 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10582 # The linker will automatically build a .lib file if we build a DLL.
10583 old_archive_from_new_cmds='true'
10584 # FIXME: Should let the user specify the lib program.
10585 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10586 enable_shared_with_static_runtimes=yes
10591 darwin* | rhapsody*)
10594 archive_cmds_need_lc=no
10596 hardcode_automatic=yes
10597 hardcode_shlibpath_var=unsupported
10598 if test yes = "$lt_cv_ld_force_load"; then
10599 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10602 whole_archive_flag_spec=''
10604 link_all_deplibs=yes
10605 allow_undefined_flag=$_lt_dar_allow_undefined
10606 case $cc_basename in
10607 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10608 *) _lt_dar_can_shared=$GCC ;;
10610 if test yes = "$_lt_dar_can_shared"; then
10611 output_verbose_link_cmd=func_echo_all
10612 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10613 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10614 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"
10615 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"
10624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_libdir_flag_spec='-L$libdir'
10626 hardcode_shlibpath_var=no
10629 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10630 # support. Future versions do this automatically, but an explicit c++rt0.o
10631 # does not break anything, and helps significantly (at the cost of a little
10634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10635 hardcode_libdir_flag_spec='-R$libdir'
10636 hardcode_direct=yes
10637 hardcode_shlibpath_var=no
10640 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_direct=yes
10644 hardcode_minus_L=yes
10645 hardcode_shlibpath_var=no
10648 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10649 freebsd* | dragonfly*)
10650 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10651 hardcode_libdir_flag_spec='-R$libdir'
10652 hardcode_direct=yes
10653 hardcode_shlibpath_var=no
10657 if test yes = "$GCC"; then
10658 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10660 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10662 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10663 hardcode_libdir_separator=:
10664 hardcode_direct=yes
10666 # hardcode_minus_L: Not really in the search PATH,
10667 # but as the default location of the library.
10668 hardcode_minus_L=yes
10669 export_dynamic_flag_spec='$wl-E'
10673 if test yes,no = "$GCC,$with_gnu_ld"; then
10674 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10678 if test no = "$with_gnu_ld"; then
10679 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10680 hardcode_libdir_separator=:
10681 hardcode_direct=yes
10682 hardcode_direct_absolute=yes
10683 export_dynamic_flag_spec='$wl-E'
10684 # hardcode_minus_L: Not really in the search PATH,
10685 # but as the default location of the library.
10686 hardcode_minus_L=yes
10691 if test yes,no = "$GCC,$with_gnu_ld"; then
10694 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10697 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10700 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10706 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10709 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10713 # Older versions of the 11.00 compiler do not understand -b yet
10714 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10716 $as_echo_n "checking if $CC understands -b... " >&6; }
10717 if ${lt_cv_prog_compiler__b+:} false; then :
10718 $as_echo_n "(cached) " >&6
10720 lt_cv_prog_compiler__b=no
10721 save_LDFLAGS=$LDFLAGS
10722 LDFLAGS="$LDFLAGS -b"
10723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10725 # The linker can only warn and ignore the option if not recognized
10726 # So say no if there are warnings
10727 if test -s conftest.err; then
10728 # Append any errors to the config.log.
10729 cat conftest.err 1>&5
10730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10732 if diff conftest.exp conftest.er2 >/dev/null; then
10733 lt_cv_prog_compiler__b=yes
10736 lt_cv_prog_compiler__b=yes
10740 LDFLAGS=$save_LDFLAGS
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10744 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10746 if test yes = "$lt_cv_prog_compiler__b"; then
10747 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10749 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10755 if test no = "$with_gnu_ld"; then
10756 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10757 hardcode_libdir_separator=:
10762 hardcode_shlibpath_var=no
10765 hardcode_direct=yes
10766 hardcode_direct_absolute=yes
10767 export_dynamic_flag_spec='$wl-E'
10769 # hardcode_minus_L: Not really in the search PATH,
10770 # but as the default location of the library.
10771 hardcode_minus_L=yes
10777 irix5* | irix6* | nonstopux*)
10778 if test yes = "$GCC"; then
10779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10780 # Try to use the -exported_symbol ld option, if it does not
10781 # work, assume that -exports_file does not work either and
10782 # implicitly export all symbols.
10783 # This should be the same for all languages, so no per-tag cache variable.
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10785 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10786 if ${lt_cv_irix_exported_symbol+:} false; then :
10787 $as_echo_n "(cached) " >&6
10789 save_LDFLAGS=$LDFLAGS
10790 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 int foo (void) { return 0; }
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 lt_cv_irix_exported_symbol=yes
10798 lt_cv_irix_exported_symbol=no
10800 rm -f core conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LDFLAGS=$save_LDFLAGS
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10805 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10806 if test yes = "$lt_cv_irix_exported_symbol"; then
10807 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10809 link_all_deplibs=no
10811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10814 archive_cmds_need_lc='no'
10815 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10816 hardcode_libdir_separator=:
10818 link_all_deplibs=yes
10822 case $cc_basename in
10824 # Fabrice Bellard et al's Tiny C Compiler
10826 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10831 netbsd* | netbsdelf*-gnu)
10832 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10835 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10837 hardcode_libdir_flag_spec='-R$libdir'
10838 hardcode_direct=yes
10839 hardcode_shlibpath_var=no
10843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_direct=yes
10845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10846 hardcode_libdir_separator=:
10847 hardcode_shlibpath_var=no
10853 openbsd* | bitrig*)
10854 if test -f /usr/libexec/ld.so; then
10855 hardcode_direct=yes
10856 hardcode_shlibpath_var=no
10857 hardcode_direct_absolute=yes
10858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10860 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10861 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10862 export_dynamic_flag_spec='$wl-E'
10864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10865 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10873 hardcode_libdir_flag_spec='-L$libdir'
10874 hardcode_minus_L=yes
10875 allow_undefined_flag=unsupported
10877 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10878 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10879 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10880 $ECHO EXPORTS >> $output_objdir/$libname.def~
10881 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10882 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10883 emximp -o $lib $output_objdir/$libname.def'
10884 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10885 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10886 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10887 $ECHO EXPORTS >> $output_objdir/$libname.def~
10888 prefix_cmds="$SED"~
10889 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10890 prefix_cmds="$prefix_cmds -e 1d";
10892 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10893 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10894 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10895 emximp -o $lib $output_objdir/$libname.def'
10896 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10897 enable_shared_with_static_runtimes=yes
10901 if test yes = "$GCC"; then
10902 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10903 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10905 allow_undefined_flag=' -expect_unresolved \*'
10906 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10908 archive_cmds_need_lc='no'
10909 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10910 hardcode_libdir_separator=:
10913 osf4* | osf5*) # as osf3* with the addition of -msym flag
10914 if test yes = "$GCC"; then
10915 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10916 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10917 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10919 allow_undefined_flag=' -expect_unresolved \*'
10920 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10921 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~
10922 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10924 # Both c and cxx compiler support -rpath directly
10925 hardcode_libdir_flag_spec='-rpath $libdir'
10927 archive_cmds_need_lc='no'
10928 hardcode_libdir_separator=:
10932 no_undefined_flag=' -z defs'
10933 if test yes = "$GCC"; then
10935 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10937 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10939 case `$CC -V 2>&1` in
10942 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10944 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10948 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10950 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10954 hardcode_libdir_flag_spec='-R$libdir'
10955 hardcode_shlibpath_var=no
10957 solaris2.[0-5] | solaris2.[0-5].*) ;;
10959 # The compiler driver will combine and reorder linker options,
10960 # but understands '-z linker_flag'. GCC discards it without '$wl',
10961 # but is careful enough not to reorder.
10962 # Supported since Solaris 2.6 (maybe 2.5.1?)
10963 if test yes = "$GCC"; then
10964 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10966 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10970 link_all_deplibs=yes
10974 if test sequent = "$host_vendor"; then
10975 # Use $CC to link under sequent, because it throws in some extra .o
10976 # files that make .init and .fini sections work.
10977 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_libdir_flag_spec='-L$libdir'
10982 hardcode_direct=yes
10983 hardcode_minus_L=yes
10984 hardcode_shlibpath_var=no
10988 case $host_vendor in
10990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991 hardcode_direct=yes # is this really true???
10994 ## LD is ld it makes a PLAMLIB
10995 ## CC just makes a GrossModule.
10996 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10997 reload_cmds='$CC -r -o $output$reload_objs'
11001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11002 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11005 runpath_var='LD_RUN_PATH'
11006 hardcode_shlibpath_var=no
11010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011 hardcode_shlibpath_var=no
11012 export_dynamic_flag_spec='-Bexport'
11016 if test -d /usr/nec; then
11017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018 hardcode_shlibpath_var=no
11019 runpath_var=LD_RUN_PATH
11020 hardcode_runpath_var=yes
11025 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11026 no_undefined_flag='$wl-z,text'
11027 archive_cmds_need_lc=no
11028 hardcode_shlibpath_var=no
11029 runpath_var='LD_RUN_PATH'
11031 if test yes = "$GCC"; then
11032 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 sysv5* | sco3.2v5* | sco5v6*)
11041 # Note: We CANNOT use -z defs as we might desire, because we do not
11042 # link with -lc, and that would cause any symbols used from libc to
11043 # always be unresolved, which means just about no library would
11044 # ever link correctly. If we're not using GNU ld we use -z text
11045 # though, which does catch some bad symbols but isn't as heavy-handed
11047 no_undefined_flag='$wl-z,text'
11048 allow_undefined_flag='$wl-z,nodefs'
11049 archive_cmds_need_lc=no
11050 hardcode_shlibpath_var=no
11051 hardcode_libdir_flag_spec='$wl-R,$libdir'
11052 hardcode_libdir_separator=':'
11053 link_all_deplibs=yes
11054 export_dynamic_flag_spec='$wl-Bexport'
11055 runpath_var='LD_RUN_PATH'
11057 if test yes = "$GCC"; then
11058 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11062 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_libdir_flag_spec='-L$libdir'
11069 hardcode_shlibpath_var=no
11077 if test sni = "$host_vendor"; then
11079 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11080 export_dynamic_flag_spec='$wl-Blargedynsym'
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11087 $as_echo "$ld_shlibs" >&6; }
11088 test no = "$ld_shlibs" && can_build_shared=no
11090 with_gnu_ld=$with_gnu_ld
11107 # Do we need to explicitly link libc?
11109 case "x$archive_cmds_need_lc" in
11111 # Assume -lc should be added
11112 archive_cmds_need_lc=yes
11114 if test yes,yes = "$GCC,$enable_shared"; then
11115 case $archive_cmds in
11117 # FIXME: we may have to deal with multi-command sequences.
11120 # Test whether the compiler implicitly links with -lc since on some
11121 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11122 # to ld, don't add -lc before -lgcc.
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11124 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11125 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11126 $as_echo_n "(cached) " >&6
11129 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11132 (eval $ac_compile) 2>&5
11134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11135 test $ac_status = 0; } 2>conftest.err; then
11138 libobjs=conftest.$ac_objext
11140 wl=$lt_prog_compiler_wl
11141 pic_flag=$lt_prog_compiler_pic
11147 lt_save_allow_undefined_flag=$allow_undefined_flag
11148 allow_undefined_flag=
11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11150 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; }
11155 lt_cv_archive_cmds_need_lc=no
11157 lt_cv_archive_cmds_need_lc=yes
11159 allow_undefined_flag=$lt_save_allow_undefined_flag
11161 cat conftest.err 1>&5
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11167 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11168 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11329 if test yes = "$GCC"; then
11331 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11332 *) lt_awk_arg='/^libraries:/' ;;
11335 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11336 *) lt_sed_strip_eq='s|=/|/|g' ;;
11338 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11339 case $lt_search_path_spec in
11341 # if the path contains ";" then we assume it to be the separator
11342 # otherwise default to the standard path separator (i.e. ":") - it is
11343 # assumed that no part of a normal pathname contains ";" but that should
11344 # okay in the real world where ";" in dirpaths is itself problematic.
11345 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11351 # Ok, now we have the path, separated by spaces, we can step through it
11352 # and add multilib dir if necessary...
11353 lt_tmp_lt_search_path_spec=
11354 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11355 # ...but if some path component already ends with the multilib dir we assume
11356 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11357 case "$lt_multi_os_dir; $lt_search_path_spec " in
11358 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11362 for lt_sys_path in $lt_search_path_spec; do
11363 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11364 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11365 elif test -n "$lt_multi_os_dir"; then
11366 test -d "$lt_sys_path" && \
11367 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11370 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11371 BEGIN {RS = " "; FS = "/|\n";} {
11374 for (lt_i = NF; lt_i > 0; lt_i--) {
11375 if ($lt_i != "" && $lt_i != ".") {
11376 if ($lt_i == "..") {
11379 if (lt_count == 0) {
11380 lt_foo = "/" $lt_i lt_foo;
11387 if (lt_foo != "") { lt_freq[lt_foo]++; }
11388 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11390 # AWK program above erroneously prepends '/' to C:/dos/paths
11393 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11394 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11396 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11398 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11400 library_names_spec=
11401 libname_spec='lib$name'
11405 postuninstall_cmds=
11409 shlibpath_overrides_runpath=unknown
11411 dynamic_linker="$host_os ld.so"
11412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11413 need_lib_prefix=unknown
11414 hardcode_into_libs=no
11416 # when you set need_version to no, make sure it does not cause -set_version
11417 # flags to be left without arguments
11418 need_version=unknown
11424 version_type=linux # correct to gnu/linux during the next big refactor
11425 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11426 shlibpath_var=LIBPATH
11428 # AIX 3 has no versioning support, so we append a major version to the name.
11429 soname_spec='$libname$release$shared_ext$major'
11433 version_type=linux # correct to gnu/linux during the next big refactor
11436 hardcode_into_libs=yes
11437 if test ia64 = "$host_cpu"; then
11438 # AIX 5 supports IA64
11439 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11440 shlibpath_var=LD_LIBRARY_PATH
11442 # With GCC up to 2.95.x, collect2 would create an import file
11443 # for dependence libraries. The import file would start with
11444 # the line '#! .'. This would cause the generated library to
11445 # depend on '.', always an invalid library. This was fixed in
11446 # development snapshots of GCC prior to 3.0.
11448 aix4 | aix4.[01] | aix4.[01].*)
11449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11451 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11454 can_build_shared=no
11458 # Using Import Files as archive members, it is possible to support
11459 # filename-based versioning of shared library archives on AIX. While
11460 # this would work for both with and without runtime linking, it will
11461 # prevent static linking of such archives. So we do filename-based
11462 # shared library versioning with .so extension only, which is used
11463 # when both runtime linking and shared linking is enabled.
11464 # Unfortunately, runtime linking may impact performance, so we do
11465 # not want this to be the default eventually. Also, we use the
11466 # versioned .so libs for executables only if there is the -brtl
11467 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11468 # To allow for filename-based versioning support, we need to create
11469 # libNAME.so.V as an archive file, containing:
11470 # *) an Import File, referring to the versioned filename of the
11471 # archive as well as the shared archive member, telling the
11472 # bitwidth (32 or 64) of that shared object, and providing the
11473 # list of exported symbols of that shared object, eventually
11474 # decorated with the 'weak' keyword
11475 # *) the shared object with the F_LOADONLY flag set, to really avoid
11476 # it being seen by the linker.
11477 # At run time we better use the real file rather than another symlink,
11478 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11480 case $with_aix_soname,$aix_use_runtimelinking in
11481 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11482 # soname into executable. Probably we can add versioning support to
11483 # collect2, so additional links can be useful in future.
11484 aix,yes) # traditional libtool
11485 dynamic_linker='AIX unversionable lib.so'
11486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11487 # instead of lib<name>.a to let people know that these are not
11488 # typical AIX shared libraries.
11489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11491 aix,no) # traditional AIX only
11492 dynamic_linker='AIX lib.a(lib.so.V)'
11493 # We preserve .a as extension for shared libraries through AIX4.2
11494 # and later when we are not doing run time linking.
11495 library_names_spec='$libname$release.a $libname.a'
11496 soname_spec='$libname$release$shared_ext$major'
11498 svr4,*) # full svr4 only
11499 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11500 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11501 # We do not specify a path in Import Files, so LIBPATH fires.
11502 shlibpath_overrides_runpath=yes
11504 *,yes) # both, prefer svr4
11505 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11506 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11507 # unpreferred sharedlib libNAME.a needs extra handling
11508 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11509 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11510 # We do not specify a path in Import Files, so LIBPATH fires.
11511 shlibpath_overrides_runpath=yes
11513 *,no) # both, prefer aix
11514 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11515 library_names_spec='$libname$release.a $libname.a'
11516 soname_spec='$libname$release$shared_ext$major'
11517 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11518 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11519 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11522 shlibpath_var=LIBPATH
11529 # Since July 2007 AmigaOS4 officially supports .so libraries.
11530 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11534 library_names_spec='$libname.ixlibrary $libname.a'
11535 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11536 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11542 library_names_spec='$libname$shared_ext'
11543 dynamic_linker="$host_os ld.so"
11544 shlibpath_var=LIBRARY_PATH
11548 version_type=linux # correct to gnu/linux during the next big refactor
11550 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11551 soname_spec='$libname$release$shared_ext$major'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11555 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11556 # the default ld.so.conf also contains /usr/contrib/lib and
11557 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11558 # libtool to hard-code these into programs
11561 cygwin* | mingw* | pw32* | cegcc*)
11562 version_type=windows
11567 case $GCC,$cc_basename in
11570 library_names_spec='$libname.dll.a'
11571 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11572 postinstall_cmds='base_file=`basename \$file`~
11573 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11574 dldir=$destdir/`dirname \$dlpath`~
11575 test -d \$dldir || mkdir -p \$dldir~
11576 $install_prog $dir/$dlname \$dldir/$dlname~
11577 chmod a+x \$dldir/$dlname~
11578 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11579 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11581 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11582 dlpath=$dir/\$dldll~
11584 shlibpath_overrides_runpath=yes
11588 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11589 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11594 # MinGW DLLs use traditional 'lib' prefix
11595 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11598 # pw32 DLLs use 'pw' prefix rather than 'lib'
11599 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11602 dynamic_linker='Win32 ld.exe'
11607 libname_spec='$name'
11608 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11609 library_names_spec='$libname.dll.lib'
11613 sys_lib_search_path_spec=
11616 for lt_path in $LIB
11619 # Let DOS variable expansion print the short 8.3 style file name.
11620 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11621 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11624 # Convert to MSYS style.
11625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11628 # Convert to unix form, then to dos form, then back to unix form
11629 # but this time dos style (no spaces!) so that the unix form looks
11630 # like /cygdrive/c/PROGRA~1:/cygdr...
11631 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11632 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11633 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11636 sys_lib_search_path_spec=$LIB
11637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11638 # It is most probably a Windows format PATH.
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11643 # FIXME: find the short name or the path components, as spaces are
11644 # common. (e.g. "Program Files" -> "PROGRA~1")
11648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11649 postinstall_cmds='base_file=`basename \$file`~
11650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11651 dldir=$destdir/`dirname \$dlpath`~
11652 test -d \$dldir || mkdir -p \$dldir~
11653 $install_prog $dir/$dlname \$dldir/$dlname'
11654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11655 dlpath=$dir/\$dldll~
11657 shlibpath_overrides_runpath=yes
11658 dynamic_linker='Win32 link.exe'
11662 # Assume MSVC wrapper
11663 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11664 dynamic_linker='Win32 ld.exe'
11667 # FIXME: first we should search . and the directory the executable is in
11671 darwin* | rhapsody*)
11672 dynamic_linker="$host_os dyld"
11673 version_type=darwin
11676 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11677 soname_spec='$libname$release$major$shared_ext'
11678 shlibpath_overrides_runpath=yes
11679 shlibpath_var=DYLD_LIBRARY_PATH
11680 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11682 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11687 version_type=linux # correct to gnu/linux during the next big refactor
11690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691 soname_spec='$libname$release$shared_ext$major'
11692 shlibpath_var=LD_LIBRARY_PATH
11695 freebsd* | dragonfly*)
11696 # DragonFly does not have aout. When/if they implement a new
11697 # versioning mechanism, adjust this.
11698 if test -x /usr/bin/objformat; then
11699 objformat=`/usr/bin/objformat`
11702 freebsd[23].*) objformat=aout ;;
11703 *) objformat=elf ;;
11706 version_type=freebsd-$objformat
11707 case $version_type in
11709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11710 soname_spec='$libname$release$shared_ext$major'
11715 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11719 shlibpath_var=LD_LIBRARY_PATH
11722 shlibpath_overrides_runpath=yes
11724 freebsd3.[01]* | freebsdelf3.[01]*)
11725 shlibpath_overrides_runpath=yes
11726 hardcode_into_libs=yes
11728 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11729 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11730 shlibpath_overrides_runpath=no
11731 hardcode_into_libs=yes
11733 *) # from 4.6 on, and DragonFly
11734 shlibpath_overrides_runpath=yes
11735 hardcode_into_libs=yes
11741 version_type=linux # correct to gnu/linux during the next big refactor
11744 dynamic_linker="$host_os runtime_loader"
11745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11746 soname_spec='$libname$release$shared_ext$major'
11747 shlibpath_var=LIBRARY_PATH
11748 shlibpath_overrides_runpath=no
11749 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11750 hardcode_into_libs=yes
11753 hpux9* | hpux10* | hpux11*)
11754 # Give a soname corresponding to the major version so that dld.sl refuses to
11755 # link against other versions.
11762 hardcode_into_libs=yes
11763 dynamic_linker="$host_os dld.so"
11764 shlibpath_var=LD_LIBRARY_PATH
11765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11767 soname_spec='$libname$release$shared_ext$major'
11768 if test 32 = "$HPUX_IA64_MODE"; then
11769 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11770 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11772 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11773 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11778 hardcode_into_libs=yes
11779 dynamic_linker="$host_os dld.sl"
11780 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11783 soname_spec='$libname$release$shared_ext$major'
11784 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11785 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11789 dynamic_linker="$host_os dld.sl"
11790 shlibpath_var=SHLIB_PATH
11791 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11793 soname_spec='$libname$release$shared_ext$major'
11796 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11797 postinstall_cmds='chmod 555 $lib'
11798 # or fails outright, so override atomically:
11799 install_override_mode=555
11803 version_type=linux # correct to gnu/linux during the next big refactor
11806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11807 soname_spec='$libname$release$shared_ext$major'
11808 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11809 shlibpath_var=LD_LIBRARY_PATH
11810 shlibpath_overrides_runpath=no
11811 hardcode_into_libs=yes
11814 irix5* | irix6* | nonstopux*)
11816 nonstopux*) version_type=nonstopux ;;
11818 if test yes = "$lt_cv_prog_gnu_ld"; then
11819 version_type=linux # correct to gnu/linux during the next big refactor
11826 soname_spec='$libname$release$shared_ext$major'
11827 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11829 irix5* | nonstopux*)
11830 libsuff= shlibsuff=
11833 case $LD in # libtool.m4 will add one of these switches to LD
11834 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11835 libsuff= shlibsuff= libmagic=32-bit;;
11836 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11837 libsuff=32 shlibsuff=N32 libmagic=N32;;
11838 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11839 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11840 *) libsuff= shlibsuff= libmagic=never-match;;
11844 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11845 shlibpath_overrides_runpath=no
11846 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11847 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11848 hardcode_into_libs=yes
11851 # No shared lib support for Linux oldld, aout, or coff.
11852 linux*oldld* | linux*aout* | linux*coff*)
11857 version_type=none # Android doesn't support versioned libraries.
11860 library_names_spec='$libname$release$shared_ext'
11861 soname_spec='$libname$release$shared_ext'
11863 shlibpath_var=LD_LIBRARY_PATH
11864 shlibpath_overrides_runpath=yes
11866 # This implies no fast_install, which is unacceptable.
11867 # Some rework will be needed to allow for fast_install
11868 # before this can be enabled.
11869 hardcode_into_libs=yes
11871 dynamic_linker='Android linker'
11872 # Don't embed -rpath directories since the linker doesn't support them.
11873 hardcode_libdir_flag_spec='-L$libdir'
11876 # This must be glibc/ELF.
11877 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11878 version_type=linux # correct to gnu/linux during the next big refactor
11881 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11882 soname_spec='$libname$release$shared_ext$major'
11883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=no
11887 # Some binutils ld are patched to set DT_RUNPATH
11888 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11889 $as_echo_n "(cached) " >&6
11891 lt_cv_shlibpath_overrides_runpath=no
11892 save_LDFLAGS=$LDFLAGS
11893 save_libdir=$libdir
11894 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11895 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11907 if ac_fn_c_try_link "$LINENO"; then :
11908 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11909 lt_cv_shlibpath_overrides_runpath=yes
11912 rm -f core conftest.err conftest.$ac_objext \
11913 conftest$ac_exeext conftest.$ac_ext
11914 LDFLAGS=$save_LDFLAGS
11915 libdir=$save_libdir
11919 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11921 # This implies no fast_install, which is unacceptable.
11922 # Some rework will be needed to allow for fast_install
11923 # before this can be enabled.
11924 hardcode_into_libs=yes
11926 # Ideally, we could use ldconfig to report *all* directores which are
11927 # searched for libraries, however this is still not possible. Aside from not
11928 # being certain /sbin/ldconfig is available, command
11929 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11930 # even though it is searched at run-time. Try to do the best guess by
11931 # appending ld.so.conf contents (and includes) to the search path.
11932 if test -f /etc/ld.so.conf; then
11933 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11937 # We used to test for /lib/ld.so.1 and disable shared libraries on
11938 # powerpc, because MkLinux only supported shared libraries with the
11939 # GNU dynamic linker. Since this was broken with cross compilers,
11940 # most powerpc-linux boxes support dynamic linking these days and
11941 # people can always --disable-shared, the test was removed, and we
11942 # assume the GNU/Linux dynamic linker is in use.
11943 dynamic_linker='GNU/Linux ld.so'
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 shlibpath_overrides_runpath=no
11954 hardcode_into_libs=yes
11955 dynamic_linker='NetBSD ld.elf_so'
11962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11965 dynamic_linker='NetBSD (a.out) ld.so'
11967 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11968 soname_spec='$libname$release$shared_ext$major'
11969 dynamic_linker='NetBSD ld.elf_so'
11971 shlibpath_var=LD_LIBRARY_PATH
11972 shlibpath_overrides_runpath=yes
11973 hardcode_into_libs=yes
11977 version_type=linux # correct to gnu/linux during the next big refactor
11978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11979 shlibpath_var=LD_LIBRARY_PATH
11980 shlibpath_overrides_runpath=yes
11987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11988 soname_spec='$libname$release$shared_ext$major'
11989 shlibpath_var=LD_LIBRARY_PATH
11990 shlibpath_overrides_runpath=no
11991 hardcode_into_libs=yes
11992 dynamic_linker='ldqnx.so'
11995 openbsd* | bitrig*)
11997 sys_lib_dlsearch_path_spec=/usr/lib
11999 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12004 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12005 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12006 shlibpath_var=LD_LIBRARY_PATH
12007 shlibpath_overrides_runpath=yes
12011 libname_spec='$name'
12012 version_type=windows
12016 # OS/2 can only load a DLL with a base name of 8 characters or less.
12017 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12018 v=$($ECHO $release$versuffix | tr -d .-);
12019 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12020 $ECHO $n$v`$shared_ext'
12021 library_names_spec='${libname}_dll.$libext'
12022 dynamic_linker='OS/2 ld.exe'
12023 shlibpath_var=BEGINLIBPATH
12024 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12026 postinstall_cmds='base_file=`basename \$file`~
12027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12028 dldir=$destdir/`dirname \$dlpath`~
12029 test -d \$dldir || mkdir -p \$dldir~
12030 $install_prog $dir/$dlname \$dldir/$dlname~
12031 chmod a+x \$dldir/$dlname~
12032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12036 dlpath=$dir/\$dldll~
12040 osf3* | osf4* | osf5*)
12044 soname_spec='$libname$release$shared_ext$major'
12045 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12046 shlibpath_var=LD_LIBRARY_PATH
12047 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056 version_type=linux # correct to gnu/linux during the next big refactor
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 soname_spec='$libname$release$shared_ext$major'
12061 shlibpath_var=LD_LIBRARY_PATH
12062 shlibpath_overrides_runpath=yes
12063 hardcode_into_libs=yes
12064 # ldd complains unless libraries are executable
12065 postinstall_cmds='chmod +x $lib'
12070 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12071 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 shlibpath_overrides_runpath=yes
12074 if test yes = "$with_gnu_ld"; then
12081 version_type=linux # correct to gnu/linux during the next big refactor
12082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12083 soname_spec='$libname$release$shared_ext$major'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 case $host_vendor in
12087 shlibpath_overrides_runpath=no
12089 runpath_var=LD_RUN_PATH
12097 shlibpath_overrides_runpath=no
12098 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12104 if test -d /usr/nec; then
12105 version_type=linux # correct to gnu/linux during the next big refactor
12106 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12107 soname_spec='$libname$shared_ext.$major'
12108 shlibpath_var=LD_LIBRARY_PATH
12112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12117 soname_spec='$libname$release$shared_ext$major'
12118 shlibpath_var=LD_LIBRARY_PATH
12119 shlibpath_overrides_runpath=yes
12120 hardcode_into_libs=yes
12121 if test yes = "$with_gnu_ld"; then
12122 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12124 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12127 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12131 sys_lib_dlsearch_path_spec='/usr/lib'
12135 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12136 version_type=linux # correct to gnu/linux during the next big refactor
12139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 shlibpath_overrides_runpath=no
12142 hardcode_into_libs=yes
12146 version_type=linux # correct to gnu/linux during the next big refactor
12147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12148 soname_spec='$libname$release$shared_ext$major'
12149 shlibpath_var=LD_LIBRARY_PATH
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12157 $as_echo "$dynamic_linker" >&6; }
12158 test no = "$dynamic_linker" && can_build_shared=no
12160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12161 if test yes = "$GCC"; then
12162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12165 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12166 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12169 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12170 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12173 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12174 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12176 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12177 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12179 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12180 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12279 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12281 if test -n "$hardcode_libdir_flag_spec" ||
12282 test -n "$runpath_var" ||
12283 test yes = "$hardcode_automatic"; then
12285 # We can hardcode non-existent directories.
12286 if test no != "$hardcode_direct" &&
12287 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12288 # have to relink, otherwise we might link with an installed library
12289 # when we should be linking with a yet-to-be-installed one
12290 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12291 test no != "$hardcode_minus_L"; then
12292 # Linking always hardcodes the temporary library directory.
12293 hardcode_action=relink
12295 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12296 hardcode_action=immediate
12299 # We cannot hardcode anything, or else we can only hardcode existing
12301 hardcode_action=unsupported
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12304 $as_echo "$hardcode_action" >&6; }
12306 if test relink = "$hardcode_action" ||
12307 test yes = "$inherit_rpath"; then
12308 # Fast installation is not supported
12309 enable_fast_install=no
12310 elif test yes = "$shlibpath_overrides_runpath" ||
12311 test no = "$enable_shared"; then
12312 # Fast installation is not necessary
12313 enable_fast_install=needless
12321 if test yes != "$enable_dlopen"; then
12322 enable_dlopen=unknown
12323 enable_dlopen_self=unknown
12324 enable_dlopen_self_static=unknown
12331 lt_cv_dlopen=load_add_on
12333 lt_cv_dlopen_self=yes
12336 mingw* | pw32* | cegcc*)
12337 lt_cv_dlopen=LoadLibrary
12342 lt_cv_dlopen=dlopen
12347 # if libdl is installed we need to link against it
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12350 if ${ac_cv_lib_dl_dlopen+:} false; then :
12351 $as_echo_n "(cached) " >&6
12353 ac_check_lib_save_LIBS=$LIBS
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12373 if ac_fn_c_try_link "$LINENO"; then :
12374 ac_cv_lib_dl_dlopen=yes
12376 ac_cv_lib_dl_dlopen=no
12378 rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12384 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12385 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12390 lt_cv_dlopen_self=yes
12397 # Don't try to run any link tests for TPF. We know it's impossible
12398 # because TPF is a cross-compiler, and we know how we open DSOs.
12399 lt_cv_dlopen=dlopen
12401 lt_cv_dlopen_self=no
12405 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12406 if test "x$ac_cv_func_shl_load" = xyes; then :
12407 lt_cv_dlopen=shl_load
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12410 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12411 if ${ac_cv_lib_dld_shl_load+:} false; then :
12412 $as_echo_n "(cached) " >&6
12414 ac_check_lib_save_LIBS=$LIBS
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12429 return shl_load ();
12434 if ac_fn_c_try_link "$LINENO"; then :
12435 ac_cv_lib_dld_shl_load=yes
12437 ac_cv_lib_dld_shl_load=no
12439 rm -f core conftest.err conftest.$ac_objext \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12444 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12445 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12446 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12448 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12449 if test "x$ac_cv_func_dlopen" = xyes; then :
12450 lt_cv_dlopen=dlopen
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12453 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12454 if ${ac_cv_lib_dl_dlopen+:} false; then :
12455 $as_echo_n "(cached) " >&6
12457 ac_check_lib_save_LIBS=$LIBS
12459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12460 /* end confdefs.h. */
12462 /* Override any GCC internal prototype to avoid an error.
12463 Use char because int might match the return type of a GCC
12464 builtin and then its argument prototype would still apply. */
12477 if ac_fn_c_try_link "$LINENO"; then :
12478 ac_cv_lib_dl_dlopen=yes
12480 ac_cv_lib_dl_dlopen=no
12482 rm -f core conftest.err conftest.$ac_objext \
12483 conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12487 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12488 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12489 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12492 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12493 if ${ac_cv_lib_svld_dlopen+:} false; then :
12494 $as_echo_n "(cached) " >&6
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lsvld $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_svld_dlopen=yes
12519 ac_cv_lib_svld_dlopen=no
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12526 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12527 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12528 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12531 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12532 if ${ac_cv_lib_dld_dld_link+:} false; then :
12533 $as_echo_n "(cached) " >&6
12535 ac_check_lib_save_LIBS=$LIBS
12537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12540 /* Override any GCC internal prototype to avoid an error.
12541 Use char because int might match the return type of a GCC
12542 builtin and then its argument prototype would still apply. */
12550 return dld_link ();
12555 if ac_fn_c_try_link "$LINENO"; then :
12556 ac_cv_lib_dld_dld_link=yes
12558 ac_cv_lib_dld_dld_link=no
12560 rm -f core conftest.err conftest.$ac_objext \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12565 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12566 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12567 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12588 if test no = "$lt_cv_dlopen"; then
12594 case $lt_cv_dlopen in
12596 save_CPPFLAGS=$CPPFLAGS
12597 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12599 save_LDFLAGS=$LDFLAGS
12600 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12603 LIBS="$lt_cv_dlopen_libs $LIBS"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12606 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12607 if ${lt_cv_dlopen_self+:} false; then :
12608 $as_echo_n "(cached) " >&6
12610 if test yes = "$cross_compiling"; then :
12611 lt_cv_dlopen_self=cross
12613 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12614 lt_status=$lt_dlunknown
12615 cat > conftest.$ac_ext <<_LT_EOF
12616 #line $LINENO "configure"
12617 #include "confdefs.h"
12626 # define LT_DLGLOBAL RTLD_GLOBAL
12629 # define LT_DLGLOBAL DL_GLOBAL
12631 # define LT_DLGLOBAL 0
12635 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12636 find out it does not work in some platform. */
12637 #ifndef LT_DLLAZY_OR_NOW
12639 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12642 # define LT_DLLAZY_OR_NOW DL_LAZY
12645 # define LT_DLLAZY_OR_NOW RTLD_NOW
12648 # define LT_DLLAZY_OR_NOW DL_NOW
12650 # define LT_DLLAZY_OR_NOW 0
12657 /* When -fvisibility=hidden is used, assume the code has been annotated
12658 correspondingly for the symbols needed. */
12659 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12660 int fnord () __attribute__((visibility("default")));
12663 int fnord () { return 42; }
12666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12667 int status = $lt_dlunknown;
12671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12674 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12675 else puts (dlerror ());
12677 /* dlclose (self); */
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686 (eval $ac_link) 2>&5
12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12690 (./conftest; exit; ) >&5 2>/dev/null
12692 case x$lt_status in
12693 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12694 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12695 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12698 # compilation failed
12699 lt_cv_dlopen_self=no
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12707 $as_echo "$lt_cv_dlopen_self" >&6; }
12709 if test yes = "$lt_cv_dlopen_self"; then
12710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12712 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12713 if ${lt_cv_dlopen_self_static+:} false; then :
12714 $as_echo_n "(cached) " >&6
12716 if test yes = "$cross_compiling"; then :
12717 lt_cv_dlopen_self_static=cross
12719 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12720 lt_status=$lt_dlunknown
12721 cat > conftest.$ac_ext <<_LT_EOF
12722 #line $LINENO "configure"
12723 #include "confdefs.h"
12732 # define LT_DLGLOBAL RTLD_GLOBAL
12735 # define LT_DLGLOBAL DL_GLOBAL
12737 # define LT_DLGLOBAL 0
12741 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12742 find out it does not work in some platform. */
12743 #ifndef LT_DLLAZY_OR_NOW
12745 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12748 # define LT_DLLAZY_OR_NOW DL_LAZY
12751 # define LT_DLLAZY_OR_NOW RTLD_NOW
12754 # define LT_DLLAZY_OR_NOW DL_NOW
12756 # define LT_DLLAZY_OR_NOW 0
12763 /* When -fvisibility=hidden is used, assume the code has been annotated
12764 correspondingly for the symbols needed. */
12765 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12766 int fnord () __attribute__((visibility("default")));
12769 int fnord () { return 42; }
12772 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12773 int status = $lt_dlunknown;
12777 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12780 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12781 else puts (dlerror ());
12783 /* dlclose (self); */
12791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12792 (eval $ac_link) 2>&5
12794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12795 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12796 (./conftest; exit; ) >&5 2>/dev/null
12798 case x$lt_status in
12799 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12800 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12801 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12804 # compilation failed
12805 lt_cv_dlopen_self_static=no
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12813 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12816 CPPFLAGS=$save_CPPFLAGS
12817 LDFLAGS=$save_LDFLAGS
12822 case $lt_cv_dlopen_self in
12823 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12824 *) enable_dlopen_self=unknown ;;
12827 case $lt_cv_dlopen_self_static in
12828 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12829 *) enable_dlopen_self_static=unknown ;;
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12852 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12853 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12854 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12855 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12857 $as_echo "yes" >&6; }
12859 # FIXME - insert some real tests, host_os isn't really good enough
12862 if test -n "$STRIP"; then
12863 striplib="$STRIP -x"
12864 old_striplib="$STRIP -S"
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12866 $as_echo "yes" >&6; }
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869 $as_echo "no" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12890 # Report what library types will actually be built
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12892 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12894 $as_echo "$can_build_shared" >&6; }
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12897 $as_echo_n "checking whether to build shared libraries... " >&6; }
12898 test no = "$can_build_shared" && enable_shared=no
12900 # On AIX, shared libraries and static libraries use the same namespace, and
12901 # are all built from PIC.
12904 test yes = "$enable_shared" && enable_static=no
12905 if test -n "$RANLIB"; then
12906 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12907 postinstall_cmds='$RANLIB $lib'
12912 if test ia64 != "$host_cpu"; then
12913 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12914 yes,aix,yes) ;; # shared object as lib.so file only
12915 yes,svr4,*) ;; # shared object as lib.so archive member only
12916 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12922 $as_echo "$enable_shared" >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12925 $as_echo_n "checking whether to build static libraries... " >&6; }
12926 # Make sure either enable_shared or enable_static is yes.
12927 test yes = "$enable_shared" || enable_static=yes
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12929 $as_echo "$enable_static" >&6; }
12936 ac_cpp='$CPP $CPPFLAGS'
12937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12957 ac_config_commands="$ac_config_commands libtool"
12962 # Only expand once:
12967 # Check for library functions that SQLite can optionally use.
12968 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12971 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12972 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12973 cat >>confdefs.h <<_ACEOF
12974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12980 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12981 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12987 cat >>confdefs.h <<_ACEOF
12988 #define HAVE_DECL_STRERROR_R $ac_have_decl
12991 for ac_func in strerror_r
12993 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12994 if test "x$ac_cv_func_strerror_r" = xyes; then :
12995 cat >>confdefs.h <<_ACEOF
12996 #define HAVE_STRERROR_R 1
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13003 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13004 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13005 $as_echo_n "(cached) " >&6
13008 ac_cv_func_strerror_r_char_p=no
13009 if test $ac_cv_have_decl_strerror_r = yes; then
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13012 $ac_includes_default
13018 char x = *strerror_r (0, buf, sizeof buf);
13019 char *p = strerror_r (0, buf, sizeof buf);
13026 if ac_fn_c_try_compile "$LINENO"; then :
13027 ac_cv_func_strerror_r_char_p=yes
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 # strerror_r is not declared. Choose between
13032 # systems that have relatively inaccessible declarations for the
13033 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13034 # former has a strerror_r that returns char*, while the latter
13035 # has a strerror_r that returns `int'.
13036 # This test should segfault on the DEC system.
13037 if test "$cross_compiling" = yes; then :
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 $ac_includes_default
13043 extern char *strerror_r ();
13048 char x = *strerror_r (0, buf, sizeof buf);
13049 return ! isalpha (x);
13054 if ac_fn_c_try_run "$LINENO"; then :
13055 ac_cv_func_strerror_r_char_p=yes
13057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13058 conftest.$ac_objext conftest.beam conftest.$ac_ext
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13065 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13066 if test $ac_cv_func_strerror_r_char_p = yes; then
13068 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13073 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13078 #-------------------------------------------------------------------------
13079 # Two options to enable readline compatible libraries:
13081 # --enable-editline
13082 # --enable-readline
13084 # Both are enabled by default. If, after command line processing both are
13085 # still enabled, the script searches for editline first and automatically
13086 # disables readline if it is found. So, to use readline explicitly, the
13087 # user must pass "--disable-editline". To disable command line editing
13088 # support altogether, "--disable-editline --disable-readline".
13090 # When searching for either library, check for headers before libraries
13091 # as some distros supply packages that contain libraries but not header
13092 # files, which come as a separate development package.
13094 # Check whether --enable-editline was given.
13095 if test "${enable_editline+set}" = set; then :
13096 enableval=$enable_editline;
13099 # Check whether --enable-readline was given.
13100 if test "${enable_readline+set}" = set; then :
13101 enableval=$enable_readline;
13105 if test x"$enable_editline" != xno ; then :
13107 for ac_header in editline/readline.h
13109 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13110 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13111 cat >>confdefs.h <<_ACEOF
13112 #define HAVE_EDITLINE_READLINE_H 1
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13118 $as_echo_n "checking for library containing readline... " >&6; }
13119 if ${ac_cv_search_readline+:} false; then :
13120 $as_echo_n "(cached) " >&6
13122 ac_func_search_save_LIBS=$LIBS
13123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13136 return readline ();
13141 for ac_lib in '' edit; do
13142 if test -z "$ac_lib"; then
13143 ac_res="none required"
13146 LIBS="-l$ac_lib -ltinfo $ac_func_search_save_LIBS"
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_search_readline=$ac_res
13151 rm -f core conftest.err conftest.$ac_objext \
13153 if ${ac_cv_search_readline+:} false; then :
13157 if ${ac_cv_search_readline+:} false; then :
13160 ac_cv_search_readline=no
13162 rm conftest.$ac_ext
13163 LIBS=$ac_func_search_save_LIBS
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13166 $as_echo "$ac_cv_search_readline" >&6; }
13167 ac_res=$ac_cv_search_readline
13168 if test "$ac_res" != no; then :
13169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13172 $as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13174 READLINE_LIBS="$LIBS -ltinfo"
13179 { ac_cv_search_readline=; unset ac_cv_search_readline;}
13189 if test x"$enable_readline" != xno ; then :
13191 for ac_header in readline/readline.h
13193 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13194 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_READLINE_READLINE_H 1
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13202 $as_echo_n "checking for library containing tgetent... " >&6; }
13203 if ${ac_cv_search_tgetent+:} false; then :
13204 $as_echo_n "(cached) " >&6
13206 ac_func_search_save_LIBS=$LIBS
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13210 /* Override any GCC internal prototype to avoid an error.
13211 Use char because int might match the return type of a GCC
13212 builtin and then its argument prototype would still apply. */
13225 for ac_lib in '' termcap curses ncurses ncursesw; do
13226 if test -z "$ac_lib"; then
13227 ac_res="none required"
13230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_search_tgetent=$ac_res
13235 rm -f core conftest.err conftest.$ac_objext \
13237 if ${ac_cv_search_tgetent+:} false; then :
13241 if ${ac_cv_search_tgetent+:} false; then :
13244 ac_cv_search_tgetent=no
13246 rm conftest.$ac_ext
13247 LIBS=$ac_func_search_save_LIBS
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13250 $as_echo "$ac_cv_search_tgetent" >&6; }
13251 ac_res=$ac_cv_search_tgetent
13252 if test "$ac_res" != no; then :
13253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13258 $as_echo_n "checking for library containing readline... " >&6; }
13259 if ${ac_cv_search_readline+:} false; then :
13260 $as_echo_n "(cached) " >&6
13262 ac_func_search_save_LIBS=$LIBS
13263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13266 /* Override any GCC internal prototype to avoid an error.
13267 Use char because int might match the return type of a GCC
13268 builtin and then its argument prototype would still apply. */
13276 return readline ();
13281 for ac_lib in '' readline edit; do
13282 if test -z "$ac_lib"; then
13283 ac_res="none required"
13286 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 ac_cv_search_readline=$ac_res
13291 rm -f core conftest.err conftest.$ac_objext \
13293 if ${ac_cv_search_readline+:} false; then :
13297 if ${ac_cv_search_readline+:} false; then :
13300 ac_cv_search_readline=no
13302 rm conftest.$ac_ext
13303 LIBS=$ac_func_search_save_LIBS
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13306 $as_echo "$ac_cv_search_readline" >&6; }
13307 ac_res=$ac_cv_search_readline
13308 if test "$ac_res" != no; then :
13309 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13312 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
13314 READLINE_LIBS=$LIBS
13328 #-----------------------------------------------------------------------
13330 #-----------------------------------------------------------------------
13331 # --enable-threadsafe
13333 # Check whether --enable-threadsafe was given.
13334 if test "${enable_threadsafe+set}" = set; then :
13335 enableval=$enable_threadsafe;
13337 enable_threadsafe=yes
13340 if test x"$enable_threadsafe" == "xno"; then
13341 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_THREADSAFE=0"
13343 BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13345 $as_echo_n "checking for library containing pthread_create... " >&6; }
13346 if ${ac_cv_search_pthread_create+:} false; then :
13347 $as_echo_n "(cached) " >&6
13349 ac_func_search_save_LIBS=$LIBS
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13359 char pthread_create ();
13363 return pthread_create ();
13368 for ac_lib in '' pthread; do
13369 if test -z "$ac_lib"; then
13370 ac_res="none required"
13373 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13375 if ac_fn_c_try_link "$LINENO"; then :
13376 ac_cv_search_pthread_create=$ac_res
13378 rm -f core conftest.err conftest.$ac_objext \
13380 if ${ac_cv_search_pthread_create+:} false; then :
13384 if ${ac_cv_search_pthread_create+:} false; then :
13387 ac_cv_search_pthread_create=no
13389 rm conftest.$ac_ext
13390 LIBS=$ac_func_search_save_LIBS
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13393 $as_echo "$ac_cv_search_pthread_create" >&6; }
13394 ac_res=$ac_cv_search_pthread_create
13395 if test "$ac_res" != no; then :
13396 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13401 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13402 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13403 $as_echo_n "(cached) " >&6
13405 ac_func_search_save_LIBS=$LIBS
13406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13407 /* end confdefs.h. */
13409 /* Override any GCC internal prototype to avoid an error.
13410 Use char because int might match the return type of a GCC
13411 builtin and then its argument prototype would still apply. */
13415 char pthread_mutexattr_init ();
13419 return pthread_mutexattr_init ();
13424 for ac_lib in '' pthread; do
13425 if test -z "$ac_lib"; then
13426 ac_res="none required"
13429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13431 if ac_fn_c_try_link "$LINENO"; then :
13432 ac_cv_search_pthread_mutexattr_init=$ac_res
13434 rm -f core conftest.err conftest.$ac_objext \
13436 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13440 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13443 ac_cv_search_pthread_mutexattr_init=no
13445 rm conftest.$ac_ext
13446 LIBS=$ac_func_search_save_LIBS
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13449 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13450 ac_res=$ac_cv_search_pthread_mutexattr_init
13451 if test "$ac_res" != no; then :
13452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13457 #-----------------------------------------------------------------------
13459 #-----------------------------------------------------------------------
13460 # --enable-dynamic-extensions
13462 # Check whether --enable-dynamic-extensions was given.
13463 if test "${enable_dynamic_extensions+set}" = set; then :
13464 enableval=$enable_dynamic_extensions;
13466 enable_dynamic_extensions=yes
13469 if test x"$enable_dynamic_extensions" != "xno"; then
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13471 $as_echo_n "checking for library containing dlopen... " >&6; }
13472 if ${ac_cv_search_dlopen+:} false; then :
13473 $as_echo_n "(cached) " >&6
13475 ac_func_search_save_LIBS=$LIBS
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13479 /* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
13494 for ac_lib in '' dl; do
13495 if test -z "$ac_lib"; then
13496 ac_res="none required"
13499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13501 if ac_fn_c_try_link "$LINENO"; then :
13502 ac_cv_search_dlopen=$ac_res
13504 rm -f core conftest.err conftest.$ac_objext \
13506 if ${ac_cv_search_dlopen+:} false; then :
13510 if ${ac_cv_search_dlopen+:} false; then :
13513 ac_cv_search_dlopen=no
13515 rm conftest.$ac_ext
13516 LIBS=$ac_func_search_save_LIBS
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13519 $as_echo "$ac_cv_search_dlopen" >&6; }
13520 ac_res=$ac_cv_search_dlopen
13521 if test "$ac_res" != no; then :
13522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13527 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13530 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13532 $as_echo "$enable_dynamic_extensions" >&6; }
13533 #-----------------------------------------------------------------------
13535 #-----------------------------------------------------------------------
13538 # Check whether --enable-math was given.
13539 if test "${enable_math+set}" = set; then :
13540 enableval=$enable_math;
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQL math functions" >&5
13546 $as_echo_n "checking SQL math functions... " >&6; }
13547 if test x"$enable_math" = "xyes"; then
13548 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_MATH_FUNCTIONS"
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13550 $as_echo "enabled" >&6; }
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
13552 $as_echo_n "checking for library containing ceil... " >&6; }
13553 if ${ac_cv_search_ceil+:} false; then :
13554 $as_echo_n "(cached) " >&6
13556 ac_func_search_save_LIBS=$LIBS
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13560 /* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
13575 for ac_lib in '' m; do
13576 if test -z "$ac_lib"; then
13577 ac_res="none required"
13580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13582 if ac_fn_c_try_link "$LINENO"; then :
13583 ac_cv_search_ceil=$ac_res
13585 rm -f core conftest.err conftest.$ac_objext \
13587 if ${ac_cv_search_ceil+:} false; then :
13591 if ${ac_cv_search_ceil+:} false; then :
13594 ac_cv_search_ceil=no
13596 rm conftest.$ac_ext
13597 LIBS=$ac_func_search_save_LIBS
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
13600 $as_echo "$ac_cv_search_ceil" >&6; }
13601 ac_res=$ac_cv_search_ceil
13602 if test "$ac_res" != no; then :
13603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13609 $as_echo "disabled" >&6; }
13611 #-----------------------------------------------------------------------
13613 #-----------------------------------------------------------------------
13616 # Check whether --enable-fts4 was given.
13617 if test "${enable_fts4+set}" = set; then :
13618 enableval=$enable_fts4;
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS4 extension" >&5
13624 $as_echo_n "checking FTS4 extension... " >&6; }
13625 if test x"$enable_fts4" = "xyes"; then
13626 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS4"
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13628 $as_echo "enabled" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13631 $as_echo "disabled" >&6; }
13633 #-----------------------------------------------------------------------
13635 #-----------------------------------------------------------------------
13638 # Check whether --enable-fts3 was given.
13639 if test "${enable_fts3+set}" = set; then :
13640 enableval=$enable_fts3;
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS3 extension" >&5
13644 $as_echo_n "checking FTS3 extension... " >&6; }
13645 if test x"$enable_fts3" = "xyes" -a x"$enable_fts4" = "xno"; then
13646 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS3"
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13648 $as_echo "enabled" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13651 $as_echo "disabled" >&6; }
13653 #-----------------------------------------------------------------------
13655 #-----------------------------------------------------------------------
13658 # Check whether --enable-fts5 was given.
13659 if test "${enable_fts5+set}" = set; then :
13660 enableval=$enable_fts5;
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FTS5 extension" >&5
13666 $as_echo_n "checking FTS5 extension... " >&6; }
13667 if test x"$enable_fts5" = "xyes"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13669 $as_echo "enabled" >&6; }
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13671 $as_echo_n "checking for library containing log... " >&6; }
13672 if ${ac_cv_search_log+:} false; then :
13673 $as_echo_n "(cached) " >&6
13675 ac_func_search_save_LIBS=$LIBS
13676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13677 /* end confdefs.h. */
13679 /* Override any GCC internal prototype to avoid an error.
13680 Use char because int might match the return type of a GCC
13681 builtin and then its argument prototype would still apply. */
13694 for ac_lib in '' m; do
13695 if test -z "$ac_lib"; then
13696 ac_res="none required"
13699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13701 if ac_fn_c_try_link "$LINENO"; then :
13702 ac_cv_search_log=$ac_res
13704 rm -f core conftest.err conftest.$ac_objext \
13706 if ${ac_cv_search_log+:} false; then :
13710 if ${ac_cv_search_log+:} false; then :
13713 ac_cv_search_log=no
13715 rm conftest.$ac_ext
13716 LIBS=$ac_func_search_save_LIBS
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13719 $as_echo "$ac_cv_search_log" >&6; }
13720 ac_res=$ac_cv_search_log
13721 if test "$ac_res" != no; then :
13722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13726 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS5"
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13729 $as_echo "disabled" >&6; }
13731 #-----------------------------------------------------------------------
13733 #-----------------------------------------------------------------------
13736 # Check whether --enable-json1 was given.
13737 if test "${enable_json1+set}" = set; then :
13738 enableval=$enable_json1;
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JSON functions" >&5
13744 $as_echo_n "checking JSON functions... " >&6; }
13745 if test x"$enable_json1" = "xyes"; then
13746 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_JSON1"
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13748 $as_echo "enabled" >&6; }
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13751 $as_echo "disabled" >&6; }
13753 #-----------------------------------------------------------------------
13755 #-----------------------------------------------------------------------
13758 # Check whether --enable-rtree was given.
13759 if test "${enable_rtree+set}" = set; then :
13760 enableval=$enable_rtree;
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RTREE extension" >&5
13766 $as_echo_n "checking RTREE extension... " >&6; }
13767 if test x"$enable_rtree" = "xyes"; then
13768 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_GEOPOLY"
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13770 $as_echo "enabled" >&6; }
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13773 $as_echo "disabled" >&6; }
13775 #-----------------------------------------------------------------------
13777 #-----------------------------------------------------------------------
13780 # Check whether --enable-session was given.
13781 if test "${enable_session+set}" = set; then :
13782 enableval=$enable_session;
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Session extension" >&5
13786 $as_echo_n "checking Session extension... " >&6; }
13787 if test x"$enable_session" = "xyes"; then
13788 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
13790 $as_echo "enabled" >&6; }
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13793 $as_echo "disabled" >&6; }
13795 #-----------------------------------------------------------------------
13797 #-----------------------------------------------------------------------
13800 # Check whether --enable-debug was given.
13801 if test "${enable_debug+set}" = set; then :
13802 enableval=$enable_debug;
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build type" >&5
13806 $as_echo_n "checking Build type... " >&6; }
13807 if test x"$enable_debug" = "xyes"; then
13808 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_DEBUG -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE"
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: debug" >&5
13811 $as_echo "debug" >&6; }
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release" >&5
13814 $as_echo "release" >&6; }
13816 #-----------------------------------------------------------------------
13818 #-----------------------------------------------------------------------
13819 # --enable-static-shell
13821 # Check whether --enable-static-shell was given.
13822 if test "${enable_static_shell+set}" = set; then :
13823 enableval=$enable_static_shell;
13825 enable_static_shell=yes
13828 if test x"$enable_static_shell" = "xyes"; then
13829 EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13831 EXTRA_SHELL_OBJ=libsqlite3.la
13834 #-----------------------------------------------------------------------
13836 for ac_func in posix_fallocate
13838 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13839 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13840 cat >>confdefs.h <<_ACEOF
13841 #define HAVE_POSIX_FALLOCATE 1
13847 for ac_header in zlib.h
13849 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13850 if test "x$ac_cv_header_zlib_h" = xyes; then :
13851 cat >>confdefs.h <<_ACEOF
13852 #define HAVE_ZLIB_H 1
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13856 $as_echo_n "checking for library containing deflate... " >&6; }
13857 if ${ac_cv_search_deflate+:} false; then :
13858 $as_echo_n "(cached) " >&6
13860 ac_func_search_save_LIBS=$LIBS
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13864 /* Override any GCC internal prototype to avoid an error.
13865 Use char because int might match the return type of a GCC
13866 builtin and then its argument prototype would still apply. */
13879 for ac_lib in '' z; do
13880 if test -z "$ac_lib"; then
13881 ac_res="none required"
13884 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13886 if ac_fn_c_try_link "$LINENO"; then :
13887 ac_cv_search_deflate=$ac_res
13889 rm -f core conftest.err conftest.$ac_objext \
13891 if ${ac_cv_search_deflate+:} false; then :
13895 if ${ac_cv_search_deflate+:} false; then :
13898 ac_cv_search_deflate=no
13900 rm conftest.$ac_ext
13901 LIBS=$ac_func_search_save_LIBS
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13904 $as_echo "$ac_cv_search_deflate" >&6; }
13905 ac_res=$ac_cv_search_deflate
13906 if test "$ac_res" != no; then :
13907 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13908 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_HAVE_ZLIB"
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing system" >&5
13918 $as_echo_n "checking for library containing system... " >&6; }
13919 if ${ac_cv_search_system+:} false; then :
13920 $as_echo_n "(cached) " >&6
13922 ac_func_search_save_LIBS=$LIBS
13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h. */
13926 /* Override any GCC internal prototype to avoid an error.
13927 Use char because int might match the return type of a GCC
13928 builtin and then its argument prototype would still apply. */
13941 for ac_lib in '' ; do
13942 if test -z "$ac_lib"; then
13943 ac_res="none required"
13946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13948 if ac_fn_c_try_link "$LINENO"; then :
13949 ac_cv_search_system=$ac_res
13951 rm -f core conftest.err conftest.$ac_objext \
13953 if ${ac_cv_search_system+:} false; then :
13957 if ${ac_cv_search_system+:} false; then :
13960 ac_cv_search_system=no
13962 rm conftest.$ac_ext
13963 LIBS=$ac_func_search_save_LIBS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_system" >&5
13966 $as_echo "$ac_cv_search_system" >&6; }
13967 ac_res=$ac_cv_search_system
13968 if test "$ac_res" != no; then :
13969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13972 SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"
13977 #-----------------------------------------------------------------------
13978 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
13979 # configure. This option doesn't really add much...
13981 # --enable-tempstore
13983 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13984 # [--enable-tempstore],
13985 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
13986 # [], [enable_tempstore=no])
13987 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13988 # case "$enable_tempstore" in
13989 # never ) TEMP_STORE=0 ;;
13990 # no ) TEMP_STORE=1 ;;
13991 # always ) TEMP_STORE=3 ;;
13992 # yes ) TEMP_STORE=3 ;;
13995 # enable_tempstore=yes
13998 # AC_MSG_RESULT($enable_tempstore)
13999 # AC_SUBST(TEMP_STORE)
14000 #-----------------------------------------------------------------------
14002 cat >confcache <<\_ACEOF
14003 # This file is a shell script that caches the results of configure
14004 # tests run on this system so they can be shared between configure
14005 # scripts and configure runs, see configure's option --config-cache.
14006 # It is not useful on other systems. If it contains results you don't
14007 # want to keep, you may remove or edit it.
14009 # config.status only pays attention to the cache file if you give it
14010 # the --recheck option to rerun configure.
14012 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14013 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14014 # following values.
14018 # The following way of writing the cache mishandles newlines in values,
14019 # but we know of no workaround that is simple, portable, and efficient.
14020 # So, we kill variables containing newlines.
14021 # Ultrix sh set writes to stderr and can't be redirected directly,
14022 # and sets the high bit in the cache file unless we assign to the vars.
14024 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14025 eval ac_val=\$$ac_var
14029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14030 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14033 _ | IFS | as_nl) ;; #(
14034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14035 *) { eval $ac_var=; unset $ac_var;} ;;
14041 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14042 *${as_nl}ac_space=\ *)
14043 # `set' does not quote correctly, so add quotes: double-quote
14044 # substitution turns \\\\ into \\, and sed turns \\ into \.
14047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14050 # `set' quotes correctly as required by POSIX, so do not add quotes.
14051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14060 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14062 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14064 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14065 if test -w "$cache_file"; then
14066 if test "x$cache_file" != "x/dev/null"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14068 $as_echo "$as_me: updating cache $cache_file" >&6;}
14069 if test ! -f "$cache_file" || test -h "$cache_file"; then
14070 cat confcache >"$cache_file"
14072 case $cache_file in #(
14074 mv -f confcache "$cache_file"$$ &&
14075 mv -f "$cache_file"$$ "$cache_file" ;; #(
14077 mv -f confcache "$cache_file" ;;
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14083 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14089 # Let make expand exec_prefix.
14090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14092 # Transform confdefs.h into DEFS.
14093 # Protect against shell expansion while executing Makefile rules.
14094 # Protect against Makefile macro expansion.
14096 # If the first sed substitution is executed (which looks for macros that
14097 # take arguments), then branch to the quote section. Otherwise,
14098 # look for a macro that doesn't take arguments.
14108 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14110 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14114 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14127 DEFS=`sed -n "$ac_script" confdefs.h`
14133 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14134 # 1. Remove the extension, and $U if already installed.
14135 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14136 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14137 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14138 # will be set to the directory where LIBOBJS objects are built.
14139 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14140 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14142 LIBOBJS=$ac_libobjs
14144 LTLIBOBJS=$ac_ltlibobjs
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14148 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14149 if test -n "$am_sleep_pid"; then
14150 # Hide warnings about reused PIDs.
14151 wait $am_sleep_pid 2>/dev/null
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14154 $as_echo "done" >&6; }
14155 if test -n "$EXEEXT"; then
14157 am__EXEEXT_FALSE='#'
14159 am__EXEEXT_TRUE='#'
14163 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14164 as_fn_error $? "conditional \"AMDEP\" was never defined.
14165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14167 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14168 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14171 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14172 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14176 : "${CONFIG_STATUS=./config.status}"
14178 ac_clean_files_save=$ac_clean_files
14179 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14181 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14183 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14185 # Generated by $as_me.
14186 # Run this file to recreate the current configuration.
14187 # Compiler output produced by configure, useful for debugging
14188 # configure, is in config.log if it exists.
14191 ac_cs_recheck=false
14194 SHELL=\${CONFIG_SHELL-$SHELL}
14197 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14198 ## -------------------- ##
14199 ## M4sh Initialization. ##
14200 ## -------------------- ##
14202 # Be more Bourne compatible
14203 DUALCASE=1; export DUALCASE # for MKS sh
14204 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14207 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14208 # is contrary to our usage. Disable this feature.
14209 alias -g '${1+"$@"}'='"$@"'
14210 setopt NO_GLOB_SUBST
14212 case `(set -o) 2>/dev/null` in #(
14224 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14225 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14226 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14227 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14228 # Prefer a ksh shell builtin over an external printf program on Solaris,
14229 # but without wasting forks for bash or zsh.
14230 if test -z "$BASH_VERSION$ZSH_VERSION" \
14231 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14232 as_echo='print -r --'
14233 as_echo_n='print -rn --'
14234 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14235 as_echo='printf %s\n'
14236 as_echo_n='printf %s'
14238 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14239 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14240 as_echo_n='/usr/ucb/echo -n'
14242 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14243 as_echo_n_body='eval
14247 expr "X$arg" : "X\\(.*\\)$as_nl";
14248 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14250 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14252 export as_echo_n_body
14253 as_echo_n='sh -c $as_echo_n_body as_echo'
14255 export as_echo_body
14256 as_echo='sh -c $as_echo_body as_echo'
14259 # The user is always right.
14260 if test "${PATH_SEPARATOR+set}" != set; then
14262 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14263 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14270 # We need space, tab and new line, in precisely that order. Quoting is
14271 # there to prevent editors from complaining about space-tab.
14272 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14273 # splitting by setting IFS to empty value.)
14276 # Find who we are. Look in the path if we contain no directory separator.
14279 *[\\/]* ) as_myself=$0 ;;
14280 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14281 for as_dir in $PATH
14284 test -z "$as_dir" && as_dir=.
14285 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14291 # We did not find ourselves, most probably we were run as `sh COMMAND'
14292 # in which case we are not to be found in the path.
14293 if test "x$as_myself" = x; then
14296 if test ! -f "$as_myself"; then
14297 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14301 # Unset variables that we do not need and which cause bugs (e.g. in
14302 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14303 # suppresses any "Segmentation fault" message there. '((' could
14304 # trigger a bug in pdksh 5.2.14.
14305 for as_var in BASH_ENV ENV MAIL MAILPATH
14306 do eval test x\${$as_var+set} = xset \
14307 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14320 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14323 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14324 # ----------------------------------------
14325 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14326 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14327 # script with STATUS, using 1 if that was 0.
14330 as_status=$1; test $as_status -eq 0 && as_status=1
14332 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14333 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14335 $as_echo "$as_me: error: $2" >&2
14336 as_fn_exit $as_status
14340 # as_fn_set_status STATUS
14341 # -----------------------
14342 # Set $? to STATUS, without forking.
14343 as_fn_set_status ()
14346 } # as_fn_set_status
14348 # as_fn_exit STATUS
14349 # -----------------
14350 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14354 as_fn_set_status $1
14360 # Portably unset VAR.
14363 { eval $1=; unset $1;}
14365 as_unset=as_fn_unset
14366 # as_fn_append VAR VALUE
14367 # ----------------------
14368 # Append the text in VALUE to the end of the definition contained in VAR. Take
14369 # advantage of any shell optimizations that allow amortized linear growth over
14370 # repeated appends, instead of the typical quadratic growth present in naive
14372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14373 eval 'as_fn_append ()
14384 # as_fn_arith ARG...
14385 # ------------------
14386 # Perform arithmetic evaluation on the ARGs, and store the result in the
14387 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14388 # must be portable across $(()) and expr.
14389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14390 eval 'as_fn_arith ()
14397 as_val=`expr "$@" || test $? -eq 1`
14402 if expr a : '\(a\)' >/dev/null 2>&1 &&
14403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14410 as_basename=basename
14415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14421 as_me=`$as_basename -- "$0" ||
14422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14423 X"$0" : 'X\(//\)$' \| \
14424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14426 sed '/^.*\/\([^/][^/]*\)\/*$/{
14440 # Avoid depending upon Character Ranges.
14441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14444 as_cr_digits='0123456789'
14445 as_cr_alnum=$as_cr_Letters$as_cr_digits
14447 ECHO_C= ECHO_N= ECHO_T=
14448 case `echo -n x` in #(((((
14450 case `echo 'xy\c'` in
14451 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14453 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14460 rm -f conf$$ conf$$.exe conf$$.file
14461 if test -d conf$$.dir; then
14462 rm -f conf$$.dir/conf$$.file
14465 mkdir conf$$.dir 2>/dev/null
14467 if (echo >conf$$.file) 2>/dev/null; then
14468 if ln -s conf$$.file conf$$ 2>/dev/null; then
14470 # ... but there are two gotchas:
14471 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14472 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14473 # In both cases, we have to default to `cp -pR'.
14474 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14476 elif ln conf$$.file conf$$ 2>/dev/null; then
14484 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14485 rmdir conf$$.dir 2>/dev/null
14490 # Create "$as_dir" as a directory, including parents if necessary.
14495 -*) as_dir=./$as_dir;;
14497 test -d "$as_dir" || eval $as_mkdir_p || {
14501 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14502 *) as_qdir=$as_dir;;
14504 as_dirs="'$as_qdir' $as_dirs"
14505 as_dir=`$as_dirname -- "$as_dir" ||
14506 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14507 X"$as_dir" : 'X\(//\)[^/]' \| \
14508 X"$as_dir" : 'X\(//\)$' \| \
14509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14510 $as_echo X"$as_dir" |
14511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14515 /^X\(\/\/\)[^/].*/{
14528 test -d "$as_dir" && break
14530 test -z "$as_dirs" || eval "mkdir $as_dirs"
14531 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14535 if mkdir -p . 2>/dev/null; then
14536 as_mkdir_p='mkdir -p "$as_dir"'
14538 test -d ./-p && rmdir ./-p
14543 # as_fn_executable_p FILE
14544 # -----------------------
14545 # Test if FILE is an executable regular file.
14546 as_fn_executable_p ()
14548 test -f "$1" && test -x "$1"
14549 } # as_fn_executable_p
14550 as_test_x='test -x'
14551 as_executable_p=as_fn_executable_p
14553 # Sed expression to map a string onto a valid CPP name.
14554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14556 # Sed expression to map a string onto a valid variable name.
14557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14561 ## ----------------------------------- ##
14562 ## Main body of $CONFIG_STATUS script. ##
14563 ## ----------------------------------- ##
14565 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14568 # Save the log message, to keep $0 and so on meaningful, and to
14569 # report actual input values of CONFIG_FILES etc. instead of their
14570 # values after options handling.
14572 This file was extended by sqlite $as_me 3.37.2, which was
14573 generated by GNU Autoconf 2.69. Invocation command line was
14575 CONFIG_FILES = $CONFIG_FILES
14576 CONFIG_HEADERS = $CONFIG_HEADERS
14577 CONFIG_LINKS = $CONFIG_LINKS
14578 CONFIG_COMMANDS = $CONFIG_COMMANDS
14581 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14586 case $ac_config_files in *"
14587 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14593 # Files that config.status was made for.
14594 config_files="$ac_config_files"
14595 config_commands="$ac_config_commands"
14599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14601 \`$as_me' instantiates files and other configuration actions
14602 from templates according to the current configuration. Unless the files
14603 and actions are specified as TAGs, all are instantiated by default.
14605 Usage: $0 [OPTION]... [TAG]...
14607 -h, --help print this help, then exit
14608 -V, --version print version number and configuration settings, then exit
14609 --config print configuration, then exit
14610 -q, --quiet, --silent
14611 do not print progress messages
14612 -d, --debug don't remove temporary files
14613 --recheck update $as_me by reconfiguring in the same conditions
14614 --file=FILE[:TEMPLATE]
14615 instantiate the configuration file FILE
14617 Configuration files:
14620 Configuration commands:
14623 Report bugs to <http://www.sqlite.org>."
14626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14627 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14629 sqlite config.status 3.37.2
14630 configured by $0, generated by GNU Autoconf 2.69,
14631 with options \\"\$ac_cs_config\\"
14633 Copyright (C) 2012 Free Software Foundation, Inc.
14634 This config.status script is free software; the Free Software Foundation
14635 gives unlimited permission to copy, distribute and modify it."
14642 test -n "\$AWK" || AWK=awk
14645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14646 # The default lists apply if the user does not specify any file.
14652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14657 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14669 # Handling of the options.
14670 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14672 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14673 $as_echo "$ac_cs_version"; exit ;;
14674 --config | --confi | --conf | --con | --co | --c )
14675 $as_echo "$ac_cs_config"; exit ;;
14676 --debug | --debu | --deb | --de | --d | -d )
14678 --file | --fil | --fi | --f )
14681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14682 '') as_fn_error $? "missing file argument" ;;
14684 as_fn_append CONFIG_FILES " '$ac_optarg'"
14685 ac_need_defaults=false;;
14686 --he | --h | --help | --hel | -h )
14687 $as_echo "$ac_cs_usage"; exit ;;
14688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14689 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14692 # This is an error.
14693 -*) as_fn_error $? "unrecognized option: \`$1'
14694 Try \`$0 --help' for more information." ;;
14696 *) as_fn_append ac_config_targets " $1"
14697 ac_need_defaults=false ;;
14703 ac_configure_extra_args=
14705 if $ac_cs_silent; then
14707 ac_configure_extra_args="$ac_configure_extra_args --silent"
14711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14712 if \$ac_cs_recheck; then
14713 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14715 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14716 CONFIG_SHELL='$SHELL'
14717 export CONFIG_SHELL
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14727 ## Running $as_me. ##
14733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14737 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14740 # The HP-UX ksh and POSIX shell print the target directory to stdout
14741 # if CDPATH is set.
14742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14744 sed_quote_subst='$sed_quote_subst'
14745 double_quote_subst='$double_quote_subst'
14746 delay_variable_subst='$delay_variable_subst'
14747 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14748 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14749 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14750 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14751 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14752 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14753 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14754 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14755 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14756 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14757 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14758 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14759 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14760 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14761 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14762 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14763 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14764 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14765 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14766 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14767 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14768 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14769 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14770 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14771 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14772 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14773 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14774 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14775 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14776 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14777 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14778 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14779 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14780 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14781 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14782 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14783 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14784 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14785 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14786 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14787 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14788 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14789 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14790 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14791 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14792 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14793 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14794 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14795 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14796 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14797 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14798 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14799 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14800 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14801 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14802 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14803 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14804 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14805 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14806 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14807 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14808 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14809 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14810 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14811 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14812 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14813 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14814 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14815 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14816 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14817 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14818 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14819 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14820 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14821 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14822 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14823 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14824 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14825 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14826 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14827 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14828 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14829 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14830 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14831 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14832 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14833 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14834 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14835 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14836 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14837 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14838 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14839 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14840 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14841 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14842 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14843 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14844 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14845 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14846 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14847 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14848 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14849 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14850 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14851 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14852 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14853 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14854 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14855 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14856 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14857 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14858 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14859 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14860 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14861 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14862 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14863 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14864 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14865 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14866 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14867 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14868 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14869 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14870 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14871 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14872 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14873 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14874 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14875 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14876 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14877 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14878 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14879 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14880 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14881 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14884 LTCFLAGS='$LTCFLAGS'
14885 compiler='$compiler_DEFAULT'
14887 # A function that is used when there is no print builtin or printf.
14888 func_fallback_echo ()
14890 eval 'cat <<_LTECHO_EOF
14895 # Quote evaled strings.
14910 deplibs_check_method \
14915 sharedlib_from_linklib_cmd \
14918 archiver_list_spec \
14924 lt_cv_sys_global_symbol_pipe \
14925 lt_cv_sys_global_symbol_to_cdecl \
14926 lt_cv_sys_global_symbol_to_import \
14927 lt_cv_sys_global_symbol_to_c_name_address \
14928 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14929 lt_cv_nm_interface \
14930 nm_file_list_spec \
14931 lt_cv_truncate_bin \
14932 lt_prog_compiler_no_builtin_flag \
14933 lt_prog_compiler_pic \
14934 lt_prog_compiler_wl \
14935 lt_prog_compiler_static \
14936 lt_cv_prog_compiler_c_o \
14945 export_dynamic_flag_spec \
14946 whole_archive_flag_spec \
14947 compiler_needs_object \
14949 allow_undefined_flag \
14950 no_undefined_flag \
14951 hardcode_libdir_flag_spec \
14952 hardcode_libdir_separator \
14956 variables_saved_for_relink \
14958 library_names_spec \
14960 install_override_mode \
14964 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14965 *[\\\\\\\`\\"\\\$]*)
14966 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14969 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14974 # Double-quote double-evaled strings.
14975 for var in reload_cmds \
14976 old_postinstall_cmds \
14977 old_postuninstall_cmds \
14979 extract_expsyms_cmds \
14980 old_archive_from_new_cmds \
14981 old_archive_from_expsyms_cmds \
14983 archive_expsym_cmds \
14985 module_expsym_cmds \
14986 export_symbols_cmds \
14990 postuninstall_cmds \
14992 sys_lib_search_path_spec \
14993 configure_time_dlsearch_path \
14994 configure_time_lt_sys_library_path; do
14995 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14996 *[\\\\\\\`\\"\\\$]*)
14997 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
15000 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15005 ac_aux_dir='$ac_aux_dir'
15007 # See if we are running on zsh, and set the options that allow our
15008 # commands through without removal of \ escapes INIT.
15009 if test -n "\${ZSH_VERSION+set}"; then
15010 setopt NO_GLOB_SUBST
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15026 # Handling of arguments.
15027 for ac_config_target in $ac_config_targets
15029 case $ac_config_target in
15030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15032 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15033 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
15035 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15040 # If the user did not use the arguments to specify the items to instantiate,
15041 # then the envvar interface is used. Set only those that are not.
15042 # We use the long form for the default assignment because of an extremely
15043 # bizarre bug on SunOS 4.1.3.
15044 if $ac_need_defaults; then
15045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15046 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15049 # Have a temporary directory for convenience. Make it in the build tree
15050 # simply because there is no reason against having it here, and in addition,
15051 # creating and moving files from /tmp can sometimes cause problems.
15052 # Hook for its removal unless debugging.
15053 # Note that there is a small window in which the directory will not be cleaned:
15054 # after its creation but before its name has been assigned to `$tmp'.
15058 trap 'exit_status=$?
15059 : "${ac_tmp:=$tmp}"
15060 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15062 trap 'as_fn_exit 1' 1 2 13 15
15064 # Create a (secure) tmp directory for tmp files.
15067 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15071 tmp=./conf$$-$RANDOM
15072 (umask 077 && mkdir "$tmp")
15073 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15076 # Set up the scripts for CONFIG_FILES section.
15077 # No need to generate them if there are no CONFIG_FILES.
15078 # This happens for instance with `./config.status config.h'.
15079 if test -n "$CONFIG_FILES"; then
15082 ac_cr=`echo X | tr X '\015'`
15083 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15084 # But we know of no other shell where ac_cr would be empty at this
15085 # point, so we can use a bashism as a fallback.
15086 if test "x$ac_cr" = x; then
15087 eval ac_cr=\$\'\\r\'
15089 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15090 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15093 ac_cs_awk_cr=$ac_cr
15096 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15101 echo "cat >conf$$subs.awk <<_ACEOF" &&
15102 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15104 } >conf$$subs.sh ||
15105 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15106 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15108 for ac_last_try in false false false false false :; do
15109 . ./conf$$subs.sh ||
15110 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15112 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15113 if test $ac_delim_n = $ac_delim_num; then
15115 elif $ac_last_try; then
15116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15118 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15121 rm -f conf$$subs.sh
15123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15128 s/^/S["/; s/!.*/"]=/
15138 s/\(.\{148\}\)..*/\1/
15140 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15152 s/\(.\{148\}\)..*/\1/
15154 s/["\\]/\\&/g; s/^/"/; s/$/"/
15158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15163 ' <conf$$subs.awk | sed '
15168 ' >>$CONFIG_STATUS || ac_write_fail=1
15169 rm -f conf$$subs.awk
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15172 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15173 for (key in S) S_is_set[key] = 1
15179 nfields = split(line, field, "@")
15181 len = length(field[1])
15182 for (i = 2; i < nfields; i++) {
15184 keylen = length(key)
15185 if (S_is_set[key]) {
15187 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15188 len += length(value) + length(field[++i])
15199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15200 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15201 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15204 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15205 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15208 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15209 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15210 # trailing colons and then remove the whole line if VPATH becomes empty
15211 # (actually we leave an empty line to preserve line numbers).
15212 if test "x$srcdir" = x.; then
15213 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15232 fi # test -n "$CONFIG_FILES"
15235 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15240 :[FHLC]) ac_mode=$ac_tag; continue;;
15242 case $ac_mode$ac_tag in
15244 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15245 :[FH]-) ac_tag=-:-;;
15246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15263 -) ac_f="$ac_tmp/stdin";;
15264 *) # Look for the file first in the build tree, then in the source tree
15265 # (if the path is not absolute). The absolute path cannot be DOS-style,
15266 # because $ac_f cannot contain `:'.
15270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15272 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15275 as_fn_append ac_file_inputs " '$ac_f'"
15278 # Let's still pretend it is `configure' which instantiates (i.e., don't
15279 # use $as_me), people would be surprised to read:
15280 # /* config.h. Generated by config.status. */
15281 configure_input='Generated from '`
15282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15284 if test x"$ac_file" != x-; then
15285 configure_input="$ac_file. $configure_input"
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15287 $as_echo "$as_me: creating $ac_file" >&6;}
15289 # Neutralize special characters interpreted by sed in replacement strings.
15290 case $configure_input in #(
15291 *\&* | *\|* | *\\* )
15292 ac_sed_conf_input=`$as_echo "$configure_input" |
15293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15294 *) ac_sed_conf_input=$configure_input;;
15298 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15304 ac_dir=`$as_dirname -- "$ac_file" ||
15305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15306 X"$ac_file" : 'X\(//\)[^/]' \| \
15307 X"$ac_file" : 'X\(//\)$' \| \
15308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15309 $as_echo X"$ac_file" |
15310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15314 /^X\(\/\/\)[^/].*/{
15327 as_dir="$ac_dir"; as_fn_mkdir_p
15331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15334 # A ".." for each directory in $ac_dir_suffix.
15335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15336 case $ac_top_builddir_sub in
15337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15341 ac_abs_top_builddir=$ac_pwd
15342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15343 # for backward compatibility:
15344 ac_top_builddir=$ac_top_build_prefix
15347 .) # We are building in place.
15349 ac_top_srcdir=$ac_top_builddir_sub
15350 ac_abs_top_srcdir=$ac_pwd ;;
15351 [\\/]* | ?:[\\/]* ) # Absolute name.
15352 ac_srcdir=$srcdir$ac_dir_suffix;
15353 ac_top_srcdir=$srcdir
15354 ac_abs_top_srcdir=$srcdir ;;
15355 *) # Relative name.
15356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15357 ac_top_srcdir=$ac_top_build_prefix$srcdir
15358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15373 ac_MKDIR_P=$MKDIR_P
15375 [\\/$]* | ?:[\\/]* ) ;;
15376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15381 # If the template does not know about datarootdir, expand it.
15382 # FIXME: This hack should be removed a few years after 2.60.
15383 ac_datarootdir_hack=; ac_datarootdir_seen=
15394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15395 *datarootdir*) ac_datarootdir_seen=yes;;
15396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 ac_datarootdir_hack='
15402 s&@datadir@&$datadir&g
15403 s&@docdir@&$docdir&g
15404 s&@infodir@&$infodir&g
15405 s&@localedir@&$localedir&g
15406 s&@mandir@&$mandir&g
15407 s&\\\${datarootdir}&$datarootdir&g' ;;
15411 # Neutralize VPATH when `$srcdir' = `.'.
15412 # Shell code in configure.ac might set extrasub.
15413 # FIXME: do we really want to maintain this feature?
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 ac_sed_extra="$ac_vpsub
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15421 s|@configure_input@|$ac_sed_conf_input|;t t
15422 s&@top_builddir@&$ac_top_builddir_sub&;t t
15423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15424 s&@srcdir@&$ac_srcdir&;t t
15425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15426 s&@top_srcdir@&$ac_top_srcdir&;t t
15427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15428 s&@builddir@&$ac_builddir&;t t
15429 s&@abs_builddir@&$ac_abs_builddir&;t t
15430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15431 s&@INSTALL@&$ac_INSTALL&;t t
15432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15433 $ac_datarootdir_hack
15435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15436 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15439 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15441 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15443 which seems to be undefined. Please make sure it is defined" >&5
15444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15445 which seems to be undefined. Please make sure it is defined" >&2;}
15447 rm -f "$ac_tmp/stdin"
15449 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15450 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15457 $as_echo "$as_me: executing $ac_file commands" >&6;}
15462 case $ac_file$ac_mode in
15463 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15464 # Older Autoconf quotes --file arguments for eval, but not when files
15465 # are listed without --file. Let's play safe and only enable the eval
15466 # if we detect the quoting.
15467 case $CONFIG_FILES in
15468 *\'*) eval set x "$CONFIG_FILES" ;;
15469 *) set x $CONFIG_FILES ;;
15474 # Strip MF so we end up with the name of the file.
15475 mf=`echo "$mf" | sed -e 's/:.*$//'`
15476 # Check whether this is an Automake generated Makefile or not.
15477 # We used to match only the files named 'Makefile.in', but
15478 # some people rename them; so instead we look at the file content.
15479 # Grep'ing the first line is not enough: some people post-process
15480 # each Makefile.in and add a new line on top of each file to say so.
15481 # Grep'ing the whole file is not good either: AIX grep has a line
15482 # limit of 2048, but all sed's we know have understand at least 4000.
15483 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15484 dirpart=`$as_dirname -- "$mf" ||
15485 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15486 X"$mf" : 'X\(//\)[^/]' \| \
15487 X"$mf" : 'X\(//\)$' \| \
15488 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15494 /^X\(\/\/\)[^/].*/{
15510 # Extract the definition of DEPDIR, am__include, and am__quote
15511 # from the Makefile without running 'make'.
15512 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15513 test -z "$DEPDIR" && continue
15514 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15515 test -z "$am__include" && continue
15516 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15517 # Find all dependency output files, they are included files with
15518 # $(DEPDIR) in their names. We invoke sed twice because it is the
15519 # simplest approach to changing $(DEPDIR) to its actual value in the
15521 for file in `sed -n "
15522 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15523 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15524 # Make sure the directory exists.
15525 test -f "$dirpart/$file" && continue
15526 fdir=`$as_dirname -- "$file" ||
15527 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15528 X"$file" : 'X\(//\)[^/]' \| \
15529 X"$file" : 'X\(//\)$' \| \
15530 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15531 $as_echo X"$file" |
15532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15536 /^X\(\/\/\)[^/].*/{
15549 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15550 # echo "creating $dirpart/$file"
15551 echo '# dummy' > "$dirpart/$file"
15558 # See if we are running on zsh, and set the options that allow our
15559 # commands through without removal of \ escapes.
15560 if test -n "${ZSH_VERSION+set}"; then
15561 setopt NO_GLOB_SUBST
15565 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15568 cat <<_LT_EOF >> "$cfgfile"
15570 # Generated automatically by $as_me ($PACKAGE) $VERSION
15571 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15573 # Provide generalized library-building support services.
15574 # Written by Gordon Matzigkeit, 1996
15576 # Copyright (C) 2014 Free Software Foundation, Inc.
15577 # This is free software; see the source for copying conditions. There is NO
15578 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15580 # GNU Libtool is free software; you can redistribute it and/or modify
15581 # it under the terms of the GNU General Public License as published by
15582 # the Free Software Foundation; either version 2 of of the License, or
15583 # (at your option) any later version.
15585 # As a special exception to the GNU General Public License, if you
15586 # distribute this file as part of a program or library that is built
15587 # using GNU Libtool, you may include this file under the same
15588 # distribution terms that you use for the rest of that program.
15590 # GNU Libtool is distributed in the hope that it will be useful, but
15591 # WITHOUT ANY WARRANTY; without even the implied warranty of
15592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15593 # GNU General Public License for more details.
15595 # You should have received a copy of the GNU General Public License
15596 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15599 # The names of the tagged configurations supported by this script.
15602 # Configured defaults for sys_lib_dlsearch_path munging.
15603 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15605 # ### BEGIN LIBTOOL CONFIG
15607 # Which release of libtool.m4 was used?
15608 macro_version=$macro_version
15609 macro_revision=$macro_revision
15611 # Whether or not to build shared libraries.
15612 build_libtool_libs=$enable_shared
15614 # Whether or not to build static libraries.
15615 build_old_libs=$enable_static
15617 # What type of objects to build.
15620 # Whether or not to optimize for fast installation.
15621 fast_install=$enable_fast_install
15623 # Shared archive member basename,for filename based shared library versioning on AIX.
15624 shared_archive_member_spec=$shared_archive_member_spec
15626 # Shell to use when invoking shell scripts.
15629 # An echo program that protects backslashes.
15632 # The PATH separator for the build system.
15633 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15636 host_alias=$host_alias
15640 # The build system.
15641 build_alias=$build_alias
15645 # A sed program that does not truncate output.
15648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15649 Xsed="\$SED -e 1s/^X//"
15651 # A grep program that handles long lines.
15657 # A literal string matcher.
15660 # A BSD- or MS-compatible name lister.
15663 # Whether we need soft or hard links.
15666 # What is the maximum length of a command?
15667 max_cmd_len=$max_cmd_len
15669 # Object file suffix (normally "o").
15672 # Executable file suffix (normally "").
15675 # whether the shell understands "unset".
15678 # turn spaces into newlines.
15681 # turn newlines into spaces.
15684 # convert \$build file names to \$host format.
15685 to_host_file_cmd=$lt_cv_to_host_file_cmd
15687 # convert \$build files to toolchain format.
15688 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15690 # An object symbol dumper.
15691 OBJDUMP=$lt_OBJDUMP
15693 # Method to check whether dependent libraries are shared objects.
15694 deplibs_check_method=$lt_deplibs_check_method
15696 # Command to use when deplibs_check_method = "file_magic".
15697 file_magic_cmd=$lt_file_magic_cmd
15699 # How to find potential files when deplibs_check_method = "file_magic".
15700 file_magic_glob=$lt_file_magic_glob
15702 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15703 want_nocaseglob=$lt_want_nocaseglob
15705 # DLL creation program.
15706 DLLTOOL=$lt_DLLTOOL
15708 # Command to associate shared and link libraries.
15709 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15714 # Flags to create an archive.
15715 AR_FLAGS=$lt_AR_FLAGS
15717 # How to feed a file listing to the archiver.
15718 archiver_list_spec=$lt_archiver_list_spec
15720 # A symbol stripping program.
15723 # Commands used to install an old-style archive.
15725 old_postinstall_cmds=$lt_old_postinstall_cmds
15726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15728 # Whether to use a lock for old archive extraction.
15729 lock_old_archive_extraction=$lock_old_archive_extraction
15734 # LTCC compiler flags.
15735 LTCFLAGS=$lt_CFLAGS
15737 # Take the output of nm and produce a listing of raw symbols and C names.
15738 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15740 # Transform the output of nm in a proper C declaration.
15741 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15743 # Transform the output of nm into a list of symbols to manually relocate.
15744 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15746 # Transform the output of nm in a C name address pair.
15747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15749 # Transform the output of nm in a C name address pair when lib prefix is needed.
15750 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15752 # The name lister interface.
15753 nm_interface=$lt_lt_cv_nm_interface
15755 # Specify filename containing input files for \$NM.
15756 nm_file_list_spec=$lt_nm_file_list_spec
15758 # The root where to search for dependent libraries,and where our libraries should be installed.
15759 lt_sysroot=$lt_sysroot
15761 # Command to truncate a binary pipe.
15762 lt_truncate_bin=$lt_lt_cv_truncate_bin
15764 # The name of the directory that contains temporary libtool files.
15767 # Used to examine libraries when file_magic_cmd begins with "file".
15768 MAGIC_CMD=$MAGIC_CMD
15770 # Must we lock files when doing compilation?
15771 need_locks=$lt_need_locks
15774 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15776 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15777 DSYMUTIL=$lt_DSYMUTIL
15779 # Tool to change global to local symbols on Mac OS X.
15782 # Tool to manipulate fat objects and archives on Mac OS X.
15785 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15788 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15789 OTOOL64=$lt_OTOOL64
15791 # Old archive suffix (normally "a").
15794 # Shared library suffix (normally ".so").
15795 shrext_cmds=$lt_shrext_cmds
15797 # The commands to extract the exported symbol list from a shared archive.
15798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15800 # Variables whose values should be saved in libtool wrapper scripts and
15801 # restored at link time.
15802 variables_saved_for_relink=$lt_variables_saved_for_relink
15804 # Do we need the "lib" prefix for modules?
15805 need_lib_prefix=$need_lib_prefix
15807 # Do we need a version for libraries?
15808 need_version=$need_version
15810 # Library versioning type.
15811 version_type=$version_type
15813 # Shared library runtime path variable.
15814 runpath_var=$runpath_var
15816 # Shared library path variable.
15817 shlibpath_var=$shlibpath_var
15819 # Is shlibpath searched before the hard-coded library search path?
15820 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15822 # Format of library name prefix.
15823 libname_spec=$lt_libname_spec
15825 # List of archive names. First name is the real one, the rest are links.
15826 # The last name is the one that the linker finds with -lNAME
15827 library_names_spec=$lt_library_names_spec
15829 # The coded name of the library, if different from the real name.
15830 soname_spec=$lt_soname_spec
15832 # Permission mode override for installation of shared libraries.
15833 install_override_mode=$lt_install_override_mode
15835 # Command to use after installation of a shared archive.
15836 postinstall_cmds=$lt_postinstall_cmds
15838 # Command to use after uninstallation of a shared archive.
15839 postuninstall_cmds=$lt_postuninstall_cmds
15841 # Commands used to finish a libtool library installation in a directory.
15842 finish_cmds=$lt_finish_cmds
15844 # As "finish_cmds", except a single script fragment to be evaled but
15846 finish_eval=$lt_finish_eval
15848 # Whether we should hardcode library paths into libraries.
15849 hardcode_into_libs=$hardcode_into_libs
15851 # Compile-time system search path for libraries.
15852 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15854 # Detected run-time system search path for libraries.
15855 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15857 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15858 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15860 # Whether dlopen is supported.
15861 dlopen_support=$enable_dlopen
15863 # Whether dlopen of programs is supported.
15864 dlopen_self=$enable_dlopen_self
15866 # Whether dlopen of statically linked programs is supported.
15867 dlopen_self_static=$enable_dlopen_self_static
15869 # Commands to strip libraries.
15870 old_striplib=$lt_old_striplib
15871 striplib=$lt_striplib
15874 # The linker used to build libraries.
15877 # How to create reloadable object files.
15878 reload_flag=$lt_reload_flag
15879 reload_cmds=$lt_reload_cmds
15881 # Commands used to build an old-style archive.
15882 old_archive_cmds=$lt_old_archive_cmds
15884 # A language specific compiler.
15887 # Is the compiler the GNU compiler?
15890 # Compiler flag to turn off builtin functions.
15891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15893 # Additional compiler flags for building library objects.
15894 pic_flag=$lt_lt_prog_compiler_pic
15896 # How to pass a linker flag through the compiler.
15897 wl=$lt_lt_prog_compiler_wl
15899 # Compiler flag to prevent dynamic linking.
15900 link_static_flag=$lt_lt_prog_compiler_static
15902 # Does compiler simultaneously support -c and -o options?
15903 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15905 # Whether or not to add -lc for building shared libraries.
15906 build_libtool_need_lc=$archive_cmds_need_lc
15908 # Whether or not to disallow shared libs when runtime libs are static.
15909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15911 # Compiler flag to allow reflexive dlopens.
15912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15914 # Compiler flag to generate shared objects directly from archives.
15915 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15917 # Whether the compiler copes with passing no objects directly.
15918 compiler_needs_object=$lt_compiler_needs_object
15920 # Create an old-style archive from a shared archive.
15921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15923 # Create a temporary old-style archive to link instead of a shared archive.
15924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15926 # Commands used to build a shared archive.
15927 archive_cmds=$lt_archive_cmds
15928 archive_expsym_cmds=$lt_archive_expsym_cmds
15930 # Commands used to build a loadable module if different from building
15931 # a shared archive.
15932 module_cmds=$lt_module_cmds
15933 module_expsym_cmds=$lt_module_expsym_cmds
15935 # Whether we are building with GNU ld or not.
15936 with_gnu_ld=$lt_with_gnu_ld
15938 # Flag that allows shared libraries with undefined symbols to be built.
15939 allow_undefined_flag=$lt_allow_undefined_flag
15941 # Flag that enforces no undefined symbols.
15942 no_undefined_flag=$lt_no_undefined_flag
15944 # Flag to hardcode \$libdir into a binary during linking.
15945 # This must work even if \$libdir does not exist
15946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15948 # Whether we need a single "-rpath" flag with a separated argument.
15949 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15951 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15952 # DIR into the resulting binary.
15953 hardcode_direct=$hardcode_direct
15955 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15956 # DIR into the resulting binary and the resulting library dependency is
15957 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15958 # library is relocated.
15959 hardcode_direct_absolute=$hardcode_direct_absolute
15961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15962 # into the resulting binary.
15963 hardcode_minus_L=$hardcode_minus_L
15965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15966 # into the resulting binary.
15967 hardcode_shlibpath_var=$hardcode_shlibpath_var
15969 # Set to "yes" if building a shared library automatically hardcodes DIR
15970 # into the library and all subsequent libraries and executables linked
15972 hardcode_automatic=$hardcode_automatic
15974 # Set to yes if linker adds runtime paths of dependent libraries
15975 # to runtime path list.
15976 inherit_rpath=$inherit_rpath
15978 # Whether libtool must link a program against all its dependency libraries.
15979 link_all_deplibs=$link_all_deplibs
15981 # Set to "yes" if exported symbols are required.
15982 always_export_symbols=$always_export_symbols
15984 # The commands to list exported symbols.
15985 export_symbols_cmds=$lt_export_symbols_cmds
15987 # Symbols that should not be listed in the preloaded symbols.
15988 exclude_expsyms=$lt_exclude_expsyms
15990 # Symbols that must always be exported.
15991 include_expsyms=$lt_include_expsyms
15993 # Commands necessary for linking programs (against libraries) with templates.
15994 prelink_cmds=$lt_prelink_cmds
15996 # Commands necessary for finishing linking programs.
15997 postlink_cmds=$lt_postlink_cmds
15999 # Specify filename containing input files.
16000 file_list_spec=$lt_file_list_spec
16002 # How to hardcode a shared library path into an executable.
16003 hardcode_action=$hardcode_action
16005 # ### END LIBTOOL CONFIG
16009 cat <<'_LT_EOF' >> "$cfgfile"
16011 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
16013 # func_munge_path_list VARIABLE PATH
16014 # -----------------------------------
16015 # VARIABLE is name of variable containing _space_ separated list of
16016 # directories to be munged by the contents of PATH, which is string
16019 # string "DIR[ DIR]" will be prepended to VARIABLE
16021 # string "DIR[ DIR]" will be appended to VARIABLE
16022 # "DIRP[:DIRP]::[DIRA:]DIRA"
16023 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
16024 # "DIRA[ DIRA]" will be appended to VARIABLE
16026 # VARIABLE will be replaced by "DIR[ DIR]"
16027 func_munge_path_list ()
16033 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
16036 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
16039 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
16040 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
16043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
16049 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
16050 func_cc_basename ()
16052 for cc_temp in $*""; do
16054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16060 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16064 # ### END FUNCTIONS SHARED WITH CONFIGURE
16070 cat <<\_LT_EOF >> "$cfgfile"
16071 # AIX sometimes has problems with the GCC collect2 program. For some
16072 # reason, if we set the COLLECT_NAMES environment variable, the problems
16073 # vanish in a puff of smoke.
16074 if test set != "${COLLECT_NAMES+set}"; then
16076 export COLLECT_NAMES
16083 ltmain=$ac_aux_dir/ltmain.sh
16086 # We use sed instead of cat because bash on DJGPP gets confused if
16087 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16088 # text mode, it properly converts lines to CR/LF. This bash problem
16089 # is reportedly fixed, but why not run on old versions too?
16090 sed '$q' "$ltmain" >> "$cfgfile" \
16091 || (rm -f "$cfgfile"; exit 1)
16093 mv -f "$cfgfile" "$ofile" ||
16094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16105 ac_clean_files=$ac_clean_files_save
16107 test $ac_write_fail = 0 ||
16108 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16111 # configure is writing to config.log, and then calls config.status.
16112 # config.status does its own redirection, appending to config.log.
16113 # Unfortunately, on DOS this fails, as config.log is still kept open
16114 # by configure, so config.status won't be able to write to it; its
16115 # output is simply discarded. So we exec the FD to /dev/null,
16116 # effectively closing config.log, so it can be properly (re)opened and
16117 # appended to by config.status. When coming back to configure, we
16118 # need to make the FD available again.
16119 if test "$no_create" != yes; then
16121 ac_config_status_args=
16122 test "$silent" = yes &&
16123 ac_config_status_args="$ac_config_status_args --quiet"
16125 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16127 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16128 # would make configure fail if this is the last instruction.
16129 $ac_cs_success || as_fn_exit 1
16131 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16133 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}