2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.30.1.
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.30.1'
594 PACKAGE_STRING='sqlite 3.30.1'
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
784 ac_precious_vars='build_alias
796 # Initialize some variables set by options.
798 ac_init_version=false
799 ac_unrecognized_opts=
801 # The variables have the same names as the options, with
802 # dashes changed to underlines.
810 program_transform_name=s,x,x,
818 # Installation directory options.
819 # These are left unexpanded so users can "make install exec_prefix=/foo"
820 # and all the variables that are supposed to be based on exec_prefix
821 # by default will actually change.
822 # Use braces instead of parens because sh, perl, etc. also accept them.
823 # (The list follows the same order as the GNU Coding Standards.)
824 bindir='${exec_prefix}/bin'
825 sbindir='${exec_prefix}/sbin'
826 libexecdir='${exec_prefix}/libexec'
827 datarootdir='${prefix}/share'
828 datadir='${datarootdir}'
829 sysconfdir='${prefix}/etc'
830 sharedstatedir='${prefix}/com'
831 localstatedir='${prefix}/var'
832 runstatedir='${localstatedir}/run'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
849 # If the previous option needs an argument, assign it.
850 if test -n "$ac_prev"; then
851 eval $ac_prev=\$ac_option
857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 # Accept the important Cygnus configure options, so we can diagnose typos.
864 case $ac_dashdash$ac_option in
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
886 cache_file=config.cache ;;
888 -datadir | --datadir | --datadi | --datad)
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error $? "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
914 eval enable_$ac_useropt=no ;;
916 -docdir | --docdir | --docdi | --doc | --do)
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
940 eval enable_$ac_useropt=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
955 -help | --help | --hel | --he | -h)
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1085 -runstatedir | --runstatedir | --runstatedi | --runstated \
1086 | --runstate | --runstat | --runsta | --runst | --runs \
1087 | --run | --ru | --r)
1088 ac_prev=runstatedir ;;
1089 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1090 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1091 | --run=* | --ru=* | --r=*)
1092 runstatedir=$ac_optarg ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir runstatedir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1240 # Be sure to have absolute directory names.
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1310 ac_srcdir_defaulted=no
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 # Report the --help message.
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1344 \`configure' configures sqlite 3.30.1 to adapt to many kinds of systems.
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1351 Defaults for the options are specified in brackets.
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1375 For better control, use the options below.
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of sqlite 3.30.1:";;
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-silent-rules less verbose build output (undo: "make V=1")
1424 --disable-silent-rules verbose build output (undo: "make V=0")
1425 --disable-largefile omit support for large files
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-shared[=PKGS] build shared libraries [default=yes]
1431 --enable-static[=PKGS] build static libraries [default=yes]
1432 --enable-fast-install[=PKGS]
1433 optimize for fast installation [default=yes]
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --enable-editline use BSD libedit
1436 --enable-readline use readline
1437 --enable-threadsafe build a thread-safe library [default=yes]
1438 --enable-dynamic-extensions
1439 support loadable extensions [default=yes]
1440 --enable-fts4 include fts4 support [default=yes]
1441 --enable-fts3 include fts3 support [default=no]
1442 --enable-fts5 include fts5 support [default=yes]
1443 --enable-json1 include json1 support [default=yes]
1444 --enable-rtree include rtree support [default=yes]
1445 --enable-session enable the session extension [default=no]
1446 --enable-debug build with debugging features enabled [default=no]
1447 --enable-static-shell statically link libsqlite3 into shell tool
1451 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1452 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1453 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1455 --with-aix-soname=aix|svr4|both
1456 shared library versioning (aka "SONAME") variant to
1457 provide on AIX, [default=aix].
1458 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1459 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1460 compiler's sysroot if not specified).
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1471 User-defined run-time library search path.
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to <http://www.sqlite.org>.
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1507 .) # We are building in place.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1540 sqlite configure 3.30.1
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 test -x conftest$ac_exeext
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_c_try_link
1638 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1639 # -------------------------------------------------------
1640 # Tests whether HEADER exists and can be compiled using the include files in
1641 # INCLUDES, setting the cache variable VAR accordingly.
1642 ac_fn_c_check_header_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 $as_echo_n "checking for $2... " >&6; }
1647 if eval \${$3+:} false; then :
1648 $as_echo_n "(cached) " >&6
1650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1655 if ac_fn_c_try_compile "$LINENO"; then :
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 } # ac_fn_c_check_header_compile
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=$ac_status
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1748 # ac_fn_c_check_func LINENO FUNC VAR
1749 # ----------------------------------
1750 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1751 ac_fn_c_check_func ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755 $as_echo_n "checking for $2... " >&6; }
1756 if eval \${$3+:} false; then :
1757 $as_echo_n "(cached) " >&6
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1761 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1763 #define $2 innocuous_$2
1765 /* System header to define __stub macros and hopefully few prototypes,
1766 which can conflict with char $2 (); below.
1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1768 <limits.h> exists even on freestanding compilers. */
1771 # include <limits.h>
1773 # include <assert.h>
1778 /* Override any GCC internal prototype to avoid an error.
1779 Use char because int might match the return type of a GCC
1780 builtin and then its argument prototype would still apply. */
1785 /* The GNU C library defines this for functions which it implements
1786 to always fail with ENOSYS. Some functions are actually named
1787 something starting with __ and the normal name is an alias. */
1788 #if defined __stub_$2 || defined __stub___$2
1800 if ac_fn_c_try_link "$LINENO"; then :
1805 rm -f core conftest.err conftest.$ac_objext \
1806 conftest$ac_exeext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_func
1815 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1816 # ---------------------------------------------
1817 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1819 ac_fn_c_check_decl ()
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 as_decl_name=`echo $2|sed 's/ *(.*//'`
1823 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1825 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1826 if eval \${$3+:} false; then :
1827 $as_echo_n "(cached) " >&6
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1835 #ifndef $as_decl_name
1837 (void) $as_decl_use;
1839 (void) $as_decl_name;
1847 if ac_fn_c_try_compile "$LINENO"; then :
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 } # ac_fn_c_check_decl
1861 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1862 # -------------------------------------------------------
1863 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1864 # the include files in INCLUDES and setting the cache variable VAR
1866 ac_fn_c_check_header_mongrel ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if eval \${$3+:} false; then :
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1871 $as_echo_n "checking for $2... " >&6; }
1872 if eval \${$3+:} false; then :
1873 $as_echo_n "(cached) " >&6
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1879 # Is the header compilable?
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1881 $as_echo_n "checking $2 usability... " >&6; }
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1887 if ac_fn_c_try_compile "$LINENO"; then :
1888 ac_header_compiler=yes
1890 ac_header_compiler=no
1892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1894 $as_echo "$ac_header_compiler" >&6; }
1896 # Is the header present?
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1898 $as_echo_n "checking $2 presence... " >&6; }
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1903 if ac_fn_c_try_cpp "$LINENO"; then :
1904 ac_header_preproc=yes
1906 ac_header_preproc=no
1908 rm -f conftest.err conftest.i conftest.$ac_ext
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1910 $as_echo "$ac_header_preproc" >&6; }
1912 # So? What about this header?
1913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1916 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1922 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1924 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1926 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1928 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1931 ( $as_echo "## ------------------------------------ ##
1932 ## Report this to http://www.sqlite.org ##
1933 ## ------------------------------------ ##"
1934 ) | sed "s/^/$as_me: WARNING: /" >&2
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 eval "$3=\$ac_header_compiler"
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_mongrel
1951 cat >config.log <<_ACEOF
1952 This file contains any messages produced by compilers while
1953 running configure, to aid debugging if configure makes a mistake.
1955 It was created by sqlite $as_me 3.30.1, which was
1956 generated by GNU Autoconf 2.69. Invocation command line was
1968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 test -z "$as_dir" && as_dir=.
1992 $as_echo "PATH: $as_dir"
2008 # Keep a trace of the command line.
2009 # Strip out --no-create and --no-recursion so they do not pile up.
2010 # Strip out --silent because we don't want to record it for future runs.
2011 # Also quote any args containing shell meta-characters.
2012 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_must_keep_next=false
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2032 as_fn_append ac_configure_args1 " '$ac_arg'"
2033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2045 -* ) ac_must_keep_next=true ;;
2048 as_fn_append ac_configure_args " '$ac_arg'"
2053 { ac_configure_args0=; unset ac_configure_args0;}
2054 { ac_configure_args1=; unset ac_configure_args1;}
2056 # When interrupted or exit'd, cleanup temporary files, and complete
2057 # config.log. We remove comments because anyway the quotes in there
2058 # would cause problems or look ugly.
2059 # WARNING: Use '\'' to represent an apostrophe within the trap.
2060 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061 trap 'exit_status=$?
2062 # Save into config.log some information that might help in debugging.
2066 $as_echo "## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##"
2070 # The following way of writing the cache mishandles newlines in values,
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2081 _ | IFS | as_nl) ;; #(
2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
2091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2102 $as_echo "## ----------------- ##
2103 ## Output variables. ##
2104 ## ----------------- ##"
2106 for ac_var in $ac_subst_vars
2108 eval ac_val=\$$ac_var
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112 $as_echo "$ac_var='\''$ac_val'\''"
2116 if test -n "$ac_subst_files"; then
2117 $as_echo "## ------------------- ##
2118 ## File substitutions. ##
2119 ## ------------------- ##"
2121 for ac_var in $ac_subst_files
2123 eval ac_val=\$$ac_var
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 $as_echo "$ac_var='\''$ac_val'\''"
2132 if test -s confdefs.h; then
2133 $as_echo "## ----------- ##
2140 test "$ac_signal" != 0 &&
2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2148 for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2154 rm -f -r conftest* confdefs.h
2156 $as_echo "/* confdefs.h */" > confdefs.h
2158 # Predefined preprocessor variables.
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_NAME "$PACKAGE_NAME"
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_STRING "$PACKAGE_STRING"
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_URL "$PACKAGE_URL"
2185 # Let the site file select an alternate cache file if it wants to.
2186 # Prefer an explicitly selected file to automatically selected ones.
2189 if test -n "$CONFIG_SITE"; then
2190 # We do not want a PATH search for config.site.
2191 case $CONFIG_SITE in #((
2192 -*) ac_site_file1=./$CONFIG_SITE;;
2193 */*) ac_site_file1=$CONFIG_SITE;;
2194 *) ac_site_file1=./$CONFIG_SITE;;
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
2200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
2203 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205 test "x$ac_site_file" = xNONE && continue
2206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209 sed 's/^/| /' "$ac_site_file" >&5
2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 as_fn_error $? "failed to load site script $ac_site_file
2214 See \`config.log' for more details" "$LINENO" 5; }
2218 if test -r "$cache_file"; then
2219 # Some versions of bash will fail to source /dev/null (special files
2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235 # Check that the precious variables saved in the cache have kept the same
2237 ac_cache_corrupted=false
2238 for ac_var in $ac_precious_vars; do
2239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2240 eval ac_new_set=\$ac_env_${ac_var}_set
2241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2242 eval ac_new_val=\$ac_env_${ac_var}_value
2243 case $ac_old_set,$ac_new_set in
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2247 ac_cache_corrupted=: ;;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2254 if test "x$ac_old_val" != "x$ac_new_val"; then
2255 # differences in whitespace do not lead to failure.
2256 ac_old_val_w=`echo x $ac_old_val`
2257 ac_new_val_w=`echo x $ac_new_val`
2258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2261 ac_cache_corrupted=:
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2265 eval $ac_var=\$ac_old_val
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2273 # Pass precious variables to config.status.
2274 if test "$ac_new_set" = set; then
2276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2277 *) ac_arg=$ac_var=$ac_new_val ;;
2279 case " $ac_configure_args " in
2280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285 if $ac_cache_corrupted; then
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2290 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2292 ## -------------------- ##
2293 ## Main body of script. ##
2294 ## -------------------- ##
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305 for ac_dir in . "$srcdir"/.; do
2306 if test -f "$ac_dir/install-sh"; then
2308 ac_install_sh="$ac_aux_dir/install-sh -c"
2310 elif test -f "$ac_dir/install.sh"; then
2312 ac_install_sh="$ac_aux_dir/install.sh -c"
2314 elif test -f "$ac_dir/shtool"; then
2316 ac_install_sh="$ac_aux_dir/shtool install -c"
2320 if test -z "$ac_aux_dir"; then
2321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2324 # These three variables are undocumented and unsupported,
2325 # and are intended to be withdrawn in a future Autoconf release.
2326 # They can cause serious problems if a builder's source tree is in a directory
2327 # whose full name contains unusual characters.
2328 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2335 am__api_version='1.15'
2337 # Find a good install program. We prefer a C program (faster),
2338 # so one script is as good as another. But avoid the broken or
2339 # incompatible versions:
2340 # SysV /etc/install, /usr/sbin/install
2341 # SunOS /usr/etc/install
2342 # IRIX /sbin/install
2344 # AmigaOS /C/install, which installs bootblocks on floppy discs
2345 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348 # OS/2's system install, which has a completely different semantic
2349 # ./install, which can be erroneously created by make from ./install.sh.
2350 # Reject install programs that cannot install multiple files.
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2353 if test -z "$INSTALL"; then
2354 if ${ac_cv_path_install+:} false; then :
2355 $as_echo_n "(cached) " >&6
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 # Account for people who put trailing slashes in PATH elements.
2363 case $as_dir/ in #((
2364 ./ | .// | /[cC]/* | \
2365 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2369 # OSF1 and SCO ODT 3.0 have their own names for install.
2370 # Don't use installbsd from OSF since it installs stuff as root
2372 for ac_prog in ginstall scoinst install; do
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2375 if test $ac_prog = install &&
2376 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377 # AIX install. It has an incompatible calling convention.
2379 elif test $ac_prog = install &&
2380 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381 # program-specific install script used by HP pwplus--don't use.
2384 rm -rf conftest.one conftest.two conftest.dir
2385 echo one > conftest.one
2386 echo two > conftest.two
2388 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389 test -s conftest.one && test -s conftest.two &&
2390 test -s conftest.dir/conftest.one &&
2391 test -s conftest.dir/conftest.two
2393 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2406 rm -rf conftest.one conftest.two conftest.dir
2409 if test "${ac_cv_path_install+set}" = set; then
2410 INSTALL=$ac_cv_path_install
2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for INSTALL within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 INSTALL=$ac_install_sh
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420 $as_echo "$INSTALL" >&6; }
2422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423 # It thinks the first close brace ends the variable substitution.
2424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431 $as_echo_n "checking whether build environment is sane... " >&6; }
2432 # Reject unsafe characters in $srcdir or the absolute working directory
2433 # name. Accept space and tab only in the latter.
2437 *[\\\"\#\$\&\'\`$am_lf]*)
2438 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2441 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2442 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2445 # Do 'set' in a subshell so we don't clobber the current shell's
2446 # arguments. Must try -L first in case configure is actually a
2447 # symlink; some systems play weird games with the mod time of symlinks
2448 # (eg FreeBSD returns the mod time of the symlink's containing
2452 for am_try in 1 2; do
2453 echo "timestamp, slept: $am_has_slept" > conftest.file
2454 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455 if test "$*" = "X"; then
2457 set X `ls -t "$srcdir/configure" conftest.file`
2459 if test "$*" != "X $srcdir/configure conftest.file" \
2460 && test "$*" != "X conftest.file $srcdir/configure"; then
2462 # If neither matched, then we have a broken ls. This can happen
2463 # if, for instance, CONFIG_SHELL is bash and it inherits a
2464 # broken ls alias from the environment. This has actually
2465 # happened. Such a system could not be considered "sane".
2466 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2467 alias in your environment" "$LINENO" 5
2469 if test "$2" = conftest.file || test $am_try -eq 2; then
2476 test "$2" = conftest.file
2482 as_fn_error $? "newly created file is older than distributed files!
2483 Check your system clock" "$LINENO" 5
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486 $as_echo "yes" >&6; }
2487 # If we didn't sleep, we still need to ensure time stamps of config.status and
2488 # generated files are strictly newer.
2490 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2497 test "$program_prefix" != NONE &&
2498 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2499 # Use a double $ so make ignores it.
2500 test "$program_suffix" != NONE &&
2501 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2502 # Double any \ or $.
2503 # By default was `s,x,x', remove it if useless.
2504 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2505 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2507 # Expand $ac_aux_dir to an absolute path.
2508 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2510 if test x"${MISSING+set}" != xset; then
2513 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2515 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2518 # Use eval to expand $SHELL
2519 if eval "$MISSING --is-lightweight"; then
2520 am_missing_run="$MISSING "
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2524 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2527 if test x"${install_sh+set}" != xset; then
2530 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2532 install_sh="\${SHELL} $am_aux_dir/install-sh"
2536 # Installed binaries are usually stripped using 'strip' when the user
2537 # run "make install-strip". However 'strip' might not be the right
2538 # tool to use in cross-compilation environments, therefore Automake
2539 # will honor the 'STRIP' environment variable to overrule this program.
2540 if test "$cross_compiling" != no; then
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}strip; ac_word=$2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if ${ac_cv_prog_STRIP+:} false; then :
2547 $as_echo_n "(cached) " >&6
2549 if test -n "$STRIP"; then
2550 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 STRIP=$ac_cv_prog_STRIP
2570 if test -n "$STRIP"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2572 $as_echo "$STRIP" >&6; }
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2580 if test -z "$ac_cv_prog_STRIP"; then
2582 # Extract the first word of "strip", so it can be a program name with args.
2583 set dummy strip; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2587 $as_echo_n "(cached) " >&6
2589 if test -n "$ac_ct_STRIP"; then
2590 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_ac_ct_STRIP="strip"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2610 if test -n "$ac_ct_STRIP"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2612 $as_echo "$ac_ct_STRIP" >&6; }
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2618 if test "x$ac_ct_STRIP" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2625 ac_tool_warned=yes ;;
2630 STRIP="$ac_cv_prog_STRIP"
2634 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2637 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2638 if test -z "$MKDIR_P"; then
2639 if ${ac_cv_path_mkdir+:} false; then :
2640 $as_echo_n "(cached) " >&6
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2646 test -z "$as_dir" && as_dir=.
2647 for ac_prog in mkdir gmkdir; do
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2650 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2651 'mkdir (GNU coreutils) '* | \
2652 'mkdir (coreutils) '* | \
2653 'mkdir (fileutils) '4.1*)
2654 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2664 test -d ./--version && rmdir ./--version
2665 if test "${ac_cv_path_mkdir+set}" = set; then
2666 MKDIR_P="$ac_cv_path_mkdir -p"
2668 # As a last resort, use the slow shell script. Don't cache a
2669 # value for MKDIR_P within a source directory, because that will
2670 # break other packages using the cache if that directory is
2671 # removed, or if the value is a relative name.
2672 MKDIR_P="$ac_install_sh -d"
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2676 $as_echo "$MKDIR_P" >&6; }
2678 for ac_prog in gawk mawk nawk awk
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_AWK+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$AWK"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2710 $as_echo "$AWK" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$AWK" && break
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2721 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2723 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2724 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 cat >conftest.make <<\_ACEOF
2730 @echo '@@@%%%=$(MAKE)=@@@%%%'
2732 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2735 eval ac_cv_prog_make_${ac_make}_set=yes;;
2737 eval ac_cv_prog_make_${ac_make}_set=no;;
2741 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2743 $as_echo "yes" >&6; }
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 SET_MAKE="MAKE=${MAKE-make}"
2751 rm -rf .tst 2>/dev/null
2752 mkdir .tst 2>/dev/null
2753 if test -d .tst; then
2758 rmdir .tst 2>/dev/null
2760 # Check whether --enable-silent-rules was given.
2761 if test "${enable_silent_rules+set}" = set; then :
2762 enableval=$enable_silent_rules;
2765 case $enable_silent_rules in # (((
2766 yes) AM_DEFAULT_VERBOSITY=0;;
2767 no) AM_DEFAULT_VERBOSITY=1;;
2768 *) AM_DEFAULT_VERBOSITY=1;;
2770 am_make=${MAKE-make}
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2772 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2773 if ${am_cv_make_support_nested_variables+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if $as_echo 'TRUE=$(BAR$(V))
2782 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2783 am_cv_make_support_nested_variables=yes
2785 am_cv_make_support_nested_variables=no
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2789 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2790 if test $am_cv_make_support_nested_variables = yes; then
2792 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2794 AM_V=$AM_DEFAULT_VERBOSITY
2795 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2799 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2800 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2801 # is not polluted with repeated "-I."
2802 am__isrc=' -I$(srcdir)'
2803 # test to see if srcdir already configured
2804 if test -f $srcdir/config.status; then
2805 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2809 # test whether we have cygpath
2810 if test -z "$CYGPATH_W"; then
2811 if (cygpath --version) >/dev/null 2>/dev/null; then
2812 CYGPATH_W='cygpath -w'
2819 # Define the identity of the package.
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE "$PACKAGE"
2829 cat >>confdefs.h <<_ACEOF
2830 #define VERSION "$VERSION"
2833 # Some tools Automake needs.
2835 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2838 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2841 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2844 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2847 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2849 # For better backward compatibility. To be removed once Automake 1.9.x
2850 # dies out for good. For more background, see:
2851 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2852 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2853 mkdir_p='$(MKDIR_P)'
2855 # We need awk for the "check" target (and possibly the TAP driver). The
2856 # system "awk" is bad on some platforms.
2857 # Always define AMTAR for backward compatibility. Yes, it's still used
2858 # in the wild :-( We should find a proper way to deprecate it ...
2862 # We'll loop over all known methods to create a tar archive until one works.
2863 _am_tools='gnutar pax cpio none'
2865 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2872 # POSIX will say in a future version that running "rm -f" with no argument
2873 # is OK; and we want to be able to make that assumption in our Makefile
2874 # recipes. So use an aggressive probe to check that the usage we want is
2875 # actually supported "in the wild" to an acceptable degree.
2876 # See automake bug#10828.
2877 # To make any issue more visible, cause the running configure to be aborted
2878 # by default if the 'rm' program in use doesn't match our expectations; the
2879 # user can still override this though.
2880 if rm -f && rm -fr && rm -rf; then : OK; else
2884 Your 'rm' program seems unable to run without file operands specified
2885 on the command line, even when the '-f' option is present. This is contrary
2886 to the behaviour of most rm programs out there, and not conforming with
2887 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2889 Please tell bug-automake@gnu.org about your system, including the value
2890 of your $PATH and any error possibly output before this message. This
2891 can help us improve future automake versions.
2894 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2895 echo 'Configuration will proceed anyway, since you have set the' >&2
2896 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2900 Aborting the configuration process, to ensure you take notice of the issue.
2902 You can download and install GNU coreutils to get an 'rm' implementation
2903 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2905 If you want to complete the configuration process using your problematic
2906 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2907 to "yes", and re-run configure.
2910 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2915 DEPDIR="${am__leading_dot}deps"
2917 ac_config_commands="$ac_config_commands depfiles"
2920 am_make=${MAKE-make}
2921 cat > confinc << 'END'
2923 @echo this is the am__doit target
2926 # If we don't find an include directive, just comment out the code.
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2928 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2932 # First try GNU make style include.
2933 echo "include confinc" > confmf
2934 # Ignore all kinds of additional output from 'make'.
2935 case `$am_make -s -f confmf 2> /dev/null` in #(
2936 *the\ am__doit\ target*)
2942 # Now try BSD make style include.
2943 if test "$am__include" = "#"; then
2944 echo '.include "confinc"' > confmf
2945 case `$am_make -s -f confmf 2> /dev/null` in #(
2946 *the\ am__doit\ target*)
2947 am__include=.include
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2956 $as_echo "$_am_result" >&6; }
2957 rm -f confinc confmf
2959 # Check whether --enable-dependency-tracking was given.
2960 if test "${enable_dependency_tracking+set}" = set; then :
2961 enableval=$enable_dependency_tracking;
2964 if test "x$enable_dependency_tracking" != xno; then
2965 am_depcomp="$ac_aux_dir/depcomp"
2969 if test "x$enable_dependency_tracking" != xno; then
2979 ac_cpp='$CPP $CPPFLAGS'
2980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3022 if test -z "$ac_cv_prog_CC"; then
3024 # Extract the first word of "gcc", so it can be a program name with args.
3025 set dummy gcc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3031 if test -n "$ac_ct_CC"; then
3032 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 ac_cv_prog_ac_ct_CC="gcc"
3042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3052 if test -n "$ac_ct_CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3054 $as_echo "$ac_ct_CC" >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3060 if test "x$ac_ct_CC" = x; then
3063 case $cross_compiling:$ac_tool_warned in
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3067 ac_tool_warned=yes ;;
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3078 set dummy ${ac_tool_prefix}cc; ac_word=$2
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3080 $as_echo_n "checking for $ac_word... " >&6; }
3081 if ${ac_cv_prog_CC+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 test -z "$as_dir" && as_dir=.
3092 for ac_exec_ext in '' $ac_executable_extensions; do
3093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3094 ac_cv_prog_CC="${ac_tool_prefix}cc"
3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 if test -n "$CC"; then
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3107 $as_echo "$CC" >&6; }
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3110 $as_echo "no" >&6; }
3116 if test -z "$CC"; then
3117 # Extract the first word of "cc", so it can be a program name with args.
3118 set dummy cc; ac_word=$2
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3120 $as_echo_n "checking for $ac_word... " >&6; }
3121 if ${ac_cv_prog_CC+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 if test -n "$CC"; then
3125 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3135 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3136 ac_prog_rejected=yes
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 if test $ac_prog_rejected = yes; then
3148 # We found a bogon in the path, so make sure we never use it.
3149 set dummy $ac_cv_prog_CC
3151 if test $# != 0; then
3152 # We chose a different compiler from the bogus one.
3153 # However, it has the same basename, so the bogon will be chosen
3154 # first if we set CC to just the basename; use the full file name.
3156 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3162 if test -n "$CC"; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164 $as_echo "$CC" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3172 if test -z "$CC"; then
3173 if test -n "$ac_tool_prefix"; then
3174 for ac_prog in cl.exe
3176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if ${ac_cv_prog_CC+:} false; then :
3181 $as_echo_n "(cached) " >&6
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; }
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3213 test -n "$CC" && break
3216 if test -z "$CC"; then
3218 for ac_prog in cl.exe
3220 # Extract the first word of "$ac_prog", so it can be a program name with args.
3221 set dummy $ac_prog; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3225 $as_echo_n "(cached) " >&6
3227 if test -n "$ac_ct_CC"; then
3228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_prog_ac_ct_CC="$ac_prog"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248 if test -n "$ac_ct_CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 $as_echo "$ac_ct_CC" >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3257 test -n "$ac_ct_CC" && break
3260 if test "x$ac_ct_CC" = x; then
3263 case $cross_compiling:$ac_tool_warned in
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267 ac_tool_warned=yes ;;
3276 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error $? "no acceptable C compiler found in \$PATH
3279 See \`config.log' for more details" "$LINENO" 5; }
3281 # Provide some information about the compiler.
3282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3285 for ac_option in --version -v -V -qversion; do
3286 { { ac_try="$ac_compiler $ac_option >&5"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3292 $as_echo "$ac_try_echo"; } >&5
3293 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3295 if test -s conftest.err; then
3297 ... rest of stderr output deleted ...
3298 10q' conftest.err >conftest.er1
3299 cat conftest.er1 >&5
3301 rm -f conftest.er1 conftest.err
3302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3303 test $ac_status = 0; }
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3317 ac_clean_files_save=$ac_clean_files
3318 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3319 # Try to create an executable without -o first, disregard a.out.
3320 # It will help us diagnose broken compilers, and finding out an intuition
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3323 $as_echo_n "checking whether the C compiler works... " >&6; }
3324 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3326 # The possible output files:
3327 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3330 for ac_file in $ac_files
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3339 if { { ac_try="$ac_link_default"
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link_default") 2>&5
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3355 for ac_file in $ac_files ''
3357 test -f "$ac_file" || continue
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3362 # We found the default executable, but exeext='' is most
3366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an `-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3380 test "$ac_cv_exeext" = no && ac_cv_exeext=
3385 if test -z "$ac_file"; then :
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error 77 "C compiler cannot create executables
3394 See \`config.log' for more details" "$LINENO" 5; }
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3397 $as_echo "yes" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3400 $as_echo_n "checking for C compiler default output file name... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3402 $as_echo "$ac_file" >&6; }
3403 ac_exeext=$ac_cv_exeext
3405 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3406 ac_clean_files=$ac_clean_files_save
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3408 $as_echo_n "checking for suffix of executables... " >&6; }
3409 if { { ac_try="$ac_link"
3411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3412 *) ac_try_echo=$ac_try;;
3414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_link") 2>&5
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; then :
3420 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3421 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3422 # work properly (i.e., refer to `conftest.exe'), while it won't with
3424 for ac_file in conftest.exe conftest conftest.*; do
3425 test -f "$ac_file" || continue
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3428 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3437 See \`config.log' for more details" "$LINENO" 5; }
3439 rm -f conftest conftest$ac_cv_exeext
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3441 $as_echo "$ac_cv_exeext" >&6; }
3443 rm -f conftest.$ac_ext
3444 EXEEXT=$ac_cv_exeext
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3452 FILE *f = fopen ("conftest.out", "w");
3453 return ferror (f) || fclose (f) != 0;
3459 ac_clean_files="$ac_clean_files conftest.out"
3460 # Check that the compiler produces executables we can run. If not, either
3461 # the compiler is broken, or we cross compile.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3463 $as_echo_n "checking whether we are cross compiling... " >&6; }
3464 if test "$cross_compiling" != yes; then
3465 { { ac_try="$ac_link"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link") 2>&5
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }
3476 if { ac_try='./conftest$ac_cv_exeext'
3477 { { case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3482 $as_echo "$ac_try_echo"; } >&5
3483 (eval "$ac_try") 2>&5
3485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3486 test $ac_status = 0; }; }; then
3489 if test "$cross_compiling" = maybe; then
3492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3494 as_fn_error $? "cannot run C compiled programs.
3495 If you meant to cross compile, use \`--host'.
3496 See \`config.log' for more details" "$LINENO" 5; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3501 $as_echo "$cross_compiling" >&6; }
3503 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3504 ac_clean_files=$ac_clean_files_save
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3506 $as_echo_n "checking for suffix of object files... " >&6; }
3507 if ${ac_cv_objext+:} false; then :
3508 $as_echo_n "(cached) " >&6
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3521 rm -f conftest.o conftest.obj
3522 if { { ac_try="$ac_compile"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528 $as_echo "$ac_try_echo"; } >&5
3529 (eval "$ac_compile") 2>&5
3531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532 test $ac_status = 0; }; then :
3533 for ac_file in conftest.o conftest.obj conftest.*; do
3534 test -f "$ac_file" || continue;
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542 $as_echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error $? "cannot compute suffix of object files: cannot compile
3548 See \`config.log' for more details" "$LINENO" 5; }
3550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3553 $as_echo "$ac_cv_objext" >&6; }
3554 OBJEXT=$ac_cv_objext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3558 if ${ac_cv_c_compiler_gnu+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3575 if ac_fn_c_try_compile "$LINENO"; then :
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3585 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3586 if test $ac_compiler_gnu = yes; then
3591 ac_test_CFLAGS=${CFLAGS+set}
3592 ac_save_CFLAGS=$CFLAGS
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3594 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3595 if ${ac_cv_prog_cc_g+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 ac_save_c_werror_flag=$ac_c_werror_flag
3599 ac_c_werror_flag=yes
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3613 if ac_fn_c_try_compile "$LINENO"; then :
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3628 if ac_fn_c_try_compile "$LINENO"; then :
3631 ac_c_werror_flag=$ac_save_c_werror_flag
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3644 if ac_fn_c_try_compile "$LINENO"; then :
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_c_werror_flag=$ac_save_c_werror_flag
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3655 $as_echo "$ac_cv_prog_cc_g" >&6; }
3656 if test "$ac_test_CFLAGS" = set; then
3657 CFLAGS=$ac_save_CFLAGS
3658 elif test $ac_cv_prog_cc_g = yes; then
3659 if test "$GCC" = yes; then
3665 if test "$GCC" = yes; then
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3672 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3673 if ${ac_cv_prog_cc_c89+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 ac_cv_prog_cc_c89=no
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3683 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3684 struct buf { int x; };
3685 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3686 static char *e (p, i)
3692 static char *f (char * (*g) (char **, int), char **p, ...)
3697 s = g (p, va_arg (v,int));
3702 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3703 function prototypes and stuff, but not '\xHH' hex character constants.
3704 These don't provoke an error unfortunately, instead are silently treated
3705 as 'x'. The following induces an error, until -std is added to get
3706 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3707 array size at least. It's necessary to write '\x00'==0 to get something
3708 that's true only with -std. */
3709 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3711 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3712 inside strings and character constants. */
3714 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3716 int test (int i, double x);
3717 struct s1 {int (*f) (int a);};
3718 struct s2 {int (*f) (double a);};
3719 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3730 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3731 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3733 CC="$ac_save_CC $ac_arg"
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_cv_prog_cc_c89=$ac_arg
3737 rm -f core conftest.err conftest.$ac_objext
3738 test "x$ac_cv_prog_cc_c89" != "xno" && break
3740 rm -f conftest.$ac_ext
3745 case "x$ac_cv_prog_cc_c89" in
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748 $as_echo "none needed" >&6; } ;;
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3751 $as_echo "unsupported" >&6; } ;;
3753 CC="$CC $ac_cv_prog_cc_c89"
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3755 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3757 if test "x$ac_cv_prog_cc_c89" != xno; then :
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 ac_cpp='$CPP $CPPFLAGS'
3769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3773 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3774 if ${am_cv_prog_cc_c_o+:} false; then :
3775 $as_echo_n "(cached) " >&6
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3788 # Make sure it works both with $CC and with simple cc.
3789 # Following AC_PROG_CC_C_O, we do the test twice because some
3790 # compilers refuse to overwrite an existing .o file with -o,
3791 # though they will create one.
3792 am_cv_prog_cc_c_o=yes
3794 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3795 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } \
3799 && test -f conftest2.$ac_objext; then
3802 am_cv_prog_cc_c_o=no
3806 rm -f core conftest*
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3810 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3811 if test "$am_cv_prog_cc_c_o" != yes; then
3812 # Losing compiler, so override with the script.
3813 # FIXME: It is wrong to rewrite CC.
3814 # But if we don't then we get into trouble of one sort or another.
3815 # A longer-term fix would be to have automake use am__CC in this case,
3816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3817 CC="$am_aux_dir/compile $CC"
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 depcc="$CC" am_compiler_list=
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3829 $as_echo_n "checking dependency style of $depcc... " >&6; }
3830 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3834 # We make a subdir and do the tests there. Otherwise we can end up
3835 # making bogus files that we don't know about and never remove. For
3836 # instance it was reported that on HP-UX the gcc test will end up
3837 # making a dummy file named 'D' -- because '-MD' means "put the output
3841 # Copy depcomp to subdir because otherwise we won't find it if we're
3842 # using a relative directory.
3843 cp "$am_depcomp" conftest.dir
3845 # We will build objects and dependencies in a subdirectory because
3846 # it helps to detect inapplicable dependency modes. For instance
3847 # both Tru64's cc and ICC support -MD to output dependencies as a
3848 # side effect of compilation, but ICC will put the dependencies in
3849 # the current directory while Tru64 will put them in the object
3853 am_cv_CC_dependencies_compiler_type=none
3854 if test "$am_compiler_list" = ""; then
3855 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3858 case " $depcc " in #(
3859 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3862 for depmode in $am_compiler_list; do
3863 # Setup a source with many dependencies, because some compilers
3864 # like to wrap large dependency lists on column 80 (with \), and
3865 # we should not choose a depcomp mode which is confused by this.
3867 # We need to recreate these files for each test, as the compiler may
3868 # overwrite some of them when testing with obscure command lines.
3869 # This happens at least with the AIX C compiler.
3871 for i in 1 2 3 4 5 6; do
3872 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3873 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3874 # Solaris 10 /bin/sh.
3875 echo '/* dummy */' > sub/conftst$i.h
3877 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3879 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3880 # mode. It turns out that the SunPro C++ compiler does not properly
3881 # handle '-M -o', and we need to detect this. Also, some Intel
3882 # versions had trouble with output in subdirs.
3883 am__obj=sub/conftest.${OBJEXT-o}
3884 am__minus_obj="-o $am__obj"
3887 # This depmode causes a compiler race in universal mode.
3888 test "$am__universal" = false || continue
3891 # After this tag, mechanisms are not by side-effect, so they'll
3892 # only be used when explicitly requested.
3893 if test "x$enable_dependency_tracking" = xyes; then
3899 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3900 # This compiler won't grok '-c -o', but also, the minuso test has
3901 # not run yet. These depmodes are late enough in the game, and
3902 # so weak that their functioning should not be impacted.
3903 am__obj=conftest.${OBJEXT-o}
3908 if depmode=$depmode \
3909 source=sub/conftest.c object=$am__obj \
3910 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3911 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3912 >/dev/null 2>conftest.err &&
3913 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3914 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3915 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3916 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3917 # icc doesn't choke on unknown options, it will just issue warnings
3918 # or remarks (even with -Werror). So we grep stderr for any message
3919 # that says an option was ignored or not supported.
3920 # When given -MP, icc 7.0 and 7.1 complain thusly:
3921 # icc: Command line warning: ignoring option '-M'; no argument required
3922 # The diagnosis changed in icc 8.0:
3923 # icc: Command line remark: option '-MP' not supported
3924 if (grep 'ignoring option' conftest.err ||
3925 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3926 am_cv_CC_dependencies_compiler_type=$depmode
3935 am_cv_CC_dependencies_compiler_type=none
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3940 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3941 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3944 test "x$enable_dependency_tracking" != xno \
3945 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3947 am__fastdepCC_FALSE='#'
3949 am__fastdepCC_TRUE='#'
3950 am__fastdepCC_FALSE=
3955 # Check whether --enable-largefile was given.
3956 if test "${enable_largefile+set}" = set; then :
3957 enableval=$enable_largefile;
3960 if test "$enable_largefile" != no; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3963 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3964 if ${ac_cv_sys_largefile_CC+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 ac_cv_sys_largefile_CC=no
3968 if test "$GCC" != yes; then
3971 # IRIX 6.2 and later do not support large files by default,
3972 # so use the C compiler's -n32 option if that helps.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <sys/types.h>
3976 /* Check that off_t can represent 2**63 - 1 correctly.
3977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3978 since some C++ compilers masquerading as C compilers
3979 incorrectly reject 9223372036854775807. */
3980 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
3981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3982 && LARGE_OFF_T % 2147483647 == 1)
3992 if ac_fn_c_try_compile "$LINENO"; then :
3995 rm -f core conftest.err conftest.$ac_objext
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_sys_largefile_CC=' -n32'; break
4000 rm -f core conftest.err conftest.$ac_objext
4004 rm -f conftest.$ac_ext
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4008 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4009 if test "$ac_cv_sys_largefile_CC" != no; then
4010 CC=$CC$ac_cv_sys_largefile_CC
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4014 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4015 if ${ac_cv_sys_file_offset_bits+:} false; then :
4016 $as_echo_n "(cached) " >&6
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_cv_sys_file_offset_bits=no; break
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 #define _FILE_OFFSET_BITS 64
4045 #include <sys/types.h>
4046 /* Check that off_t can represent 2**63 - 1 correctly.
4047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4048 since some C++ compilers masquerading as C compilers
4049 incorrectly reject 9223372036854775807. */
4050 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4052 && LARGE_OFF_T % 2147483647 == 1)
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_sys_file_offset_bits=64; break
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_cv_sys_file_offset_bits=unknown
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4071 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4072 case $ac_cv_sys_file_offset_bits in #(
4075 cat >>confdefs.h <<_ACEOF
4076 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4081 if test $ac_cv_sys_file_offset_bits = unknown; then
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4083 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4084 if ${ac_cv_sys_large_files+:} false; then :
4085 $as_echo_n "(cached) " >&6
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #include <sys/types.h>
4091 /* Check that off_t can represent 2**63 - 1 correctly.
4092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4093 since some C++ compilers masquerading as C compilers
4094 incorrectly reject 9223372036854775807. */
4095 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4097 && LARGE_OFF_T % 2147483647 == 1)
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108 ac_cv_sys_large_files=no; break
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #define _LARGE_FILES 1
4114 #include <sys/types.h>
4115 /* Check that off_t can represent 2**63 - 1 correctly.
4116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4117 since some C++ compilers masquerading as C compilers
4118 incorrectly reject 9223372036854775807. */
4119 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4121 && LARGE_OFF_T % 2147483647 == 1)
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_sys_large_files=1; break
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_cv_sys_large_files=unknown
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4140 $as_echo "$ac_cv_sys_large_files" >&6; }
4141 case $ac_cv_sys_large_files in #(
4144 cat >>confdefs.h <<_ACEOF
4145 #define _LARGE_FILES $ac_cv_sys_large_files
4156 # Check for required programs.
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 if test -n "$ac_tool_prefix"; then
4163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_prog_CC+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 if test -n "$CC"; then
4171 ac_cv_prog_CC="$CC" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 if test -n "$CC"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4193 $as_echo "$CC" >&6; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4201 if test -z "$ac_cv_prog_CC"; then
4203 # Extract the first word of "gcc", so it can be a program name with args.
4204 set dummy gcc; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4208 $as_echo_n "(cached) " >&6
4210 if test -n "$ac_ct_CC"; then
4211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220 ac_cv_prog_ac_ct_CC="gcc"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4231 if test -n "$ac_ct_CC"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4233 $as_echo "$ac_ct_CC" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4239 if test "x$ac_ct_CC" = x; then
4242 case $cross_compiling:$ac_tool_warned in
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}cc; ac_word=$2
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if ${ac_cv_prog_CC+:} false; then :
4261 $as_echo_n "(cached) " >&6
4263 if test -n "$CC"; then
4264 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_prog_CC="${ac_tool_prefix}cc"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 if test -n "$CC"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4286 $as_echo "$CC" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4295 if test -z "$CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 $as_echo_n "checking for $ac_word... " >&6; }
4300 if ${ac_cv_prog_CC+:} false; then :
4301 $as_echo_n "(cached) " >&6
4303 if test -n "$CC"; then
4304 ac_cv_prog_CC="$CC" # Let the user override the test.
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4315 ac_prog_rejected=yes
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test $ac_prog_rejected = yes; then
4327 # We found a bogon in the path, so make sure we never use it.
4328 set dummy $ac_cv_prog_CC
4330 if test $# != 0; then
4331 # We chose a different compiler from the bogus one.
4332 # However, it has the same basename, so the bogon will be chosen
4333 # first if we set CC to just the basename; use the full file name.
4335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4341 if test -n "$CC"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4343 $as_echo "$CC" >&6; }
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4351 if test -z "$CC"; then
4352 if test -n "$ac_tool_prefix"; then
4353 for ac_prog in cl.exe
4355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if ${ac_cv_prog_CC+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 if test -n "$CC"; then
4363 ac_cv_prog_CC="$CC" # Let the user override the test.
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 if test -n "$CC"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4385 $as_echo "$CC" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4392 test -n "$CC" && break
4395 if test -z "$CC"; then
4397 for ac_prog in cl.exe
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4404 $as_echo_n "(cached) " >&6
4406 if test -n "$ac_ct_CC"; then
4407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416 ac_cv_prog_ac_ct_CC="$ac_prog"
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4427 if test -n "$ac_ct_CC"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4429 $as_echo "$ac_ct_CC" >&6; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4436 test -n "$ac_ct_CC" && break
4439 if test "x$ac_ct_CC" = x; then
4442 case $cross_compiling:$ac_tool_warned in
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446 ac_tool_warned=yes ;;
4455 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457 as_fn_error $? "no acceptable C compiler found in \$PATH
4458 See \`config.log' for more details" "$LINENO" 5; }
4460 # Provide some information about the compiler.
4461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4464 for ac_option in --version -v -V -qversion; do
4465 { { ac_try="$ac_compiler $ac_option >&5"
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471 $as_echo "$ac_try_echo"; } >&5
4472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4474 if test -s conftest.err; then
4476 ... rest of stderr output deleted ...
4477 10q' conftest.err >conftest.er1
4478 cat conftest.er1 >&5
4480 rm -f conftest.er1 conftest.err
4481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482 test $ac_status = 0; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4486 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4487 if ${ac_cv_c_compiler_gnu+:} false; then :
4488 $as_echo_n "(cached) " >&6
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4504 if ac_fn_c_try_compile "$LINENO"; then :
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4515 if test $ac_compiler_gnu = yes; then
4520 ac_test_CFLAGS=${CFLAGS+set}
4521 ac_save_CFLAGS=$CFLAGS
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4523 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4524 if ${ac_cv_prog_cc_g+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4542 if ac_fn_c_try_compile "$LINENO"; then :
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4557 if ac_fn_c_try_compile "$LINENO"; then :
4560 ac_c_werror_flag=$ac_save_c_werror_flag
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4573 if ac_fn_c_try_compile "$LINENO"; then :
4576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 ac_c_werror_flag=$ac_save_c_werror_flag
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4584 $as_echo "$ac_cv_prog_cc_g" >&6; }
4585 if test "$ac_test_CFLAGS" = set; then
4586 CFLAGS=$ac_save_CFLAGS
4587 elif test $ac_cv_prog_cc_g = yes; then
4588 if test "$GCC" = yes; then
4594 if test "$GCC" = yes; then
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4601 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4602 if ${ac_cv_prog_cc_c89+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 ac_cv_prog_cc_c89=no
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608 /* end confdefs.h. */
4612 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4613 struct buf { int x; };
4614 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4615 static char *e (p, i)
4621 static char *f (char * (*g) (char **, int), char **p, ...)
4626 s = g (p, va_arg (v,int));
4631 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4632 function prototypes and stuff, but not '\xHH' hex character constants.
4633 These don't provoke an error unfortunately, instead are silently treated
4634 as 'x'. The following induces an error, until -std is added to get
4635 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4636 array size at least. It's necessary to write '\x00'==0 to get something
4637 that's true only with -std. */
4638 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4640 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4641 inside strings and character constants. */
4643 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4645 int test (int i, double x);
4646 struct s1 {int (*f) (int a);};
4647 struct s2 {int (*f) (double a);};
4648 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4654 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4659 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4660 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4662 CC="$ac_save_CC $ac_arg"
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_c89=$ac_arg
4666 rm -f core conftest.err conftest.$ac_objext
4667 test "x$ac_cv_prog_cc_c89" != "xno" && break
4669 rm -f conftest.$ac_ext
4674 case "x$ac_cv_prog_cc_c89" in
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4677 $as_echo "none needed" >&6; } ;;
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4680 $as_echo "unsupported" >&6; } ;;
4682 CC="$CC $ac_cv_prog_cc_c89"
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4684 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4686 if test "x$ac_cv_prog_cc_c89" != xno; then :
4691 ac_cpp='$CPP $CPPFLAGS'
4692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 ac_cpp='$CPP $CPPFLAGS'
4698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4702 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4703 if ${am_cv_prog_cc_c_o+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4717 # Make sure it works both with $CC and with simple cc.
4718 # Following AC_PROG_CC_C_O, we do the test twice because some
4719 # compilers refuse to overwrite an existing .o file with -o,
4720 # though they will create one.
4721 am_cv_prog_cc_c_o=yes
4723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } \
4728 && test -f conftest2.$ac_objext; then
4731 am_cv_prog_cc_c_o=no
4735 rm -f core conftest*
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4739 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4740 if test "$am_cv_prog_cc_c_o" != yes; then
4741 # Losing compiler, so override with the script.
4742 # FIXME: It is wrong to rewrite CC.
4743 # But if we don't then we get into trouble of one sort or another.
4744 # A longer-term fix would be to have automake use am__CC in this case,
4745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4746 CC="$am_aux_dir/compile $CC"
4749 ac_cpp='$CPP $CPPFLAGS'
4750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4755 depcc="$CC" am_compiler_list=
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758 $as_echo_n "checking dependency style of $depcc... " >&6; }
4759 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4760 $as_echo_n "(cached) " >&6
4762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4763 # We make a subdir and do the tests there. Otherwise we can end up
4764 # making bogus files that we don't know about and never remove. For
4765 # instance it was reported that on HP-UX the gcc test will end up
4766 # making a dummy file named 'D' -- because '-MD' means "put the output
4770 # Copy depcomp to subdir because otherwise we won't find it if we're
4771 # using a relative directory.
4772 cp "$am_depcomp" conftest.dir
4774 # We will build objects and dependencies in a subdirectory because
4775 # it helps to detect inapplicable dependency modes. For instance
4776 # both Tru64's cc and ICC support -MD to output dependencies as a
4777 # side effect of compilation, but ICC will put the dependencies in
4778 # the current directory while Tru64 will put them in the object
4782 am_cv_CC_dependencies_compiler_type=none
4783 if test "$am_compiler_list" = ""; then
4784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4787 case " $depcc " in #(
4788 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4791 for depmode in $am_compiler_list; do
4792 # Setup a source with many dependencies, because some compilers
4793 # like to wrap large dependency lists on column 80 (with \), and
4794 # we should not choose a depcomp mode which is confused by this.
4796 # We need to recreate these files for each test, as the compiler may
4797 # overwrite some of them when testing with obscure command lines.
4798 # This happens at least with the AIX C compiler.
4800 for i in 1 2 3 4 5 6; do
4801 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4802 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4803 # Solaris 10 /bin/sh.
4804 echo '/* dummy */' > sub/conftst$i.h
4806 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4808 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4809 # mode. It turns out that the SunPro C++ compiler does not properly
4810 # handle '-M -o', and we need to detect this. Also, some Intel
4811 # versions had trouble with output in subdirs.
4812 am__obj=sub/conftest.${OBJEXT-o}
4813 am__minus_obj="-o $am__obj"
4816 # This depmode causes a compiler race in universal mode.
4817 test "$am__universal" = false || continue
4820 # After this tag, mechanisms are not by side-effect, so they'll
4821 # only be used when explicitly requested.
4822 if test "x$enable_dependency_tracking" = xyes; then
4828 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4829 # This compiler won't grok '-c -o', but also, the minuso test has
4830 # not run yet. These depmodes are late enough in the game, and
4831 # so weak that their functioning should not be impacted.
4832 am__obj=conftest.${OBJEXT-o}
4837 if depmode=$depmode \
4838 source=sub/conftest.c object=$am__obj \
4839 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4840 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4841 >/dev/null 2>conftest.err &&
4842 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4843 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4844 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4845 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4846 # icc doesn't choke on unknown options, it will just issue warnings
4847 # or remarks (even with -Werror). So we grep stderr for any message
4848 # that says an option was ignored or not supported.
4849 # When given -MP, icc 7.0 and 7.1 complain thusly:
4850 # icc: Command line warning: ignoring option '-M'; no argument required
4851 # The diagnosis changed in icc 8.0:
4852 # icc: Command line remark: option '-MP' not supported
4853 if (grep 'ignoring option' conftest.err ||
4854 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4855 am_cv_CC_dependencies_compiler_type=$depmode
4864 am_cv_CC_dependencies_compiler_type=none
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4869 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4870 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4873 test "x$enable_dependency_tracking" != xno \
4874 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4876 am__fastdepCC_FALSE='#'
4878 am__fastdepCC_TRUE='#'
4879 am__fastdepCC_FALSE=
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4886 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4891 macro_version='2.4.6'
4892 macro_revision='2.4.6'
4906 ltmain=$ac_aux_dir/ltmain.sh
4908 # Make sure we can run config.sub.
4909 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4910 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4913 $as_echo_n "checking build system type... " >&6; }
4914 if ${ac_cv_build+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 ac_build_alias=$build_alias
4918 test "x$ac_build_alias" = x &&
4919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4920 test "x$ac_build_alias" = x &&
4921 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4922 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4923 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4927 $as_echo "$ac_cv_build" >&6; }
4928 case $ac_cv_build in
4930 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4933 ac_save_IFS=$IFS; IFS='-'
4939 # Remember, the first character of IFS is used to create $*,
4940 # except with old shells:
4943 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4947 $as_echo_n "checking host system type... " >&6; }
4948 if ${ac_cv_host+:} false; then :
4949 $as_echo_n "(cached) " >&6
4951 if test "x$host_alias" = x; then
4952 ac_cv_host=$ac_cv_build
4954 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4955 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4960 $as_echo "$ac_cv_host" >&6; }
4963 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4966 ac_save_IFS=$IFS; IFS='-'
4972 # Remember, the first character of IFS is used to create $*,
4973 # except with old shells:
4976 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4979 # Backslashify metacharacters that are still active within
4980 # double-quoted strings.
4981 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4983 # Same as above, but do not quote variable references.
4984 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4986 # Sed substitution to delay expansion of an escaped shell variable in a
4987 # double_quote_subst'ed string.
4988 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4990 # Sed substitution to delay expansion of an escaped single quote.
4991 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4993 # Sed substitution to avoid accidental globbing in evaled expressions
4994 no_glob_subst='s/\*/\\\*/g'
4996 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4997 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4998 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5001 $as_echo_n "checking how to print strings... " >&6; }
5002 # Test print first, because it will be a builtin if present.
5003 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5004 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5006 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5009 # Use this function as a fallback that always works.
5010 func_fallback_echo ()
5012 eval 'cat <<_LTECHO_EOF
5016 ECHO='func_fallback_echo'
5019 # func_echo_all arg...
5020 # Invoke $ECHO with all args, space-separated.
5027 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5028 $as_echo "printf" >&6; } ;;
5029 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5030 $as_echo "print -r" >&6; } ;;
5031 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5032 $as_echo "cat" >&6; } ;;
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5049 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5050 if ${ac_cv_path_SED+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5054 for ac_i in 1 2 3 4 5 6 7; do
5055 ac_script="$ac_script$as_nl$ac_script"
5057 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5058 { ac_script=; unset ac_script;}
5059 if test -z "$SED"; then
5060 ac_path_SED_found=false
5061 # Loop through the user's path and test for each of PROGNAME-LIST
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_prog in sed gsed; do
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5070 as_fn_executable_p "$ac_path_SED" || continue
5071 # Check for GNU ac_path_SED and select it if it is found.
5072 # Check for GNU $ac_path_SED
5073 case `"$ac_path_SED" --version 2>&1` in
5075 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5078 $as_echo_n 0123456789 >"conftest.in"
5081 cat "conftest.in" "conftest.in" >"conftest.tmp"
5082 mv "conftest.tmp" "conftest.in"
5083 cp "conftest.in" "conftest.nl"
5084 $as_echo '' >> "conftest.nl"
5085 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087 as_fn_arith $ac_count + 1 && ac_count=$as_val
5088 if test $ac_count -gt ${ac_path_SED_max-0}; then
5089 # Best one so far, save it but keep looking for a better one
5090 ac_cv_path_SED="$ac_path_SED"
5091 ac_path_SED_max=$ac_count
5093 # 10*(2^10) chars as input seems more than enough
5094 test $ac_count -gt 10 && break
5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5099 $ac_path_SED_found && break 3
5104 if test -z "$ac_cv_path_SED"; then
5105 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5113 $as_echo "$ac_cv_path_SED" >&6; }
5114 SED="$ac_cv_path_SED"
5117 test -z "$SED" && SED=sed
5118 Xsed="$SED -e 1s/^X//"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5131 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5132 if ${ac_cv_path_GREP+:} false; then :
5133 $as_echo_n "(cached) " >&6
5135 if test -z "$GREP"; then
5136 ac_path_GREP_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in grep ggrep; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5146 as_fn_executable_p "$ac_path_GREP" || continue
5147 # Check for GNU ac_path_GREP and select it if it is found.
5148 # Check for GNU $ac_path_GREP
5149 case `"$ac_path_GREP" --version 2>&1` in
5151 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5154 $as_echo_n 0123456789 >"conftest.in"
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo 'GREP' >> "conftest.nl"
5161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_GREP="$ac_path_GREP"
5167 ac_path_GREP_max=$ac_count
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175 $ac_path_GREP_found && break 3
5180 if test -z "$ac_cv_path_GREP"; then
5181 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184 ac_cv_path_GREP=$GREP
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5189 $as_echo "$ac_cv_path_GREP" >&6; }
5190 GREP="$ac_cv_path_GREP"
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5194 $as_echo_n "checking for egrep... " >&6; }
5195 if ${ac_cv_path_EGREP+:} false; then :
5196 $as_echo_n "(cached) " >&6
5198 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5199 then ac_cv_path_EGREP="$GREP -E"
5201 if test -z "$EGREP"; then
5202 ac_path_EGREP_found=false
5203 # Loop through the user's path and test for each of PROGNAME-LIST
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208 test -z "$as_dir" && as_dir=.
5209 for ac_prog in egrep; do
5210 for ac_exec_ext in '' $ac_executable_extensions; do
5211 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5212 as_fn_executable_p "$ac_path_EGREP" || continue
5213 # Check for GNU ac_path_EGREP and select it if it is found.
5214 # Check for GNU $ac_path_EGREP
5215 case `"$ac_path_EGREP" --version 2>&1` in
5217 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5220 $as_echo_n 0123456789 >"conftest.in"
5223 cat "conftest.in" "conftest.in" >"conftest.tmp"
5224 mv "conftest.tmp" "conftest.in"
5225 cp "conftest.in" "conftest.nl"
5226 $as_echo 'EGREP' >> "conftest.nl"
5227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5229 as_fn_arith $ac_count + 1 && ac_count=$as_val
5230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5231 # Best one so far, save it but keep looking for a better one
5232 ac_cv_path_EGREP="$ac_path_EGREP"
5233 ac_path_EGREP_max=$ac_count
5235 # 10*(2^10) chars as input seems more than enough
5236 test $ac_count -gt 10 && break
5238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5241 $ac_path_EGREP_found && break 3
5246 if test -z "$ac_cv_path_EGREP"; then
5247 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5250 ac_cv_path_EGREP=$EGREP
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5256 $as_echo "$ac_cv_path_EGREP" >&6; }
5257 EGREP="$ac_cv_path_EGREP"
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5261 $as_echo_n "checking for fgrep... " >&6; }
5262 if ${ac_cv_path_FGREP+:} false; then :
5263 $as_echo_n "(cached) " >&6
5265 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5266 then ac_cv_path_FGREP="$GREP -F"
5268 if test -z "$FGREP"; then
5269 ac_path_FGREP_found=false
5270 # Loop through the user's path and test for each of PROGNAME-LIST
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5275 test -z "$as_dir" && as_dir=.
5276 for ac_prog in fgrep; do
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5279 as_fn_executable_p "$ac_path_FGREP" || continue
5280 # Check for GNU ac_path_FGREP and select it if it is found.
5281 # Check for GNU $ac_path_FGREP
5282 case `"$ac_path_FGREP" --version 2>&1` in
5284 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5287 $as_echo_n 0123456789 >"conftest.in"
5290 cat "conftest.in" "conftest.in" >"conftest.tmp"
5291 mv "conftest.tmp" "conftest.in"
5292 cp "conftest.in" "conftest.nl"
5293 $as_echo 'FGREP' >> "conftest.nl"
5294 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5296 as_fn_arith $ac_count + 1 && ac_count=$as_val
5297 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5298 # Best one so far, save it but keep looking for a better one
5299 ac_cv_path_FGREP="$ac_path_FGREP"
5300 ac_path_FGREP_max=$ac_count
5302 # 10*(2^10) chars as input seems more than enough
5303 test $ac_count -gt 10 && break
5305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5308 $ac_path_FGREP_found && break 3
5313 if test -z "$ac_cv_path_FGREP"; then
5314 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5317 ac_cv_path_FGREP=$FGREP
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5323 $as_echo "$ac_cv_path_FGREP" >&6; }
5324 FGREP="$ac_cv_path_FGREP"
5327 test -z "$GREP" && GREP=grep
5347 # Check whether --with-gnu-ld was given.
5348 if test "${with_gnu_ld+set}" = set; then :
5349 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5355 if test yes = "$GCC"; then
5356 # Check if gcc -print-prog-name=ld gives a path.
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5358 $as_echo_n "checking for ld used by $CC... " >&6; }
5361 # gcc leaves a trailing carriage return, which upsets mingw
5362 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5364 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5367 # Accept absolute paths.
5369 re_direlt='/[^/][^/]*/\.\./'
5370 # Canonicalize the pathname of ld
5371 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5372 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5373 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5375 test -z "$LD" && LD=$ac_prog
5378 # If it fails, then pretend we aren't using GCC.
5382 # If it is relative, then search for the first ld in PATH.
5386 elif test yes = "$with_gnu_ld"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5388 $as_echo_n "checking for GNU ld... " >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5391 $as_echo_n "checking for non-GNU ld... " >&6; }
5393 if ${lt_cv_path_LD+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 if test -z "$LD"; then
5397 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5398 for ac_dir in $PATH; do
5400 test -z "$ac_dir" && ac_dir=.
5401 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5402 lt_cv_path_LD=$ac_dir/$ac_prog
5403 # Check to see if the program is GNU ld. I'd rather use --version,
5404 # but apparently some variants of GNU ld only accept -v.
5405 # Break only if it was the GNU/non-GNU ld that we prefer.
5406 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5407 *GNU* | *'with BFD'*)
5408 test no != "$with_gnu_ld" && break
5411 test yes != "$with_gnu_ld" && break
5418 lt_cv_path_LD=$LD # Let the user override the test with a path.
5423 if test -n "$LD"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5425 $as_echo "$LD" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5430 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5432 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5433 if ${lt_cv_prog_gnu_ld+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5437 case `$LD -v 2>&1 </dev/null` in
5438 *GNU* | *'with BFD'*)
5439 lt_cv_prog_gnu_ld=yes
5442 lt_cv_prog_gnu_ld=no
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5447 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5448 with_gnu_ld=$lt_cv_prog_gnu_ld
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5459 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5460 if ${lt_cv_path_NM+:} false; then :
5461 $as_echo_n "(cached) " >&6
5463 if test -n "$NM"; then
5464 # Let the user override the test.
5467 lt_nm_to_check=${ac_tool_prefix}nm
5468 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5469 lt_nm_to_check="$lt_nm_to_check nm"
5471 for lt_tmp_nm in $lt_nm_to_check; do
5472 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5473 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5475 test -z "$ac_dir" && ac_dir=.
5476 tmp_nm=$ac_dir/$lt_tmp_nm
5477 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5478 # Check to see if the nm accepts a BSD-compat flag.
5479 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5480 # nm: unknown option "B" ignored
5481 # Tru64's nm complains that /dev/null is an invalid object file
5482 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5484 mingw*) lt_bad_file=conftest.nm/nofile ;;
5485 *) lt_bad_file=/dev/null ;;
5487 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5488 *$lt_bad_file* | *'Invalid file or object type'*)
5489 lt_cv_path_NM="$tmp_nm -B"
5493 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5495 lt_cv_path_NM="$tmp_nm -p"
5499 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5500 continue # so that we can try to find one that supports BSD flags
5509 : ${lt_cv_path_NM=no}
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5513 $as_echo "$lt_cv_path_NM" >&6; }
5514 if test no != "$lt_cv_path_NM"; then
5517 # Didn't find any BSD compatible name lister, look for dumpbin.
5518 if test -n "$DUMPBIN"; then :
5519 # Let the user override the test.
5521 if test -n "$ac_tool_prefix"; then
5522 for ac_prog in dumpbin "link -dump"
5524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_DUMPBIN+:} false; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -n "$DUMPBIN"; then
5532 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 DUMPBIN=$ac_cv_prog_DUMPBIN
5552 if test -n "$DUMPBIN"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5554 $as_echo "$DUMPBIN" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5561 test -n "$DUMPBIN" && break
5564 if test -z "$DUMPBIN"; then
5565 ac_ct_DUMPBIN=$DUMPBIN
5566 for ac_prog in dumpbin "link -dump"
5568 # Extract the first word of "$ac_prog", so it can be a program name with args.
5569 set dummy $ac_prog; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 if test -n "$ac_ct_DUMPBIN"; then
5576 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5596 if test -n "$ac_ct_DUMPBIN"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5598 $as_echo "$ac_ct_DUMPBIN" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5605 test -n "$ac_ct_DUMPBIN" && break
5608 if test "x$ac_ct_DUMPBIN" = x; then
5611 case $cross_compiling:$ac_tool_warned in
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned=yes ;;
5617 DUMPBIN=$ac_ct_DUMPBIN
5621 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5623 DUMPBIN="$DUMPBIN -symbols -headers"
5631 if test : != "$DUMPBIN"; then
5635 test -z "$NM" && NM=nm
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5643 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5644 if ${lt_cv_nm_interface+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 lt_cv_nm_interface="BSD nm"
5648 echo "int some_variable = 0;" > conftest.$ac_ext
5649 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5650 (eval "$ac_compile" 2>conftest.err)
5651 cat conftest.err >&5
5652 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5653 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5654 cat conftest.err >&5
5655 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5656 cat conftest.out >&5
5657 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5658 lt_cv_nm_interface="MS dumpbin"
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5663 $as_echo "$lt_cv_nm_interface" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5666 $as_echo_n "checking whether ln -s works... " >&6; }
5668 if test "$LN_S" = "ln -s"; then
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5670 $as_echo "yes" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5673 $as_echo "no, using $LN_S" >&6; }
5676 # find the maximum length of command line arguments
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5678 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5679 if ${lt_cv_sys_max_cmd_len+:} false; then :
5680 $as_echo_n "(cached) " >&6
5687 # On DJGPP, this test can blow up pretty badly due to problems in libc
5688 # (any single argument exceeding 2000 bytes causes a buffer overrun
5689 # during glob expansion). Even if it were fixed, the result of this
5690 # check would be larger than it should be.
5691 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5695 # Under GNU Hurd, this test is not required because there is
5696 # no limit to the length of command line arguments.
5697 # Libtool will interpret -1 as no limit whatsoever
5698 lt_cv_sys_max_cmd_len=-1;
5701 cygwin* | mingw* | cegcc*)
5702 # On Win9x/ME, this test blows up -- it succeeds, but takes
5703 # about 5 minutes as the teststring grows exponentially.
5704 # Worse, since 9x/ME are not pre-emptively multitasking,
5705 # you end up with a "frozen" computer, even though with patience
5706 # the test eventually succeeds (with a max line length of 256k).
5707 # Instead, let's just punt: use the minimum linelength reported by
5708 # all of the supported platforms: 8192 (on NT/2K/XP).
5709 lt_cv_sys_max_cmd_len=8192;
5713 # On MiNT this can take a long time and run out of memory.
5714 lt_cv_sys_max_cmd_len=8192;
5718 # On AmigaOS with pdksh, this test takes hours, literally.
5719 # So we just punt and use a minimum line length of 8192.
5720 lt_cv_sys_max_cmd_len=8192;
5723 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5724 # This has been around since 386BSD, at least. Likely further.
5725 if test -x /sbin/sysctl; then
5726 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5727 elif test -x /usr/sbin/sysctl; then
5728 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5730 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5732 # And add a safety zone
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5739 lt_cv_sys_max_cmd_len=196608
5743 # The test takes a long time on OS/2.
5744 lt_cv_sys_max_cmd_len=8192
5748 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5749 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5750 # nice to cause kernel panics so lets avoid the loop below.
5751 # First set a reasonable default.
5752 lt_cv_sys_max_cmd_len=16384
5754 if test -x /sbin/sysconfig; then
5755 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5756 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5761 lt_cv_sys_max_cmd_len=102400
5763 sysv5* | sco5v6* | sysv4.2uw2*)
5764 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5765 if test -n "$kargmax"; then
5766 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5768 lt_cv_sys_max_cmd_len=32768
5772 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5773 if test -n "$lt_cv_sys_max_cmd_len" && \
5774 test undefined != "$lt_cv_sys_max_cmd_len"; then
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5778 # Make teststring a little bigger before we do anything with it.
5779 # a 1K string should be a reasonable start.
5780 for i in 1 2 3 4 5 6 7 8; do
5781 teststring=$teststring$teststring
5783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5784 # If test is not a shell built-in, we'll probably end up computing a
5785 # maximum length that is only half of the actual maximum length, but
5787 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5788 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5789 test 17 != "$i" # 1/2 MB should be enough
5792 teststring=$teststring$teststring
5794 # Only check the string length outside the loop.
5795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5797 # Add a significant safety factor because C++ compilers can tack on
5798 # massive amounts of additional arguments before passing them to the
5799 # linker. It appears as though 1/2 is a usable value.
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5807 if test -n "$lt_cv_sys_max_cmd_len"; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5809 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5812 $as_echo "none" >&6; }
5814 max_cmd_len=$lt_cv_sys_max_cmd_len
5825 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5835 # test EBCDIC or ASCII
5836 case `echo X|tr X '\101'` in
5837 A) # ASCII based system
5838 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5839 lt_SP2NL='tr \040 \012'
5840 lt_NL2SP='tr \015\012 \040\040'
5842 *) # EBCDIC based system
5843 lt_SP2NL='tr \100 \n'
5844 lt_NL2SP='tr \r\n \100\100'
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5857 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5858 if ${lt_cv_to_host_file_cmd+:} false; then :
5859 $as_echo_n "(cached) " >&6
5864 *-*-mingw* ) # actually msys
5865 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5868 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5870 * ) # otherwise, assume *nix
5871 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5877 *-*-mingw* ) # actually msys
5878 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5881 lt_cv_to_host_file_cmd=func_convert_file_noop
5883 * ) # otherwise, assume *nix
5884 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5888 * ) # unhandled hosts (and "normal" native builds)
5889 lt_cv_to_host_file_cmd=func_convert_file_noop
5895 to_host_file_cmd=$lt_cv_to_host_file_cmd
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5897 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5904 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5905 if ${lt_cv_to_tool_file_cmd+:} false; then :
5906 $as_echo_n "(cached) " >&6
5908 #assume ordinary cross tools, or native build.
5909 lt_cv_to_tool_file_cmd=func_convert_file_noop
5913 *-*-mingw* ) # actually msys
5914 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5922 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5924 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5931 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5932 if ${lt_cv_ld_reload_flag+:} false; then :
5933 $as_echo_n "(cached) " >&6
5935 lt_cv_ld_reload_flag='-r'
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5938 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5939 reload_flag=$lt_cv_ld_reload_flag
5940 case $reload_flag in
5942 *) reload_flag=" $reload_flag" ;;
5944 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5946 cygwin* | mingw* | pw32* | cegcc*)
5947 if test yes != "$GCC"; then
5952 if test yes = "$GCC"; then
5953 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5955 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5968 if test -n "$ac_tool_prefix"; then
5969 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_prog_OBJDUMP+:} false; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -n "$OBJDUMP"; then
5977 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 OBJDUMP=$ac_cv_prog_OBJDUMP
5997 if test -n "$OBJDUMP"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5999 $as_echo "$OBJDUMP" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6007 if test -z "$ac_cv_prog_OBJDUMP"; then
6008 ac_ct_OBJDUMP=$OBJDUMP
6009 # Extract the first word of "objdump", so it can be a program name with args.
6010 set dummy objdump; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6014 $as_echo_n "(cached) " >&6
6016 if test -n "$ac_ct_OBJDUMP"; then
6017 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6037 if test -n "$ac_ct_OBJDUMP"; then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6039 $as_echo "$ac_ct_OBJDUMP" >&6; }
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6045 if test "x$ac_ct_OBJDUMP" = x; then
6048 case $cross_compiling:$ac_tool_warned in
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6052 ac_tool_warned=yes ;;
6054 OBJDUMP=$ac_ct_OBJDUMP
6057 OBJDUMP="$ac_cv_prog_OBJDUMP"
6060 test -z "$OBJDUMP" && OBJDUMP=objdump
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6071 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6072 if ${lt_cv_deplibs_check_method+:} false; then :
6073 $as_echo_n "(cached) " >&6
6075 lt_cv_file_magic_cmd='$MAGIC_CMD'
6076 lt_cv_file_magic_test_file=
6077 lt_cv_deplibs_check_method='unknown'
6078 # Need to set the preceding variable on all platforms that support
6079 # interlibrary dependencies.
6080 # 'none' -- dependencies not supported.
6081 # 'unknown' -- same as none, but documents that we really don't know.
6082 # 'pass_all' -- all dependencies passed with no checks.
6083 # 'test_compile' -- check by making test program.
6084 # 'file_magic [[regex]]' -- check by looking for files in library path
6085 # that responds to the $file_magic_cmd with a given extended regex.
6086 # If you have 'file' or equivalent on your system and you're not sure
6087 # whether 'pass_all' will *always* work, you probably want this one.
6091 lt_cv_deplibs_check_method=pass_all
6095 lt_cv_deplibs_check_method=pass_all
6099 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6100 lt_cv_file_magic_cmd='/usr/bin/file -L'
6101 lt_cv_file_magic_test_file=/shlib/libc.so
6105 # func_win32_libid is a shell function defined in ltmain.sh
6106 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6107 lt_cv_file_magic_cmd='func_win32_libid'
6111 # Base MSYS/MinGW do not provide the 'file' command needed by
6112 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6113 # unless we find 'file', for example because we are cross-compiling.
6114 if ( file / ) >/dev/null 2>&1; then
6115 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6116 lt_cv_file_magic_cmd='func_win32_libid'
6118 # Keep this pattern in sync with the one in func_win32_libid.
6119 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6120 lt_cv_file_magic_cmd='$OBJDUMP -f'
6125 # use the weaker test based on 'objdump'. See mingw*.
6126 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6127 lt_cv_file_magic_cmd='$OBJDUMP -f'
6130 darwin* | rhapsody*)
6131 lt_cv_deplibs_check_method=pass_all
6134 freebsd* | dragonfly*)
6135 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6138 # Not sure whether the presence of OpenBSD here was a mistake.
6139 # Let's accept both of them until this is cleared up.
6140 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6141 lt_cv_file_magic_cmd=/usr/bin/file
6142 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6146 lt_cv_deplibs_check_method=pass_all
6151 lt_cv_deplibs_check_method=pass_all
6154 hpux10.20* | hpux11*)
6155 lt_cv_file_magic_cmd=/usr/bin/file
6158 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6159 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6162 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]'
6163 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6166 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6167 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6173 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6177 irix5* | irix6* | nonstopux*)
6179 *-32|*"-32 ") libmagic=32-bit;;
6180 *-n32|*"-n32 ") libmagic=N32;;
6181 *-64|*"-64 ") libmagic=64-bit;;
6182 *) libmagic=never-match;;
6184 lt_cv_deplibs_check_method=pass_all
6187 # This must be glibc/ELF.
6188 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6189 lt_cv_deplibs_check_method=pass_all
6192 netbsd* | netbsdelf*-gnu)
6193 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6196 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6202 lt_cv_file_magic_cmd=/usr/bin/file
6203 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6207 lt_cv_deplibs_check_method=pass_all
6211 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6214 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6218 osf3* | osf4* | osf5*)
6219 lt_cv_deplibs_check_method=pass_all
6223 lt_cv_deplibs_check_method=pass_all
6227 lt_cv_deplibs_check_method=pass_all
6230 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6231 lt_cv_deplibs_check_method=pass_all
6235 case $host_vendor in
6237 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]'
6238 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6241 lt_cv_deplibs_check_method=pass_all
6244 lt_cv_file_magic_cmd='/bin/file'
6245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6248 lt_cv_file_magic_cmd='/bin/file'
6249 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6250 lt_cv_file_magic_test_file=/lib/libc.so
6253 lt_cv_deplibs_check_method=pass_all
6256 lt_cv_deplibs_check_method=pass_all
6262 lt_cv_deplibs_check_method=pass_all
6265 lt_cv_deplibs_check_method=pass_all
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6271 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6275 if test "$build" = "$host"; then
6278 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6281 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6287 file_magic_cmd=$lt_cv_file_magic_cmd
6288 deplibs_check_method=$lt_cv_deplibs_check_method
6289 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6312 if test -n "$ac_tool_prefix"; then
6313 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6314 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6316 $as_echo_n "checking for $ac_word... " >&6; }
6317 if ${ac_cv_prog_DLLTOOL+:} false; then :
6318 $as_echo_n "(cached) " >&6
6320 if test -n "$DLLTOOL"; then
6321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6330 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 DLLTOOL=$ac_cv_prog_DLLTOOL
6341 if test -n "$DLLTOOL"; then
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6343 $as_echo "$DLLTOOL" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6346 $as_echo "no" >&6; }
6351 if test -z "$ac_cv_prog_DLLTOOL"; then
6352 ac_ct_DLLTOOL=$DLLTOOL
6353 # Extract the first word of "dlltool", so it can be a program name with args.
6354 set dummy dlltool; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6358 $as_echo_n "(cached) " >&6
6360 if test -n "$ac_ct_DLLTOOL"; then
6361 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6381 if test -n "$ac_ct_DLLTOOL"; then
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6383 $as_echo "$ac_ct_DLLTOOL" >&6; }
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386 $as_echo "no" >&6; }
6389 if test "x$ac_ct_DLLTOOL" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6398 DLLTOOL=$ac_ct_DLLTOOL
6401 DLLTOOL="$ac_cv_prog_DLLTOOL"
6404 test -z "$DLLTOOL" && DLLTOOL=dlltool
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6416 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6417 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6418 $as_echo_n "(cached) " >&6
6420 lt_cv_sharedlib_from_linklib_cmd='unknown'
6423 cygwin* | mingw* | pw32* | cegcc*)
6424 # two different shell functions defined in ltmain.sh;
6425 # decide which one to use based on capabilities of $DLLTOOL
6426 case `$DLLTOOL --help 2>&1` in
6427 *--identify-strict*)
6428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6436 # fallback: assume linklib IS sharedlib
6437 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6443 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6444 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6445 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6453 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_AR+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 if test -n "$AR"; then
6464 ac_cv_prog_AR="$AR" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 if test -n "$AR"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6486 $as_echo "$AR" >&6; }
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6493 test -n "$AR" && break
6496 if test -z "$AR"; then
6500 # Extract the first word of "$ac_prog", so it can be a program name with args.
6501 set dummy $ac_prog; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$ac_ct_AR"; then
6508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_AR="$ac_prog"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6528 if test -n "$ac_ct_AR"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6530 $as_echo "$ac_ct_AR" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6537 test -n "$ac_ct_AR" && break
6540 if test "x$ac_ct_AR" = x; then
6543 case $cross_compiling:$ac_tool_warned in
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6547 ac_tool_warned=yes ;;
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6567 $as_echo_n "checking for archiver @FILE support... " >&6; }
6568 if ${lt_cv_ar_at_file+:} false; then :
6569 $as_echo_n "(cached) " >&6
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6583 if ac_fn_c_try_compile "$LINENO"; then :
6584 echo conftest.$ac_objext > conftest.lst
6585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6587 (eval $lt_ar_try) 2>&5
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }
6591 if test 0 -eq "$ac_status"; then
6592 # Ensure the archiver fails upon bogus file names.
6593 rm -f conftest.$ac_objext libconftest.a
6594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6595 (eval $lt_ar_try) 2>&5
6597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598 test $ac_status = 0; }
6599 if test 0 -ne "$ac_status"; then
6603 rm -f conftest.* libconftest.a
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6610 $as_echo "$lt_cv_ar_at_file" >&6; }
6612 if test no = "$lt_cv_ar_at_file"; then
6615 archiver_list_spec=$lt_cv_ar_at_file
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}strip; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_STRIP+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 if test -n "$STRIP"; then
6633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 STRIP=$ac_cv_prog_STRIP
6653 if test -n "$STRIP"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6655 $as_echo "$STRIP" >&6; }
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_STRIP"; then
6665 # Extract the first word of "strip", so it can be a program name with args.
6666 set dummy strip; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6670 $as_echo_n "(cached) " >&6
6672 if test -n "$ac_ct_STRIP"; then
6673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6682 ac_cv_prog_ac_ct_STRIP="strip"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6693 if test -n "$ac_ct_STRIP"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6695 $as_echo "$ac_ct_STRIP" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_STRIP" = x; then
6704 case $cross_compiling:$ac_tool_warned in
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6713 STRIP="$ac_cv_prog_STRIP"
6716 test -z "$STRIP" && STRIP=:
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_prog_RANLIB+:} false; then :
6729 $as_echo_n "(cached) " >&6
6731 if test -n "$RANLIB"; then
6732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 RANLIB=$ac_cv_prog_RANLIB
6752 if test -n "$RANLIB"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6754 $as_echo "$RANLIB" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757 $as_echo "no" >&6; }
6762 if test -z "$ac_cv_prog_RANLIB"; then
6763 ac_ct_RANLIB=$RANLIB
6764 # Extract the first word of "ranlib", so it can be a program name with args.
6765 set dummy ranlib; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6767 $as_echo_n "checking for $ac_word... " >&6; }
6768 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6769 $as_echo_n "(cached) " >&6
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6781 ac_cv_prog_ac_ct_RANLIB="ranlib"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6792 if test -n "$ac_ct_RANLIB"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6794 $as_echo "$ac_ct_RANLIB" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6797 $as_echo "no" >&6; }
6800 if test "x$ac_ct_RANLIB" = x; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6807 ac_tool_warned=yes ;;
6809 RANLIB=$ac_ct_RANLIB
6812 RANLIB="$ac_cv_prog_RANLIB"
6815 test -z "$RANLIB" && RANLIB=:
6822 # Determine commands to create old-style static archives.
6823 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6824 old_postinstall_cmds='chmod 644 $oldlib'
6825 old_postuninstall_cmds=
6827 if test -n "$RANLIB"; then
6830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6841 lock_old_archive_extraction=yes ;;
6843 lock_old_archive_extraction=no ;;
6884 # If no C compiler was specified, use CC.
6887 # If no C compiler flags were specified, use CFLAGS.
6888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6890 # Allow CC to be a program name with arguments.
6894 # Check for command to grab the raw symbol name followed by C symbol from nm.
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6896 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6897 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6898 $as_echo_n "(cached) " >&6
6901 # These are sane defaults that work on at least a few old systems.
6902 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6904 # Character class describing NM global symbol codes.
6905 symcode='[BCDEGRST]'
6907 # Regexp to match symbols that can be accessed directly from C.
6908 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6910 # Define system-specific variables.
6915 cygwin* | mingw* | pw32* | cegcc*)
6916 symcode='[ABCDGISTW]'
6919 if test ia64 = "$host_cpu"; then
6920 symcode='[ABCDEGRST]'
6924 symcode='[BCDEGRST]'
6927 symcode='[BCDEGQRST]'
6938 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6946 # If we're using GNU nm, then use its standard symbol codes.
6947 case `$NM -V 2>&1` in
6948 *GNU* | *'with BFD'*)
6949 symcode='[ABCDGIRSTW]' ;;
6952 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6953 # Gets list of data symbols to import.
6954 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6955 # Adjust the below global symbol transforms to fixup imported variables.
6956 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6957 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6958 lt_c_name_lib_hook="\
6959 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6960 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6962 # Disable hooks by default.
6963 lt_cv_sys_global_symbol_to_import=
6969 # Transform an extracted symbol line into a proper C declaration.
6970 # Some systems (esp. on ia64) link data and code symbols differently,
6971 # so use this general approach.
6972 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6974 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6975 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6977 # Transform an extracted symbol line into symbol name and symbol address
6978 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6980 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6981 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6983 # Transform an extracted symbol line into symbol name with lib prefix and
6985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6986 $lt_c_name_lib_hook\
6987 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6988 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6989 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6991 # Handle CRLF in mingw tool chain
6995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6999 # Try without a prefix underscore, then with it.
7000 for ac_symprfx in "" "_"; do
7002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7003 symxfrm="\\1 $ac_symprfx\\2 \\2"
7005 # Write the raw and C identifiers.
7006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7007 # Fake it for dumpbin and say T for any non-static function,
7008 # D for any global variable and I for any imported variable.
7009 # Also find C++ and __fastcall symbols from MSVC++,
7010 # which start with @ or ?.
7011 lt_cv_sys_global_symbol_pipe="$AWK '"\
7012 " {last_section=section; section=\$ 3};"\
7013 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7014 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7015 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7016 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7017 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7018 " \$ 0!~/External *\|/{next};"\
7019 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7020 " {if(hide[section]) next};"\
7021 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7022 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7023 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7024 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7025 " ' prfx=^$ac_symprfx"
7027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7031 # Check to see that the pipe works correctly.
7035 cat > conftest.$ac_ext <<_LT_EOF
7040 void nm_test_func(void);
7041 void nm_test_func(void){}
7045 int main(){nm_test_var='a';nm_test_func();return(0);}
7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7049 (eval $ac_compile) 2>&5
7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7052 test $ac_status = 0; }; then
7053 # Now try to grab the symbols.
7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; } && test -s "$nlist"; then
7060 # Try sorting and uniquifying the output.
7061 if sort "$nlist" | uniq > "$nlist"T; then
7062 mv -f "$nlist"T "$nlist"
7067 # Make sure that we snagged all the symbols we need.
7068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7070 cat <<_LT_EOF > conftest.$ac_ext
7071 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7072 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7073 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7074 relocations are performed -- see ld's documentation on pseudo-relocs. */
7075 # define LT_DLSYM_CONST
7076 #elif defined __osf__
7077 /* This system does not cope well with relocations in const data. */
7078 # define LT_DLSYM_CONST
7080 # define LT_DLSYM_CONST const
7088 # Now generate the symbol file.
7089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091 cat <<_LT_EOF >> conftest.$ac_ext
7093 /* The mapping between symbol names and symbols. */
7094 LT_DLSYM_CONST struct {
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 { "@PROGRAM@", (void *) 0 },
7102 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103 cat <<\_LT_EOF >> conftest.$ac_ext
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110 return lt__PROGRAM__LTX_preloaded_symbols;
7118 # Now try linking the two files.
7119 mv conftest.$ac_objext conftstm.$ac_objext
7120 lt_globsym_save_LIBS=$LIBS
7121 lt_globsym_save_CFLAGS=$CFLAGS
7122 LIBS=conftstm.$ac_objext
7123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7125 (eval $ac_link) 2>&5
7127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7131 LIBS=$lt_globsym_save_LIBS
7132 CFLAGS=$lt_globsym_save_CFLAGS
7134 echo "cannot find nm_test_func in $nlist" >&5
7137 echo "cannot find nm_test_var in $nlist" >&5
7140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7143 echo "$progname: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 rm -rf conftest* conftst*
7148 # Do not use the global_symbol_pipe unless it works.
7149 if test yes = "$pipe_works"; then
7152 lt_cv_sys_global_symbol_pipe=
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159 lt_cv_sys_global_symbol_to_cdecl=
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7163 $as_echo "failed" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7166 $as_echo "ok" >&6; }
7169 # Response file support.
7170 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171 nm_file_list_spec='@'
7172 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7173 nm_file_list_spec='@'
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7213 $as_echo_n "checking for sysroot... " >&6; }
7215 # Check whether --with-sysroot was given.
7216 if test "${with_sysroot+set}" = set; then :
7217 withval=$with_sysroot;
7224 case $with_sysroot in #(
7226 if test yes = "$GCC"; then
7227 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7231 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7237 $as_echo "$with_sysroot" >&6; }
7238 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7243 $as_echo "${lt_sysroot:-no}" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7250 $as_echo_n "checking for a working dd... " >&6; }
7251 if ${ac_cv_path_lt_DD+:} false; then :
7252 $as_echo_n "(cached) " >&6
7254 printf 0123456789abcdef0123456789abcdef >conftest.i
7255 cat conftest.i conftest.i >conftest2.i
7257 if test -z "$lt_DD"; then
7258 ac_path_lt_DD_found=false
7259 # Loop through the user's path and test for each of PROGNAME-LIST
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 test -z "$as_dir" && as_dir=.
7265 for ac_prog in dd; do
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7268 as_fn_executable_p "$ac_path_lt_DD" || continue
7269 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7270 cmp -s conftest.i conftest.out \
7271 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7273 $ac_path_lt_DD_found && break 3
7278 if test -z "$ac_cv_path_lt_DD"; then
7282 ac_cv_path_lt_DD=$lt_DD
7285 rm -f conftest.i conftest2.i conftest.out
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7288 $as_echo "$ac_cv_path_lt_DD" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7292 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7293 if ${lt_cv_truncate_bin+:} false; then :
7294 $as_echo_n "(cached) " >&6
7296 printf 0123456789abcdef0123456789abcdef >conftest.i
7297 cat conftest.i conftest.i >conftest2.i
7299 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7300 cmp -s conftest.i conftest.out \
7301 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7303 rm -f conftest.i conftest2.i conftest.out
7304 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7307 $as_echo "$lt_cv_truncate_bin" >&6; }
7315 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7318 for cc_temp in $*""; do
7320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7326 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7329 # Check whether --enable-libtool-lock was given.
7330 if test "${enable_libtool_lock+set}" = set; then :
7331 enableval=$enable_libtool_lock;
7334 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7336 # Some flags need to be propagated to the compiler or linker for good
7340 # Find out what ABI is being produced by ac_compile, and set mode
7341 # options accordingly.
7342 echo 'int i;' > conftest.$ac_ext
7343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7344 (eval $ac_compile) 2>&5
7346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7347 test $ac_status = 0; }; then
7348 case `/usr/bin/file conftest.$ac_objext` in
7360 # Find out what ABI is being produced by ac_compile, and set linker
7361 # options accordingly.
7362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364 (eval $ac_compile) 2>&5
7366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367 test $ac_status = 0; }; then
7368 if test yes = "$lt_cv_prog_gnu_ld"; then
7369 case `/usr/bin/file conftest.$ac_objext` in
7371 LD="${LD-ld} -melf32bsmip"
7374 LD="${LD-ld} -melf32bmipn32"
7377 LD="${LD-ld} -melf64bmip"
7381 case `/usr/bin/file conftest.$ac_objext` in
7398 # Find out what ABI is being produced by ac_compile, and set linker
7399 # options accordingly.
7400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7407 case `/usr/bin/file conftest.$ac_objext` in
7415 case `/usr/bin/file conftest.$ac_objext` in
7417 emul="${emul}btsmip"
7420 emul="${emul}ltsmip"
7423 case `/usr/bin/file conftest.$ac_objext` in
7428 LD="${LD-ld} -m $emul"
7433 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7434 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7435 # Find out what ABI is being produced by ac_compile, and set linker
7436 # options accordingly. Note that the listed cases only cover the
7437 # situations where additional linker options are needed (such as when
7438 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7439 # vice versa); the common cases where no linker options are needed do
7440 # not appear in the list.
7441 echo 'int i;' > conftest.$ac_ext
7442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7443 (eval $ac_compile) 2>&5
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 case `/usr/bin/file conftest.o` in
7450 x86_64-*kfreebsd*-gnu)
7451 LD="${LD-ld} -m elf_i386_fbsd"
7454 case `/usr/bin/file conftest.o` in
7456 LD="${LD-ld} -m elf32_x86_64"
7459 LD="${LD-ld} -m elf_i386"
7463 powerpc64le-*linux*)
7464 LD="${LD-ld} -m elf32lppclinux"
7467 LD="${LD-ld} -m elf32ppclinux"
7470 LD="${LD-ld} -m elf_s390"
7473 LD="${LD-ld} -m elf32_sparc"
7479 x86_64-*kfreebsd*-gnu)
7480 LD="${LD-ld} -m elf_x86_64_fbsd"
7483 LD="${LD-ld} -m elf_x86_64"
7486 LD="${LD-ld} -m elf64lppc"
7489 LD="${LD-ld} -m elf64ppc"
7491 s390*-*linux*|s390*-*tpf*)
7492 LD="${LD-ld} -m elf64_s390"
7495 LD="${LD-ld} -m elf64_sparc"
7505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7507 CFLAGS="$CFLAGS -belf"
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7509 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7510 if ${lt_cv_cc_needs_belf+:} false; then :
7511 $as_echo_n "(cached) " >&6
7514 ac_cpp='$CPP $CPPFLAGS'
7515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 lt_cv_cc_needs_belf=yes
7533 lt_cv_cc_needs_belf=no
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7538 ac_cpp='$CPP $CPPFLAGS'
7539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7545 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7546 if test yes != "$lt_cv_cc_needs_belf"; then
7547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7552 # Find out what ABI is being produced by ac_compile, and set linker
7553 # options accordingly.
7554 echo 'int i;' > conftest.$ac_ext
7555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7556 (eval $ac_compile) 2>&5
7558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7559 test $ac_status = 0; }; then
7560 case `/usr/bin/file conftest.o` in
7562 case $lt_cv_prog_gnu_ld in
7565 i?86-*-solaris*|x86_64-*-solaris*)
7566 LD="${LD-ld} -m elf_x86_64"
7569 LD="${LD-ld} -m elf64_sparc"
7572 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7573 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7590 need_locks=$enable_libtool_lock
7592 if test -n "$ac_tool_prefix"; then
7593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}mt; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 if test -n "$MANIFEST_TOOL"; then
7601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
7609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7621 if test -n "$MANIFEST_TOOL"; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7623 $as_echo "$MANIFEST_TOOL" >&6; }
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7631 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7633 # Extract the first word of "mt", so it can be a program name with args.
7634 set dummy mt; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 if test -n "$ac_ct_MANIFEST_TOOL"; then
7641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7661 if test -n "$ac_ct_MANIFEST_TOOL"; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7663 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7672 case $cross_compiling:$ac_tool_warned in
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7684 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7686 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7687 if ${lt_cv_path_mainfest_tool+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 lt_cv_path_mainfest_tool=no
7691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7693 cat conftest.err >&5
7694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7695 lt_cv_path_mainfest_tool=yes
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7700 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7701 if test yes != "$lt_cv_path_mainfest_tool"; then
7711 rhapsody* | darwin*)
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$DSYMUTIL"; then
7721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 $as_echo "$DSYMUTIL" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752 ac_ct_DSYMUTIL=$DSYMUTIL
7753 # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7758 $as_echo_n "(cached) " >&6
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7781 if test -n "$ac_ct_DSYMUTIL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_DSYMUTIL" = x; then
7792 case $cross_compiling:$ac_tool_warned in
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7798 DSYMUTIL=$ac_ct_DSYMUTIL
7801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_NMEDIT+:} false; then :
7810 $as_echo_n "(cached) " >&6
7812 if test -n "$NMEDIT"; then
7813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 NMEDIT=$ac_cv_prog_NMEDIT
7833 if test -n "$NMEDIT"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7835 $as_echo "$NMEDIT" >&6; }
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 if test -z "$ac_cv_prog_NMEDIT"; then
7844 ac_ct_NMEDIT=$NMEDIT
7845 # Extract the first word of "nmedit", so it can be a program name with args.
7846 set dummy nmedit; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7850 $as_echo_n "(cached) " >&6
7852 if test -n "$ac_ct_NMEDIT"; then
7853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7873 if test -n "$ac_ct_NMEDIT"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7875 $as_echo "$ac_ct_NMEDIT" >&6; }
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7881 if test "x$ac_ct_NMEDIT" = x; then
7884 case $cross_compiling:$ac_tool_warned in
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7890 NMEDIT=$ac_ct_NMEDIT
7893 NMEDIT="$ac_cv_prog_NMEDIT"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_LIPO+:} false; then :
7902 $as_echo_n "(cached) " >&6
7904 if test -n "$LIPO"; then
7905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 LIPO=$ac_cv_prog_LIPO
7925 if test -n "$LIPO"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7927 $as_echo "$LIPO" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_LIPO"; then
7937 # Extract the first word of "lipo", so it can be a program name with args.
7938 set dummy lipo; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$ac_ct_LIPO"; then
7945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_ac_ct_LIPO="lipo"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7965 if test -n "$ac_ct_LIPO"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7967 $as_echo "$ac_ct_LIPO" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_LIPO" = x; then
7976 case $cross_compiling:$ac_tool_warned in
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7985 LIPO="$ac_cv_prog_LIPO"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_OTOOL+:} false; then :
7994 $as_echo_n "(cached) " >&6
7996 if test -n "$OTOOL"; then
7997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 OTOOL=$ac_cv_prog_OTOOL
8017 if test -n "$OTOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8019 $as_echo "$OTOOL" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_OTOOL"; then
8029 # Extract the first word of "otool", so it can be a program name with args.
8030 set dummy otool; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$ac_ct_OTOOL"; then
8037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_OTOOL="otool"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8057 if test -n "$ac_ct_OTOOL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8059 $as_echo "$ac_ct_OTOOL" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_OTOOL" = x; then
8068 case $cross_compiling:$ac_tool_warned in
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8077 OTOOL="$ac_cv_prog_OTOOL"
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_OTOOL64+:} false; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$OTOOL64"; then
8089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 OTOOL64=$ac_cv_prog_OTOOL64
8109 if test -n "$OTOOL64"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8111 $as_echo "$OTOOL64" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_OTOOL64"; then
8120 ac_ct_OTOOL64=$OTOOL64
8121 # Extract the first word of "otool64", so it can be a program name with args.
8122 set dummy otool64; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8126 $as_echo_n "(cached) " >&6
8128 if test -n "$ac_ct_OTOOL64"; then
8129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_prog_ac_ct_OTOOL64="otool64"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 $as_echo "$ac_ct_OTOOL64" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_OTOOL64" = x; then
8160 case $cross_compiling:$ac_tool_warned in
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8166 OTOOL64=$ac_ct_OTOOL64
8169 OTOOL64="$ac_cv_prog_OTOOL64"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 $as_echo_n "checking for -single_module linker flag... " >&6; }
8200 if ${lt_cv_apple_cc_single_mod+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 lt_cv_apple_cc_single_mod=no
8204 if test -z "$LT_MULTI_MODULE"; then
8205 # By default we will add the -single_module flag. You can override
8206 # by either setting the environment variable LT_MULTI_MODULE
8207 # non-empty at configure time, or by adding -multi_module to the
8209 rm -rf libconftest.dylib*
8210 echo "int foo(void){return 1;}" > conftest.c
8211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8212 -dynamiclib -Wl,-single_module conftest.c" >&5
8213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8216 # If there is a non-empty error log, and "single_module"
8217 # appears in it, assume the flag caused a linker warning
8218 if test -s conftest.err && $GREP single_module conftest.err; then
8219 cat conftest.err >&5
8220 # Otherwise, if the output was created with a 0 exit code from
8221 # the compiler, it worked.
8222 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8223 lt_cv_apple_cc_single_mod=yes
8225 cat conftest.err >&5
8227 rm -rf libconftest.dylib*
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8232 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8235 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8236 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8237 $as_echo_n "(cached) " >&6
8239 lt_cv_ld_exported_symbols_list=no
8240 save_LDFLAGS=$LDFLAGS
8241 echo "_main" > conftest.sym
8242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244 /* end confdefs.h. */
8254 if ac_fn_c_try_link "$LINENO"; then :
8255 lt_cv_ld_exported_symbols_list=yes
8257 lt_cv_ld_exported_symbols_list=no
8259 rm -f core conftest.err conftest.$ac_objext \
8260 conftest$ac_exeext conftest.$ac_ext
8261 LDFLAGS=$save_LDFLAGS
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8265 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8268 $as_echo_n "checking for -force_load linker flag... " >&6; }
8269 if ${lt_cv_ld_force_load+:} false; then :
8270 $as_echo_n "(cached) " >&6
8272 lt_cv_ld_force_load=no
8273 cat > conftest.c << _LT_EOF
8274 int forced_loaded() { return 2;}
8276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8278 echo "$AR cru libconftest.a conftest.o" >&5
8279 $AR cru libconftest.a conftest.o 2>&5
8280 echo "$RANLIB libconftest.a" >&5
8281 $RANLIB libconftest.a 2>&5
8282 cat > conftest.c << _LT_EOF
8283 int main() { return 0;}
8285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8288 if test -s conftest.err && $GREP force_load conftest.err; then
8289 cat conftest.err >&5
8290 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8291 lt_cv_ld_force_load=yes
8293 cat conftest.err >&5
8295 rm -f conftest.err libconftest.a conftest conftest.c
8296 rm -rf conftest.dSYM
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8300 $as_echo "$lt_cv_ld_force_load" >&6; }
8302 rhapsody* | darwin1.[012])
8303 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8305 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8306 darwin*) # darwin 5.x on
8307 # if running on 10.5 or later, the deployment target defaults
8308 # to the OS version, if on x86, and 10.4, the deployment
8309 # target defaults to 10.4. Don't you love it?
8310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8312 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8320 if test yes = "$lt_cv_apple_cc_single_mod"; then
8321 _lt_dar_single_mod='$single_module'
8323 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8324 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8328 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8329 _lt_dsymutil='~$DSYMUTIL $lib || :'
8336 # func_munge_path_list VARIABLE PATH
8337 # -----------------------------------
8338 # VARIABLE is name of variable containing _space_ separated list of
8339 # directories to be munged by the contents of PATH, which is string
8342 # string "DIR[ DIR]" will be prepended to VARIABLE
8344 # string "DIR[ DIR]" will be appended to VARIABLE
8345 # "DIRP[:DIRP]::[DIRA:]DIRA"
8346 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8347 # "DIRA[ DIRA]" will be appended to VARIABLE
8349 # VARIABLE will be replaced by "DIR[ DIR]"
8350 func_munge_path_list ()
8356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8359 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8362 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8363 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8372 ac_cpp='$CPP $CPPFLAGS'
8373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8377 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8378 # On Suns, sometimes $CPP names a directory.
8379 if test -n "$CPP" && test -d "$CPP"; then
8382 if test -z "$CPP"; then
8383 if ${ac_cv_prog_CPP+:} false; then :
8384 $as_echo_n "(cached) " >&6
8386 # Double quotes because CPP needs to be expanded
8387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8390 for ac_c_preproc_warn_flag in '' yes
8392 # Use a header file that comes with gcc, so configuring glibc
8393 # with a fresh cross-compiler works.
8394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8395 # <limits.h> exists even on freestanding compilers.
8396 # On the NeXT, cc -E runs the code through the compiler's parser,
8397 # not just through cpp. "Syntax error" is here to catch this case.
8398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8399 /* end confdefs.h. */
8401 # include <limits.h>
8403 # include <assert.h>
8407 if ac_fn_c_try_cpp "$LINENO"; then :
8410 # Broken: fails on valid input.
8413 rm -f conftest.err conftest.i conftest.$ac_ext
8415 # OK, works on sane cases. Now check whether nonexistent headers
8416 # can be detected and how.
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 #include <ac_nonexistent.h>
8421 if ac_fn_c_try_cpp "$LINENO"; then :
8422 # Broken: success on invalid input.
8425 # Passes both tests.
8429 rm -f conftest.err conftest.i conftest.$ac_ext
8432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8433 rm -f conftest.i conftest.err conftest.$ac_ext
8434 if $ac_preproc_ok; then :
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8447 $as_echo "$CPP" >&6; }
8449 for ac_c_preproc_warn_flag in '' yes
8451 # Use a header file that comes with gcc, so configuring glibc
8452 # with a fresh cross-compiler works.
8453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8454 # <limits.h> exists even on freestanding compilers.
8455 # On the NeXT, cc -E runs the code through the compiler's parser,
8456 # not just through cpp. "Syntax error" is here to catch this case.
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8460 # include <limits.h>
8462 # include <assert.h>
8466 if ac_fn_c_try_cpp "$LINENO"; then :
8469 # Broken: fails on valid input.
8472 rm -f conftest.err conftest.i conftest.$ac_ext
8474 # OK, works on sane cases. Now check whether nonexistent headers
8475 # can be detected and how.
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8478 #include <ac_nonexistent.h>
8480 if ac_fn_c_try_cpp "$LINENO"; then :
8481 # Broken: success on invalid input.
8484 # Passes both tests.
8488 rm -f conftest.err conftest.i conftest.$ac_ext
8491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8492 rm -f conftest.i conftest.err conftest.$ac_ext
8493 if $ac_preproc_ok; then :
8496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8498 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8499 See \`config.log' for more details" "$LINENO" 5; }
8503 ac_cpp='$CPP $CPPFLAGS'
8504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8510 $as_echo_n "checking for ANSI C header files... " >&6; }
8511 if ${ac_cv_header_stdc+:} false; then :
8512 $as_echo_n "(cached) " >&6
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 ac_cv_header_stdc=yes
8532 ac_cv_header_stdc=no
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 if test $ac_cv_header_stdc = yes; then
8537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8544 $EGREP "memchr" >/dev/null 2>&1; then :
8547 ac_cv_header_stdc=no
8553 if test $ac_cv_header_stdc = yes; then
8554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561 $EGREP "free" >/dev/null 2>&1; then :
8564 ac_cv_header_stdc=no
8570 if test $ac_cv_header_stdc = yes; then
8571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8572 if test "$cross_compiling" = yes; then :
8575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h. */
8579 #if ((' ' & 0x0FF) == 0x020)
8580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8583 # define ISLOWER(c) \
8584 (('a' <= (c) && (c) <= 'i') \
8585 || ('j' <= (c) && (c) <= 'r') \
8586 || ('s' <= (c) && (c) <= 'z'))
8587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8595 for (i = 0; i < 256; i++)
8596 if (XOR (islower (i), ISLOWER (i))
8597 || toupper (i) != TOUPPER (i))
8602 if ac_fn_c_try_run "$LINENO"; then :
8605 ac_cv_header_stdc=no
8607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8608 conftest.$ac_objext conftest.beam conftest.$ac_ext
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8614 $as_echo "$ac_cv_header_stdc" >&6; }
8615 if test $ac_cv_header_stdc = yes; then
8617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8623 inttypes.h stdint.h unistd.h
8625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8629 cat >>confdefs.h <<_ACEOF
8630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8638 for ac_header in dlfcn.h
8640 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8643 cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DLFCN_H 1
8665 # Check whether --enable-shared was given.
8666 if test "${enable_shared+set}" = set; then :
8667 enableval=$enable_shared; p=${PACKAGE-default}
8669 yes) enable_shared=yes ;;
8670 no) enable_shared=no ;;
8673 # Look at the argument we got. We use all the common list separators.
8674 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8675 for pkg in $enableval; do
8677 if test "X$pkg" = "X$p"; then
8696 # Check whether --enable-static was given.
8697 if test "${enable_static+set}" = set; then :
8698 enableval=$enable_static; p=${PACKAGE-default}
8700 yes) enable_static=yes ;;
8701 no) enable_static=no ;;
8704 # Look at the argument we got. We use all the common list separators.
8705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8706 for pkg in $enableval; do
8708 if test "X$pkg" = "X$p"; then
8728 # Check whether --with-pic was given.
8729 if test "${with_pic+set}" = set; then :
8730 withval=$with_pic; lt_p=${PACKAGE-default}
8732 yes|no) pic_mode=$withval ;;
8735 # Look at the argument we got. We use all the common list separators.
8736 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8737 for lt_pkg in $withval; do
8739 if test "X$lt_pkg" = "X$lt_p"; then
8757 # Check whether --enable-fast-install was given.
8758 if test "${enable_fast_install+set}" = set; then :
8759 enableval=$enable_fast_install; p=${PACKAGE-default}
8761 yes) enable_fast_install=yes ;;
8762 no) enable_fast_install=no ;;
8764 enable_fast_install=no
8765 # Look at the argument we got. We use all the common list separators.
8766 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8767 for pkg in $enableval; do
8769 if test "X$pkg" = "X$p"; then
8770 enable_fast_install=yes
8777 enable_fast_install=yes
8787 shared_archive_member_spec=
8788 case $host,$enable_shared in
8789 power*-*-aix[5-9]*,yes)
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8791 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8793 # Check whether --with-aix-soname was given.
8794 if test "${with_aix_soname+set}" = set; then :
8795 withval=$with_aix_soname; case $withval in
8799 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8802 lt_cv_with_aix_soname=$with_aix_soname
8804 if ${lt_cv_with_aix_soname+:} false; then :
8805 $as_echo_n "(cached) " >&6
8807 lt_cv_with_aix_soname=aix
8810 with_aix_soname=$lt_cv_with_aix_soname
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8814 $as_echo "$with_aix_soname" >&6; }
8815 if test aix != "$with_aix_soname"; then
8816 # For the AIX way of multilib, we name the shared archive member
8817 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8818 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8819 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8820 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8821 if test 64 = "${OBJECT_MODE-32}"; then
8822 shared_archive_member_spec=shr_64
8824 shared_archive_member_spec=shr
8842 # This can be used to rebuild libtool when needed
8843 LIBTOOL_DEPS=$ltmain
8845 # Always use our own libtool.
8846 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8877 test -z "$LN_S" && LN_S="ln -s"
8892 if test -n "${ZSH_VERSION+set}"; then
8893 setopt NO_GLOB_SUBST
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8897 $as_echo_n "checking for objdir... " >&6; }
8898 if ${lt_cv_objdir+:} false; then :
8899 $as_echo_n "(cached) " >&6
8901 rm -f .libs 2>/dev/null
8902 mkdir .libs 2>/dev/null
8903 if test -d .libs; then
8906 # MS-DOS does not allow filenames that begin with a dot.
8909 rmdir .libs 2>/dev/null
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8912 $as_echo "$lt_cv_objdir" >&6; }
8913 objdir=$lt_cv_objdir
8919 cat >>confdefs.h <<_ACEOF
8920 #define LT_OBJDIR "$lt_cv_objdir/"
8928 # AIX sometimes has problems with the GCC collect2 program. For some
8929 # reason, if we set the COLLECT_NAMES environment variable, the problems
8930 # vanish in a puff of smoke.
8931 if test set != "${COLLECT_NAMES+set}"; then
8933 export COLLECT_NAMES
8940 can_build_shared=yes
8942 # All known linkers require a '.a' archive for static linking (except MSVC,
8943 # which needs '.lib').
8946 with_gnu_ld=$lt_cv_prog_gnu_ld
8951 # Set sane defaults for various variables
8952 test -z "$CC" && CC=cc
8953 test -z "$LTCC" && LTCC=$CC
8954 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8955 test -z "$LD" && LD=ld
8956 test -z "$ac_objext" && ac_objext=o
8958 func_cc_basename $compiler
8959 cc_basename=$func_cc_basename_result
8962 # Only perform the check for file, if the check method requires it
8963 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8964 case $deplibs_check_method in
8966 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8968 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8969 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8970 $as_echo_n "(cached) " >&6
8974 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8977 lt_save_MAGIC_CMD=$MAGIC_CMD
8978 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8979 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8980 for ac_dir in $ac_dummy; do
8982 test -z "$ac_dir" && ac_dir=.
8983 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8984 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8985 if test -n "$file_magic_test_file"; then
8986 case $deplibs_check_method in
8988 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8989 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8991 $EGREP "$file_magic_regex" > /dev/null; then
8996 *** Warning: the command libtool uses to detect shared libraries,
8997 *** $file_magic_cmd, produces output that libtool cannot recognize.
8998 *** The result is that libtool may fail to recognize shared libraries
8999 *** as such. This will affect the creation of libtool libraries that
9000 *** depend on shared libraries, but programs linked with such libtool
9001 *** libraries will work regardless of this problem. Nevertheless, you
9002 *** may want to report the problem to your system manager and/or to
9003 *** bug-libtool@gnu.org
9013 MAGIC_CMD=$lt_save_MAGIC_CMD
9018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9019 if test -n "$MAGIC_CMD"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9021 $as_echo "$MAGIC_CMD" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9031 if test -z "$lt_cv_path_MAGIC_CMD"; then
9032 if test -n "$ac_tool_prefix"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9034 $as_echo_n "checking for file... " >&6; }
9035 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9036 $as_echo_n "(cached) " >&6
9040 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9043 lt_save_MAGIC_CMD=$MAGIC_CMD
9044 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9045 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9046 for ac_dir in $ac_dummy; do
9048 test -z "$ac_dir" && ac_dir=.
9049 if test -f "$ac_dir/file"; then
9050 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9051 if test -n "$file_magic_test_file"; then
9052 case $deplibs_check_method in
9054 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9055 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9056 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9057 $EGREP "$file_magic_regex" > /dev/null; then
9062 *** Warning: the command libtool uses to detect shared libraries,
9063 *** $file_magic_cmd, produces output that libtool cannot recognize.
9064 *** The result is that libtool may fail to recognize shared libraries
9065 *** as such. This will affect the creation of libtool libraries that
9066 *** depend on shared libraries, but programs linked with such libtool
9067 *** libraries will work regardless of this problem. Nevertheless, you
9068 *** may want to report the problem to your system manager and/or to
9069 *** bug-libtool@gnu.org
9079 MAGIC_CMD=$lt_save_MAGIC_CMD
9084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9085 if test -n "$MAGIC_CMD"; then
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9087 $as_echo "$MAGIC_CMD" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090 $as_echo "no" >&6; }
9103 # Use C for the default configuration in the libtool script
9107 ac_cpp='$CPP $CPPFLAGS'
9108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113 # Source file extension for C test sources.
9116 # Object file extension for compiled C test sources.
9120 # Code to be used in simple compile tests
9121 lt_simple_compile_test_code="int some_variable = 0;"
9123 # Code to be used in simple link tests
9124 lt_simple_link_test_code='int main(){return(0);}'
9132 # If no C compiler was specified, use CC.
9135 # If no C compiler flags were specified, use CFLAGS.
9136 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9138 # Allow CC to be a program name with arguments.
9141 # Save the default compiler, since it gets overwritten when the other
9142 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9143 compiler_DEFAULT=$CC
9145 # save warnings/boilerplate of simple test code
9146 ac_outfile=conftest.$ac_objext
9147 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9148 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9149 _lt_compiler_boilerplate=`cat conftest.err`
9152 ac_outfile=conftest.$ac_objext
9153 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9154 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9155 _lt_linker_boilerplate=`cat conftest.err`
9159 if test -n "$compiler"; then
9161 lt_prog_compiler_no_builtin_flag=
9163 if test yes = "$GCC"; then
9164 case $cc_basename in
9166 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9168 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9172 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9173 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9174 $as_echo_n "(cached) " >&6
9176 lt_cv_prog_compiler_rtti_exceptions=no
9177 ac_outfile=conftest.$ac_objext
9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9179 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9180 # Insert the option either (1) after the last *FLAGS variable, or
9181 # (2) before a word containing "conftest.", or (3) at the end.
9182 # Note that $ac_compile itself does not contain backslashes and begins
9183 # with a dollar sign (not a hyphen), so the echo should work correctly.
9184 # The option is referenced via a variable to avoid confusing sed.
9185 lt_compile=`echo "$ac_compile" | $SED \
9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9188 -e 's:$: $lt_compiler_flag:'`
9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9190 (eval "$lt_compile" 2>conftest.err)
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 if (exit $ac_status) && test -s "$ac_outfile"; then
9195 # The compiler can only warn and ignore the option if not recognized
9196 # So say no if there are warnings other than the usual output.
9197 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9198 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9199 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9200 lt_cv_prog_compiler_rtti_exceptions=yes
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9209 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9210 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9222 lt_prog_compiler_wl=
9223 lt_prog_compiler_pic=
9224 lt_prog_compiler_static=
9227 if test yes = "$GCC"; then
9228 lt_prog_compiler_wl='-Wl,'
9229 lt_prog_compiler_static='-static'
9233 # All AIX code is PIC.
9234 if test ia64 = "$host_cpu"; then
9235 # AIX 5 now supports IA64 processor
9236 lt_prog_compiler_static='-Bstatic'
9238 lt_prog_compiler_pic='-fPIC'
9244 # see comment about AmigaOS4 .so support
9245 lt_prog_compiler_pic='-fPIC'
9248 # FIXME: we need at least 68020 code to build shared libraries, but
9249 # adding the '-m68020' flag to GCC prevents building anything better,
9251 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9256 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9257 # PIC is the default for these OSes.
9260 mingw* | cygwin* | pw32* | os2* | cegcc*)
9261 # This hack is so that the source file can tell whether it is being
9262 # built for inclusion in a dll (and should export symbols for example).
9263 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9264 # (--disable-auto-import) libraries
9265 lt_prog_compiler_pic='-DDLL_EXPORT'
9268 lt_prog_compiler_static='$wl-static'
9273 darwin* | rhapsody*)
9274 # PIC is the default on this platform
9275 # Common symbols not allowed in MH_DYLIB files
9276 lt_prog_compiler_pic='-fno-common'
9280 # PIC is the default for Haiku.
9281 # The "-static" flag exists, but is broken.
9282 lt_prog_compiler_static=
9286 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9287 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9288 # sets the default TLS model and affects inlining.
9294 lt_prog_compiler_pic='-fPIC'
9300 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9301 # Instead, we relocate shared libraries at runtime.
9305 # Just because we use GCC doesn't mean we suddenly get shared libraries
9306 # on systems that don't support them.
9307 lt_prog_compiler_can_build_shared=no
9312 # QNX uses GNU C++, but need to define -shared option too, otherwise
9314 lt_prog_compiler_pic='-fPIC -shared'
9318 if test -d /usr/nec; then
9319 lt_prog_compiler_pic=-Kconform_pic
9324 lt_prog_compiler_pic='-fPIC'
9328 case $cc_basename in
9329 nvcc*) # Cuda Compiler Driver 2.2
9330 lt_prog_compiler_wl='-Xlinker '
9331 if test -n "$lt_prog_compiler_pic"; then
9332 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9337 # PORTME Check for flag to pass linker flags through the system compiler.
9340 lt_prog_compiler_wl='-Wl,'
9341 if test ia64 = "$host_cpu"; then
9342 # AIX 5 now supports IA64 processor
9343 lt_prog_compiler_static='-Bstatic'
9345 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9349 darwin* | rhapsody*)
9350 # PIC is the default on this platform
9351 # Common symbols not allowed in MH_DYLIB files
9352 lt_prog_compiler_pic='-fno-common'
9353 case $cc_basename in
9355 # NAG Fortran compiler
9356 lt_prog_compiler_wl='-Wl,-Wl,,'
9357 lt_prog_compiler_pic='-PIC'
9358 lt_prog_compiler_static='-Bstatic'
9363 mingw* | cygwin* | pw32* | os2* | cegcc*)
9364 # This hack is so that the source file can tell whether it is being
9365 # built for inclusion in a dll (and should export symbols for example).
9366 lt_prog_compiler_pic='-DDLL_EXPORT'
9369 lt_prog_compiler_static='$wl-static'
9374 hpux9* | hpux10* | hpux11*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9383 lt_prog_compiler_pic='+Z'
9386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9387 lt_prog_compiler_static='$wl-a ${wl}archive'
9390 irix5* | irix6* | nonstopux*)
9391 lt_prog_compiler_wl='-Wl,'
9392 # PIC (with -KPIC) is the default.
9393 lt_prog_compiler_static='-non_shared'
9396 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9397 case $cc_basename in
9398 # old Intel for x86_64, which still supported -KPIC.
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_pic='-KPIC'
9402 lt_prog_compiler_static='-static'
9404 # icc used to be incompatible with GCC.
9405 # ICC 10 doesn't accept -KPIC any more.
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-fPIC'
9409 lt_prog_compiler_static='-static'
9411 # Lahey Fortran 8.1.
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='--shared'
9415 lt_prog_compiler_static='--static'
9418 # NAG Fortran compiler
9419 lt_prog_compiler_wl='-Wl,-Wl,,'
9420 lt_prog_compiler_pic='-PIC'
9421 lt_prog_compiler_static='-Bstatic'
9424 # Fabrice Bellard et al's Tiny C Compiler
9425 lt_prog_compiler_wl='-Wl,'
9426 lt_prog_compiler_pic='-fPIC'
9427 lt_prog_compiler_static='-static'
9429 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9430 # Portland Group compilers (*not* the Pentium gcc compiler,
9431 # which looks to be a dead project)
9432 lt_prog_compiler_wl='-Wl,'
9433 lt_prog_compiler_pic='-fpic'
9434 lt_prog_compiler_static='-Bstatic'
9437 lt_prog_compiler_wl='-Wl,'
9438 # All Alpha code is PIC.
9439 lt_prog_compiler_static='-non_shared'
9441 xl* | bgxl* | bgf* | mpixl*)
9442 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-qpic'
9445 lt_prog_compiler_static='-qstaticlink'
9448 case `$CC -V 2>&1 | sed 5q` in
9449 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9450 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9451 lt_prog_compiler_pic='-KPIC'
9452 lt_prog_compiler_static='-Bstatic'
9453 lt_prog_compiler_wl=''
9455 *Sun\ F* | *Sun*Fortran*)
9456 lt_prog_compiler_pic='-KPIC'
9457 lt_prog_compiler_static='-Bstatic'
9458 lt_prog_compiler_wl='-Qoption ld '
9462 lt_prog_compiler_pic='-KPIC'
9463 lt_prog_compiler_static='-Bstatic'
9464 lt_prog_compiler_wl='-Wl,'
9466 *Intel*\ [CF]*Compiler*)
9467 lt_prog_compiler_wl='-Wl,'
9468 lt_prog_compiler_pic='-fPIC'
9469 lt_prog_compiler_static='-static'
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_pic='-fpic'
9474 lt_prog_compiler_static='-Bstatic'
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-Bstatic'
9487 # QNX uses GNU C++, but need to define -shared option too, otherwise
9489 lt_prog_compiler_pic='-fPIC -shared'
9492 osf3* | osf4* | osf5*)
9493 lt_prog_compiler_wl='-Wl,'
9494 # All OSF/1 code is PIC.
9495 lt_prog_compiler_static='-non_shared'
9499 lt_prog_compiler_static='-non_shared'
9503 lt_prog_compiler_pic='-KPIC'
9504 lt_prog_compiler_static='-Bstatic'
9505 case $cc_basename in
9506 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9507 lt_prog_compiler_wl='-Qoption ld ';;
9509 lt_prog_compiler_wl='-Wl,';;
9514 lt_prog_compiler_wl='-Qoption ld '
9515 lt_prog_compiler_pic='-PIC'
9516 lt_prog_compiler_static='-Bstatic'
9519 sysv4 | sysv4.2uw2* | sysv4.3*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-Bstatic'
9526 if test -d /usr/nec; then
9527 lt_prog_compiler_pic='-Kconform_pic'
9528 lt_prog_compiler_static='-Bstatic'
9532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='-KPIC'
9535 lt_prog_compiler_static='-Bstatic'
9539 lt_prog_compiler_wl='-Wl,'
9540 lt_prog_compiler_can_build_shared=no
9544 lt_prog_compiler_pic='-pic'
9545 lt_prog_compiler_static='-Bstatic'
9549 lt_prog_compiler_can_build_shared=no
9555 # For platforms that do not support PIC, -DPIC is meaningless:
9557 lt_prog_compiler_pic=
9560 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9565 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9566 if ${lt_cv_prog_compiler_pic+:} false; then :
9567 $as_echo_n "(cached) " >&6
9569 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9572 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9573 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9576 # Check to make sure the PIC flag actually works.
9578 if test -n "$lt_prog_compiler_pic"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9580 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9581 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9582 $as_echo_n "(cached) " >&6
9584 lt_cv_prog_compiler_pic_works=no
9585 ac_outfile=conftest.$ac_objext
9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9588 # Insert the option either (1) after the last *FLAGS variable, or
9589 # (2) before a word containing "conftest.", or (3) at the end.
9590 # Note that $ac_compile itself does not contain backslashes and begins
9591 # with a dollar sign (not a hyphen), so the echo should work correctly.
9592 # The option is referenced via a variable to avoid confusing sed.
9593 lt_compile=`echo "$ac_compile" | $SED \
9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596 -e 's:$: $lt_compiler_flag:'`
9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598 (eval "$lt_compile" 2>conftest.err)
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 if (exit $ac_status) && test -s "$ac_outfile"; then
9603 # The compiler can only warn and ignore the option if not recognized
9604 # So say no if there are warnings other than the usual output.
9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9608 lt_cv_prog_compiler_pic_works=yes
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9615 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9617 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9618 case $lt_prog_compiler_pic in
9620 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9623 lt_prog_compiler_pic=
9624 lt_prog_compiler_can_build_shared=no
9640 # Check to make sure the static flag actually works.
9642 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9644 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9645 if ${lt_cv_prog_compiler_static_works+:} false; then :
9646 $as_echo_n "(cached) " >&6
9648 lt_cv_prog_compiler_static_works=no
9649 save_LDFLAGS=$LDFLAGS
9650 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9651 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9653 # The linker can only warn and ignore the option if not recognized
9654 # So say no if there are warnings
9655 if test -s conftest.err; then
9656 # Append any errors to the config.log.
9657 cat conftest.err 1>&5
9658 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9660 if diff conftest.exp conftest.er2 >/dev/null; then
9661 lt_cv_prog_compiler_static_works=yes
9664 lt_cv_prog_compiler_static_works=yes
9668 LDFLAGS=$save_LDFLAGS
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9672 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9674 if test yes = "$lt_cv_prog_compiler_static_works"; then
9677 lt_prog_compiler_static=
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9688 if ${lt_cv_prog_compiler_c_o+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 lt_cv_prog_compiler_c_o=no
9692 $RM -r conftest 2>/dev/null
9696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9698 lt_compiler_flag="-o out/conftest2.$ac_objext"
9699 # Insert the option either (1) after the last *FLAGS variable, or
9700 # (2) before a word containing "conftest.", or (3) at the end.
9701 # Note that $ac_compile itself does not contain backslashes and begins
9702 # with a dollar sign (not a hyphen), so the echo should work correctly.
9703 lt_compile=`echo "$ac_compile" | $SED \
9704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9706 -e 's:$: $lt_compiler_flag:'`
9707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9708 (eval "$lt_compile" 2>out/conftest.err)
9710 cat out/conftest.err >&5
9711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9714 # The compiler can only warn and ignore the option if not recognized
9715 # So say no if there are warnings
9716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9719 lt_cv_prog_compiler_c_o=yes
9724 # SGI C++ compiler will create directory out/ii_files/ for
9725 # template instantiation
9726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9727 $RM out/* && rmdir out
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9734 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9743 if ${lt_cv_prog_compiler_c_o+:} false; then :
9744 $as_echo_n "(cached) " >&6
9746 lt_cv_prog_compiler_c_o=no
9747 $RM -r conftest 2>/dev/null
9751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9753 lt_compiler_flag="-o out/conftest2.$ac_objext"
9754 # Insert the option either (1) after the last *FLAGS variable, or
9755 # (2) before a word containing "conftest.", or (3) at the end.
9756 # Note that $ac_compile itself does not contain backslashes and begins
9757 # with a dollar sign (not a hyphen), so the echo should work correctly.
9758 lt_compile=`echo "$ac_compile" | $SED \
9759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9761 -e 's:$: $lt_compiler_flag:'`
9762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9763 (eval "$lt_compile" 2>out/conftest.err)
9765 cat out/conftest.err >&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9769 # The compiler can only warn and ignore the option if not recognized
9770 # So say no if there are warnings
9771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9774 lt_cv_prog_compiler_c_o=yes
9779 # SGI C++ compiler will create directory out/ii_files/ for
9780 # template instantiation
9781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9782 $RM out/* && rmdir out
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9789 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9794 hard_links=nottested
9795 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9796 # do not overwrite the value of need_locks provided by the user
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9798 $as_echo_n "checking if we can lock with hard links... " >&6; }
9801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9803 ln conftest.a conftest.b 2>&5 || hard_links=no
9804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9806 $as_echo "$hard_links" >&6; }
9807 if test no = "$hard_links"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9809 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9822 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9825 allow_undefined_flag=
9826 always_export_symbols=no
9828 archive_expsym_cmds=
9829 compiler_needs_object=no
9830 enable_shared_with_static_runtimes=no
9831 export_dynamic_flag_spec=
9832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9833 hardcode_automatic=no
9835 hardcode_direct_absolute=no
9836 hardcode_libdir_flag_spec=
9837 hardcode_libdir_separator=
9839 hardcode_shlibpath_var=unsupported
9841 link_all_deplibs=unknown
9844 old_archive_from_new_cmds=
9845 old_archive_from_expsyms_cmds=
9846 thread_safe_flag_spec=
9847 whole_archive_flag_spec=
9848 # include_expsyms should be a list of space-separated symbols to be *always*
9849 # included in the symbol list
9851 # exclude_expsyms can be an extended regexp of symbols to exclude
9852 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9853 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9854 # as well as any symbol that contains 'd'.
9855 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9856 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9857 # platforms (ab)use it in PIC code, but their linkers get confused if
9858 # the symbol is explicitly referenced. Since portable code cannot
9859 # rely on this symbol name, it's probably fine to never include it in
9860 # preloaded symbol tables.
9861 # Exclude shared library initialization/finalization symbols.
9862 extract_expsyms_cmds=
9865 cygwin* | mingw* | pw32* | cegcc*)
9866 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9867 # When not using gcc, we currently assume that we are using
9868 # Microsoft Visual C++.
9869 if test yes != "$GCC"; then
9874 # we just hope/assume this is gcc and not c89 (= MSVC++)
9880 linux* | k*bsd*-gnu | gnu*)
9887 # On some targets, GNU ld is compatible enough with the native linker
9888 # that we're better off using the native interface for both.
9889 lt_use_gnu_ld_interface=no
9890 if test yes = "$with_gnu_ld"; then
9893 # The AIX port of GNU ld has always aspired to compatibility
9894 # with the native linker. However, as the warning in the GNU ld
9895 # block says, versions before 2.19.5* couldn't really create working
9896 # shared libraries, regardless of the interface used.
9897 case `$LD -v 2>&1` in
9898 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9899 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9900 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9902 lt_use_gnu_ld_interface=yes
9907 lt_use_gnu_ld_interface=yes
9912 if test yes = "$lt_use_gnu_ld_interface"; then
9913 # If archive_cmds runs LD, not CC, wlarc should be empty
9916 # Set some defaults for GNU ld with shared library support. These
9917 # are reset later if shared libraries are not supported. Putting them
9918 # here allows them to be overridden if necessary.
9919 runpath_var=LD_RUN_PATH
9920 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9921 export_dynamic_flag_spec='$wl--export-dynamic'
9922 # ancient GNU ld didn't support --whole-archive et. al.
9923 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9924 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9926 whole_archive_flag_spec=
9928 supports_anon_versioning=no
9929 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9930 *GNU\ gold*) supports_anon_versioning=yes ;;
9931 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9932 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9933 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9934 *\ 2.11.*) ;; # other 2.11 versions
9935 *) supports_anon_versioning=yes ;;
9938 # See if GNU ld supports shared libraries.
9941 # On AIX/PPC, the GNU linker is very broken
9942 if test ia64 != "$host_cpu"; then
9946 *** Warning: the GNU linker, at least up to release 2.19, is reported
9947 *** to be unable to reliably create shared libraries on AIX.
9948 *** Therefore, libtool is disabling shared libraries support. If you
9949 *** really care for shared libraries, you may want to install binutils
9950 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9951 *** You will then need to restart the configuration process.
9960 # see comment about AmigaOS4 .so support
9961 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9962 archive_expsym_cmds=''
9965 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)'
9966 hardcode_libdir_flag_spec='-L$libdir'
9967 hardcode_minus_L=yes
9973 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9974 allow_undefined_flag=unsupported
9975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9976 # support --undefined. This deserves some investigation. FIXME
9977 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9983 cygwin* | mingw* | pw32* | cegcc*)
9984 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9985 # as there is no search path for DLLs.
9986 hardcode_libdir_flag_spec='-L$libdir'
9987 export_dynamic_flag_spec='$wl--export-all-symbols'
9988 allow_undefined_flag=unsupported
9989 always_export_symbols=no
9990 enable_shared_with_static_runtimes=yes
9991 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'
9992 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9994 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9995 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9996 # If the export-symbols file already is a .def file, use it as
9997 # is; otherwise, prepend EXPORTS...
9998 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9999 cp $export_symbols $output_objdir/$soname.def;
10001 echo EXPORTS > $output_objdir/$soname.def;
10002 cat $export_symbols >> $output_objdir/$soname.def;
10004 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10012 link_all_deplibs=yes
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_minus_L=yes
10018 allow_undefined_flag=unsupported
10020 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10021 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10022 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10023 $ECHO EXPORTS >> $output_objdir/$libname.def~
10024 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10025 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10026 emximp -o $lib $output_objdir/$libname.def'
10027 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10028 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10029 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10030 $ECHO EXPORTS >> $output_objdir/$libname.def~
10031 prefix_cmds="$SED"~
10032 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10033 prefix_cmds="$prefix_cmds -e 1d";
10035 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10036 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10037 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10038 emximp -o $lib $output_objdir/$libname.def'
10039 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10040 enable_shared_with_static_runtimes=yes
10045 hardcode_shlibpath_var=no
10046 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10047 export_dynamic_flag_spec='$wl-E'
10048 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10049 # Instead, shared libraries are loaded at an image base (0x10000000 by
10050 # default) and relocated if they conflict, which is a slow very memory
10051 # consuming and fragmenting process. To avoid this, we pick a random,
10052 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10053 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10055 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'
10058 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10060 if test linux-dietlibc = "$host_os"; then
10061 case $cc_basename in
10062 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10065 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10066 && test no = "$tmp_diet"
10068 tmp_addflag=' $pic_flag'
10069 tmp_sharedflag='-shared'
10070 case $cc_basename,$host_cpu in
10071 pgcc*) # Portland Group C compiler
10072 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'
10073 tmp_addflag=' $pic_flag'
10075 pgf77* | pgf90* | pgf95* | pgfortran*)
10076 # Portland Group f77 and f90 compilers
10077 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'
10078 tmp_addflag=' $pic_flag -Mnomain' ;;
10079 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10080 tmp_addflag=' -i_dynamic' ;;
10081 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10082 tmp_addflag=' -i_dynamic -nofor_main' ;;
10083 ifc* | ifort*) # Intel Fortran compiler
10084 tmp_addflag=' -nofor_main' ;;
10085 lf95*) # Lahey Fortran 8.1
10086 whole_archive_flag_spec=
10087 tmp_sharedflag='--shared' ;;
10088 nagfor*) # NAGFOR 5.3
10089 tmp_sharedflag='-Wl,-shared' ;;
10090 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10091 tmp_sharedflag='-qmkshrobj'
10093 nvcc*) # Cuda Compiler Driver 2.2
10094 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'
10095 compiler_needs_object=yes
10098 case `$CC -V 2>&1 | sed 5q` in
10099 *Sun\ C*) # Sun C 5.9
10100 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'
10101 compiler_needs_object=yes
10102 tmp_sharedflag='-G' ;;
10103 *Sun\ F*) # Sun Fortran 8.3
10104 tmp_sharedflag='-G' ;;
10106 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10108 if test yes = "$supports_anon_versioning"; then
10109 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10110 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10111 echo "local: *; };" >> $output_objdir/$libname.ver~
10112 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10115 case $cc_basename in
10117 export_dynamic_flag_spec='-rdynamic'
10119 xlf* | bgf* | bgxlf* | mpixlf*)
10120 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10121 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10122 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10123 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10124 if test yes = "$supports_anon_versioning"; then
10125 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10127 echo "local: *; };" >> $output_objdir/$libname.ver~
10128 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10137 netbsd* | netbsdelf*-gnu)
10138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10139 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10142 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10143 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10148 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10153 *** create shared libraries on Solaris systems. Therefore, libtool
10154 *** is disabling shared libraries support. We urge you to upgrade GNU
10155 *** binutils to release 2.9.1 or newer. Another option is to modify
10156 *** your PATH or compiler configuration so that the native linker is
10157 *** used, and then restart.
10160 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10169 case `$LD -v 2>&1` in
10170 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10175 *** reliably create shared libraries on SCO systems. Therefore, libtool
10176 *** is disabling shared libraries support. We urge you to upgrade GNU
10177 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10178 *** your PATH or compiler configuration so that the native linker is
10179 *** used, and then restart.
10184 # For security reasons, it is highly recommended that you always
10185 # use absolute paths for naming shared libraries, and exclude the
10186 # DT_RUNPATH tag from executables and libraries. But doing so
10187 # requires that you compile everything twice, which is a pain.
10188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10190 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10200 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_direct=yes
10203 hardcode_shlibpath_var=no
10207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10209 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10216 if test no = "$ld_shlibs"; then
10218 hardcode_libdir_flag_spec=
10219 export_dynamic_flag_spec=
10220 whole_archive_flag_spec=
10223 # PORTME fill in a description of your system's linker (not GNU ld)
10226 allow_undefined_flag=unsupported
10227 always_export_symbols=yes
10228 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'
10229 # Note: this linker hardcodes the directories in LIBPATH if there
10230 # are no directories specified by -L.
10231 hardcode_minus_L=yes
10232 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10233 # Neither direct hardcoding nor static linking is supported with a
10235 hardcode_direct=unsupported
10240 if test ia64 = "$host_cpu"; then
10241 # On IA64, the linker does run time linking by default, so we don't
10242 # have to do anything special.
10243 aix_use_runtimelinking=no
10244 exp_sym_flag='-Bexport'
10247 # If we're using GNU nm, then we don't want the "-C" option.
10248 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10249 # Without the "-l" option, or with the "-B" option, AIX nm treats
10250 # weak defined symbols like other global defined symbols, whereas
10251 # GNU nm marks them as "W".
10252 # While the 'weak' keyword is ignored in the Export File, we need
10253 # it in the Import File for the 'aix-soname' feature, so we have
10254 # to replace the "-B" option with "-P" for AIX nm.
10255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10256 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'
10258 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'
10260 aix_use_runtimelinking=no
10262 # Test if we are trying to use run time linking or normal
10263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10264 # have runtime linking enabled, and use it for executables.
10265 # For shared libraries, we enable/disable runtime linking
10266 # depending on the kind of the shared library created -
10267 # when "with_aix_soname,aix_use_runtimelinking" is:
10268 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10269 # "aix,yes" lib.so shared, rtl:yes, for executables
10270 # lib.a static archive
10271 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10272 # lib.a(lib.so.V) shared, rtl:no, for executables
10273 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10274 # lib.a(lib.so.V) shared, rtl:no
10275 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10276 # lib.a static archive
10277 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10278 for ld_flag in $LDFLAGS; do
10279 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10280 aix_use_runtimelinking=yes
10284 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10285 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10286 # so we don't have lib.a shared libs to link our executables.
10287 # We have to force runtime linking in this case.
10288 aix_use_runtimelinking=yes
10289 LDFLAGS="$LDFLAGS -Wl,-brtl"
10294 exp_sym_flag='-bexport'
10295 no_entry_flag='-bnoentry'
10298 # When large executables or shared objects are built, AIX ld can
10299 # have problems creating the table of contents. If linking a library
10300 # or program results in "error TOC overflow" add -mminimal-toc to
10301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10305 hardcode_direct=yes
10306 hardcode_direct_absolute=yes
10307 hardcode_libdir_separator=':'
10308 link_all_deplibs=yes
10309 file_list_spec='$wl-f,'
10310 case $with_aix_soname,$aix_use_runtimelinking in
10311 aix,*) ;; # traditional, no import file
10312 svr4,* | *,yes) # use import file
10313 # The Import File defines what to hardcode.
10315 hardcode_direct_absolute=no
10319 if test yes = "$GCC"; then
10320 case $host_os in aix4.[012]|aix4.[012].*)
10321 # We only want to do this on AIX 4.2 and lower, the check
10322 # below for broken collect2 doesn't work under 4.3+
10323 collect2name=`$CC -print-prog-name=collect2`
10324 if test -f "$collect2name" &&
10325 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10327 # We have reworked collect2
10330 # We have old collect2
10331 hardcode_direct=unsupported
10332 # It fails to find uninstalled libraries when the uninstalled
10333 # path is not listed in the libpath. Setting hardcode_minus_L
10334 # to unsupported forces relinking
10335 hardcode_minus_L=yes
10336 hardcode_libdir_flag_spec='-L$libdir'
10337 hardcode_libdir_separator=
10341 shared_flag='-shared'
10342 if test yes = "$aix_use_runtimelinking"; then
10343 shared_flag="$shared_flag "'$wl-G'
10345 # Need to ensure runtime linking is disabled for the traditional
10346 # shared library, or the linker may eventually find shared libraries
10347 # /with/ Import File - we do not want to mix them.
10348 shared_flag_aix='-shared'
10349 shared_flag_svr4='-shared $wl-G'
10352 if test ia64 = "$host_cpu"; then
10353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10354 # chokes on -Wl,-G. The following line is correct:
10357 if test yes = "$aix_use_runtimelinking"; then
10358 shared_flag='$wl-G'
10360 shared_flag='$wl-bM:SRE'
10362 shared_flag_aix='$wl-bM:SRE'
10363 shared_flag_svr4='$wl-G'
10367 export_dynamic_flag_spec='$wl-bexpall'
10368 # It seems that -bexpall does not export symbols beginning with
10369 # underscore (_), so it is better to generate a list of symbols to export.
10370 always_export_symbols=yes
10371 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10372 # Warning - without using the other runtime loading flags (-brtl),
10373 # -berok will link without error, but may produce a broken library.
10374 allow_undefined_flag='-berok'
10375 # Determine the default libpath from the value encoded in an
10376 # empty executable.
10377 if test set = "${lt_cv_aix_libpath+set}"; then
10378 aix_libpath=$lt_cv_aix_libpath
10380 if ${lt_cv_aix_libpath_+:} false; then :
10381 $as_echo_n "(cached) " >&6
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10394 if ac_fn_c_try_link "$LINENO"; then :
10396 lt_aix_libpath_sed='
10397 /Import File Strings/,/^$/ {
10399 s/^0 *\([^ ]*\) *$/\1/
10403 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10404 # Check for a 64-bit object if we didn't find anything.
10405 if test -z "$lt_cv_aix_libpath_"; then
10406 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 if test -z "$lt_cv_aix_libpath_"; then
10412 lt_cv_aix_libpath_=/usr/lib:/lib
10417 aix_libpath=$lt_cv_aix_libpath_
10420 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10421 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
10423 if test ia64 = "$host_cpu"; then
10424 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10425 allow_undefined_flag="-z nodefs"
10426 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"
10428 # Determine the default libpath from the value encoded in an
10429 # empty executable.
10430 if test set = "${lt_cv_aix_libpath+set}"; then
10431 aix_libpath=$lt_cv_aix_libpath
10433 if ${lt_cv_aix_libpath_+:} false; then :
10434 $as_echo_n "(cached) " >&6
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10447 if ac_fn_c_try_link "$LINENO"; then :
10449 lt_aix_libpath_sed='
10450 /Import File Strings/,/^$/ {
10452 s/^0 *\([^ ]*\) *$/\1/
10456 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10457 # Check for a 64-bit object if we didn't find anything.
10458 if test -z "$lt_cv_aix_libpath_"; then
10459 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10462 rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 if test -z "$lt_cv_aix_libpath_"; then
10465 lt_cv_aix_libpath_=/usr/lib:/lib
10470 aix_libpath=$lt_cv_aix_libpath_
10473 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10474 # Warning - without using the other run time loading flags,
10475 # -berok will link without error, but may produce a broken library.
10476 no_undefined_flag=' $wl-bernotok'
10477 allow_undefined_flag=' $wl-berok'
10478 if test yes = "$with_gnu_ld"; then
10479 # We only use this code for GNU lds that support --whole-archive.
10480 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10482 # Exported symbols can be pulled into shared objects from archives
10483 whole_archive_flag_spec='$convenience'
10485 archive_cmds_need_lc=yes
10486 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10487 # -brtl affects multiple linker settings, -berok does not and is overridden later
10488 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10489 if test svr4 != "$with_aix_soname"; then
10490 # This is similar to how AIX traditionally builds its shared libraries.
10491 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'
10493 if test aix != "$with_aix_soname"; then
10494 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'
10496 # used by -dlpreopen to get the symbols
10497 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10499 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10507 # see comment about AmigaOS4 .so support
10508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10509 archive_expsym_cmds=''
10512 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)'
10513 hardcode_libdir_flag_spec='-L$libdir'
10514 hardcode_minus_L=yes
10520 export_dynamic_flag_spec=-rdynamic
10523 cygwin* | mingw* | pw32* | cegcc*)
10524 # When not using gcc, we currently assume that we are using
10525 # Microsoft Visual C++.
10526 # hardcode_libdir_flag_spec is actually meaningless, as there is
10527 # no search path for DLLs.
10528 case $cc_basename in
10531 hardcode_libdir_flag_spec=' '
10532 allow_undefined_flag=unsupported
10533 always_export_symbols=yes
10535 # Tell ltmain to make .lib files, not .a files.
10537 # Tell ltmain to make .dll files, not .so files.
10539 # FIXME: Setting linknames here is a bad hack.
10540 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10541 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10542 cp "$export_symbols" "$output_objdir/$soname.def";
10543 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10545 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10547 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10549 # The linker will not automatically build a static lib if we build a DLL.
10550 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10551 enable_shared_with_static_runtimes=yes
10552 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10553 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10555 old_postinstall_cmds='chmod 644 $oldlib'
10556 postlink_cmds='lt_outputfile="@OUTPUT@"~
10557 lt_tool_outputfile="@TOOL_OUTPUT@"~
10558 case $lt_outputfile in
10561 lt_outputfile=$lt_outputfile.exe
10562 lt_tool_outputfile=$lt_tool_outputfile.exe
10565 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10566 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10567 $RM "$lt_outputfile.manifest";
10571 # Assume MSVC wrapper
10572 hardcode_libdir_flag_spec=' '
10573 allow_undefined_flag=unsupported
10574 # Tell ltmain to make .lib files, not .a files.
10576 # Tell ltmain to make .dll files, not .so files.
10578 # FIXME: Setting linknames here is a bad hack.
10579 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10580 # The linker will automatically build a .lib file if we build a DLL.
10581 old_archive_from_new_cmds='true'
10582 # FIXME: Should let the user specify the lib program.
10583 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10584 enable_shared_with_static_runtimes=yes
10589 darwin* | rhapsody*)
10592 archive_cmds_need_lc=no
10594 hardcode_automatic=yes
10595 hardcode_shlibpath_var=unsupported
10596 if test yes = "$lt_cv_ld_force_load"; then
10597 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\"`'
10600 whole_archive_flag_spec=''
10602 link_all_deplibs=yes
10603 allow_undefined_flag=$_lt_dar_allow_undefined
10604 case $cc_basename in
10605 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10606 *) _lt_dar_can_shared=$GCC ;;
10608 if test yes = "$_lt_dar_can_shared"; then
10609 output_verbose_link_cmd=func_echo_all
10610 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10611 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10612 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"
10613 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"
10622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10623 hardcode_libdir_flag_spec='-L$libdir'
10624 hardcode_shlibpath_var=no
10627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10628 # support. Future versions do this automatically, but an explicit c++rt0.o
10629 # does not break anything, and helps significantly (at the cost of a little
10632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10633 hardcode_libdir_flag_spec='-R$libdir'
10634 hardcode_direct=yes
10635 hardcode_shlibpath_var=no
10638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_direct=yes
10642 hardcode_minus_L=yes
10643 hardcode_shlibpath_var=no
10646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10647 freebsd* | dragonfly*)
10648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10649 hardcode_libdir_flag_spec='-R$libdir'
10650 hardcode_direct=yes
10651 hardcode_shlibpath_var=no
10655 if test yes = "$GCC"; then
10656 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'
10658 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'
10660 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10661 hardcode_libdir_separator=:
10662 hardcode_direct=yes
10664 # hardcode_minus_L: Not really in the search PATH,
10665 # but as the default location of the library.
10666 hardcode_minus_L=yes
10667 export_dynamic_flag_spec='$wl-E'
10671 if test yes,no = "$GCC,$with_gnu_ld"; then
10672 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10676 if test no = "$with_gnu_ld"; then
10677 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10678 hardcode_libdir_separator=:
10679 hardcode_direct=yes
10680 hardcode_direct_absolute=yes
10681 export_dynamic_flag_spec='$wl-E'
10682 # hardcode_minus_L: Not really in the search PATH,
10683 # but as the default location of the library.
10684 hardcode_minus_L=yes
10689 if test yes,no = "$GCC,$with_gnu_ld"; then
10692 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10695 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10711 # Older versions of the 11.00 compiler do not understand -b yet
10712 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10714 $as_echo_n "checking if $CC understands -b... " >&6; }
10715 if ${lt_cv_prog_compiler__b+:} false; then :
10716 $as_echo_n "(cached) " >&6
10718 lt_cv_prog_compiler__b=no
10719 save_LDFLAGS=$LDFLAGS
10720 LDFLAGS="$LDFLAGS -b"
10721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10723 # The linker can only warn and ignore the option if not recognized
10724 # So say no if there are warnings
10725 if test -s conftest.err; then
10726 # Append any errors to the config.log.
10727 cat conftest.err 1>&5
10728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10730 if diff conftest.exp conftest.er2 >/dev/null; then
10731 lt_cv_prog_compiler__b=yes
10734 lt_cv_prog_compiler__b=yes
10738 LDFLAGS=$save_LDFLAGS
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10742 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10744 if test yes = "$lt_cv_prog_compiler__b"; then
10745 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10753 if test no = "$with_gnu_ld"; then
10754 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10755 hardcode_libdir_separator=:
10760 hardcode_shlibpath_var=no
10763 hardcode_direct=yes
10764 hardcode_direct_absolute=yes
10765 export_dynamic_flag_spec='$wl-E'
10767 # hardcode_minus_L: Not really in the search PATH,
10768 # but as the default location of the library.
10769 hardcode_minus_L=yes
10775 irix5* | irix6* | nonstopux*)
10776 if test yes = "$GCC"; then
10777 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'
10778 # Try to use the -exported_symbol ld option, if it does not
10779 # work, assume that -exports_file does not work either and
10780 # implicitly export all symbols.
10781 # This should be the same for all languages, so no per-tag cache variable.
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10783 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10784 if ${lt_cv_irix_exported_symbol+:} false; then :
10785 $as_echo_n "(cached) " >&6
10787 save_LDFLAGS=$LDFLAGS
10788 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h. */
10791 int foo (void) { return 0; }
10793 if ac_fn_c_try_link "$LINENO"; then :
10794 lt_cv_irix_exported_symbol=yes
10796 lt_cv_irix_exported_symbol=no
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
10800 LDFLAGS=$save_LDFLAGS
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10803 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10804 if test yes = "$lt_cv_irix_exported_symbol"; then
10805 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'
10807 link_all_deplibs=no
10809 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'
10810 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'
10812 archive_cmds_need_lc='no'
10813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10814 hardcode_libdir_separator=:
10816 link_all_deplibs=yes
10820 case $cc_basename in
10822 # Fabrice Bellard et al's Tiny C Compiler
10824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10829 netbsd* | netbsdelf*-gnu)
10830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10833 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10835 hardcode_libdir_flag_spec='-R$libdir'
10836 hardcode_direct=yes
10837 hardcode_shlibpath_var=no
10841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 hardcode_direct=yes
10843 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10844 hardcode_libdir_separator=:
10845 hardcode_shlibpath_var=no
10851 openbsd* | bitrig*)
10852 if test -f /usr/libexec/ld.so; then
10853 hardcode_direct=yes
10854 hardcode_shlibpath_var=no
10855 hardcode_direct_absolute=yes
10856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10857 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10858 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10859 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10860 export_dynamic_flag_spec='$wl-E'
10862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10863 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10871 hardcode_libdir_flag_spec='-L$libdir'
10872 hardcode_minus_L=yes
10873 allow_undefined_flag=unsupported
10875 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10878 $ECHO EXPORTS >> $output_objdir/$libname.def~
10879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10881 emximp -o $lib $output_objdir/$libname.def'
10882 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10885 $ECHO EXPORTS >> $output_objdir/$libname.def~
10886 prefix_cmds="$SED"~
10887 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10888 prefix_cmds="$prefix_cmds -e 1d";
10890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10893 emximp -o $lib $output_objdir/$libname.def'
10894 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10895 enable_shared_with_static_runtimes=yes
10899 if test yes = "$GCC"; then
10900 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10901 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'
10903 allow_undefined_flag=' -expect_unresolved \*'
10904 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'
10906 archive_cmds_need_lc='no'
10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908 hardcode_libdir_separator=:
10911 osf4* | osf5*) # as osf3* with the addition of -msym flag
10912 if test yes = "$GCC"; then
10913 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10914 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'
10915 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10917 allow_undefined_flag=' -expect_unresolved \*'
10918 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'
10919 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~
10920 $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'
10922 # Both c and cxx compiler support -rpath directly
10923 hardcode_libdir_flag_spec='-rpath $libdir'
10925 archive_cmds_need_lc='no'
10926 hardcode_libdir_separator=:
10930 no_undefined_flag=' -z defs'
10931 if test yes = "$GCC"; then
10933 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10935 $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'
10937 case `$CC -V 2>&1` in
10940 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10942 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10946 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10948 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10952 hardcode_libdir_flag_spec='-R$libdir'
10953 hardcode_shlibpath_var=no
10955 solaris2.[0-5] | solaris2.[0-5].*) ;;
10957 # The compiler driver will combine and reorder linker options,
10958 # but understands '-z linker_flag'. GCC discards it without '$wl',
10959 # but is careful enough not to reorder.
10960 # Supported since Solaris 2.6 (maybe 2.5.1?)
10961 if test yes = "$GCC"; then
10962 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10968 link_all_deplibs=yes
10972 if test sequent = "$host_vendor"; then
10973 # Use $CC to link under sequent, because it throws in some extra .o
10974 # files that make .init and .fini sections work.
10975 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10979 hardcode_libdir_flag_spec='-L$libdir'
10980 hardcode_direct=yes
10981 hardcode_minus_L=yes
10982 hardcode_shlibpath_var=no
10986 case $host_vendor in
10988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_direct=yes # is this really true???
10992 ## LD is ld it makes a PLAMLIB
10993 ## CC just makes a GrossModule.
10994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10995 reload_cmds='$CC -r -o $output$reload_objs'
10999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11003 runpath_var='LD_RUN_PATH'
11004 hardcode_shlibpath_var=no
11008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11009 hardcode_shlibpath_var=no
11010 export_dynamic_flag_spec='-Bexport'
11014 if test -d /usr/nec; then
11015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11016 hardcode_shlibpath_var=no
11017 runpath_var=LD_RUN_PATH
11018 hardcode_runpath_var=yes
11023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11024 no_undefined_flag='$wl-z,text'
11025 archive_cmds_need_lc=no
11026 hardcode_shlibpath_var=no
11027 runpath_var='LD_RUN_PATH'
11029 if test yes = "$GCC"; then
11030 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 sysv5* | sco3.2v5* | sco5v6*)
11039 # Note: We CANNOT use -z defs as we might desire, because we do not
11040 # link with -lc, and that would cause any symbols used from libc to
11041 # always be unresolved, which means just about no library would
11042 # ever link correctly. If we're not using GNU ld we use -z text
11043 # though, which does catch some bad symbols but isn't as heavy-handed
11045 no_undefined_flag='$wl-z,text'
11046 allow_undefined_flag='$wl-z,nodefs'
11047 archive_cmds_need_lc=no
11048 hardcode_shlibpath_var=no
11049 hardcode_libdir_flag_spec='$wl-R,$libdir'
11050 hardcode_libdir_separator=':'
11051 link_all_deplibs=yes
11052 export_dynamic_flag_spec='$wl-Bexport'
11053 runpath_var='LD_RUN_PATH'
11055 if test yes = "$GCC"; then
11056 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11059 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066 hardcode_libdir_flag_spec='-L$libdir'
11067 hardcode_shlibpath_var=no
11075 if test sni = "$host_vendor"; then
11077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11078 export_dynamic_flag_spec='$wl-Blargedynsym'
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11085 $as_echo "$ld_shlibs" >&6; }
11086 test no = "$ld_shlibs" && can_build_shared=no
11088 with_gnu_ld=$with_gnu_ld
11105 # Do we need to explicitly link libc?
11107 case "x$archive_cmds_need_lc" in
11109 # Assume -lc should be added
11110 archive_cmds_need_lc=yes
11112 if test yes,yes = "$GCC,$enable_shared"; then
11113 case $archive_cmds in
11115 # FIXME: we may have to deal with multi-command sequences.
11118 # Test whether the compiler implicitly links with -lc since on some
11119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11120 # to ld, don't add -lc before -lgcc.
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11124 $as_echo_n "(cached) " >&6
11127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11130 (eval $ac_compile) 2>&5
11132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133 test $ac_status = 0; } 2>conftest.err; then
11136 libobjs=conftest.$ac_objext
11138 wl=$lt_prog_compiler_wl
11139 pic_flag=$lt_prog_compiler_pic
11145 lt_save_allow_undefined_flag=$allow_undefined_flag
11146 allow_undefined_flag=
11147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11151 test $ac_status = 0; }
11153 lt_cv_archive_cmds_need_lc=no
11155 lt_cv_archive_cmds_need_lc=yes
11157 allow_undefined_flag=$lt_save_allow_undefined_flag
11159 cat conftest.err 1>&5
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11325 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11327 if test yes = "$GCC"; then
11329 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11330 *) lt_awk_arg='/^libraries:/' ;;
11333 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11334 *) lt_sed_strip_eq='s|=/|/|g' ;;
11336 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11337 case $lt_search_path_spec in
11339 # if the path contains ";" then we assume it to be the separator
11340 # otherwise default to the standard path separator (i.e. ":") - it is
11341 # assumed that no part of a normal pathname contains ";" but that should
11342 # okay in the real world where ";" in dirpaths is itself problematic.
11343 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11349 # Ok, now we have the path, separated by spaces, we can step through it
11350 # and add multilib dir if necessary...
11351 lt_tmp_lt_search_path_spec=
11352 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11353 # ...but if some path component already ends with the multilib dir we assume
11354 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11355 case "$lt_multi_os_dir; $lt_search_path_spec " in
11356 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11360 for lt_sys_path in $lt_search_path_spec; do
11361 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11362 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11363 elif test -n "$lt_multi_os_dir"; then
11364 test -d "$lt_sys_path" && \
11365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11368 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11369 BEGIN {RS = " "; FS = "/|\n";} {
11372 for (lt_i = NF; lt_i > 0; lt_i--) {
11373 if ($lt_i != "" && $lt_i != ".") {
11374 if ($lt_i == "..") {
11377 if (lt_count == 0) {
11378 lt_foo = "/" $lt_i lt_foo;
11385 if (lt_foo != "") { lt_freq[lt_foo]++; }
11386 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11388 # AWK program above erroneously prepends '/' to C:/dos/paths
11391 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11392 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11394 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11396 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11398 library_names_spec=
11399 libname_spec='lib$name'
11403 postuninstall_cmds=
11407 shlibpath_overrides_runpath=unknown
11409 dynamic_linker="$host_os ld.so"
11410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11411 need_lib_prefix=unknown
11412 hardcode_into_libs=no
11414 # when you set need_version to no, make sure it does not cause -set_version
11415 # flags to be left without arguments
11416 need_version=unknown
11422 version_type=linux # correct to gnu/linux during the next big refactor
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11424 shlibpath_var=LIBPATH
11426 # AIX 3 has no versioning support, so we append a major version to the name.
11427 soname_spec='$libname$release$shared_ext$major'
11431 version_type=linux # correct to gnu/linux during the next big refactor
11434 hardcode_into_libs=yes
11435 if test ia64 = "$host_cpu"; then
11436 # AIX 5 supports IA64
11437 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11438 shlibpath_var=LD_LIBRARY_PATH
11440 # With GCC up to 2.95.x, collect2 would create an import file
11441 # for dependence libraries. The import file would start with
11442 # the line '#! .'. This would cause the generated library to
11443 # depend on '.', always an invalid library. This was fixed in
11444 # development snapshots of GCC prior to 3.0.
11446 aix4 | aix4.[01] | aix4.[01].*)
11447 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11449 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11452 can_build_shared=no
11456 # Using Import Files as archive members, it is possible to support
11457 # filename-based versioning of shared library archives on AIX. While
11458 # this would work for both with and without runtime linking, it will
11459 # prevent static linking of such archives. So we do filename-based
11460 # shared library versioning with .so extension only, which is used
11461 # when both runtime linking and shared linking is enabled.
11462 # Unfortunately, runtime linking may impact performance, so we do
11463 # not want this to be the default eventually. Also, we use the
11464 # versioned .so libs for executables only if there is the -brtl
11465 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11466 # To allow for filename-based versioning support, we need to create
11467 # libNAME.so.V as an archive file, containing:
11468 # *) an Import File, referring to the versioned filename of the
11469 # archive as well as the shared archive member, telling the
11470 # bitwidth (32 or 64) of that shared object, and providing the
11471 # list of exported symbols of that shared object, eventually
11472 # decorated with the 'weak' keyword
11473 # *) the shared object with the F_LOADONLY flag set, to really avoid
11474 # it being seen by the linker.
11475 # At run time we better use the real file rather than another symlink,
11476 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11478 case $with_aix_soname,$aix_use_runtimelinking in
11479 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11480 # soname into executable. Probably we can add versioning support to
11481 # collect2, so additional links can be useful in future.
11482 aix,yes) # traditional libtool
11483 dynamic_linker='AIX unversionable lib.so'
11484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11485 # instead of lib<name>.a to let people know that these are not
11486 # typical AIX shared libraries.
11487 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11489 aix,no) # traditional AIX only
11490 dynamic_linker='AIX lib.a(lib.so.V)'
11491 # We preserve .a as extension for shared libraries through AIX4.2
11492 # and later when we are not doing run time linking.
11493 library_names_spec='$libname$release.a $libname.a'
11494 soname_spec='$libname$release$shared_ext$major'
11496 svr4,*) # full svr4 only
11497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11499 # We do not specify a path in Import Files, so LIBPATH fires.
11500 shlibpath_overrides_runpath=yes
11502 *,yes) # both, prefer svr4
11503 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11504 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11505 # unpreferred sharedlib libNAME.a needs extra handling
11506 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"'
11507 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"'
11508 # We do not specify a path in Import Files, so LIBPATH fires.
11509 shlibpath_overrides_runpath=yes
11511 *,no) # both, prefer aix
11512 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11513 library_names_spec='$libname$release.a $libname.a'
11514 soname_spec='$libname$release$shared_ext$major'
11515 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11516 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)'
11517 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"'
11520 shlibpath_var=LIBPATH
11527 # Since July 2007 AmigaOS4 officially supports .so libraries.
11528 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11532 library_names_spec='$libname.ixlibrary $libname.a'
11533 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11534 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'
11540 library_names_spec='$libname$shared_ext'
11541 dynamic_linker="$host_os ld.so"
11542 shlibpath_var=LIBRARY_PATH
11546 version_type=linux # correct to gnu/linux during the next big refactor
11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549 soname_spec='$libname$release$shared_ext$major'
11550 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11553 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11554 # the default ld.so.conf also contains /usr/contrib/lib and
11555 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11556 # libtool to hard-code these into programs
11559 cygwin* | mingw* | pw32* | cegcc*)
11560 version_type=windows
11565 case $GCC,$cc_basename in
11568 library_names_spec='$libname.dll.a'
11569 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11570 postinstall_cmds='base_file=`basename \$file`~
11571 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11572 dldir=$destdir/`dirname \$dlpath`~
11573 test -d \$dldir || mkdir -p \$dldir~
11574 $install_prog $dir/$dlname \$dldir/$dlname~
11575 chmod a+x \$dldir/$dlname~
11576 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11577 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11580 dlpath=$dir/\$dldll~
11582 shlibpath_overrides_runpath=yes
11586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11587 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11592 # MinGW DLLs use traditional 'lib' prefix
11593 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11596 # pw32 DLLs use 'pw' prefix rather than 'lib'
11597 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11600 dynamic_linker='Win32 ld.exe'
11605 libname_spec='$name'
11606 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11607 library_names_spec='$libname.dll.lib'
11611 sys_lib_search_path_spec=
11614 for lt_path in $LIB
11617 # Let DOS variable expansion print the short 8.3 style file name.
11618 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11619 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11622 # Convert to MSYS style.
11623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11626 # Convert to unix form, then to dos form, then back to unix form
11627 # but this time dos style (no spaces!) so that the unix form looks
11628 # like /cygdrive/c/PROGRA~1:/cygdr...
11629 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11630 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11631 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11634 sys_lib_search_path_spec=$LIB
11635 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11636 # It is most probably a Windows format PATH.
11637 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11639 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11641 # FIXME: find the short name or the path components, as spaces are
11642 # common. (e.g. "Program Files" -> "PROGRA~1")
11646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11647 postinstall_cmds='base_file=`basename \$file`~
11648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11649 dldir=$destdir/`dirname \$dlpath`~
11650 test -d \$dldir || mkdir -p \$dldir~
11651 $install_prog $dir/$dlname \$dldir/$dlname'
11652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11653 dlpath=$dir/\$dldll~
11655 shlibpath_overrides_runpath=yes
11656 dynamic_linker='Win32 link.exe'
11660 # Assume MSVC wrapper
11661 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11662 dynamic_linker='Win32 ld.exe'
11665 # FIXME: first we should search . and the directory the executable is in
11669 darwin* | rhapsody*)
11670 dynamic_linker="$host_os dyld"
11671 version_type=darwin
11674 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11675 soname_spec='$libname$release$major$shared_ext'
11676 shlibpath_overrides_runpath=yes
11677 shlibpath_var=DYLD_LIBRARY_PATH
11678 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11680 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11681 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11685 version_type=linux # correct to gnu/linux during the next big refactor
11688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11689 soname_spec='$libname$release$shared_ext$major'
11690 shlibpath_var=LD_LIBRARY_PATH
11693 freebsd* | dragonfly*)
11694 # DragonFly does not have aout. When/if they implement a new
11695 # versioning mechanism, adjust this.
11696 if test -x /usr/bin/objformat; then
11697 objformat=`/usr/bin/objformat`
11700 freebsd[23].*) objformat=aout ;;
11701 *) objformat=elf ;;
11704 version_type=freebsd-$objformat
11705 case $version_type in
11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11708 soname_spec='$libname$release$shared_ext$major'
11713 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11717 shlibpath_var=LD_LIBRARY_PATH
11720 shlibpath_overrides_runpath=yes
11722 freebsd3.[01]* | freebsdelf3.[01]*)
11723 shlibpath_overrides_runpath=yes
11724 hardcode_into_libs=yes
11726 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11727 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11728 shlibpath_overrides_runpath=no
11729 hardcode_into_libs=yes
11731 *) # from 4.6 on, and DragonFly
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11739 version_type=linux # correct to gnu/linux during the next big refactor
11742 dynamic_linker="$host_os runtime_loader"
11743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11744 soname_spec='$libname$release$shared_ext$major'
11745 shlibpath_var=LIBRARY_PATH
11746 shlibpath_overrides_runpath=no
11747 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11748 hardcode_into_libs=yes
11751 hpux9* | hpux10* | hpux11*)
11752 # Give a soname corresponding to the major version so that dld.sl refuses to
11753 # link against other versions.
11760 hardcode_into_libs=yes
11761 dynamic_linker="$host_os dld.so"
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11765 soname_spec='$libname$release$shared_ext$major'
11766 if test 32 = "$HPUX_IA64_MODE"; then
11767 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11768 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11771 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11776 hardcode_into_libs=yes
11777 dynamic_linker="$host_os dld.sl"
11778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11787 dynamic_linker="$host_os dld.sl"
11788 shlibpath_var=SHLIB_PATH
11789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11791 soname_spec='$libname$release$shared_ext$major'
11794 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11795 postinstall_cmds='chmod 555 $lib'
11796 # or fails outright, so override atomically:
11797 install_override_mode=555
11801 version_type=linux # correct to gnu/linux during the next big refactor
11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11805 soname_spec='$libname$release$shared_ext$major'
11806 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=no
11809 hardcode_into_libs=yes
11812 irix5* | irix6* | nonstopux*)
11814 nonstopux*) version_type=nonstopux ;;
11816 if test yes = "$lt_cv_prog_gnu_ld"; then
11817 version_type=linux # correct to gnu/linux during the next big refactor
11824 soname_spec='$libname$release$shared_ext$major'
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11827 irix5* | nonstopux*)
11828 libsuff= shlibsuff=
11831 case $LD in # libtool.m4 will add one of these switches to LD
11832 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11833 libsuff= shlibsuff= libmagic=32-bit;;
11834 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11835 libsuff=32 shlibsuff=N32 libmagic=N32;;
11836 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11837 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11838 *) libsuff= shlibsuff= libmagic=never-match;;
11842 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11843 shlibpath_overrides_runpath=no
11844 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11845 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11846 hardcode_into_libs=yes
11849 # No shared lib support for Linux oldld, aout, or coff.
11850 linux*oldld* | linux*aout* | linux*coff*)
11855 version_type=none # Android doesn't support versioned libraries.
11858 library_names_spec='$libname$release$shared_ext'
11859 soname_spec='$libname$release$shared_ext'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11864 # This implies no fast_install, which is unacceptable.
11865 # Some rework will be needed to allow for fast_install
11866 # before this can be enabled.
11867 hardcode_into_libs=yes
11869 dynamic_linker='Android linker'
11870 # Don't embed -rpath directories since the linker doesn't support them.
11871 hardcode_libdir_flag_spec='-L$libdir'
11874 # This must be glibc/ELF.
11875 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11876 version_type=linux # correct to gnu/linux during the next big refactor
11879 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11880 soname_spec='$libname$release$shared_ext$major'
11881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=no
11885 # Some binutils ld are patched to set DT_RUNPATH
11886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11887 $as_echo_n "(cached) " >&6
11889 lt_cv_shlibpath_overrides_runpath=no
11890 save_LDFLAGS=$LDFLAGS
11891 save_libdir=$libdir
11892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11907 lt_cv_shlibpath_overrides_runpath=yes
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LDFLAGS=$save_LDFLAGS
11913 libdir=$save_libdir
11917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11919 # This implies no fast_install, which is unacceptable.
11920 # Some rework will be needed to allow for fast_install
11921 # before this can be enabled.
11922 hardcode_into_libs=yes
11924 # Ideally, we could use ldconfig to report *all* directores which are
11925 # searched for libraries, however this is still not possible. Aside from not
11926 # being certain /sbin/ldconfig is available, command
11927 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11928 # even though it is searched at run-time. Try to do the best guess by
11929 # appending ld.so.conf contents (and includes) to the search path.
11930 if test -f /etc/ld.so.conf; then
11931 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' ' '`
11932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11935 # We used to test for /lib/ld.so.1 and disable shared libraries on
11936 # powerpc, because MkLinux only supported shared libraries with the
11937 # GNU dynamic linker. Since this was broken with cross compilers,
11938 # most powerpc-linux boxes support dynamic linking these days and
11939 # people can always --disable-shared, the test was removed, and we
11940 # assume the GNU/Linux dynamic linker is in use.
11941 dynamic_linker='GNU/Linux ld.so'
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11949 soname_spec='${libname}${release}${shared_ext}$major'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 shlibpath_overrides_runpath=no
11952 hardcode_into_libs=yes
11953 dynamic_linker='NetBSD ld.elf_so'
11960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11963 dynamic_linker='NetBSD (a.out) ld.so'
11965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11966 soname_spec='$libname$release$shared_ext$major'
11967 dynamic_linker='NetBSD ld.elf_so'
11969 shlibpath_var=LD_LIBRARY_PATH
11970 shlibpath_overrides_runpath=yes
11971 hardcode_into_libs=yes
11975 version_type=linux # correct to gnu/linux during the next big refactor
11976 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11977 shlibpath_var=LD_LIBRARY_PATH
11978 shlibpath_overrides_runpath=yes
11985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11986 soname_spec='$libname$release$shared_ext$major'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 shlibpath_overrides_runpath=no
11989 hardcode_into_libs=yes
11990 dynamic_linker='ldqnx.so'
11993 openbsd* | bitrig*)
11995 sys_lib_dlsearch_path_spec=/usr/lib
11997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12002 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12004 shlibpath_var=LD_LIBRARY_PATH
12005 shlibpath_overrides_runpath=yes
12009 libname_spec='$name'
12010 version_type=windows
12014 # OS/2 can only load a DLL with a base name of 8 characters or less.
12015 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12016 v=$($ECHO $release$versuffix | tr -d .-);
12017 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12018 $ECHO $n$v`$shared_ext'
12019 library_names_spec='${libname}_dll.$libext'
12020 dynamic_linker='OS/2 ld.exe'
12021 shlibpath_var=BEGINLIBPATH
12022 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12024 postinstall_cmds='base_file=`basename \$file`~
12025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12026 dldir=$destdir/`dirname \$dlpath`~
12027 test -d \$dldir || mkdir -p \$dldir~
12028 $install_prog $dir/$dlname \$dldir/$dlname~
12029 chmod a+x \$dldir/$dlname~
12030 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12031 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12033 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12034 dlpath=$dir/\$dldll~
12038 osf3* | osf4* | osf5*)
12042 soname_spec='$libname$release$shared_ext$major'
12043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12044 shlibpath_var=LD_LIBRARY_PATH
12045 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12054 version_type=linux # correct to gnu/linux during the next big refactor
12057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12058 soname_spec='$libname$release$shared_ext$major'
12059 shlibpath_var=LD_LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12061 hardcode_into_libs=yes
12062 # ldd complains unless libraries are executable
12063 postinstall_cmds='chmod +x $lib'
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12069 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=yes
12072 if test yes = "$with_gnu_ld"; then
12079 version_type=linux # correct to gnu/linux during the next big refactor
12080 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12081 soname_spec='$libname$release$shared_ext$major'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 case $host_vendor in
12085 shlibpath_overrides_runpath=no
12087 runpath_var=LD_RUN_PATH
12095 shlibpath_overrides_runpath=no
12096 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12102 if test -d /usr/nec; then
12103 version_type=linux # correct to gnu/linux during the next big refactor
12104 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12105 soname_spec='$libname$shared_ext.$major'
12106 shlibpath_var=LD_LIBRARY_PATH
12110 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12115 soname_spec='$libname$release$shared_ext$major'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 shlibpath_overrides_runpath=yes
12118 hardcode_into_libs=yes
12119 if test yes = "$with_gnu_ld"; then
12120 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12122 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12125 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12129 sys_lib_dlsearch_path_spec='/usr/lib'
12133 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12134 version_type=linux # correct to gnu/linux during the next big refactor
12137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12138 shlibpath_var=LD_LIBRARY_PATH
12139 shlibpath_overrides_runpath=no
12140 hardcode_into_libs=yes
12144 version_type=linux # correct to gnu/linux during the next big refactor
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 soname_spec='$libname$release$shared_ext$major'
12147 shlibpath_var=LD_LIBRARY_PATH
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12155 $as_echo "$dynamic_linker" >&6; }
12156 test no = "$dynamic_linker" && can_build_shared=no
12158 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12159 if test yes = "$GCC"; then
12160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12163 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12164 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12167 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12168 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12171 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12172 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12174 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12175 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12177 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12178 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12277 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12279 if test -n "$hardcode_libdir_flag_spec" ||
12280 test -n "$runpath_var" ||
12281 test yes = "$hardcode_automatic"; then
12283 # We can hardcode non-existent directories.
12284 if test no != "$hardcode_direct" &&
12285 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12286 # have to relink, otherwise we might link with an installed library
12287 # when we should be linking with a yet-to-be-installed one
12288 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12289 test no != "$hardcode_minus_L"; then
12290 # Linking always hardcodes the temporary library directory.
12291 hardcode_action=relink
12293 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12294 hardcode_action=immediate
12297 # We cannot hardcode anything, or else we can only hardcode existing
12299 hardcode_action=unsupported
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12302 $as_echo "$hardcode_action" >&6; }
12304 if test relink = "$hardcode_action" ||
12305 test yes = "$inherit_rpath"; then
12306 # Fast installation is not supported
12307 enable_fast_install=no
12308 elif test yes = "$shlibpath_overrides_runpath" ||
12309 test no = "$enable_shared"; then
12310 # Fast installation is not necessary
12311 enable_fast_install=needless
12319 if test yes != "$enable_dlopen"; then
12320 enable_dlopen=unknown
12321 enable_dlopen_self=unknown
12322 enable_dlopen_self_static=unknown
12329 lt_cv_dlopen=load_add_on
12331 lt_cv_dlopen_self=yes
12334 mingw* | pw32* | cegcc*)
12335 lt_cv_dlopen=LoadLibrary
12340 lt_cv_dlopen=dlopen
12345 # if libdl is installed we need to link against it
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12347 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12348 if ${ac_cv_lib_dl_dlopen+:} false; then :
12349 $as_echo_n "(cached) " >&6
12351 ac_check_lib_save_LIBS=$LIBS
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12356 /* Override any GCC internal prototype to avoid an error.
12357 Use char because int might match the return type of a GCC
12358 builtin and then its argument prototype would still apply. */
12371 if ac_fn_c_try_link "$LINENO"; then :
12372 ac_cv_lib_dl_dlopen=yes
12374 ac_cv_lib_dl_dlopen=no
12376 rm -f core conftest.err conftest.$ac_objext \
12377 conftest$ac_exeext conftest.$ac_ext
12378 LIBS=$ac_check_lib_save_LIBS
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12381 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12382 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12383 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12388 lt_cv_dlopen_self=yes
12395 # Don't try to run any link tests for TPF. We know it's impossible
12396 # because TPF is a cross-compiler, and we know how we open DSOs.
12397 lt_cv_dlopen=dlopen
12399 lt_cv_dlopen_self=no
12403 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12404 if test "x$ac_cv_func_shl_load" = xyes; then :
12405 lt_cv_dlopen=shl_load
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12408 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12409 if ${ac_cv_lib_dld_shl_load+:} false; then :
12410 $as_echo_n "(cached) " >&6
12412 ac_check_lib_save_LIBS=$LIBS
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12417 /* Override any GCC internal prototype to avoid an error.
12418 Use char because int might match the return type of a GCC
12419 builtin and then its argument prototype would still apply. */
12427 return shl_load ();
12432 if ac_fn_c_try_link "$LINENO"; then :
12433 ac_cv_lib_dld_shl_load=yes
12435 ac_cv_lib_dld_shl_load=no
12437 rm -f core conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12442 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12443 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12444 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12446 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12447 if test "x$ac_cv_func_dlopen" = xyes; then :
12448 lt_cv_dlopen=dlopen
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12451 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12452 if ${ac_cv_lib_dl_dlopen+:} false; then :
12453 $as_echo_n "(cached) " >&6
12455 ac_check_lib_save_LIBS=$LIBS
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12460 /* Override any GCC internal prototype to avoid an error.
12461 Use char because int might match the return type of a GCC
12462 builtin and then its argument prototype would still apply. */
12475 if ac_fn_c_try_link "$LINENO"; then :
12476 ac_cv_lib_dl_dlopen=yes
12478 ac_cv_lib_dl_dlopen=no
12480 rm -f core conftest.err conftest.$ac_objext \
12481 conftest$ac_exeext conftest.$ac_ext
12482 LIBS=$ac_check_lib_save_LIBS
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12486 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12487 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12490 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12491 if ${ac_cv_lib_svld_dlopen+:} false; then :
12492 $as_echo_n "(cached) " >&6
12494 ac_check_lib_save_LIBS=$LIBS
12495 LIBS="-lsvld $LIBS"
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 ac_cv_lib_svld_dlopen=yes
12517 ac_cv_lib_svld_dlopen=no
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 LIBS=$ac_check_lib_save_LIBS
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12524 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12525 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12526 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12529 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12530 if ${ac_cv_lib_dld_dld_link+:} false; then :
12531 $as_echo_n "(cached) " >&6
12533 ac_check_lib_save_LIBS=$LIBS
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12538 /* Override any GCC internal prototype to avoid an error.
12539 Use char because int might match the return type of a GCC
12540 builtin and then its argument prototype would still apply. */
12548 return dld_link ();
12553 if ac_fn_c_try_link "$LINENO"; then :
12554 ac_cv_lib_dld_dld_link=yes
12556 ac_cv_lib_dld_dld_link=no
12558 rm -f core conftest.err conftest.$ac_objext \
12559 conftest$ac_exeext conftest.$ac_ext
12560 LIBS=$ac_check_lib_save_LIBS
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12563 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12564 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12565 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12586 if test no = "$lt_cv_dlopen"; then
12592 case $lt_cv_dlopen in
12594 save_CPPFLAGS=$CPPFLAGS
12595 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12597 save_LDFLAGS=$LDFLAGS
12598 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12601 LIBS="$lt_cv_dlopen_libs $LIBS"
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12604 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12605 if ${lt_cv_dlopen_self+:} false; then :
12606 $as_echo_n "(cached) " >&6
12608 if test yes = "$cross_compiling"; then :
12609 lt_cv_dlopen_self=cross
12611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12612 lt_status=$lt_dlunknown
12613 cat > conftest.$ac_ext <<_LT_EOF
12614 #line $LINENO "configure"
12615 #include "confdefs.h"
12624 # define LT_DLGLOBAL RTLD_GLOBAL
12627 # define LT_DLGLOBAL DL_GLOBAL
12629 # define LT_DLGLOBAL 0
12633 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12634 find out it does not work in some platform. */
12635 #ifndef LT_DLLAZY_OR_NOW
12637 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12640 # define LT_DLLAZY_OR_NOW DL_LAZY
12643 # define LT_DLLAZY_OR_NOW RTLD_NOW
12646 # define LT_DLLAZY_OR_NOW DL_NOW
12648 # define LT_DLLAZY_OR_NOW 0
12655 /* When -fvisibility=hidden is used, assume the code has been annotated
12656 correspondingly for the symbols needed. */
12657 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12658 int fnord () __attribute__((visibility("default")));
12661 int fnord () { return 42; }
12664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12665 int status = $lt_dlunknown;
12669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12672 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12673 else puts (dlerror ());
12675 /* dlclose (self); */
12683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12684 (eval $ac_link) 2>&5
12686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12687 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12688 (./conftest; exit; ) >&5 2>/dev/null
12690 case x$lt_status in
12691 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12692 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12693 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12696 # compilation failed
12697 lt_cv_dlopen_self=no
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12705 $as_echo "$lt_cv_dlopen_self" >&6; }
12707 if test yes = "$lt_cv_dlopen_self"; then
12708 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12710 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12711 if ${lt_cv_dlopen_self_static+:} false; then :
12712 $as_echo_n "(cached) " >&6
12714 if test yes = "$cross_compiling"; then :
12715 lt_cv_dlopen_self_static=cross
12717 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12718 lt_status=$lt_dlunknown
12719 cat > conftest.$ac_ext <<_LT_EOF
12720 #line $LINENO "configure"
12721 #include "confdefs.h"
12730 # define LT_DLGLOBAL RTLD_GLOBAL
12733 # define LT_DLGLOBAL DL_GLOBAL
12735 # define LT_DLGLOBAL 0
12739 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12740 find out it does not work in some platform. */
12741 #ifndef LT_DLLAZY_OR_NOW
12743 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12746 # define LT_DLLAZY_OR_NOW DL_LAZY
12749 # define LT_DLLAZY_OR_NOW RTLD_NOW
12752 # define LT_DLLAZY_OR_NOW DL_NOW
12754 # define LT_DLLAZY_OR_NOW 0
12761 /* When -fvisibility=hidden is used, assume the code has been annotated
12762 correspondingly for the symbols needed. */
12763 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12764 int fnord () __attribute__((visibility("default")));
12767 int fnord () { return 42; }
12770 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12771 int status = $lt_dlunknown;
12775 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12778 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12779 else puts (dlerror ());
12781 /* dlclose (self); */
12789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12790 (eval $ac_link) 2>&5
12792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12793 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12794 (./conftest; exit; ) >&5 2>/dev/null
12796 case x$lt_status in
12797 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12798 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12799 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12802 # compilation failed
12803 lt_cv_dlopen_self_static=no
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12811 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12814 CPPFLAGS=$save_CPPFLAGS
12815 LDFLAGS=$save_LDFLAGS
12820 case $lt_cv_dlopen_self in
12821 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12822 *) enable_dlopen_self=unknown ;;
12825 case $lt_cv_dlopen_self_static in
12826 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12827 *) enable_dlopen_self_static=unknown ;;
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12850 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12851 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12852 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12853 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12857 # FIXME - insert some real tests, host_os isn't really good enough
12860 if test -n "$STRIP"; then
12861 striplib="$STRIP -x"
12862 old_striplib="$STRIP -S"
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12864 $as_echo "yes" >&6; }
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12867 $as_echo "no" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12888 # Report what library types will actually be built
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12890 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12892 $as_echo "$can_build_shared" >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12895 $as_echo_n "checking whether to build shared libraries... " >&6; }
12896 test no = "$can_build_shared" && enable_shared=no
12898 # On AIX, shared libraries and static libraries use the same namespace, and
12899 # are all built from PIC.
12902 test yes = "$enable_shared" && enable_static=no
12903 if test -n "$RANLIB"; then
12904 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12905 postinstall_cmds='$RANLIB $lib'
12910 if test ia64 != "$host_cpu"; then
12911 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12912 yes,aix,yes) ;; # shared object as lib.so file only
12913 yes,svr4,*) ;; # shared object as lib.so archive member only
12914 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12920 $as_echo "$enable_shared" >&6; }
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12923 $as_echo_n "checking whether to build static libraries... " >&6; }
12924 # Make sure either enable_shared or enable_static is yes.
12925 test yes = "$enable_shared" || enable_static=yes
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12927 $as_echo "$enable_static" >&6; }
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12955 ac_config_commands="$ac_config_commands libtool"
12960 # Only expand once:
12965 # Check for library functions that SQLite can optionally use.
12966 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12970 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12971 cat >>confdefs.h <<_ACEOF
12972 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12978 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12979 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12985 cat >>confdefs.h <<_ACEOF
12986 #define HAVE_DECL_STRERROR_R $ac_have_decl
12989 for ac_func in strerror_r
12991 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12992 if test "x$ac_cv_func_strerror_r" = xyes; then :
12993 cat >>confdefs.h <<_ACEOF
12994 #define HAVE_STRERROR_R 1
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13001 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13002 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13003 $as_echo_n "(cached) " >&6
13006 ac_cv_func_strerror_r_char_p=no
13007 if test $ac_cv_have_decl_strerror_r = yes; then
13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009 /* end confdefs.h. */
13010 $ac_includes_default
13016 char x = *strerror_r (0, buf, sizeof buf);
13017 char *p = strerror_r (0, buf, sizeof buf);
13024 if ac_fn_c_try_compile "$LINENO"; then :
13025 ac_cv_func_strerror_r_char_p=yes
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13029 # strerror_r is not declared. Choose between
13030 # systems that have relatively inaccessible declarations for the
13031 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13032 # former has a strerror_r that returns char*, while the latter
13033 # has a strerror_r that returns `int'.
13034 # This test should segfault on the DEC system.
13035 if test "$cross_compiling" = yes; then :
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040 $ac_includes_default
13041 extern char *strerror_r ();
13046 char x = *strerror_r (0, buf, sizeof buf);
13047 return ! isalpha (x);
13052 if ac_fn_c_try_run "$LINENO"; then :
13053 ac_cv_func_strerror_r_char_p=yes
13055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13056 conftest.$ac_objext conftest.beam conftest.$ac_ext
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13063 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13064 if test $ac_cv_func_strerror_r_char_p = yes; then
13066 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13071 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13076 #-------------------------------------------------------------------------
13077 # Two options to enable readline compatible libraries:
13079 # --enable-editline
13080 # --enable-readline
13082 # Both are enabled by default. If, after command line processing both are
13083 # still enabled, the script searches for editline first and automatically
13084 # disables readline if it is found. So, to use readline explicitly, the
13085 # user must pass "--disable-editline". To disable command line editing
13086 # support altogether, "--disable-editline --disable-readline".
13088 # When searching for either library, check for headers before libraries
13089 # as some distros supply packages that contain libraries but not header
13090 # files, which come as a separate development package.
13092 # Check whether --enable-editline was given.
13093 if test "${enable_editline+set}" = set; then :
13094 enableval=$enable_editline;
13097 # Check whether --enable-readline was given.
13098 if test "${enable_readline+set}" = set; then :
13099 enableval=$enable_readline;
13103 if test x"$enable_editline" != xno ; then :
13105 for ac_header in editline/readline.h
13107 ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13108 if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13109 cat >>confdefs.h <<_ACEOF
13110 #define HAVE_EDITLINE_READLINE_H 1
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13116 $as_echo_n "checking for library containing readline... " >&6; }
13117 if ${ac_cv_search_readline+:} false; then :
13118 $as_echo_n "(cached) " >&6
13120 ac_func_search_save_LIBS=$LIBS
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13134 return readline ();
13139 for ac_lib in '' edit; do
13140 if test -z "$ac_lib"; then
13141 ac_res="none required"
13144 LIBS="-l$ac_lib -ltinfo $ac_func_search_save_LIBS"
13146 if ac_fn_c_try_link "$LINENO"; then :
13147 ac_cv_search_readline=$ac_res
13149 rm -f core conftest.err conftest.$ac_objext \
13151 if ${ac_cv_search_readline+:} false; then :
13155 if ${ac_cv_search_readline+:} false; then :
13158 ac_cv_search_readline=no
13160 rm conftest.$ac_ext
13161 LIBS=$ac_func_search_save_LIBS
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13164 $as_echo "$ac_cv_search_readline" >&6; }
13165 ac_res=$ac_cv_search_readline
13166 if test "$ac_res" != no; then :
13167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13170 $as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13172 READLINE_LIBS="$LIBS -ltinfo"
13177 { ac_cv_search_readline=; unset ac_cv_search_readline;}
13187 if test x"$enable_readline" != xno ; then :
13189 for ac_header in readline/readline.h
13191 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13192 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13193 cat >>confdefs.h <<_ACEOF
13194 #define HAVE_READLINE_READLINE_H 1
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13200 $as_echo_n "checking for library containing tgetent... " >&6; }
13201 if ${ac_cv_search_tgetent+:} false; then :
13202 $as_echo_n "(cached) " >&6
13204 ac_func_search_save_LIBS=$LIBS
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13223 for ac_lib in '' termcap curses ncurses ncursesw; do
13224 if test -z "$ac_lib"; then
13225 ac_res="none required"
13228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13230 if ac_fn_c_try_link "$LINENO"; then :
13231 ac_cv_search_tgetent=$ac_res
13233 rm -f core conftest.err conftest.$ac_objext \
13235 if ${ac_cv_search_tgetent+:} false; then :
13239 if ${ac_cv_search_tgetent+:} false; then :
13242 ac_cv_search_tgetent=no
13244 rm conftest.$ac_ext
13245 LIBS=$ac_func_search_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13248 $as_echo "$ac_cv_search_tgetent" >&6; }
13249 ac_res=$ac_cv_search_tgetent
13250 if test "$ac_res" != no; then :
13251 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13256 $as_echo_n "checking for library containing readline... " >&6; }
13257 if ${ac_cv_search_readline+:} false; then :
13258 $as_echo_n "(cached) " >&6
13260 ac_func_search_save_LIBS=$LIBS
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13274 return readline ();
13279 for ac_lib in '' readline edit; do
13280 if test -z "$ac_lib"; then
13281 ac_res="none required"
13284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13286 if ac_fn_c_try_link "$LINENO"; then :
13287 ac_cv_search_readline=$ac_res
13289 rm -f core conftest.err conftest.$ac_objext \
13291 if ${ac_cv_search_readline+:} false; then :
13295 if ${ac_cv_search_readline+:} false; then :
13298 ac_cv_search_readline=no
13300 rm conftest.$ac_ext
13301 LIBS=$ac_func_search_save_LIBS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13304 $as_echo "$ac_cv_search_readline" >&6; }
13305 ac_res=$ac_cv_search_readline
13306 if test "$ac_res" != no; then :
13307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13310 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
13312 READLINE_LIBS=$LIBS
13326 #-----------------------------------------------------------------------
13328 #-----------------------------------------------------------------------
13329 # --enable-threadsafe
13331 # Check whether --enable-threadsafe was given.
13332 if test "${enable_threadsafe+set}" = set; then :
13333 enableval=$enable_threadsafe;
13335 enable_threadsafe=yes
13338 if test x"$enable_threadsafe" != "xno"; then
13339 BUILD_CFLAGS="$BUILD_CFLAGS -D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13341 $as_echo_n "checking for library containing pthread_create... " >&6; }
13342 if ${ac_cv_search_pthread_create+:} false; then :
13343 $as_echo_n "(cached) " >&6
13345 ac_func_search_save_LIBS=$LIBS
13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h. */
13349 /* Override any GCC internal prototype to avoid an error.
13350 Use char because int might match the return type of a GCC
13351 builtin and then its argument prototype would still apply. */
13355 char pthread_create ();
13359 return pthread_create ();
13364 for ac_lib in '' pthread; do
13365 if test -z "$ac_lib"; then
13366 ac_res="none required"
13369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13371 if ac_fn_c_try_link "$LINENO"; then :
13372 ac_cv_search_pthread_create=$ac_res
13374 rm -f core conftest.err conftest.$ac_objext \
13376 if ${ac_cv_search_pthread_create+:} false; then :
13380 if ${ac_cv_search_pthread_create+:} false; then :
13383 ac_cv_search_pthread_create=no
13385 rm conftest.$ac_ext
13386 LIBS=$ac_func_search_save_LIBS
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13389 $as_echo "$ac_cv_search_pthread_create" >&6; }
13390 ac_res=$ac_cv_search_pthread_create
13391 if test "$ac_res" != no; then :
13392 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13397 $as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13398 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13399 $as_echo_n "(cached) " >&6
13401 ac_func_search_save_LIBS=$LIBS
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13405 /* Override any GCC internal prototype to avoid an error.
13406 Use char because int might match the return type of a GCC
13407 builtin and then its argument prototype would still apply. */
13411 char pthread_mutexattr_init ();
13415 return pthread_mutexattr_init ();
13420 for ac_lib in '' pthread; do
13421 if test -z "$ac_lib"; then
13422 ac_res="none required"
13425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13427 if ac_fn_c_try_link "$LINENO"; then :
13428 ac_cv_search_pthread_mutexattr_init=$ac_res
13430 rm -f core conftest.err conftest.$ac_objext \
13432 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13436 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13439 ac_cv_search_pthread_mutexattr_init=no
13441 rm conftest.$ac_ext
13442 LIBS=$ac_func_search_save_LIBS
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13445 $as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13446 ac_res=$ac_cv_search_pthread_mutexattr_init
13447 if test "$ac_res" != no; then :
13448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13453 #-----------------------------------------------------------------------
13455 #-----------------------------------------------------------------------
13456 # --enable-dynamic-extensions
13458 # Check whether --enable-dynamic-extensions was given.
13459 if test "${enable_dynamic_extensions+set}" = set; then :
13460 enableval=$enable_dynamic_extensions;
13462 enable_dynamic_extensions=yes
13465 if test x"$enable_dynamic_extensions" != "xno"; then
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13467 $as_echo_n "checking for library containing dlopen... " >&6; }
13468 if ${ac_cv_search_dlopen+:} false; then :
13469 $as_echo_n "(cached) " >&6
13471 ac_func_search_save_LIBS=$LIBS
13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13473 /* end confdefs.h. */
13475 /* Override any GCC internal prototype to avoid an error.
13476 Use char because int might match the return type of a GCC
13477 builtin and then its argument prototype would still apply. */
13490 for ac_lib in '' dl; do
13491 if test -z "$ac_lib"; then
13492 ac_res="none required"
13495 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13497 if ac_fn_c_try_link "$LINENO"; then :
13498 ac_cv_search_dlopen=$ac_res
13500 rm -f core conftest.err conftest.$ac_objext \
13502 if ${ac_cv_search_dlopen+:} false; then :
13506 if ${ac_cv_search_dlopen+:} false; then :
13509 ac_cv_search_dlopen=no
13511 rm conftest.$ac_ext
13512 LIBS=$ac_func_search_save_LIBS
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13515 $as_echo "$ac_cv_search_dlopen" >&6; }
13516 ac_res=$ac_cv_search_dlopen
13517 if test "$ac_res" != no; then :
13518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13523 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_OMIT_LOAD_EXTENSION=1"
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13526 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13528 $as_echo "$enable_dynamic_extensions" >&6; }
13529 #-----------------------------------------------------------------------
13531 #-----------------------------------------------------------------------
13534 # Check whether --enable-fts4 was given.
13535 if test "${enable_fts4+set}" = set; then :
13536 enableval=$enable_fts4;
13541 if test x"$enable_fts4" = "xyes"; then
13542 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS4"
13544 #-----------------------------------------------------------------------
13546 #-----------------------------------------------------------------------
13549 # Check whether --enable-fts3 was given.
13550 if test "${enable_fts3+set}" = set; then :
13551 enableval=$enable_fts3;
13554 if test x"$enable_fts3" = "xyes" -a x"$enable_fts4" = "xno"; then
13555 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS3"
13557 #-----------------------------------------------------------------------
13559 #-----------------------------------------------------------------------
13562 # Check whether --enable-fts5 was given.
13563 if test "${enable_fts5+set}" = set; then :
13564 enableval=$enable_fts5;
13569 if test x"$enable_fts5" = "xyes"; then
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13571 $as_echo_n "checking for library containing log... " >&6; }
13572 if ${ac_cv_search_log+:} false; then :
13573 $as_echo_n "(cached) " >&6
13575 ac_func_search_save_LIBS=$LIBS
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13579 /* Override any GCC internal prototype to avoid an error.
13580 Use char because int might match the return type of a GCC
13581 builtin and then its argument prototype would still apply. */
13594 for ac_lib in '' m; do
13595 if test -z "$ac_lib"; then
13596 ac_res="none required"
13599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13601 if ac_fn_c_try_link "$LINENO"; then :
13602 ac_cv_search_log=$ac_res
13604 rm -f core conftest.err conftest.$ac_objext \
13606 if ${ac_cv_search_log+:} false; then :
13610 if ${ac_cv_search_log+:} false; then :
13613 ac_cv_search_log=no
13615 rm conftest.$ac_ext
13616 LIBS=$ac_func_search_save_LIBS
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13619 $as_echo "$ac_cv_search_log" >&6; }
13620 ac_res=$ac_cv_search_log
13621 if test "$ac_res" != no; then :
13622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13626 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_FTS5"
13628 #-----------------------------------------------------------------------
13630 #-----------------------------------------------------------------------
13633 # Check whether --enable-json1 was given.
13634 if test "${enable_json1+set}" = set; then :
13635 enableval=$enable_json1;
13640 if test x"$enable_json1" = "xyes"; then
13641 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_JSON1"
13643 #-----------------------------------------------------------------------
13645 #-----------------------------------------------------------------------
13648 # Check whether --enable-rtree was given.
13649 if test "${enable_rtree+set}" = set; then :
13650 enableval=$enable_rtree;
13655 if test x"$enable_rtree" = "xyes"; then
13656 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_RTREE"
13658 #-----------------------------------------------------------------------
13660 #-----------------------------------------------------------------------
13663 # Check whether --enable-session was given.
13664 if test "${enable_session+set}" = set; then :
13665 enableval=$enable_session;
13668 if test x"$enable_session" = "xyes"; then
13669 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13671 #-----------------------------------------------------------------------
13673 #-----------------------------------------------------------------------
13676 # Check whether --enable-debug was given.
13677 if test "${enable_debug+set}" = set; then :
13678 enableval=$enable_debug;
13681 if test x"$enable_debug" = "xyes"; then
13682 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_DEBUG -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE"
13685 #-----------------------------------------------------------------------
13687 #-----------------------------------------------------------------------
13688 # --enable-static-shell
13690 # Check whether --enable-static-shell was given.
13691 if test "${enable_static_shell+set}" = set; then :
13692 enableval=$enable_static_shell;
13694 enable_static_shell=yes
13697 if test x"$enable_static_shell" = "xyes"; then
13698 EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13700 EXTRA_SHELL_OBJ=libsqlite3.la
13703 #-----------------------------------------------------------------------
13705 for ac_func in posix_fallocate
13707 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13708 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_POSIX_FALLOCATE 1
13716 for ac_header in zlib.h
13718 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13719 if test "x$ac_cv_header_zlib_h" = xyes; then :
13720 cat >>confdefs.h <<_ACEOF
13721 #define HAVE_ZLIB_H 1
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13725 $as_echo_n "checking for library containing deflate... " >&6; }
13726 if ${ac_cv_search_deflate+:} false; then :
13727 $as_echo_n "(cached) " >&6
13729 ac_func_search_save_LIBS=$LIBS
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13733 /* Override any GCC internal prototype to avoid an error.
13734 Use char because int might match the return type of a GCC
13735 builtin and then its argument prototype would still apply. */
13748 for ac_lib in '' z; do
13749 if test -z "$ac_lib"; then
13750 ac_res="none required"
13753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13755 if ac_fn_c_try_link "$LINENO"; then :
13756 ac_cv_search_deflate=$ac_res
13758 rm -f core conftest.err conftest.$ac_objext \
13760 if ${ac_cv_search_deflate+:} false; then :
13764 if ${ac_cv_search_deflate+:} false; then :
13767 ac_cv_search_deflate=no
13769 rm conftest.$ac_ext
13770 LIBS=$ac_func_search_save_LIBS
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13773 $as_echo "$ac_cv_search_deflate" >&6; }
13774 ac_res=$ac_cv_search_deflate
13775 if test "$ac_res" != no; then :
13776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13777 BUILD_CFLAGS="$BUILD_CFLAGS -DSQLITE_HAVE_ZLIB"
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing system" >&5
13787 $as_echo_n "checking for library containing system... " >&6; }
13788 if ${ac_cv_search_system+:} false; then :
13789 $as_echo_n "(cached) " >&6
13791 ac_func_search_save_LIBS=$LIBS
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13810 for ac_lib in '' ; do
13811 if test -z "$ac_lib"; then
13812 ac_res="none required"
13815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13817 if ac_fn_c_try_link "$LINENO"; then :
13818 ac_cv_search_system=$ac_res
13820 rm -f core conftest.err conftest.$ac_objext \
13822 if ${ac_cv_search_system+:} false; then :
13826 if ${ac_cv_search_system+:} false; then :
13829 ac_cv_search_system=no
13831 rm conftest.$ac_ext
13832 LIBS=$ac_func_search_save_LIBS
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_system" >&5
13835 $as_echo "$ac_cv_search_system" >&6; }
13836 ac_res=$ac_cv_search_system
13837 if test "$ac_res" != no; then :
13838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13841 SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"
13846 #-----------------------------------------------------------------------
13847 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
13848 # configure. This option doesn't really add much...
13850 # --enable-tempstore
13852 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13853 # [--enable-tempstore],
13854 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
13855 # [], [enable_tempstore=no])
13856 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13857 # case "$enable_tempstore" in
13858 # never ) TEMP_STORE=0 ;;
13859 # no ) TEMP_STORE=1 ;;
13860 # always ) TEMP_STORE=3 ;;
13861 # yes ) TEMP_STORE=3 ;;
13864 # enable_tempstore=yes
13867 # AC_MSG_RESULT($enable_tempstore)
13868 # AC_SUBST(TEMP_STORE)
13869 #-----------------------------------------------------------------------
13871 cat >confcache <<\_ACEOF
13872 # This file is a shell script that caches the results of configure
13873 # tests run on this system so they can be shared between configure
13874 # scripts and configure runs, see configure's option --config-cache.
13875 # It is not useful on other systems. If it contains results you don't
13876 # want to keep, you may remove or edit it.
13878 # config.status only pays attention to the cache file if you give it
13879 # the --recheck option to rerun configure.
13881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13883 # following values.
13887 # The following way of writing the cache mishandles newlines in values,
13888 # but we know of no workaround that is simple, portable, and efficient.
13889 # So, we kill variables containing newlines.
13890 # Ultrix sh set writes to stderr and can't be redirected directly,
13891 # and sets the high bit in the cache file unless we assign to the vars.
13893 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13894 eval ac_val=\$$ac_var
13898 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13899 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13902 _ | IFS | as_nl) ;; #(
13903 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13904 *) { eval $ac_var=; unset $ac_var;} ;;
13910 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13911 *${as_nl}ac_space=\ *)
13912 # `set' does not quote correctly, so add quotes: double-quote
13913 # substitution turns \\\\ into \\, and sed turns \\ into \.
13916 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13919 # `set' quotes correctly as required by POSIX, so do not add quotes.
13920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13931 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13933 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13934 if test -w "$cache_file"; then
13935 if test "x$cache_file" != "x/dev/null"; then
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13937 $as_echo "$as_me: updating cache $cache_file" >&6;}
13938 if test ! -f "$cache_file" || test -h "$cache_file"; then
13939 cat confcache >"$cache_file"
13941 case $cache_file in #(
13943 mv -f confcache "$cache_file"$$ &&
13944 mv -f "$cache_file"$$ "$cache_file" ;; #(
13946 mv -f confcache "$cache_file" ;;
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13952 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13958 # Let make expand exec_prefix.
13959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13961 # Transform confdefs.h into DEFS.
13962 # Protect against shell expansion while executing Makefile rules.
13963 # Protect against Makefile macro expansion.
13965 # If the first sed substitution is executed (which looks for macros that
13966 # take arguments), then branch to the quote section. Otherwise,
13967 # look for a macro that doesn't take arguments.
13977 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13979 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13983 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13996 DEFS=`sed -n "$ac_script" confdefs.h`
14002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14003 # 1. Remove the extension, and $U if already installed.
14004 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14005 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14006 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14007 # will be set to the directory where LIBOBJS objects are built.
14008 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14009 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14011 LIBOBJS=$ac_libobjs
14013 LTLIBOBJS=$ac_ltlibobjs
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14017 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14018 if test -n "$am_sleep_pid"; then
14019 # Hide warnings about reused PIDs.
14020 wait $am_sleep_pid 2>/dev/null
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14023 $as_echo "done" >&6; }
14024 if test -n "$EXEEXT"; then
14026 am__EXEEXT_FALSE='#'
14028 am__EXEEXT_TRUE='#'
14032 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14033 as_fn_error $? "conditional \"AMDEP\" was never defined.
14034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14037 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14040 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14041 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14045 : "${CONFIG_STATUS=./config.status}"
14047 ac_clean_files_save=$ac_clean_files
14048 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14050 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14052 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14054 # Generated by $as_me.
14055 # Run this file to recreate the current configuration.
14056 # Compiler output produced by configure, useful for debugging
14057 # configure, is in config.log if it exists.
14060 ac_cs_recheck=false
14063 SHELL=\${CONFIG_SHELL-$SHELL}
14066 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14067 ## -------------------- ##
14068 ## M4sh Initialization. ##
14069 ## -------------------- ##
14071 # Be more Bourne compatible
14072 DUALCASE=1; export DUALCASE # for MKS sh
14073 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14077 # is contrary to our usage. Disable this feature.
14078 alias -g '${1+"$@"}'='"$@"'
14079 setopt NO_GLOB_SUBST
14081 case `(set -o) 2>/dev/null` in #(
14093 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14094 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14095 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14096 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14097 # Prefer a ksh shell builtin over an external printf program on Solaris,
14098 # but without wasting forks for bash or zsh.
14099 if test -z "$BASH_VERSION$ZSH_VERSION" \
14100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14101 as_echo='print -r --'
14102 as_echo_n='print -rn --'
14103 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14104 as_echo='printf %s\n'
14105 as_echo_n='printf %s'
14107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14108 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14109 as_echo_n='/usr/ucb/echo -n'
14111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14112 as_echo_n_body='eval
14116 expr "X$arg" : "X\\(.*\\)$as_nl";
14117 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14119 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14121 export as_echo_n_body
14122 as_echo_n='sh -c $as_echo_n_body as_echo'
14124 export as_echo_body
14125 as_echo='sh -c $as_echo_body as_echo'
14128 # The user is always right.
14129 if test "${PATH_SEPARATOR+set}" != set; then
14131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14139 # We need space, tab and new line, in precisely that order. Quoting is
14140 # there to prevent editors from complaining about space-tab.
14141 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14142 # splitting by setting IFS to empty value.)
14145 # Find who we are. Look in the path if we contain no directory separator.
14148 *[\\/]* ) as_myself=$0 ;;
14149 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150 for as_dir in $PATH
14153 test -z "$as_dir" && as_dir=.
14154 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14160 # We did not find ourselves, most probably we were run as `sh COMMAND'
14161 # in which case we are not to be found in the path.
14162 if test "x$as_myself" = x; then
14165 if test ! -f "$as_myself"; then
14166 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14170 # Unset variables that we do not need and which cause bugs (e.g. in
14171 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14172 # suppresses any "Segmentation fault" message there. '((' could
14173 # trigger a bug in pdksh 5.2.14.
14174 for as_var in BASH_ENV ENV MAIL MAILPATH
14175 do eval test x\${$as_var+set} = xset \
14176 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14189 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14192 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14193 # ----------------------------------------
14194 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14195 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14196 # script with STATUS, using 1 if that was 0.
14199 as_status=$1; test $as_status -eq 0 && as_status=1
14201 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14202 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14204 $as_echo "$as_me: error: $2" >&2
14205 as_fn_exit $as_status
14209 # as_fn_set_status STATUS
14210 # -----------------------
14211 # Set $? to STATUS, without forking.
14212 as_fn_set_status ()
14215 } # as_fn_set_status
14217 # as_fn_exit STATUS
14218 # -----------------
14219 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14223 as_fn_set_status $1
14229 # Portably unset VAR.
14232 { eval $1=; unset $1;}
14234 as_unset=as_fn_unset
14235 # as_fn_append VAR VALUE
14236 # ----------------------
14237 # Append the text in VALUE to the end of the definition contained in VAR. Take
14238 # advantage of any shell optimizations that allow amortized linear growth over
14239 # repeated appends, instead of the typical quadratic growth present in naive
14241 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14242 eval 'as_fn_append ()
14253 # as_fn_arith ARG...
14254 # ------------------
14255 # Perform arithmetic evaluation on the ARGs, and store the result in the
14256 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14257 # must be portable across $(()) and expr.
14258 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14259 eval 'as_fn_arith ()
14266 as_val=`expr "$@" || test $? -eq 1`
14271 if expr a : '\(a\)' >/dev/null 2>&1 &&
14272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14278 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14279 as_basename=basename
14284 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14290 as_me=`$as_basename -- "$0" ||
14291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14292 X"$0" : 'X\(//\)$' \| \
14293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14295 sed '/^.*\/\([^/][^/]*\)\/*$/{
14309 # Avoid depending upon Character Ranges.
14310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14313 as_cr_digits='0123456789'
14314 as_cr_alnum=$as_cr_Letters$as_cr_digits
14316 ECHO_C= ECHO_N= ECHO_T=
14317 case `echo -n x` in #(((((
14319 case `echo 'xy\c'` in
14320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14322 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14329 rm -f conf$$ conf$$.exe conf$$.file
14330 if test -d conf$$.dir; then
14331 rm -f conf$$.dir/conf$$.file
14334 mkdir conf$$.dir 2>/dev/null
14336 if (echo >conf$$.file) 2>/dev/null; then
14337 if ln -s conf$$.file conf$$ 2>/dev/null; then
14339 # ... but there are two gotchas:
14340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14342 # In both cases, we have to default to `cp -pR'.
14343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14345 elif ln conf$$.file conf$$ 2>/dev/null; then
14353 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14354 rmdir conf$$.dir 2>/dev/null
14359 # Create "$as_dir" as a directory, including parents if necessary.
14364 -*) as_dir=./$as_dir;;
14366 test -d "$as_dir" || eval $as_mkdir_p || {
14370 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14371 *) as_qdir=$as_dir;;
14373 as_dirs="'$as_qdir' $as_dirs"
14374 as_dir=`$as_dirname -- "$as_dir" ||
14375 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14376 X"$as_dir" : 'X\(//\)[^/]' \| \
14377 X"$as_dir" : 'X\(//\)$' \| \
14378 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14379 $as_echo X"$as_dir" |
14380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14384 /^X\(\/\/\)[^/].*/{
14397 test -d "$as_dir" && break
14399 test -z "$as_dirs" || eval "mkdir $as_dirs"
14400 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14404 if mkdir -p . 2>/dev/null; then
14405 as_mkdir_p='mkdir -p "$as_dir"'
14407 test -d ./-p && rmdir ./-p
14412 # as_fn_executable_p FILE
14413 # -----------------------
14414 # Test if FILE is an executable regular file.
14415 as_fn_executable_p ()
14417 test -f "$1" && test -x "$1"
14418 } # as_fn_executable_p
14419 as_test_x='test -x'
14420 as_executable_p=as_fn_executable_p
14422 # Sed expression to map a string onto a valid CPP name.
14423 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14425 # Sed expression to map a string onto a valid variable name.
14426 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14430 ## ----------------------------------- ##
14431 ## Main body of $CONFIG_STATUS script. ##
14432 ## ----------------------------------- ##
14434 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14437 # Save the log message, to keep $0 and so on meaningful, and to
14438 # report actual input values of CONFIG_FILES etc. instead of their
14439 # values after options handling.
14441 This file was extended by sqlite $as_me 3.30.1, which was
14442 generated by GNU Autoconf 2.69. Invocation command line was
14444 CONFIG_FILES = $CONFIG_FILES
14445 CONFIG_HEADERS = $CONFIG_HEADERS
14446 CONFIG_LINKS = $CONFIG_LINKS
14447 CONFIG_COMMANDS = $CONFIG_COMMANDS
14450 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14455 case $ac_config_files in *"
14456 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14462 # Files that config.status was made for.
14463 config_files="$ac_config_files"
14464 config_commands="$ac_config_commands"
14468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14470 \`$as_me' instantiates files and other configuration actions
14471 from templates according to the current configuration. Unless the files
14472 and actions are specified as TAGs, all are instantiated by default.
14474 Usage: $0 [OPTION]... [TAG]...
14476 -h, --help print this help, then exit
14477 -V, --version print version number and configuration settings, then exit
14478 --config print configuration, then exit
14479 -q, --quiet, --silent
14480 do not print progress messages
14481 -d, --debug don't remove temporary files
14482 --recheck update $as_me by reconfiguring in the same conditions
14483 --file=FILE[:TEMPLATE]
14484 instantiate the configuration file FILE
14486 Configuration files:
14489 Configuration commands:
14492 Report bugs to <http://www.sqlite.org>."
14495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14496 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14498 sqlite config.status 3.30.1
14499 configured by $0, generated by GNU Autoconf 2.69,
14500 with options \\"\$ac_cs_config\\"
14502 Copyright (C) 2012 Free Software Foundation, Inc.
14503 This config.status script is free software; the Free Software Foundation
14504 gives unlimited permission to copy, distribute and modify it."
14511 test -n "\$AWK" || AWK=awk
14514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14515 # The default lists apply if the user does not specify any file.
14521 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14522 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14526 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14538 # Handling of the options.
14539 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14541 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14542 $as_echo "$ac_cs_version"; exit ;;
14543 --config | --confi | --conf | --con | --co | --c )
14544 $as_echo "$ac_cs_config"; exit ;;
14545 --debug | --debu | --deb | --de | --d | -d )
14547 --file | --fil | --fi | --f )
14550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14551 '') as_fn_error $? "missing file argument" ;;
14553 as_fn_append CONFIG_FILES " '$ac_optarg'"
14554 ac_need_defaults=false;;
14555 --he | --h | --help | --hel | -h )
14556 $as_echo "$ac_cs_usage"; exit ;;
14557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14561 # This is an error.
14562 -*) as_fn_error $? "unrecognized option: \`$1'
14563 Try \`$0 --help' for more information." ;;
14565 *) as_fn_append ac_config_targets " $1"
14566 ac_need_defaults=false ;;
14572 ac_configure_extra_args=
14574 if $ac_cs_silent; then
14576 ac_configure_extra_args="$ac_configure_extra_args --silent"
14580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14581 if \$ac_cs_recheck; then
14582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14585 CONFIG_SHELL='$SHELL'
14586 export CONFIG_SHELL
14591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14596 ## Running $as_me. ##
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14609 # The HP-UX ksh and POSIX shell print the target directory to stdout
14610 # if CDPATH is set.
14611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14613 sed_quote_subst='$sed_quote_subst'
14614 double_quote_subst='$double_quote_subst'
14615 delay_variable_subst='$delay_variable_subst'
14616 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14617 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14618 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14619 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14620 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14621 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14622 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14623 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14624 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14625 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14626 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14627 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14628 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14629 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14630 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14631 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14632 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14633 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14634 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14635 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14636 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14637 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14638 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14639 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14640 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14641 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14642 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14643 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14644 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14645 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14646 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14647 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14648 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14649 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14650 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14651 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14652 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14653 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14654 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14655 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14656 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14657 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14658 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14659 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14660 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14661 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14662 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14663 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14664 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14665 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14666 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14667 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14668 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14669 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14670 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14672 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14673 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14674 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"`'
14675 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14676 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14677 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14678 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14679 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14680 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14681 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14682 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14683 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14684 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14685 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14686 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14687 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14688 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14689 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14690 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14691 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14692 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14693 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14694 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14695 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14696 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14697 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14698 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14699 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14700 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14701 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14702 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14703 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14704 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14705 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14706 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14707 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14708 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14709 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14710 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14711 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14712 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14713 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14714 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14715 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14716 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14717 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14718 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14719 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14720 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14721 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14722 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14723 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14724 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14725 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14726 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14727 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14728 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14729 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14730 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14731 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14732 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14733 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14734 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14735 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14736 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14737 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14738 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14739 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14740 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14741 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14742 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14743 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14744 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14745 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14746 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14747 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14748 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14749 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14750 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14753 LTCFLAGS='$LTCFLAGS'
14754 compiler='$compiler_DEFAULT'
14756 # A function that is used when there is no print builtin or printf.
14757 func_fallback_echo ()
14759 eval 'cat <<_LTECHO_EOF
14764 # Quote evaled strings.
14779 deplibs_check_method \
14784 sharedlib_from_linklib_cmd \
14787 archiver_list_spec \
14793 lt_cv_sys_global_symbol_pipe \
14794 lt_cv_sys_global_symbol_to_cdecl \
14795 lt_cv_sys_global_symbol_to_import \
14796 lt_cv_sys_global_symbol_to_c_name_address \
14797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14798 lt_cv_nm_interface \
14799 nm_file_list_spec \
14800 lt_cv_truncate_bin \
14801 lt_prog_compiler_no_builtin_flag \
14802 lt_prog_compiler_pic \
14803 lt_prog_compiler_wl \
14804 lt_prog_compiler_static \
14805 lt_cv_prog_compiler_c_o \
14814 export_dynamic_flag_spec \
14815 whole_archive_flag_spec \
14816 compiler_needs_object \
14818 allow_undefined_flag \
14819 no_undefined_flag \
14820 hardcode_libdir_flag_spec \
14821 hardcode_libdir_separator \
14825 variables_saved_for_relink \
14827 library_names_spec \
14829 install_override_mode \
14833 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14834 *[\\\\\\\`\\"\\\$]*)
14835 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14838 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14843 # Double-quote double-evaled strings.
14844 for var in reload_cmds \
14845 old_postinstall_cmds \
14846 old_postuninstall_cmds \
14848 extract_expsyms_cmds \
14849 old_archive_from_new_cmds \
14850 old_archive_from_expsyms_cmds \
14852 archive_expsym_cmds \
14854 module_expsym_cmds \
14855 export_symbols_cmds \
14859 postuninstall_cmds \
14861 sys_lib_search_path_spec \
14862 configure_time_dlsearch_path \
14863 configure_time_lt_sys_library_path; do
14864 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14865 *[\\\\\\\`\\"\\\$]*)
14866 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14869 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14874 ac_aux_dir='$ac_aux_dir'
14876 # See if we are running on zsh, and set the options that allow our
14877 # commands through without removal of \ escapes INIT.
14878 if test -n "\${ZSH_VERSION+set}"; then
14879 setopt NO_GLOB_SUBST
14893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14895 # Handling of arguments.
14896 for ac_config_target in $ac_config_targets
14898 case $ac_config_target in
14899 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14900 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14901 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14902 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14904 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14909 # If the user did not use the arguments to specify the items to instantiate,
14910 # then the envvar interface is used. Set only those that are not.
14911 # We use the long form for the default assignment because of an extremely
14912 # bizarre bug on SunOS 4.1.3.
14913 if $ac_need_defaults; then
14914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14918 # Have a temporary directory for convenience. Make it in the build tree
14919 # simply because there is no reason against having it here, and in addition,
14920 # creating and moving files from /tmp can sometimes cause problems.
14921 # Hook for its removal unless debugging.
14922 # Note that there is a small window in which the directory will not be cleaned:
14923 # after its creation but before its name has been assigned to `$tmp'.
14927 trap 'exit_status=$?
14928 : "${ac_tmp:=$tmp}"
14929 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14931 trap 'as_fn_exit 1' 1 2 13 15
14933 # Create a (secure) tmp directory for tmp files.
14936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14940 tmp=./conf$$-$RANDOM
14941 (umask 077 && mkdir "$tmp")
14942 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14945 # Set up the scripts for CONFIG_FILES section.
14946 # No need to generate them if there are no CONFIG_FILES.
14947 # This happens for instance with `./config.status config.h'.
14948 if test -n "$CONFIG_FILES"; then
14951 ac_cr=`echo X | tr X '\015'`
14952 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14953 # But we know of no other shell where ac_cr would be empty at this
14954 # point, so we can use a bashism as a fallback.
14955 if test "x$ac_cr" = x; then
14956 eval ac_cr=\$\'\\r\'
14958 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14959 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14962 ac_cs_awk_cr=$ac_cr
14965 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14970 echo "cat >conf$$subs.awk <<_ACEOF" &&
14971 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14973 } >conf$$subs.sh ||
14974 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14975 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14977 for ac_last_try in false false false false false :; do
14978 . ./conf$$subs.sh ||
14979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14981 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14982 if test $ac_delim_n = $ac_delim_num; then
14984 elif $ac_last_try; then
14985 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14987 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14990 rm -f conf$$subs.sh
14992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14993 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14997 s/^/S["/; s/!.*/"]=/
15007 s/\(.\{148\}\)..*/\1/
15009 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15014 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15021 s/\(.\{148\}\)..*/\1/
15023 s/["\\]/\\&/g; s/^/"/; s/$/"/
15027 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15032 ' <conf$$subs.awk | sed '
15037 ' >>$CONFIG_STATUS || ac_write_fail=1
15038 rm -f conf$$subs.awk
15039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15041 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15042 for (key in S) S_is_set[key] = 1
15048 nfields = split(line, field, "@")
15050 len = length(field[1])
15051 for (i = 2; i < nfields; i++) {
15053 keylen = length(key)
15054 if (S_is_set[key]) {
15056 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15057 len += length(value) + length(field[++i])
15068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15069 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15070 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15073 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15074 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15077 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15078 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15079 # trailing colons and then remove the whole line if VPATH becomes empty
15080 # (actually we leave an empty line to preserve line numbers).
15081 if test "x$srcdir" = x.; then
15082 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15101 fi # test -n "$CONFIG_FILES"
15104 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15109 :[FHLC]) ac_mode=$ac_tag; continue;;
15111 case $ac_mode$ac_tag in
15113 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15114 :[FH]-) ac_tag=-:-;;
15115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15132 -) ac_f="$ac_tmp/stdin";;
15133 *) # Look for the file first in the build tree, then in the source tree
15134 # (if the path is not absolute). The absolute path cannot be DOS-style,
15135 # because $ac_f cannot contain `:'.
15139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15141 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15144 as_fn_append ac_file_inputs " '$ac_f'"
15147 # Let's still pretend it is `configure' which instantiates (i.e., don't
15148 # use $as_me), people would be surprised to read:
15149 # /* config.h. Generated by config.status. */
15150 configure_input='Generated from '`
15151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15153 if test x"$ac_file" != x-; then
15154 configure_input="$ac_file. $configure_input"
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15156 $as_echo "$as_me: creating $ac_file" >&6;}
15158 # Neutralize special characters interpreted by sed in replacement strings.
15159 case $configure_input in #(
15160 *\&* | *\|* | *\\* )
15161 ac_sed_conf_input=`$as_echo "$configure_input" |
15162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15163 *) ac_sed_conf_input=$configure_input;;
15167 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15173 ac_dir=`$as_dirname -- "$ac_file" ||
15174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15175 X"$ac_file" : 'X\(//\)[^/]' \| \
15176 X"$ac_file" : 'X\(//\)$' \| \
15177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15178 $as_echo X"$ac_file" |
15179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15183 /^X\(\/\/\)[^/].*/{
15196 as_dir="$ac_dir"; as_fn_mkdir_p
15200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15203 # A ".." for each directory in $ac_dir_suffix.
15204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15205 case $ac_top_builddir_sub in
15206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15210 ac_abs_top_builddir=$ac_pwd
15211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15212 # for backward compatibility:
15213 ac_top_builddir=$ac_top_build_prefix
15216 .) # We are building in place.
15218 ac_top_srcdir=$ac_top_builddir_sub
15219 ac_abs_top_srcdir=$ac_pwd ;;
15220 [\\/]* | ?:[\\/]* ) # Absolute name.
15221 ac_srcdir=$srcdir$ac_dir_suffix;
15222 ac_top_srcdir=$srcdir
15223 ac_abs_top_srcdir=$srcdir ;;
15224 *) # Relative name.
15225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15226 ac_top_srcdir=$ac_top_build_prefix$srcdir
15227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15242 ac_MKDIR_P=$MKDIR_P
15244 [\\/$]* | ?:[\\/]* ) ;;
15245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 # If the template does not know about datarootdir, expand it.
15251 # FIXME: This hack should be removed a few years after 2.60.
15252 ac_datarootdir_hack=; ac_datarootdir_seen=
15263 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15264 *datarootdir*) ac_datarootdir_seen=yes;;
15265 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15267 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15270 ac_datarootdir_hack='
15271 s&@datadir@&$datadir&g
15272 s&@docdir@&$docdir&g
15273 s&@infodir@&$infodir&g
15274 s&@localedir@&$localedir&g
15275 s&@mandir@&$mandir&g
15276 s&\\\${datarootdir}&$datarootdir&g' ;;
15280 # Neutralize VPATH when `$srcdir' = `.'.
15281 # Shell code in configure.ac might set extrasub.
15282 # FIXME: do we really want to maintain this feature?
15283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15284 ac_sed_extra="$ac_vpsub
15287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15290 s|@configure_input@|$ac_sed_conf_input|;t t
15291 s&@top_builddir@&$ac_top_builddir_sub&;t t
15292 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15293 s&@srcdir@&$ac_srcdir&;t t
15294 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15295 s&@top_srcdir@&$ac_top_srcdir&;t t
15296 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15297 s&@builddir@&$ac_builddir&;t t
15298 s&@abs_builddir@&$ac_abs_builddir&;t t
15299 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15300 s&@INSTALL@&$ac_INSTALL&;t t
15301 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15302 $ac_datarootdir_hack
15304 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15305 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15307 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15308 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15310 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15312 which seems to be undefined. Please make sure it is defined" >&5
15313 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15314 which seems to be undefined. Please make sure it is defined" >&2;}
15316 rm -f "$ac_tmp/stdin"
15318 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15319 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15325 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15326 $as_echo "$as_me: executing $ac_file commands" >&6;}
15331 case $ac_file$ac_mode in
15332 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15333 # Older Autoconf quotes --file arguments for eval, but not when files
15334 # are listed without --file. Let's play safe and only enable the eval
15335 # if we detect the quoting.
15336 case $CONFIG_FILES in
15337 *\'*) eval set x "$CONFIG_FILES" ;;
15338 *) set x $CONFIG_FILES ;;
15343 # Strip MF so we end up with the name of the file.
15344 mf=`echo "$mf" | sed -e 's/:.*$//'`
15345 # Check whether this is an Automake generated Makefile or not.
15346 # We used to match only the files named 'Makefile.in', but
15347 # some people rename them; so instead we look at the file content.
15348 # Grep'ing the first line is not enough: some people post-process
15349 # each Makefile.in and add a new line on top of each file to say so.
15350 # Grep'ing the whole file is not good either: AIX grep has a line
15351 # limit of 2048, but all sed's we know have understand at least 4000.
15352 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15353 dirpart=`$as_dirname -- "$mf" ||
15354 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15355 X"$mf" : 'X\(//\)[^/]' \| \
15356 X"$mf" : 'X\(//\)$' \| \
15357 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15363 /^X\(\/\/\)[^/].*/{
15379 # Extract the definition of DEPDIR, am__include, and am__quote
15380 # from the Makefile without running 'make'.
15381 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15382 test -z "$DEPDIR" && continue
15383 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15384 test -z "$am__include" && continue
15385 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15386 # Find all dependency output files, they are included files with
15387 # $(DEPDIR) in their names. We invoke sed twice because it is the
15388 # simplest approach to changing $(DEPDIR) to its actual value in the
15390 for file in `sed -n "
15391 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15392 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15393 # Make sure the directory exists.
15394 test -f "$dirpart/$file" && continue
15395 fdir=`$as_dirname -- "$file" ||
15396 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15397 X"$file" : 'X\(//\)[^/]' \| \
15398 X"$file" : 'X\(//\)$' \| \
15399 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15400 $as_echo X"$file" |
15401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15405 /^X\(\/\/\)[^/].*/{
15418 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15419 # echo "creating $dirpart/$file"
15420 echo '# dummy' > "$dirpart/$file"
15427 # See if we are running on zsh, and set the options that allow our
15428 # commands through without removal of \ escapes.
15429 if test -n "${ZSH_VERSION+set}"; then
15430 setopt NO_GLOB_SUBST
15434 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15437 cat <<_LT_EOF >> "$cfgfile"
15439 # Generated automatically by $as_me ($PACKAGE) $VERSION
15440 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15442 # Provide generalized library-building support services.
15443 # Written by Gordon Matzigkeit, 1996
15445 # Copyright (C) 2014 Free Software Foundation, Inc.
15446 # This is free software; see the source for copying conditions. There is NO
15447 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15449 # GNU Libtool is free software; you can redistribute it and/or modify
15450 # it under the terms of the GNU General Public License as published by
15451 # the Free Software Foundation; either version 2 of of the License, or
15452 # (at your option) any later version.
15454 # As a special exception to the GNU General Public License, if you
15455 # distribute this file as part of a program or library that is built
15456 # using GNU Libtool, you may include this file under the same
15457 # distribution terms that you use for the rest of that program.
15459 # GNU Libtool is distributed in the hope that it will be useful, but
15460 # WITHOUT ANY WARRANTY; without even the implied warranty of
15461 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15462 # GNU General Public License for more details.
15464 # You should have received a copy of the GNU General Public License
15465 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15468 # The names of the tagged configurations supported by this script.
15471 # Configured defaults for sys_lib_dlsearch_path munging.
15472 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15474 # ### BEGIN LIBTOOL CONFIG
15476 # Which release of libtool.m4 was used?
15477 macro_version=$macro_version
15478 macro_revision=$macro_revision
15480 # Whether or not to build shared libraries.
15481 build_libtool_libs=$enable_shared
15483 # Whether or not to build static libraries.
15484 build_old_libs=$enable_static
15486 # What type of objects to build.
15489 # Whether or not to optimize for fast installation.
15490 fast_install=$enable_fast_install
15492 # Shared archive member basename,for filename based shared library versioning on AIX.
15493 shared_archive_member_spec=$shared_archive_member_spec
15495 # Shell to use when invoking shell scripts.
15498 # An echo program that protects backslashes.
15501 # The PATH separator for the build system.
15502 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15505 host_alias=$host_alias
15509 # The build system.
15510 build_alias=$build_alias
15514 # A sed program that does not truncate output.
15517 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15518 Xsed="\$SED -e 1s/^X//"
15520 # A grep program that handles long lines.
15526 # A literal string matcher.
15529 # A BSD- or MS-compatible name lister.
15532 # Whether we need soft or hard links.
15535 # What is the maximum length of a command?
15536 max_cmd_len=$max_cmd_len
15538 # Object file suffix (normally "o").
15541 # Executable file suffix (normally "").
15544 # whether the shell understands "unset".
15547 # turn spaces into newlines.
15550 # turn newlines into spaces.
15553 # convert \$build file names to \$host format.
15554 to_host_file_cmd=$lt_cv_to_host_file_cmd
15556 # convert \$build files to toolchain format.
15557 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15559 # An object symbol dumper.
15560 OBJDUMP=$lt_OBJDUMP
15562 # Method to check whether dependent libraries are shared objects.
15563 deplibs_check_method=$lt_deplibs_check_method
15565 # Command to use when deplibs_check_method = "file_magic".
15566 file_magic_cmd=$lt_file_magic_cmd
15568 # How to find potential files when deplibs_check_method = "file_magic".
15569 file_magic_glob=$lt_file_magic_glob
15571 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15572 want_nocaseglob=$lt_want_nocaseglob
15574 # DLL creation program.
15575 DLLTOOL=$lt_DLLTOOL
15577 # Command to associate shared and link libraries.
15578 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15583 # Flags to create an archive.
15584 AR_FLAGS=$lt_AR_FLAGS
15586 # How to feed a file listing to the archiver.
15587 archiver_list_spec=$lt_archiver_list_spec
15589 # A symbol stripping program.
15592 # Commands used to install an old-style archive.
15594 old_postinstall_cmds=$lt_old_postinstall_cmds
15595 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15597 # Whether to use a lock for old archive extraction.
15598 lock_old_archive_extraction=$lock_old_archive_extraction
15603 # LTCC compiler flags.
15604 LTCFLAGS=$lt_CFLAGS
15606 # Take the output of nm and produce a listing of raw symbols and C names.
15607 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15609 # Transform the output of nm in a proper C declaration.
15610 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15612 # Transform the output of nm into a list of symbols to manually relocate.
15613 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15615 # Transform the output of nm in a C name address pair.
15616 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15618 # Transform the output of nm in a C name address pair when lib prefix is needed.
15619 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15621 # The name lister interface.
15622 nm_interface=$lt_lt_cv_nm_interface
15624 # Specify filename containing input files for \$NM.
15625 nm_file_list_spec=$lt_nm_file_list_spec
15627 # The root where to search for dependent libraries,and where our libraries should be installed.
15628 lt_sysroot=$lt_sysroot
15630 # Command to truncate a binary pipe.
15631 lt_truncate_bin=$lt_lt_cv_truncate_bin
15633 # The name of the directory that contains temporary libtool files.
15636 # Used to examine libraries when file_magic_cmd begins with "file".
15637 MAGIC_CMD=$MAGIC_CMD
15639 # Must we lock files when doing compilation?
15640 need_locks=$lt_need_locks
15643 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15645 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15646 DSYMUTIL=$lt_DSYMUTIL
15648 # Tool to change global to local symbols on Mac OS X.
15651 # Tool to manipulate fat objects and archives on Mac OS X.
15654 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15657 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15658 OTOOL64=$lt_OTOOL64
15660 # Old archive suffix (normally "a").
15663 # Shared library suffix (normally ".so").
15664 shrext_cmds=$lt_shrext_cmds
15666 # The commands to extract the exported symbol list from a shared archive.
15667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15669 # Variables whose values should be saved in libtool wrapper scripts and
15670 # restored at link time.
15671 variables_saved_for_relink=$lt_variables_saved_for_relink
15673 # Do we need the "lib" prefix for modules?
15674 need_lib_prefix=$need_lib_prefix
15676 # Do we need a version for libraries?
15677 need_version=$need_version
15679 # Library versioning type.
15680 version_type=$version_type
15682 # Shared library runtime path variable.
15683 runpath_var=$runpath_var
15685 # Shared library path variable.
15686 shlibpath_var=$shlibpath_var
15688 # Is shlibpath searched before the hard-coded library search path?
15689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15691 # Format of library name prefix.
15692 libname_spec=$lt_libname_spec
15694 # List of archive names. First name is the real one, the rest are links.
15695 # The last name is the one that the linker finds with -lNAME
15696 library_names_spec=$lt_library_names_spec
15698 # The coded name of the library, if different from the real name.
15699 soname_spec=$lt_soname_spec
15701 # Permission mode override for installation of shared libraries.
15702 install_override_mode=$lt_install_override_mode
15704 # Command to use after installation of a shared archive.
15705 postinstall_cmds=$lt_postinstall_cmds
15707 # Command to use after uninstallation of a shared archive.
15708 postuninstall_cmds=$lt_postuninstall_cmds
15710 # Commands used to finish a libtool library installation in a directory.
15711 finish_cmds=$lt_finish_cmds
15713 # As "finish_cmds", except a single script fragment to be evaled but
15715 finish_eval=$lt_finish_eval
15717 # Whether we should hardcode library paths into libraries.
15718 hardcode_into_libs=$hardcode_into_libs
15720 # Compile-time system search path for libraries.
15721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15723 # Detected run-time system search path for libraries.
15724 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15726 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15727 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15729 # Whether dlopen is supported.
15730 dlopen_support=$enable_dlopen
15732 # Whether dlopen of programs is supported.
15733 dlopen_self=$enable_dlopen_self
15735 # Whether dlopen of statically linked programs is supported.
15736 dlopen_self_static=$enable_dlopen_self_static
15738 # Commands to strip libraries.
15739 old_striplib=$lt_old_striplib
15740 striplib=$lt_striplib
15743 # The linker used to build libraries.
15746 # How to create reloadable object files.
15747 reload_flag=$lt_reload_flag
15748 reload_cmds=$lt_reload_cmds
15750 # Commands used to build an old-style archive.
15751 old_archive_cmds=$lt_old_archive_cmds
15753 # A language specific compiler.
15756 # Is the compiler the GNU compiler?
15759 # Compiler flag to turn off builtin functions.
15760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15762 # Additional compiler flags for building library objects.
15763 pic_flag=$lt_lt_prog_compiler_pic
15765 # How to pass a linker flag through the compiler.
15766 wl=$lt_lt_prog_compiler_wl
15768 # Compiler flag to prevent dynamic linking.
15769 link_static_flag=$lt_lt_prog_compiler_static
15771 # Does compiler simultaneously support -c and -o options?
15772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15774 # Whether or not to add -lc for building shared libraries.
15775 build_libtool_need_lc=$archive_cmds_need_lc
15777 # Whether or not to disallow shared libs when runtime libs are static.
15778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15780 # Compiler flag to allow reflexive dlopens.
15781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15783 # Compiler flag to generate shared objects directly from archives.
15784 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15786 # Whether the compiler copes with passing no objects directly.
15787 compiler_needs_object=$lt_compiler_needs_object
15789 # Create an old-style archive from a shared archive.
15790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15792 # Create a temporary old-style archive to link instead of a shared archive.
15793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15795 # Commands used to build a shared archive.
15796 archive_cmds=$lt_archive_cmds
15797 archive_expsym_cmds=$lt_archive_expsym_cmds
15799 # Commands used to build a loadable module if different from building
15800 # a shared archive.
15801 module_cmds=$lt_module_cmds
15802 module_expsym_cmds=$lt_module_expsym_cmds
15804 # Whether we are building with GNU ld or not.
15805 with_gnu_ld=$lt_with_gnu_ld
15807 # Flag that allows shared libraries with undefined symbols to be built.
15808 allow_undefined_flag=$lt_allow_undefined_flag
15810 # Flag that enforces no undefined symbols.
15811 no_undefined_flag=$lt_no_undefined_flag
15813 # Flag to hardcode \$libdir into a binary during linking.
15814 # This must work even if \$libdir does not exist
15815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15817 # Whether we need a single "-rpath" flag with a separated argument.
15818 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15820 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15821 # DIR into the resulting binary.
15822 hardcode_direct=$hardcode_direct
15824 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15825 # DIR into the resulting binary and the resulting library dependency is
15826 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
15827 # library is relocated.
15828 hardcode_direct_absolute=$hardcode_direct_absolute
15830 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15831 # into the resulting binary.
15832 hardcode_minus_L=$hardcode_minus_L
15834 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15835 # into the resulting binary.
15836 hardcode_shlibpath_var=$hardcode_shlibpath_var
15838 # Set to "yes" if building a shared library automatically hardcodes DIR
15839 # into the library and all subsequent libraries and executables linked
15841 hardcode_automatic=$hardcode_automatic
15843 # Set to yes if linker adds runtime paths of dependent libraries
15844 # to runtime path list.
15845 inherit_rpath=$inherit_rpath
15847 # Whether libtool must link a program against all its dependency libraries.
15848 link_all_deplibs=$link_all_deplibs
15850 # Set to "yes" if exported symbols are required.
15851 always_export_symbols=$always_export_symbols
15853 # The commands to list exported symbols.
15854 export_symbols_cmds=$lt_export_symbols_cmds
15856 # Symbols that should not be listed in the preloaded symbols.
15857 exclude_expsyms=$lt_exclude_expsyms
15859 # Symbols that must always be exported.
15860 include_expsyms=$lt_include_expsyms
15862 # Commands necessary for linking programs (against libraries) with templates.
15863 prelink_cmds=$lt_prelink_cmds
15865 # Commands necessary for finishing linking programs.
15866 postlink_cmds=$lt_postlink_cmds
15868 # Specify filename containing input files.
15869 file_list_spec=$lt_file_list_spec
15871 # How to hardcode a shared library path into an executable.
15872 hardcode_action=$hardcode_action
15874 # ### END LIBTOOL CONFIG
15878 cat <<'_LT_EOF' >> "$cfgfile"
15880 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15882 # func_munge_path_list VARIABLE PATH
15883 # -----------------------------------
15884 # VARIABLE is name of variable containing _space_ separated list of
15885 # directories to be munged by the contents of PATH, which is string
15888 # string "DIR[ DIR]" will be prepended to VARIABLE
15890 # string "DIR[ DIR]" will be appended to VARIABLE
15891 # "DIRP[:DIRP]::[DIRA:]DIRA"
15892 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15893 # "DIRA[ DIRA]" will be appended to VARIABLE
15895 # VARIABLE will be replaced by "DIR[ DIR]"
15896 func_munge_path_list ()
15902 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15905 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15908 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15909 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15912 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15918 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15919 func_cc_basename ()
15921 for cc_temp in $*""; do
15923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15929 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15933 # ### END FUNCTIONS SHARED WITH CONFIGURE
15939 cat <<\_LT_EOF >> "$cfgfile"
15940 # AIX sometimes has problems with the GCC collect2 program. For some
15941 # reason, if we set the COLLECT_NAMES environment variable, the problems
15942 # vanish in a puff of smoke.
15943 if test set != "${COLLECT_NAMES+set}"; then
15945 export COLLECT_NAMES
15952 ltmain=$ac_aux_dir/ltmain.sh
15955 # We use sed instead of cat because bash on DJGPP gets confused if
15956 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15957 # text mode, it properly converts lines to CR/LF. This bash problem
15958 # is reportedly fixed, but why not run on old versions too?
15959 sed '$q' "$ltmain" >> "$cfgfile" \
15960 || (rm -f "$cfgfile"; exit 1)
15962 mv -f "$cfgfile" "$ofile" ||
15963 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15974 ac_clean_files=$ac_clean_files_save
15976 test $ac_write_fail = 0 ||
15977 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15980 # configure is writing to config.log, and then calls config.status.
15981 # config.status does its own redirection, appending to config.log.
15982 # Unfortunately, on DOS this fails, as config.log is still kept open
15983 # by configure, so config.status won't be able to write to it; its
15984 # output is simply discarded. So we exec the FD to /dev/null,
15985 # effectively closing config.log, so it can be properly (re)opened and
15986 # appended to by config.status. When coming back to configure, we
15987 # need to make the FD available again.
15988 if test "$no_create" != yes; then
15990 ac_config_status_args=
15991 test "$silent" = yes &&
15992 ac_config_status_args="$ac_config_status_args --quiet"
15994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15997 # would make configure fail if this is the last instruction.
15998 $ac_cs_success || as_fn_exit 1
16000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}