2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.9.2.
5 # Report bugs to <http://www.sqlite.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://www.sqlite.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='sqlite'
592 PACKAGE_TARNAME='sqlite'
593 PACKAGE_VERSION='3.9.2'
594 PACKAGE_STRING='sqlite 3.9.2'
595 PACKAGE_BUGREPORT='http://www.sqlite.org'
598 ac_unique_file="sqlite3.c"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
641 DYNAMIC_EXTENSION_FLAGS
700 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
757 enable_dependency_tracking
767 enable_dynamic_extensions
771 ac_precious_vars='build_alias
782 # Initialize some variables set by options.
784 ac_init_version=false
785 ac_unrecognized_opts=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
796 program_transform_name=s,x,x,
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
842 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error $? "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
899 eval enable_$ac_useropt=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error $? "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
925 eval enable_$ac_useropt=\$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
940 -help | --help | --hel | --he | -h)
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956 htmldir=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 # Obsolete; use --without-fp.
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074 sbindir=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085 sharedstatedir=$ac_optarg ;;
1087 -site | --site | --sit)
1089 -site=* | --site=* | --sit=*)
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error $? "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1129 eval with_$ac_useropt=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval with_$ac_useropt=no ;;
1148 # Obsolete; use --with-x.
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error $? "missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1216 # Be sure to have absolute directory names.
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var in $ac_precious_vars; do
1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_env_${ac_var}_value=\$${ac_var}
1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures sqlite 3.9.2 to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383 --build=BUILD configure for building on BUILD [guessed]
1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short | recursive ) echo "Configuration of sqlite 3.9.2:";;
1395 --disable-option-checking ignore unrecognized --enable/--with options
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --disable-largefile omit support for large files
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --enable-readline use readline in shell tool (yes, no) [default=yes]
1407 --enable-threadsafe build a thread-safe library [default=yes]
1408 --enable-dynamic-extensions
1409 support loadable extensions [default=yes]
1410 --enable-fts5 include fts5 support [default=no]
1411 --enable-json1 include json1 support [default=no]
1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1418 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 --with-sysroot=DIR Search for dependent libraries within DIR
1420 (or the compiler's sysroot if not specified).
1422 Some influential environment variables:
1423 CC C compiler command
1424 CFLAGS C compiler flags
1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1426 nonstandard directory <lib dir>
1427 LIBS libraries to pass to the linker, e.g. -l<library>
1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429 you have headers in a nonstandard directory <include dir>
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1435 Report bugs to <http://www.sqlite.org>.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1449 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir=$ac_pwd
1460 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir=$ac_top_build_prefix
1465 .) # We are building in place.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1498 sqlite configure 3.9.2
1499 generated by GNU Autoconf 2.69
1501 Copyright (C) 2012 Free Software Foundation, Inc.
1502 This configure script is free software; the Free Software Foundation
1503 gives unlimited permission to copy, distribute and modify it.
1508 ## ------------------------ ##
1509 ## Autoconf initialization. ##
1510 ## ------------------------ ##
1512 # ac_fn_c_try_compile LINENO
1513 # --------------------------
1514 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_compile ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1540 $as_echo "$as_me: failed program was:" >&5
1541 sed 's/^/| /' conftest.$ac_ext >&5
1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1546 as_fn_set_status $ac_retval
1548 } # ac_fn_c_try_compile
1550 # ac_fn_c_try_link LINENO
1551 # -----------------------
1552 # Try to link conftest.$ac_ext, and return whether this succeeded.
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 test -x conftest$ac_exeext
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_link
1596 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597 # -------------------------------------------------------
1598 # Tests whether HEADER exists and can be compiled using the include files in
1599 # INCLUDES, setting the cache variable VAR accordingly.
1600 ac_fn_c_check_header_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609 /* end confdefs.h. */
1613 if ac_fn_c_try_compile "$LINENO"; then :
1618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 $as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 } # ac_fn_c_check_header_compile
1627 # ac_fn_c_try_cpp LINENO
1628 # ----------------------
1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } > conftest.i && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1664 # ac_fn_c_try_run LINENO
1665 # ----------------------
1666 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667 # that executables *can* be run.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1698 ac_retval=$ac_status
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1706 # ac_fn_c_check_func LINENO FUNC VAR
1707 # ----------------------------------
1708 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1709 ac_fn_c_check_func ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1719 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721 #define $2 innocuous_$2
1723 /* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1729 # include <limits.h>
1731 # include <assert.h>
1736 /* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1743 /* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746 #if defined __stub_$2 || defined __stub___$2
1758 if ac_fn_c_try_link "$LINENO"; then :
1763 rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768 $as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 } # ac_fn_c_check_func
1773 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1774 # ---------------------------------------------
1775 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1777 ac_fn_c_check_decl ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 as_decl_name=`echo $2|sed 's/ *(.*//'`
1781 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1783 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1784 if eval \${$3+:} false; then :
1785 $as_echo_n "(cached) " >&6
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1793 #ifndef $as_decl_name
1795 (void) $as_decl_use;
1797 (void) $as_decl_name;
1805 if ac_fn_c_try_compile "$LINENO"; then :
1810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 } # ac_fn_c_check_decl
1818 cat >config.log <<_ACEOF
1819 This file contains any messages produced by compilers while
1820 running configure, to aid debugging if configure makes a mistake.
1822 It was created by sqlite $as_me 3.9.2, which was
1823 generated by GNU Autoconf 2.69. Invocation command line was
1835 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1836 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1837 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1838 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1839 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1842 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1845 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1846 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1847 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1848 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1849 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1850 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 test -z "$as_dir" && as_dir=.
1859 $as_echo "PATH: $as_dir"
1875 # Keep a trace of the command line.
1876 # Strip out --no-create and --no-recursion so they do not pile up.
1877 # Strip out --silent because we don't want to record it for future runs.
1878 # Also quote any args containing shell meta-characters.
1879 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_must_keep_next=false
1889 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1891 | -silent | --silent | --silen | --sile | --sil)
1894 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1897 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1899 as_fn_append ac_configure_args1 " '$ac_arg'"
1900 if test $ac_must_keep_next = true; then
1901 ac_must_keep_next=false # Got value, back to normal.
1904 *=* | --config-cache | -C | -disable-* | --disable-* \
1905 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1906 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1907 | -with-* | --with-* | -without-* | --without-* | --x)
1908 case "$ac_configure_args0 " in
1909 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1912 -* ) ac_must_keep_next=true ;;
1915 as_fn_append ac_configure_args " '$ac_arg'"
1920 { ac_configure_args0=; unset ac_configure_args0;}
1921 { ac_configure_args1=; unset ac_configure_args1;}
1923 # When interrupted or exit'd, cleanup temporary files, and complete
1924 # config.log. We remove comments because anyway the quotes in there
1925 # would cause problems or look ugly.
1926 # WARNING: Use '\'' to represent an apostrophe within the trap.
1927 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1928 trap 'exit_status=$?
1929 # Save into config.log some information that might help in debugging.
1933 $as_echo "## ---------------- ##
1934 ## Cache variables. ##
1935 ## ---------------- ##"
1937 # The following way of writing the cache mishandles newlines in values,
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 $as_echo "## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##"
1973 for ac_var in $ac_subst_vars
1975 eval ac_val=\$$ac_var
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 $as_echo "$ac_var='\''$ac_val'\''"
1983 if test -n "$ac_subst_files"; then
1984 $as_echo "## ------------------- ##
1985 ## File substitutions. ##
1986 ## ------------------- ##"
1988 for ac_var in $ac_subst_files
1990 eval ac_val=\$$ac_var
1992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994 $as_echo "$ac_var='\''$ac_val'\''"
1999 if test -s confdefs.h; then
2000 $as_echo "## ----------- ##
2007 test "$ac_signal" != 0 &&
2008 $as_echo "$as_me: caught signal $ac_signal"
2009 $as_echo "$as_me: exit $exit_status"
2011 rm -f core *.core core.conftest.* &&
2012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2015 for ac_signal in 1 2 13 15; do
2016 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2023 $as_echo "/* confdefs.h */" > confdefs.h
2025 # Predefined preprocessor variables.
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_NAME "$PACKAGE_NAME"
2031 cat >>confdefs.h <<_ACEOF
2032 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE_STRING "$PACKAGE_STRING"
2043 cat >>confdefs.h <<_ACEOF
2044 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_URL "$PACKAGE_URL"
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2056 if test -n "$CONFIG_SITE"; then
2057 # We do not want a PATH search for config.site.
2058 case $CONFIG_SITE in #((
2059 -*) ac_site_file1=./$CONFIG_SITE;;
2060 */*) ac_site_file1=$CONFIG_SITE;;
2061 *) ac_site_file1=./$CONFIG_SITE;;
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 test "x$ac_site_file" = xNONE && continue
2073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2078 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5; }
2085 if test -r "$cache_file"; then
2086 # Some versions of bash will fail to source /dev/null (special files
2087 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2088 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 $as_echo "$as_me: loading cache $cache_file" >&6;}
2092 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093 *) . "./$cache_file";;
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 # Check that the precious variables saved in the cache have kept the same
2104 ac_cache_corrupted=false
2105 for ac_var in $ac_precious_vars; do
2106 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2107 eval ac_new_set=\$ac_env_${ac_var}_set
2108 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2109 eval ac_new_val=\$ac_env_${ac_var}_value
2110 case $ac_old_set,$ac_new_set in
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2117 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2118 ac_cache_corrupted=: ;;
2121 if test "x$ac_old_val" != "x$ac_new_val"; then
2122 # differences in whitespace do not lead to failure.
2123 ac_old_val_w=`echo x $ac_old_val`
2124 ac_new_val_w=`echo x $ac_new_val`
2125 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2127 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2128 ac_cache_corrupted=:
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2131 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2132 eval $ac_var=\$ac_old_val
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2135 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2137 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2140 # Pass precious variables to config.status.
2141 if test "$ac_new_set" = set; then
2143 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2144 *) ac_arg=$ac_var=$ac_new_val ;;
2146 case " $ac_configure_args " in
2147 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2148 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152 if $ac_cache_corrupted; then
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2156 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2157 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2159 ## -------------------- ##
2160 ## Main body of script. ##
2161 ## -------------------- ##
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173 am__api_version='1.11'
2176 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2177 if test -f "$ac_dir/install-sh"; then
2179 ac_install_sh="$ac_aux_dir/install-sh -c"
2181 elif test -f "$ac_dir/install.sh"; then
2183 ac_install_sh="$ac_aux_dir/install.sh -c"
2185 elif test -f "$ac_dir/shtool"; then
2187 ac_install_sh="$ac_aux_dir/shtool install -c"
2191 if test -z "$ac_aux_dir"; then
2192 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2195 # These three variables are undocumented and unsupported,
2196 # and are intended to be withdrawn in a future Autoconf release.
2197 # They can cause serious problems if a builder's source tree is in a directory
2198 # whose full name contains unusual characters.
2199 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2200 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2201 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2204 # Find a good install program. We prefer a C program (faster),
2205 # so one script is as good as another. But avoid the broken or
2206 # incompatible versions:
2207 # SysV /etc/install, /usr/sbin/install
2208 # SunOS /usr/etc/install
2209 # IRIX /sbin/install
2211 # AmigaOS /C/install, which installs bootblocks on floppy discs
2212 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2213 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2214 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2215 # OS/2's system install, which has a completely different semantic
2216 # ./install, which can be erroneously created by make from ./install.sh.
2217 # Reject install programs that cannot install multiple files.
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2219 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2220 if test -z "$INSTALL"; then
2221 if ${ac_cv_path_install+:} false; then :
2222 $as_echo_n "(cached) " >&6
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 # Account for people who put trailing slashes in PATH elements.
2230 case $as_dir/ in #((
2231 ./ | .// | /[cC]/* | \
2232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2239 for ac_prog in ginstall scoinst install; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2242 if test $ac_prog = install &&
2243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # AIX install. It has an incompatible calling convention.
2246 elif test $ac_prog = install &&
2247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # program-specific install script used by HP pwplus--don't use.
2251 rm -rf conftest.one conftest.two conftest.dir
2252 echo one > conftest.one
2253 echo two > conftest.two
2255 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2256 test -s conftest.one && test -s conftest.two &&
2257 test -s conftest.dir/conftest.one &&
2258 test -s conftest.dir/conftest.two
2260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2273 rm -rf conftest.one conftest.two conftest.dir
2276 if test "${ac_cv_path_install+set}" = set; then
2277 INSTALL=$ac_cv_path_install
2279 # As a last resort, use the slow shell script. Don't cache a
2280 # value for INSTALL within a source directory, because that will
2281 # break other packages using the cache if that directory is
2282 # removed, or if the value is a relative name.
2283 INSTALL=$ac_install_sh
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2287 $as_echo "$INSTALL" >&6; }
2289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2290 # It thinks the first close brace ends the variable substitution.
2291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2298 $as_echo_n "checking whether build environment is sane... " >&6; }
2301 echo timestamp > conftest.file
2302 # Reject unsafe characters in $srcdir or the absolute working directory
2303 # name. Accept space and tab only in the latter.
2307 *[\\\"\#\$\&\'\`$am_lf]*)
2308 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2311 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2312 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2315 # Do `set' in a subshell so we don't clobber the current shell's
2316 # arguments. Must try -L first in case configure is actually a
2317 # symlink; some systems play weird games with the mod time of symlinks
2318 # (eg FreeBSD returns the mod time of the symlink's containing
2321 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2322 if test "$*" = "X"; then
2324 set X `ls -t "$srcdir/configure" conftest.file`
2327 if test "$*" != "X $srcdir/configure conftest.file" \
2328 && test "$*" != "X conftest.file $srcdir/configure"; then
2330 # If neither matched, then we have a broken ls. This can happen
2331 # if, for instance, CONFIG_SHELL is bash and it inherits a
2332 # broken ls alias from the environment. This has actually
2333 # happened. Such a system could not be considered "sane".
2334 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2335 alias in your environment" "$LINENO" 5
2338 test "$2" = conftest.file
2344 as_fn_error $? "newly created file is older than distributed files!
2345 Check your system clock" "$LINENO" 5
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2348 $as_echo "yes" >&6; }
2349 test "$program_prefix" != NONE &&
2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2351 # Use a double $ so make ignores it.
2352 test "$program_suffix" != NONE &&
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354 # Double any \ or $.
2355 # By default was `s,x,x', remove it if useless.
2356 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2359 # expand $ac_aux_dir to an absolute path
2360 am_aux_dir=`cd $ac_aux_dir && pwd`
2362 if test x"${MISSING+set}" != xset; then
2365 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2367 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2370 # Use eval to expand $SHELL
2371 if eval "$MISSING --run true"; then
2372 am_missing_run="$MISSING --run "
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2376 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2379 if test x"${install_sh}" != xset; then
2382 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2384 install_sh="\${SHELL} $am_aux_dir/install-sh"
2388 # Installed binaries are usually stripped using `strip' when the user
2389 # run `make install-strip'. However `strip' might not be the right
2390 # tool to use in cross-compilation environments, therefore Automake
2391 # will honor the `STRIP' environment variable to overrule this program.
2392 if test "$cross_compiling" != no; then
2393 if test -n "$ac_tool_prefix"; then
2394 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2395 set dummy ${ac_tool_prefix}strip; ac_word=$2
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2397 $as_echo_n "checking for $ac_word... " >&6; }
2398 if ${ac_cv_prog_STRIP+:} false; then :
2399 $as_echo_n "(cached) " >&6
2401 if test -n "$STRIP"; then
2402 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 STRIP=$ac_cv_prog_STRIP
2422 if test -n "$STRIP"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2424 $as_echo "$STRIP" >&6; }
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2427 $as_echo "no" >&6; }
2432 if test -z "$ac_cv_prog_STRIP"; then
2434 # Extract the first word of "strip", so it can be a program name with args.
2435 set dummy strip; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 if test -n "$ac_ct_STRIP"; then
2442 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2451 ac_cv_prog_ac_ct_STRIP="strip"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2462 if test -n "$ac_ct_STRIP"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2464 $as_echo "$ac_ct_STRIP" >&6; }
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2470 if test "x$ac_ct_STRIP" = x; then
2473 case $cross_compiling:$ac_tool_warned in
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2477 ac_tool_warned=yes ;;
2482 STRIP="$ac_cv_prog_STRIP"
2486 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2489 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2490 if test -z "$MKDIR_P"; then
2491 if ${ac_cv_path_mkdir+:} false; then :
2492 $as_echo_n "(cached) " >&6
2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2498 test -z "$as_dir" && as_dir=.
2499 for ac_prog in mkdir gmkdir; do
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2502 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2503 'mkdir (GNU coreutils) '* | \
2504 'mkdir (coreutils) '* | \
2505 'mkdir (fileutils) '4.1*)
2506 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2516 test -d ./--version && rmdir ./--version
2517 if test "${ac_cv_path_mkdir+set}" = set; then
2518 MKDIR_P="$ac_cv_path_mkdir -p"
2520 # As a last resort, use the slow shell script. Don't cache a
2521 # value for MKDIR_P within a source directory, because that will
2522 # break other packages using the cache if that directory is
2523 # removed, or if the value is a relative name.
2524 MKDIR_P="$ac_install_sh -d"
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2528 $as_echo "$MKDIR_P" >&6; }
2532 [\\/$]* | ?:[\\/]*) ;;
2533 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2536 for ac_prog in gawk mawk nawk awk
2538 # Extract the first word of "$ac_prog", so it can be a program name with args.
2539 set dummy $ac_prog; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_AWK+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 if test -n "$AWK"; then
2546 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_AWK="$ac_prog"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$AWK"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2568 $as_echo "$AWK" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2575 test -n "$AWK" && break
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2582 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 cat >conftest.make <<\_ACEOF
2588 @echo '@@@%%%=$(MAKE)=@@@%%%'
2590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2593 eval ac_cv_prog_make_${ac_make}_set=yes;;
2595 eval ac_cv_prog_make_${ac_make}_set=no;;
2599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2601 $as_echo "yes" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2606 SET_MAKE="MAKE=${MAKE-make}"
2609 rm -rf .tst 2>/dev/null
2610 mkdir .tst 2>/dev/null
2611 if test -d .tst; then
2616 rmdir .tst 2>/dev/null
2618 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2619 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2620 # is not polluted with repeated "-I."
2621 am__isrc=' -I$(srcdir)'
2622 # test to see if srcdir already configured
2623 if test -f $srcdir/config.status; then
2624 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2628 # test whether we have cygpath
2629 if test -z "$CYGPATH_W"; then
2630 if (cygpath --version) >/dev/null 2>/dev/null; then
2631 CYGPATH_W='cygpath -w'
2638 # Define the identity of the package.
2643 cat >>confdefs.h <<_ACEOF
2644 #define PACKAGE "$PACKAGE"
2648 cat >>confdefs.h <<_ACEOF
2649 #define VERSION "$VERSION"
2652 # Some tools Automake needs.
2654 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2657 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2660 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2663 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2666 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2668 # We need awk for the "check" target. The system "awk" is bad on
2670 # Always define AMTAR for backward compatibility. Yes, it's still used
2671 # in the wild :-( We should find a proper way to deprecate it ...
2674 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2681 DEPDIR="${am__leading_dot}deps"
2683 ac_config_commands="$ac_config_commands depfiles"
2686 am_make=${MAKE-make}
2687 cat > confinc << 'END'
2689 @echo this is the am__doit target
2692 # If we don't find an include directive, just comment out the code.
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2694 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2698 # First try GNU make style include.
2699 echo "include confinc" > confmf
2700 # Ignore all kinds of additional output from `make'.
2701 case `$am_make -s -f confmf 2> /dev/null` in #(
2702 *the\ am__doit\ target*)
2708 # Now try BSD make style include.
2709 if test "$am__include" = "#"; then
2710 echo '.include "confinc"' > confmf
2711 case `$am_make -s -f confmf 2> /dev/null` in #(
2712 *the\ am__doit\ target*)
2713 am__include=.include
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2722 $as_echo "$_am_result" >&6; }
2723 rm -f confinc confmf
2725 # Check whether --enable-dependency-tracking was given.
2726 if test "${enable_dependency_tracking+set}" = set; then :
2727 enableval=$enable_dependency_tracking;
2730 if test "x$enable_dependency_tracking" != xno; then
2731 am_depcomp="$ac_aux_dir/depcomp"
2735 if test "x$enable_dependency_tracking" != xno; then
2745 ac_cpp='$CPP $CPPFLAGS'
2746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if ${ac_cv_prog_CC+:} false; then :
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2788 if test -z "$ac_cv_prog_CC"; then
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2795 $as_echo_n "(cached) " >&6
2797 if test -n "$ac_ct_CC"; then
2798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_CC="gcc"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2818 if test -n "$ac_ct_CC"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2820 $as_echo "$ac_ct_CC" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2826 if test "x$ac_ct_CC" = x; then
2829 case $cross_compiling:$ac_tool_warned in
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2833 ac_tool_warned=yes ;;
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2844 set dummy ${ac_tool_prefix}cc; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if ${ac_cv_prog_CC+:} false; then :
2848 $as_echo_n "(cached) " >&6
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_CC="${ac_tool_prefix}cc"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 if test -n "$CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873 $as_echo "$CC" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2882 if test -z "$CC"; then
2883 # Extract the first word of "cc", so it can be a program name with args.
2884 set dummy cc; ac_word=$2
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886 $as_echo_n "checking for $ac_word... " >&6; }
2887 if ${ac_cv_prog_CC+:} false; then :
2888 $as_echo_n "(cached) " >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2902 ac_prog_rejected=yes
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 if test $ac_prog_rejected = yes; then
2914 # We found a bogon in the path, so make sure we never use it.
2915 set dummy $ac_cv_prog_CC
2917 if test $# != 0; then
2918 # We chose a different compiler from the bogus one.
2919 # However, it has the same basename, so the bogon will be chosen
2920 # first if we set CC to just the basename; use the full file name.
2922 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$CC"; then
2939 if test -n "$ac_tool_prefix"; then
2940 for ac_prog in cl.exe
2942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if ${ac_cv_prog_CC+:} false; then :
2947 $as_echo_n "(cached) " >&6
2949 if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 if test -n "$CC"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2972 $as_echo "$CC" >&6; }
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2979 test -n "$CC" && break
2982 if test -z "$CC"; then
2984 for ac_prog in cl.exe
2986 # Extract the first word of "$ac_prog", so it can be a program name with args.
2987 set dummy $ac_prog; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2993 if test -n "$ac_ct_CC"; then
2994 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_ac_ct_CC="$ac_prog"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3023 test -n "$ac_ct_CC" && break
3026 if test "x$ac_ct_CC" = x; then
3029 case $cross_compiling:$ac_tool_warned in
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned=yes ;;
3042 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $? "no acceptable C compiler found in \$PATH
3045 See \`config.log' for more details" "$LINENO" 5; }
3047 # Provide some information about the compiler.
3048 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051 for ac_option in --version -v -V -qversion; do
3052 { { ac_try="$ac_compiler $ac_option >&5"
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3061 if test -s conftest.err; then
3063 ... rest of stderr output deleted ...
3064 10q' conftest.err >conftest.er1
3065 cat conftest.er1 >&5
3067 rm -f conftest.er1 conftest.err
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3089 $as_echo_n "checking whether the C compiler works... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096 for ac_file in $ac_files
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 if { { ac_try="$ac_link_default"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3128 # We found the default executable, but exeext='' is most
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151 if test -z "$ac_file"; then :
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 as_fn_error 77 "C compiler cannot create executables
3160 See \`config.log' for more details" "$LINENO" 5; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3166 $as_echo_n "checking for C compiler default output file name... " >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3168 $as_echo "$ac_file" >&6; }
3169 ac_exeext=$ac_cv_exeext
3171 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3172 ac_clean_files=$ac_clean_files_save
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3174 $as_echo_n "checking for suffix of executables... " >&6; }
3175 if { { ac_try="$ac_link"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181 $as_echo "$ac_try_echo"; } >&5
3182 (eval "$ac_link") 2>&5
3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185 test $ac_status = 0; }; then :
3186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3188 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 for ac_file in conftest.exe conftest conftest.*; do
3191 test -f "$ac_file" || continue
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 rm -f conftest conftest$ac_cv_exeext
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3207 $as_echo "$ac_cv_exeext" >&6; }
3209 rm -f conftest.$ac_ext
3210 EXEEXT=$ac_cv_exeext
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3218 FILE *f = fopen ("conftest.out", "w");
3219 return ferror (f) || fclose (f) != 0;
3225 ac_clean_files="$ac_clean_files conftest.out"
3226 # Check that the compiler produces executables we can run. If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 if test "$cross_compiling" != yes; then
3231 { { ac_try="$ac_link"
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237 $as_echo "$ac_try_echo"; } >&5
3238 (eval "$ac_link") 2>&5
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 if { ac_try='./conftest$ac_cv_exeext'
3243 { { case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_try") 2>&5
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; }; then
3255 if test "$cross_compiling" = maybe; then
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error $? "cannot run C compiled programs.
3261 If you meant to cross compile, use \`--host'.
3262 See \`config.log' for more details" "$LINENO" 5; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3267 $as_echo "$cross_compiling" >&6; }
3269 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3272 $as_echo_n "checking for suffix of object files... " >&6; }
3273 if ${ac_cv_objext+:} false; then :
3274 $as_echo_n "(cached) " >&6
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3287 rm -f conftest.o conftest.obj
3288 if { { ac_try="$ac_compile"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_compile") 2>&5
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; then :
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error $? "cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details" "$LINENO" 5; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3319 $as_echo "$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3323 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3324 if ${ac_cv_c_compiler_gnu+:} false; then :
3325 $as_echo_n "(cached) " >&6
3327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3328 /* end confdefs.h. */
3341 if ac_fn_c_try_compile "$LINENO"; then :
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3351 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3352 if test $ac_compiler_gnu = yes; then
3357 ac_test_CFLAGS=${CFLAGS+set}
3358 ac_save_CFLAGS=$CFLAGS
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3360 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3361 if ${ac_cv_prog_cc_g+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 ac_save_c_werror_flag=$ac_c_werror_flag
3365 ac_c_werror_flag=yes
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 if ac_fn_c_try_compile "$LINENO"; then :
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400 /* end confdefs.h. */
3410 if ac_fn_c_try_compile "$LINENO"; then :
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3421 $as_echo "$ac_cv_prog_cc_g" >&6; }
3422 if test "$ac_test_CFLAGS" = set; then
3423 CFLAGS=$ac_save_CFLAGS
3424 elif test $ac_cv_prog_cc_g = yes; then
3425 if test "$GCC" = yes; then
3431 if test "$GCC" = yes; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3438 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3439 if ${ac_cv_prog_cc_c89+:} false; then :
3440 $as_echo_n "(cached) " >&6
3442 ac_cv_prog_cc_c89=no
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3449 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3450 struct buf { int x; };
3451 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3452 static char *e (p, i)
3458 static char *f (char * (*g) (char **, int), char **p, ...)
3463 s = g (p, va_arg (v,int));
3468 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3469 function prototypes and stuff, but not '\xHH' hex character constants.
3470 These don't provoke an error unfortunately, instead are silently treated
3471 as 'x'. The following induces an error, until -std is added to get
3472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3473 array size at least. It's necessary to write '\x00'==0 to get something
3474 that's true only with -std. */
3475 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3478 inside strings and character constants. */
3480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3482 int test (int i, double x);
3483 struct s1 {int (*f) (int a);};
3484 struct s2 {int (*f) (double a);};
3485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3499 CC="$ac_save_CC $ac_arg"
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_prog_cc_c89=$ac_arg
3503 rm -f core conftest.err conftest.$ac_objext
3504 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 rm -f conftest.$ac_ext
3511 case "x$ac_cv_prog_cc_c89" in
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3514 $as_echo "none needed" >&6; } ;;
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3517 $as_echo "unsupported" >&6; } ;;
3519 CC="$CC $ac_cv_prog_cc_c89"
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3521 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3523 if test "x$ac_cv_prog_cc_c89" != xno; then :
3528 ac_cpp='$CPP $CPPFLAGS'
3529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 depcc="$CC" am_compiler_list=
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3536 $as_echo_n "checking dependency style of $depcc... " >&6; }
3537 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3541 # We make a subdir and do the tests there. Otherwise we can end up
3542 # making bogus files that we don't know about and never remove. For
3543 # instance it was reported that on HP-UX the gcc test will end up
3544 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # Copy depcomp to subdir because otherwise we won't find it if we're
3549 # using a relative directory.
3550 cp "$am_depcomp" conftest.dir
3552 # We will build objects and dependencies in a subdirectory because
3553 # it helps to detect inapplicable dependency modes. For instance
3554 # both Tru64's cc and ICC support -MD to output dependencies as a
3555 # side effect of compilation, but ICC will put the dependencies in
3556 # the current directory while Tru64 will put them in the object
3560 am_cv_CC_dependencies_compiler_type=none
3561 if test "$am_compiler_list" = ""; then
3562 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 case " $depcc " in #(
3566 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3569 for depmode in $am_compiler_list; do
3570 # Setup a source with many dependencies, because some compilers
3571 # like to wrap large dependency lists on column 80 (with \), and
3572 # we should not choose a depcomp mode which is confused by this.
3574 # We need to recreate these files for each test, as the compiler may
3575 # overwrite some of them when testing with obscure command lines.
3576 # This happens at least with the AIX C compiler.
3578 for i in 1 2 3 4 5 6; do
3579 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3580 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3581 # Solaris 8's {/usr,}/bin/sh.
3582 touch sub/conftst$i.h
3584 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3587 # mode. It turns out that the SunPro C++ compiler does not properly
3588 # handle `-M -o', and we need to detect this. Also, some Intel
3589 # versions had trouble with output in subdirs
3590 am__obj=sub/conftest.${OBJEXT-o}
3591 am__minus_obj="-o $am__obj"
3594 # This depmode causes a compiler race in universal mode.
3595 test "$am__universal" = false || continue
3598 # after this tag, mechanisms are not by side-effect, so they'll
3599 # only be used when explicitly requested
3600 if test "x$enable_dependency_tracking" = xyes; then
3606 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3607 # This compiler won't grok `-c -o', but also, the minuso test has
3608 # not run yet. These depmodes are late enough in the game, and
3609 # so weak that their functioning should not be impacted.
3610 am__obj=conftest.${OBJEXT-o}
3615 if depmode=$depmode \
3616 source=sub/conftest.c object=$am__obj \
3617 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3618 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3619 >/dev/null 2>conftest.err &&
3620 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3621 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3622 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3623 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3624 # icc doesn't choke on unknown options, it will just issue warnings
3625 # or remarks (even with -Werror). So we grep stderr for any message
3626 # that says an option was ignored or not supported.
3627 # When given -MP, icc 7.0 and 7.1 complain thusly:
3628 # icc: Command line warning: ignoring option '-M'; no argument required
3629 # The diagnosis changed in icc 8.0:
3630 # icc: Command line remark: option '-MP' not supported
3631 if (grep 'ignoring option' conftest.err ||
3632 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3633 am_cv_CC_dependencies_compiler_type=$depmode
3642 am_cv_CC_dependencies_compiler_type=none
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3647 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3648 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3651 test "x$enable_dependency_tracking" != xno \
3652 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3654 am__fastdepCC_FALSE='#'
3656 am__fastdepCC_TRUE='#'
3657 am__fastdepCC_FALSE=
3662 # Check whether --enable-largefile was given.
3663 if test "${enable_largefile+set}" = set; then :
3664 enableval=$enable_largefile;
3667 if test "$enable_largefile" != no; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3670 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3671 if ${ac_cv_sys_largefile_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 ac_cv_sys_largefile_CC=no
3675 if test "$GCC" != yes; then
3678 # IRIX 6.2 and later do not support large files by default,
3679 # so use the C compiler's -n32 option if that helps.
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682 #include <sys/types.h>
3683 /* Check that off_t can represent 2**63 - 1 correctly.
3684 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3685 since some C++ compilers masquerading as C compilers
3686 incorrectly reject 9223372036854775807. */
3687 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3688 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3689 && LARGE_OFF_T % 2147483647 == 1)
3699 if ac_fn_c_try_compile "$LINENO"; then :
3702 rm -f core conftest.err conftest.$ac_objext
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_sys_largefile_CC=' -n32'; break
3707 rm -f core conftest.err conftest.$ac_objext
3711 rm -f conftest.$ac_ext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3715 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3716 if test "$ac_cv_sys_largefile_CC" != no; then
3717 CC=$CC$ac_cv_sys_largefile_CC
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3721 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3722 if ${ac_cv_sys_file_offset_bits+:} false; then :
3723 $as_echo_n "(cached) " >&6
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728 #include <sys/types.h>
3729 /* Check that off_t can represent 2**63 - 1 correctly.
3730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3731 since some C++ compilers masquerading as C compilers
3732 incorrectly reject 9223372036854775807. */
3733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3735 && LARGE_OFF_T % 2147483647 == 1)
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_sys_file_offset_bits=no; break
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #define _FILE_OFFSET_BITS 64
3752 #include <sys/types.h>
3753 /* Check that off_t can represent 2**63 - 1 correctly.
3754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3755 since some C++ compilers masquerading as C compilers
3756 incorrectly reject 9223372036854775807. */
3757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3759 && LARGE_OFF_T % 2147483647 == 1)
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770 ac_cv_sys_file_offset_bits=64; break
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773 ac_cv_sys_file_offset_bits=unknown
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3778 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3779 case $ac_cv_sys_file_offset_bits in #(
3782 cat >>confdefs.h <<_ACEOF
3783 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3788 if test $ac_cv_sys_file_offset_bits = unknown; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3790 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3791 if ${ac_cv_sys_large_files+:} false; then :
3792 $as_echo_n "(cached) " >&6
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #include <sys/types.h>
3798 /* Check that off_t can represent 2**63 - 1 correctly.
3799 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3800 since some C++ compilers masquerading as C compilers
3801 incorrectly reject 9223372036854775807. */
3802 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3803 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3804 && LARGE_OFF_T % 2147483647 == 1)
3814 if ac_fn_c_try_compile "$LINENO"; then :
3815 ac_cv_sys_large_files=no; break
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3820 #define _LARGE_FILES 1
3821 #include <sys/types.h>
3822 /* Check that off_t can represent 2**63 - 1 correctly.
3823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3824 since some C++ compilers masquerading as C compilers
3825 incorrectly reject 9223372036854775807. */
3826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3828 && LARGE_OFF_T % 2147483647 == 1)
3838 if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_sys_large_files=1; break
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_sys_large_files=unknown
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3847 $as_echo "$ac_cv_sys_large_files" >&6; }
3848 case $ac_cv_sys_large_files in #(
3851 cat >>confdefs.h <<_ACEOF
3852 #define _LARGE_FILES $ac_cv_sys_large_files
3863 # Check for required programs.
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869 if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873 $as_echo_n "checking for $ac_word... " >&6; }
3874 if ${ac_cv_prog_CC+:} false; then :
3875 $as_echo_n "(cached) " >&6
3877 if test -n "$CC"; then
3878 ac_cv_prog_CC="$CC" # Let the user override the test.
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 if test -n "$CC"; then
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900 $as_echo "$CC" >&6; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3908 if test -z "$ac_cv_prog_CC"; then
3910 # Extract the first word of "gcc", so it can be a program name with args.
3911 set dummy gcc; ac_word=$2
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913 $as_echo_n "checking for $ac_word... " >&6; }
3914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3915 $as_echo_n "(cached) " >&6
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_prog_ac_ct_CC="gcc"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3938 if test -n "$ac_ct_CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3940 $as_echo "$ac_ct_CC" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3946 if test "x$ac_ct_CC" = x; then
3949 case $cross_compiling:$ac_tool_warned in
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3953 ac_tool_warned=yes ;;
3961 if test -z "$CC"; then
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}cc; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_CC+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_CC="${ac_tool_prefix}cc"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$CC"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993 $as_echo "$CC" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4002 if test -z "$CC"; then
4003 # Extract the first word of "cc", so it can be a program name with args.
4004 set dummy cc; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_CC+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4022 ac_prog_rejected=yes
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test $ac_prog_rejected = yes; then
4034 # We found a bogon in the path, so make sure we never use it.
4035 set dummy $ac_cv_prog_CC
4037 if test $# != 0; then
4038 # We chose a different compiler from the bogus one.
4039 # However, it has the same basename, so the bogon will be chosen
4040 # first if we set CC to just the basename; use the full file name.
4042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4048 if test -n "$CC"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 $as_echo "$CC" >&6; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4058 if test -z "$CC"; then
4059 if test -n "$ac_tool_prefix"; then
4060 for ac_prog in cl.exe
4062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 $as_echo_n "checking for $ac_word... " >&6; }
4066 if ${ac_cv_prog_CC+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 if test -n "$CC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4092 $as_echo "$CC" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4099 test -n "$CC" && break
4102 if test -z "$CC"; then
4104 for ac_prog in cl.exe
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107 set dummy $ac_prog; ac_word=$2
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109 $as_echo_n "checking for $ac_word... " >&6; }
4110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 if test -n "$ac_ct_CC"; then
4114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_ac_ct_CC="$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4134 if test -n "$ac_ct_CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4136 $as_echo "$ac_ct_CC" >&6; }
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139 $as_echo "no" >&6; }
4143 test -n "$ac_ct_CC" && break
4146 if test "x$ac_ct_CC" = x; then
4149 case $cross_compiling:$ac_tool_warned in
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153 ac_tool_warned=yes ;;
4162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 as_fn_error $? "no acceptable C compiler found in \$PATH
4165 See \`config.log' for more details" "$LINENO" 5; }
4167 # Provide some information about the compiler.
4168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4171 for ac_option in --version -v -V -qversion; do
4172 { { ac_try="$ac_compiler $ac_option >&5"
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 $as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4181 if test -s conftest.err; then
4183 ... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4187 rm -f conftest.er1 conftest.err
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4193 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4194 if ${ac_cv_c_compiler_gnu+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4211 if ac_fn_c_try_compile "$LINENO"; then :
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4221 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4222 if test $ac_compiler_gnu = yes; then
4227 ac_test_CFLAGS=${CFLAGS+set}
4228 ac_save_CFLAGS=$CFLAGS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4230 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4231 if ${ac_cv_prog_cc_g+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_save_c_werror_flag=$ac_c_werror_flag
4235 ac_c_werror_flag=yes
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4249 if ac_fn_c_try_compile "$LINENO"; then :
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4254 /* end confdefs.h. */
4264 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_c_werror_flag=$ac_save_c_werror_flag
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4280 if ac_fn_c_try_compile "$LINENO"; then :
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 ac_c_werror_flag=$ac_save_c_werror_flag
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4291 $as_echo "$ac_cv_prog_cc_g" >&6; }
4292 if test "$ac_test_CFLAGS" = set; then
4293 CFLAGS=$ac_save_CFLAGS
4294 elif test $ac_cv_prog_cc_g = yes; then
4295 if test "$GCC" = yes; then
4301 if test "$GCC" = yes; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4308 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4309 if ${ac_cv_prog_cc_c89+:} false; then :
4310 $as_echo_n "(cached) " >&6
4312 ac_cv_prog_cc_c89=no
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4320 struct buf { int x; };
4321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4322 static char *e (p, i)
4328 static char *f (char * (*g) (char **, int), char **p, ...)
4333 s = g (p, va_arg (v,int));
4338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4339 function prototypes and stuff, but not '\xHH' hex character constants.
4340 These don't provoke an error unfortunately, instead are silently treated
4341 as 'x'. The following induces an error, until -std is added to get
4342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4343 array size at least. It's necessary to write '\x00'==0 to get something
4344 that's true only with -std. */
4345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4348 inside strings and character constants. */
4350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4352 int test (int i, double x);
4353 struct s1 {int (*f) (int a);};
4354 struct s2 {int (*f) (double a);};
4355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4369 CC="$ac_save_CC $ac_arg"
4370 if ac_fn_c_try_compile "$LINENO"; then :
4371 ac_cv_prog_cc_c89=$ac_arg
4373 rm -f core conftest.err conftest.$ac_objext
4374 test "x$ac_cv_prog_cc_c89" != "xno" && break
4376 rm -f conftest.$ac_ext
4381 case "x$ac_cv_prog_cc_c89" in
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4384 $as_echo "none needed" >&6; } ;;
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4387 $as_echo "unsupported" >&6; } ;;
4389 CC="$CC $ac_cv_prog_cc_c89"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4393 if test "x$ac_cv_prog_cc_c89" != xno; then :
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 depcc="$CC" am_compiler_list=
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4406 $as_echo_n "checking dependency style of $depcc... " >&6; }
4407 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4411 # We make a subdir and do the tests there. Otherwise we can end up
4412 # making bogus files that we don't know about and never remove. For
4413 # instance it was reported that on HP-UX the gcc test will end up
4414 # making a dummy file named `D' -- because `-MD' means `put the output
4418 # Copy depcomp to subdir because otherwise we won't find it if we're
4419 # using a relative directory.
4420 cp "$am_depcomp" conftest.dir
4422 # We will build objects and dependencies in a subdirectory because
4423 # it helps to detect inapplicable dependency modes. For instance
4424 # both Tru64's cc and ICC support -MD to output dependencies as a
4425 # side effect of compilation, but ICC will put the dependencies in
4426 # the current directory while Tru64 will put them in the object
4430 am_cv_CC_dependencies_compiler_type=none
4431 if test "$am_compiler_list" = ""; then
4432 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4435 case " $depcc " in #(
4436 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4439 for depmode in $am_compiler_list; do
4440 # Setup a source with many dependencies, because some compilers
4441 # like to wrap large dependency lists on column 80 (with \), and
4442 # we should not choose a depcomp mode which is confused by this.
4444 # We need to recreate these files for each test, as the compiler may
4445 # overwrite some of them when testing with obscure command lines.
4446 # This happens at least with the AIX C compiler.
4448 for i in 1 2 3 4 5 6; do
4449 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4450 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4451 # Solaris 8's {/usr,}/bin/sh.
4452 touch sub/conftst$i.h
4454 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4456 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4457 # mode. It turns out that the SunPro C++ compiler does not properly
4458 # handle `-M -o', and we need to detect this. Also, some Intel
4459 # versions had trouble with output in subdirs
4460 am__obj=sub/conftest.${OBJEXT-o}
4461 am__minus_obj="-o $am__obj"
4464 # This depmode causes a compiler race in universal mode.
4465 test "$am__universal" = false || continue
4468 # after this tag, mechanisms are not by side-effect, so they'll
4469 # only be used when explicitly requested
4470 if test "x$enable_dependency_tracking" = xyes; then
4476 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4477 # This compiler won't grok `-c -o', but also, the minuso test has
4478 # not run yet. These depmodes are late enough in the game, and
4479 # so weak that their functioning should not be impacted.
4480 am__obj=conftest.${OBJEXT-o}
4485 if depmode=$depmode \
4486 source=sub/conftest.c object=$am__obj \
4487 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4488 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4489 >/dev/null 2>conftest.err &&
4490 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4491 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4493 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4494 # icc doesn't choke on unknown options, it will just issue warnings
4495 # or remarks (even with -Werror). So we grep stderr for any message
4496 # that says an option was ignored or not supported.
4497 # When given -MP, icc 7.0 and 7.1 complain thusly:
4498 # icc: Command line warning: ignoring option '-M'; no argument required
4499 # The diagnosis changed in icc 8.0:
4500 # icc: Command line remark: option '-MP' not supported
4501 if (grep 'ignoring option' conftest.err ||
4502 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4503 am_cv_CC_dependencies_compiler_type=$depmode
4512 am_cv_CC_dependencies_compiler_type=none
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4517 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4518 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4521 test "x$enable_dependency_tracking" != xno \
4522 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4524 am__fastdepCC_FALSE='#'
4526 am__fastdepCC_TRUE='#'
4527 am__fastdepCC_FALSE=
4531 if test -n "$ac_tool_prefix"; then
4532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4535 $as_echo_n "checking for $ac_word... " >&6; }
4536 if ${ac_cv_prog_RANLIB+:} false; then :
4537 $as_echo_n "(cached) " >&6
4539 if test -n "$RANLIB"; then
4540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 RANLIB=$ac_cv_prog_RANLIB
4560 if test -n "$RANLIB"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4562 $as_echo "$RANLIB" >&6; }
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4565 $as_echo "no" >&6; }
4570 if test -z "$ac_cv_prog_RANLIB"; then
4571 ac_ct_RANLIB=$RANLIB
4572 # Extract the first word of "ranlib", so it can be a program name with args.
4573 set dummy ranlib; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4577 $as_echo_n "(cached) " >&6
4579 if test -n "$ac_ct_RANLIB"; then
4580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_prog_ac_ct_RANLIB="ranlib"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4600 if test -n "$ac_ct_RANLIB"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4602 $as_echo "$ac_ct_RANLIB" >&6; }
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4608 if test "x$ac_ct_RANLIB" = x; then
4611 case $cross_compiling:$ac_tool_warned in
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4615 ac_tool_warned=yes ;;
4617 RANLIB=$ac_ct_RANLIB
4620 RANLIB="$ac_cv_prog_RANLIB"
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4626 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4631 macro_version='2.4.2'
4632 macro_revision='1.3337'
4646 ltmain="$ac_aux_dir/ltmain.sh"
4648 # Make sure we can run config.sub.
4649 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4650 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4653 $as_echo_n "checking build system type... " >&6; }
4654 if ${ac_cv_build+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 ac_build_alias=$build_alias
4658 test "x$ac_build_alias" = x &&
4659 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4660 test "x$ac_build_alias" = x &&
4661 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4662 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4663 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4667 $as_echo "$ac_cv_build" >&6; }
4668 case $ac_cv_build in
4670 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4673 ac_save_IFS=$IFS; IFS='-'
4679 # Remember, the first character of IFS is used to create $*,
4680 # except with old shells:
4683 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4687 $as_echo_n "checking host system type... " >&6; }
4688 if ${ac_cv_host+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 if test "x$host_alias" = x; then
4692 ac_cv_host=$ac_cv_build
4694 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4695 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4700 $as_echo "$ac_cv_host" >&6; }
4703 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4706 ac_save_IFS=$IFS; IFS='-'
4712 # Remember, the first character of IFS is used to create $*,
4713 # except with old shells:
4716 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4719 # Backslashify metacharacters that are still active within
4720 # double-quoted strings.
4721 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4723 # Same as above, but do not quote variable references.
4724 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4726 # Sed substitution to delay expansion of an escaped shell variable in a
4727 # double_quote_subst'ed string.
4728 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4730 # Sed substitution to delay expansion of an escaped single quote.
4731 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4733 # Sed substitution to avoid accidental globbing in evaled expressions
4734 no_glob_subst='s/\*/\\\*/g'
4736 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4737 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4738 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4741 $as_echo_n "checking how to print strings... " >&6; }
4742 # Test print first, because it will be a builtin if present.
4743 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4744 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4746 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4749 # Use this function as a fallback that always works.
4750 func_fallback_echo ()
4752 eval 'cat <<_LTECHO_EOF
4756 ECHO='func_fallback_echo'
4759 # func_echo_all arg...
4760 # Invoke $ECHO with all args, space-separated.
4767 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4768 $as_echo "printf" >&6; } ;;
4769 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4770 $as_echo "print -r" >&6; } ;;
4771 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4772 $as_echo "cat" >&6; } ;;
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4789 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4790 if ${ac_cv_path_SED+:} false; then :
4791 $as_echo_n "(cached) " >&6
4793 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4794 for ac_i in 1 2 3 4 5 6 7; do
4795 ac_script="$ac_script$as_nl$ac_script"
4797 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4798 { ac_script=; unset ac_script;}
4799 if test -z "$SED"; then
4800 ac_path_SED_found=false
4801 # Loop through the user's path and test for each of PROGNAME-LIST
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 test -z "$as_dir" && as_dir=.
4807 for ac_prog in sed gsed; do
4808 for ac_exec_ext in '' $ac_executable_extensions; do
4809 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4810 as_fn_executable_p "$ac_path_SED" || continue
4811 # Check for GNU ac_path_SED and select it if it is found.
4812 # Check for GNU $ac_path_SED
4813 case `"$ac_path_SED" --version 2>&1` in
4815 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4818 $as_echo_n 0123456789 >"conftest.in"
4821 cat "conftest.in" "conftest.in" >"conftest.tmp"
4822 mv "conftest.tmp" "conftest.in"
4823 cp "conftest.in" "conftest.nl"
4824 $as_echo '' >> "conftest.nl"
4825 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827 as_fn_arith $ac_count + 1 && ac_count=$as_val
4828 if test $ac_count -gt ${ac_path_SED_max-0}; then
4829 # Best one so far, save it but keep looking for a better one
4830 ac_cv_path_SED="$ac_path_SED"
4831 ac_path_SED_max=$ac_count
4833 # 10*(2^10) chars as input seems more than enough
4834 test $ac_count -gt 10 && break
4836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 $ac_path_SED_found && break 3
4844 if test -z "$ac_cv_path_SED"; then
4845 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4853 $as_echo "$ac_cv_path_SED" >&6; }
4854 SED="$ac_cv_path_SED"
4857 test -z "$SED" && SED=sed
4858 Xsed="$SED -e 1s/^X//"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4871 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4872 if ${ac_cv_path_GREP+:} false; then :
4873 $as_echo_n "(cached) " >&6
4875 if test -z "$GREP"; then
4876 ac_path_GREP_found=false
4877 # Loop through the user's path and test for each of PROGNAME-LIST
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4882 test -z "$as_dir" && as_dir=.
4883 for ac_prog in grep ggrep; do
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4886 as_fn_executable_p "$ac_path_GREP" || continue
4887 # Check for GNU ac_path_GREP and select it if it is found.
4888 # Check for GNU $ac_path_GREP
4889 case `"$ac_path_GREP" --version 2>&1` in
4891 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4894 $as_echo_n 0123456789 >"conftest.in"
4897 cat "conftest.in" "conftest.in" >"conftest.tmp"
4898 mv "conftest.tmp" "conftest.in"
4899 cp "conftest.in" "conftest.nl"
4900 $as_echo 'GREP' >> "conftest.nl"
4901 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4902 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4903 as_fn_arith $ac_count + 1 && ac_count=$as_val
4904 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4905 # Best one so far, save it but keep looking for a better one
4906 ac_cv_path_GREP="$ac_path_GREP"
4907 ac_path_GREP_max=$ac_count
4909 # 10*(2^10) chars as input seems more than enough
4910 test $ac_count -gt 10 && break
4912 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4915 $ac_path_GREP_found && break 3
4920 if test -z "$ac_cv_path_GREP"; then
4921 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4924 ac_cv_path_GREP=$GREP
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4929 $as_echo "$ac_cv_path_GREP" >&6; }
4930 GREP="$ac_cv_path_GREP"
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4934 $as_echo_n "checking for egrep... " >&6; }
4935 if ${ac_cv_path_EGREP+:} false; then :
4936 $as_echo_n "(cached) " >&6
4938 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4939 then ac_cv_path_EGREP="$GREP -E"
4941 if test -z "$EGREP"; then
4942 ac_path_EGREP_found=false
4943 # Loop through the user's path and test for each of PROGNAME-LIST
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948 test -z "$as_dir" && as_dir=.
4949 for ac_prog in egrep; do
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4952 as_fn_executable_p "$ac_path_EGREP" || continue
4953 # Check for GNU ac_path_EGREP and select it if it is found.
4954 # Check for GNU $ac_path_EGREP
4955 case `"$ac_path_EGREP" --version 2>&1` in
4957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4960 $as_echo_n 0123456789 >"conftest.in"
4963 cat "conftest.in" "conftest.in" >"conftest.tmp"
4964 mv "conftest.tmp" "conftest.in"
4965 cp "conftest.in" "conftest.nl"
4966 $as_echo 'EGREP' >> "conftest.nl"
4967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4969 as_fn_arith $ac_count + 1 && ac_count=$as_val
4970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4971 # Best one so far, save it but keep looking for a better one
4972 ac_cv_path_EGREP="$ac_path_EGREP"
4973 ac_path_EGREP_max=$ac_count
4975 # 10*(2^10) chars as input seems more than enough
4976 test $ac_count -gt 10 && break
4978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 $ac_path_EGREP_found && break 3
4986 if test -z "$ac_cv_path_EGREP"; then
4987 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990 ac_cv_path_EGREP=$EGREP
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4996 $as_echo "$ac_cv_path_EGREP" >&6; }
4997 EGREP="$ac_cv_path_EGREP"
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5001 $as_echo_n "checking for fgrep... " >&6; }
5002 if ${ac_cv_path_FGREP+:} false; then :
5003 $as_echo_n "(cached) " >&6
5005 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5006 then ac_cv_path_FGREP="$GREP -F"
5008 if test -z "$FGREP"; then
5009 ac_path_FGREP_found=false
5010 # Loop through the user's path and test for each of PROGNAME-LIST
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5015 test -z "$as_dir" && as_dir=.
5016 for ac_prog in fgrep; do
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5019 as_fn_executable_p "$ac_path_FGREP" || continue
5020 # Check for GNU ac_path_FGREP and select it if it is found.
5021 # Check for GNU $ac_path_FGREP
5022 case `"$ac_path_FGREP" --version 2>&1` in
5024 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5027 $as_echo_n 0123456789 >"conftest.in"
5030 cat "conftest.in" "conftest.in" >"conftest.tmp"
5031 mv "conftest.tmp" "conftest.in"
5032 cp "conftest.in" "conftest.nl"
5033 $as_echo 'FGREP' >> "conftest.nl"
5034 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5036 as_fn_arith $ac_count + 1 && ac_count=$as_val
5037 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5038 # Best one so far, save it but keep looking for a better one
5039 ac_cv_path_FGREP="$ac_path_FGREP"
5040 ac_path_FGREP_max=$ac_count
5042 # 10*(2^10) chars as input seems more than enough
5043 test $ac_count -gt 10 && break
5045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5048 $ac_path_FGREP_found && break 3
5053 if test -z "$ac_cv_path_FGREP"; then
5054 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5057 ac_cv_path_FGREP=$FGREP
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5063 $as_echo "$ac_cv_path_FGREP" >&6; }
5064 FGREP="$ac_cv_path_FGREP"
5067 test -z "$GREP" && GREP=grep
5087 # Check whether --with-gnu-ld was given.
5088 if test "${with_gnu_ld+set}" = set; then :
5089 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5095 if test "$GCC" = yes; then
5096 # Check if gcc -print-prog-name=ld gives a path.
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5098 $as_echo_n "checking for ld used by $CC... " >&6; }
5101 # gcc leaves a trailing carriage return which upsets mingw
5102 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5104 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5107 # Accept absolute paths.
5109 re_direlt='/[^/][^/]*/\.\./'
5110 # Canonicalize the pathname of ld
5111 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5112 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5113 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5115 test -z "$LD" && LD="$ac_prog"
5118 # If it fails, then pretend we aren't using GCC.
5122 # If it is relative, then search for the first ld in PATH.
5126 elif test "$with_gnu_ld" = yes; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5128 $as_echo_n "checking for GNU ld... " >&6; }
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5131 $as_echo_n "checking for non-GNU ld... " >&6; }
5133 if ${lt_cv_path_LD+:} false; then :
5134 $as_echo_n "(cached) " >&6
5136 if test -z "$LD"; then
5137 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5138 for ac_dir in $PATH; do
5140 test -z "$ac_dir" && ac_dir=.
5141 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5142 lt_cv_path_LD="$ac_dir/$ac_prog"
5143 # Check to see if the program is GNU ld. I'd rather use --version,
5144 # but apparently some variants of GNU ld only accept -v.
5145 # Break only if it was the GNU/non-GNU ld that we prefer.
5146 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5147 *GNU* | *'with BFD'*)
5148 test "$with_gnu_ld" != no && break
5151 test "$with_gnu_ld" != yes && break
5158 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5163 if test -n "$LD"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5165 $as_echo "$LD" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5170 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5172 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5173 if ${lt_cv_prog_gnu_ld+:} false; then :
5174 $as_echo_n "(cached) " >&6
5176 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5177 case `$LD -v 2>&1 </dev/null` in
5178 *GNU* | *'with BFD'*)
5179 lt_cv_prog_gnu_ld=yes
5182 lt_cv_prog_gnu_ld=no
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5187 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5188 with_gnu_ld=$lt_cv_prog_gnu_ld
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5199 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5200 if ${lt_cv_path_NM+:} false; then :
5201 $as_echo_n "(cached) " >&6
5203 if test -n "$NM"; then
5204 # Let the user override the test.
5207 lt_nm_to_check="${ac_tool_prefix}nm"
5208 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5209 lt_nm_to_check="$lt_nm_to_check nm"
5211 for lt_tmp_nm in $lt_nm_to_check; do
5212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5213 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5215 test -z "$ac_dir" && ac_dir=.
5216 tmp_nm="$ac_dir/$lt_tmp_nm"
5217 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5218 # Check to see if the nm accepts a BSD-compat flag.
5219 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5220 # nm: unknown option "B" ignored
5221 # Tru64's nm complains that /dev/null is an invalid object file
5222 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5223 */dev/null* | *'Invalid file or object type'*)
5224 lt_cv_path_NM="$tmp_nm -B"
5228 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5230 lt_cv_path_NM="$tmp_nm -p"
5234 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5235 continue # so that we can try to find one that supports BSD flags
5244 : ${lt_cv_path_NM=no}
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5248 $as_echo "$lt_cv_path_NM" >&6; }
5249 if test "$lt_cv_path_NM" != "no"; then
5252 # Didn't find any BSD compatible name lister, look for dumpbin.
5253 if test -n "$DUMPBIN"; then :
5254 # Let the user override the test.
5256 if test -n "$ac_tool_prefix"; then
5257 for ac_prog in dumpbin "link -dump"
5259 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5260 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_prog_DUMPBIN+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 if test -n "$DUMPBIN"; then
5267 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 DUMPBIN=$ac_cv_prog_DUMPBIN
5287 if test -n "$DUMPBIN"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5289 $as_echo "$DUMPBIN" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5296 test -n "$DUMPBIN" && break
5299 if test -z "$DUMPBIN"; then
5300 ac_ct_DUMPBIN=$DUMPBIN
5301 for ac_prog in dumpbin "link -dump"
5303 # Extract the first word of "$ac_prog", so it can be a program name with args.
5304 set dummy $ac_prog; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$ac_ct_DUMPBIN"; then
5311 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5331 if test -n "$ac_ct_DUMPBIN"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5333 $as_echo "$ac_ct_DUMPBIN" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5340 test -n "$ac_ct_DUMPBIN" && break
5343 if test "x$ac_ct_DUMPBIN" = x; then
5346 case $cross_compiling:$ac_tool_warned in
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350 ac_tool_warned=yes ;;
5352 DUMPBIN=$ac_ct_DUMPBIN
5356 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5358 DUMPBIN="$DUMPBIN -symbols"
5366 if test "$DUMPBIN" != ":"; then
5370 test -z "$NM" && NM=nm
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5378 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5379 if ${lt_cv_nm_interface+:} false; then :
5380 $as_echo_n "(cached) " >&6
5382 lt_cv_nm_interface="BSD nm"
5383 echo "int some_variable = 0;" > conftest.$ac_ext
5384 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5385 (eval "$ac_compile" 2>conftest.err)
5386 cat conftest.err >&5
5387 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5388 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5389 cat conftest.err >&5
5390 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5391 cat conftest.out >&5
5392 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5393 lt_cv_nm_interface="MS dumpbin"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5398 $as_echo "$lt_cv_nm_interface" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5401 $as_echo_n "checking whether ln -s works... " >&6; }
5403 if test "$LN_S" = "ln -s"; then
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5405 $as_echo "yes" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5408 $as_echo "no, using $LN_S" >&6; }
5411 # find the maximum length of command line arguments
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5413 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5414 if ${lt_cv_sys_max_cmd_len+:} false; then :
5415 $as_echo_n "(cached) " >&6
5422 # On DJGPP, this test can blow up pretty badly due to problems in libc
5423 # (any single argument exceeding 2000 bytes causes a buffer overrun
5424 # during glob expansion). Even if it were fixed, the result of this
5425 # check would be larger than it should be.
5426 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5430 # Under GNU Hurd, this test is not required because there is
5431 # no limit to the length of command line arguments.
5432 # Libtool will interpret -1 as no limit whatsoever
5433 lt_cv_sys_max_cmd_len=-1;
5436 cygwin* | mingw* | cegcc*)
5437 # On Win9x/ME, this test blows up -- it succeeds, but takes
5438 # about 5 minutes as the teststring grows exponentially.
5439 # Worse, since 9x/ME are not pre-emptively multitasking,
5440 # you end up with a "frozen" computer, even though with patience
5441 # the test eventually succeeds (with a max line length of 256k).
5442 # Instead, let's just punt: use the minimum linelength reported by
5443 # all of the supported platforms: 8192 (on NT/2K/XP).
5444 lt_cv_sys_max_cmd_len=8192;
5448 # On MiNT this can take a long time and run out of memory.
5449 lt_cv_sys_max_cmd_len=8192;
5453 # On AmigaOS with pdksh, this test takes hours, literally.
5454 # So we just punt and use a minimum line length of 8192.
5455 lt_cv_sys_max_cmd_len=8192;
5458 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5459 # This has been around since 386BSD, at least. Likely further.
5460 if test -x /sbin/sysctl; then
5461 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5462 elif test -x /usr/sbin/sysctl; then
5463 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5465 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5467 # And add a safety zone
5468 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5473 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5474 lt_cv_sys_max_cmd_len=196608
5478 # The test takes a long time on OS/2.
5479 lt_cv_sys_max_cmd_len=8192
5483 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5484 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5485 # nice to cause kernel panics so lets avoid the loop below.
5486 # First set a reasonable default.
5487 lt_cv_sys_max_cmd_len=16384
5489 if test -x /sbin/sysconfig; then
5490 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5491 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5496 lt_cv_sys_max_cmd_len=102400
5498 sysv5* | sco5v6* | sysv4.2uw2*)
5499 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5500 if test -n "$kargmax"; then
5501 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5503 lt_cv_sys_max_cmd_len=32768
5507 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5508 if test -n "$lt_cv_sys_max_cmd_len"; then
5509 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5512 # Make teststring a little bigger before we do anything with it.
5513 # a 1K string should be a reasonable start.
5514 for i in 1 2 3 4 5 6 7 8 ; do
5515 teststring=$teststring$teststring
5517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5518 # If test is not a shell built-in, we'll probably end up computing a
5519 # maximum length that is only half of the actual maximum length, but
5521 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5522 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5523 test $i != 17 # 1/2 MB should be enough
5526 teststring=$teststring$teststring
5528 # Only check the string length outside the loop.
5529 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5531 # Add a significant safety factor because C++ compilers can tack on
5532 # massive amounts of additional arguments before passing them to the
5533 # linker. It appears as though 1/2 is a usable value.
5534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5541 if test -n $lt_cv_sys_max_cmd_len ; then
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5543 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5546 $as_echo "none" >&6; }
5548 max_cmd_len=$lt_cv_sys_max_cmd_len
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5560 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5561 # Try some XSI features
5564 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5566 && eval 'test $(( 1 + 1 )) -eq 2 \
5567 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5570 $as_echo "$xsi_shell" >&6; }
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5574 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5576 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5578 && lt_shell_append=yes
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5580 $as_echo "$lt_shell_append" >&6; }
5583 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5593 # test EBCDIC or ASCII
5594 case `echo X|tr X '\101'` in
5595 A) # ASCII based system
5596 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5597 lt_SP2NL='tr \040 \012'
5598 lt_NL2SP='tr \015\012 \040\040'
5600 *) # EBCDIC based system
5601 lt_SP2NL='tr \100 \n'
5602 lt_NL2SP='tr \r\n \100\100'
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5615 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5616 if ${lt_cv_to_host_file_cmd+:} false; then :
5617 $as_echo_n "(cached) " >&6
5622 *-*-mingw* ) # actually msys
5623 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5626 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5628 * ) # otherwise, assume *nix
5629 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5635 *-*-mingw* ) # actually msys
5636 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5639 lt_cv_to_host_file_cmd=func_convert_file_noop
5641 * ) # otherwise, assume *nix
5642 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5646 * ) # unhandled hosts (and "normal" native builds)
5647 lt_cv_to_host_file_cmd=func_convert_file_noop
5653 to_host_file_cmd=$lt_cv_to_host_file_cmd
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5655 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5662 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5663 if ${lt_cv_to_tool_file_cmd+:} false; then :
5664 $as_echo_n "(cached) " >&6
5666 #assume ordinary cross tools, or native build.
5667 lt_cv_to_tool_file_cmd=func_convert_file_noop
5671 *-*-mingw* ) # actually msys
5672 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5680 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5682 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5689 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5690 if ${lt_cv_ld_reload_flag+:} false; then :
5691 $as_echo_n "(cached) " >&6
5693 lt_cv_ld_reload_flag='-r'
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5696 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5697 reload_flag=$lt_cv_ld_reload_flag
5698 case $reload_flag in
5700 *) reload_flag=" $reload_flag" ;;
5702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704 cygwin* | mingw* | pw32* | cegcc*)
5705 if test "$GCC" != yes; then
5710 if test "$GCC" = yes; then
5711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5726 if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_OBJDUMP+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 if test -n "$OBJDUMP"; then
5735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 OBJDUMP=$ac_cv_prog_OBJDUMP
5755 if test -n "$OBJDUMP"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5757 $as_echo "$OBJDUMP" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5765 if test -z "$ac_cv_prog_OBJDUMP"; then
5766 ac_ct_OBJDUMP=$OBJDUMP
5767 # Extract the first word of "objdump", so it can be a program name with args.
5768 set dummy objdump; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5772 $as_echo_n "(cached) " >&6
5774 if test -n "$ac_ct_OBJDUMP"; then
5775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 test -z "$as_dir" && as_dir=.
5782 for ac_exec_ext in '' $ac_executable_extensions; do
5783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5795 if test -n "$ac_ct_OBJDUMP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5797 $as_echo "$ac_ct_OBJDUMP" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5803 if test "x$ac_ct_OBJDUMP" = x; then
5806 case $cross_compiling:$ac_tool_warned in
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5812 OBJDUMP=$ac_ct_OBJDUMP
5815 OBJDUMP="$ac_cv_prog_OBJDUMP"
5818 test -z "$OBJDUMP" && OBJDUMP=objdump
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5829 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5830 if ${lt_cv_deplibs_check_method+:} false; then :
5831 $as_echo_n "(cached) " >&6
5833 lt_cv_file_magic_cmd='$MAGIC_CMD'
5834 lt_cv_file_magic_test_file=
5835 lt_cv_deplibs_check_method='unknown'
5836 # Need to set the preceding variable on all platforms that support
5837 # interlibrary dependencies.
5838 # 'none' -- dependencies not supported.
5839 # `unknown' -- same as none, but documents that we really don't know.
5840 # 'pass_all' -- all dependencies passed with no checks.
5841 # 'test_compile' -- check by making test program.
5842 # 'file_magic [[regex]]' -- check by looking for files in library path
5843 # which responds to the $file_magic_cmd with a given extended regex.
5844 # If you have `file' or equivalent on your system and you're not sure
5845 # whether `pass_all' will *always* work, you probably want this one.
5849 lt_cv_deplibs_check_method=pass_all
5853 lt_cv_deplibs_check_method=pass_all
5857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5858 lt_cv_file_magic_cmd='/usr/bin/file -L'
5859 lt_cv_file_magic_test_file=/shlib/libc.so
5863 # func_win32_libid is a shell function defined in ltmain.sh
5864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5865 lt_cv_file_magic_cmd='func_win32_libid'
5869 # Base MSYS/MinGW do not provide the 'file' command needed by
5870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5871 # unless we find 'file', for example because we are cross-compiling.
5872 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5873 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5874 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5875 lt_cv_file_magic_cmd='func_win32_libid'
5877 # Keep this pattern in sync with the one in func_win32_libid.
5878 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5879 lt_cv_file_magic_cmd='$OBJDUMP -f'
5884 # use the weaker test based on 'objdump'. See mingw*.
5885 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5886 lt_cv_file_magic_cmd='$OBJDUMP -f'
5889 darwin* | rhapsody*)
5890 lt_cv_deplibs_check_method=pass_all
5893 freebsd* | dragonfly*)
5894 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5897 # Not sure whether the presence of OpenBSD here was a mistake.
5898 # Let's accept both of them until this is cleared up.
5899 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5900 lt_cv_file_magic_cmd=/usr/bin/file
5901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5905 lt_cv_deplibs_check_method=pass_all
5910 lt_cv_deplibs_check_method=pass_all
5914 lt_cv_deplibs_check_method=pass_all
5917 hpux10.20* | hpux11*)
5918 lt_cv_file_magic_cmd=/usr/bin/file
5921 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5922 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5925 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]'
5926 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5930 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5936 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5937 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5940 irix5* | irix6* | nonstopux*)
5942 *-32|*"-32 ") libmagic=32-bit;;
5943 *-n32|*"-n32 ") libmagic=N32;;
5944 *-64|*"-64 ") libmagic=64-bit;;
5945 *) libmagic=never-match;;
5947 lt_cv_deplibs_check_method=pass_all
5950 # This must be glibc/ELF.
5951 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5952 lt_cv_deplibs_check_method=pass_all
5956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5965 lt_cv_file_magic_cmd=/usr/bin/file
5966 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5970 lt_cv_deplibs_check_method=pass_all
5974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5981 osf3* | osf4* | osf5*)
5982 lt_cv_deplibs_check_method=pass_all
5986 lt_cv_deplibs_check_method=pass_all
5990 lt_cv_deplibs_check_method=pass_all
5993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5994 lt_cv_deplibs_check_method=pass_all
5998 case $host_vendor in
6000 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]'
6001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6004 lt_cv_deplibs_check_method=pass_all
6007 lt_cv_file_magic_cmd='/bin/file'
6008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6011 lt_cv_file_magic_cmd='/bin/file'
6012 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6013 lt_cv_file_magic_test_file=/lib/libc.so
6016 lt_cv_deplibs_check_method=pass_all
6019 lt_cv_deplibs_check_method=pass_all
6025 lt_cv_deplibs_check_method=pass_all
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6031 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6035 if test "$build" = "$host"; then
6038 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6041 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6047 file_magic_cmd=$lt_cv_file_magic_cmd
6048 deplibs_check_method=$lt_cv_deplibs_check_method
6049 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6072 if test -n "$ac_tool_prefix"; then
6073 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6074 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6076 $as_echo_n "checking for $ac_word... " >&6; }
6077 if ${ac_cv_prog_DLLTOOL+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 if test -n "$DLLTOOL"; then
6081 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 test -z "$as_dir" && as_dir=.
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6090 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 DLLTOOL=$ac_cv_prog_DLLTOOL
6101 if test -n "$DLLTOOL"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6103 $as_echo "$DLLTOOL" >&6; }
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6111 if test -z "$ac_cv_prog_DLLTOOL"; then
6112 ac_ct_DLLTOOL=$DLLTOOL
6113 # Extract the first word of "dlltool", so it can be a program name with args.
6114 set dummy dlltool; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6118 $as_echo_n "(cached) " >&6
6120 if test -n "$ac_ct_DLLTOOL"; then
6121 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6141 if test -n "$ac_ct_DLLTOOL"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6143 $as_echo "$ac_ct_DLLTOOL" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6149 if test "x$ac_ct_DLLTOOL" = x; then
6152 case $cross_compiling:$ac_tool_warned in
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6158 DLLTOOL=$ac_ct_DLLTOOL
6161 DLLTOOL="$ac_cv_prog_DLLTOOL"
6164 test -z "$DLLTOOL" && DLLTOOL=dlltool
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6176 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6177 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 lt_cv_sharedlib_from_linklib_cmd='unknown'
6183 cygwin* | mingw* | pw32* | cegcc*)
6184 # two different shell functions defined in ltmain.sh
6185 # decide which to use based on capabilities of $DLLTOOL
6186 case `$DLLTOOL --help 2>&1` in
6187 *--identify-strict*)
6188 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6191 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6196 # fallback: assume linklib IS sharedlib
6197 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6203 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6204 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6205 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6213 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if ${ac_cv_prog_AR+:} false; then :
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$AR"; then
6224 ac_cv_prog_AR="$AR" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 if test -n "$AR"; then
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6246 $as_echo "$AR" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6249 $as_echo "no" >&6; }
6253 test -n "$AR" && break
6256 if test -z "$AR"; then
6260 # Extract the first word of "$ac_prog", so it can be a program name with args.
6261 set dummy $ac_prog; ac_word=$2
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263 $as_echo_n "checking for $ac_word... " >&6; }
6264 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6265 $as_echo_n "(cached) " >&6
6267 if test -n "$ac_ct_AR"; then
6268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 test -z "$as_dir" && as_dir=.
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6277 ac_cv_prog_ac_ct_AR="$ac_prog"
6278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6288 if test -n "$ac_ct_AR"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6290 $as_echo "$ac_ct_AR" >&6; }
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293 $as_echo "no" >&6; }
6297 test -n "$ac_ct_AR" && break
6300 if test "x$ac_ct_AR" = x; then
6303 case $cross_compiling:$ac_tool_warned in
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6307 ac_tool_warned=yes ;;
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6327 $as_echo_n "checking for archiver @FILE support... " >&6; }
6328 if ${lt_cv_ar_at_file+:} false; then :
6329 $as_echo_n "(cached) " >&6
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6343 if ac_fn_c_try_compile "$LINENO"; then :
6344 echo conftest.$ac_objext > conftest.lst
6345 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6347 (eval $lt_ar_try) 2>&5
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6350 test $ac_status = 0; }
6351 if test "$ac_status" -eq 0; then
6352 # Ensure the archiver fails upon bogus file names.
6353 rm -f conftest.$ac_objext libconftest.a
6354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6355 (eval $lt_ar_try) 2>&5
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358 test $ac_status = 0; }
6359 if test "$ac_status" -ne 0; then
6363 rm -f conftest.* libconftest.a
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6370 $as_echo "$lt_cv_ar_at_file" >&6; }
6372 if test "x$lt_cv_ar_at_file" = xno; then
6375 archiver_list_spec=$lt_cv_ar_at_file
6384 if test -n "$ac_tool_prefix"; then
6385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6386 set dummy ${ac_tool_prefix}strip; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_prog_STRIP+:} false; then :
6390 $as_echo_n "(cached) " >&6
6392 if test -n "$STRIP"; then
6393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 STRIP=$ac_cv_prog_STRIP
6413 if test -n "$STRIP"; then
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6415 $as_echo "$STRIP" >&6; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 $as_echo "no" >&6; }
6423 if test -z "$ac_cv_prog_STRIP"; then
6425 # Extract the first word of "strip", so it can be a program name with args.
6426 set dummy strip; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6430 $as_echo_n "(cached) " >&6
6432 if test -n "$ac_ct_STRIP"; then
6433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 test -z "$as_dir" && as_dir=.
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_ac_ct_STRIP="strip"
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6453 if test -n "$ac_ct_STRIP"; then
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6455 $as_echo "$ac_ct_STRIP" >&6; }
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6461 if test "x$ac_ct_STRIP" = x; then
6464 case $cross_compiling:$ac_tool_warned in
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6473 STRIP="$ac_cv_prog_STRIP"
6476 test -z "$STRIP" && STRIP=:
6483 if test -n "$ac_tool_prefix"; then
6484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487 $as_echo_n "checking for $ac_word... " >&6; }
6488 if ${ac_cv_prog_RANLIB+:} false; then :
6489 $as_echo_n "(cached) " >&6
6491 if test -n "$RANLIB"; then
6492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 RANLIB=$ac_cv_prog_RANLIB
6512 if test -n "$RANLIB"; then
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6514 $as_echo "$RANLIB" >&6; }
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517 $as_echo "no" >&6; }
6522 if test -z "$ac_cv_prog_RANLIB"; then
6523 ac_ct_RANLIB=$RANLIB
6524 # Extract the first word of "ranlib", so it can be a program name with args.
6525 set dummy ranlib; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6529 $as_echo_n "(cached) " >&6
6531 if test -n "$ac_ct_RANLIB"; then
6532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_ac_ct_RANLIB="ranlib"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6552 if test -n "$ac_ct_RANLIB"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6554 $as_echo "$ac_ct_RANLIB" >&6; }
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6560 if test "x$ac_ct_RANLIB" = x; then
6563 case $cross_compiling:$ac_tool_warned in
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6569 RANLIB=$ac_ct_RANLIB
6572 RANLIB="$ac_cv_prog_RANLIB"
6575 test -z "$RANLIB" && RANLIB=:
6582 # Determine commands to create old-style static archives.
6583 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6584 old_postinstall_cmds='chmod 644 $oldlib'
6585 old_postuninstall_cmds=
6587 if test -n "$RANLIB"; then
6590 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6596 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6601 lock_old_archive_extraction=yes ;;
6603 lock_old_archive_extraction=no ;;
6644 # If no C compiler was specified, use CC.
6647 # If no C compiler flags were specified, use CFLAGS.
6648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6650 # Allow CC to be a program name with arguments.
6654 # Check for command to grab the raw symbol name followed by C symbol from nm.
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6656 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6657 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6658 $as_echo_n "(cached) " >&6
6661 # These are sane defaults that work on at least a few old systems.
6662 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6664 # Character class describing NM global symbol codes.
6665 symcode='[BCDEGRST]'
6667 # Regexp to match symbols that can be accessed directly from C.
6668 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6670 # Define system-specific variables.
6675 cygwin* | mingw* | pw32* | cegcc*)
6676 symcode='[ABCDGISTW]'
6679 if test "$host_cpu" = ia64; then
6680 symcode='[ABCDEGRST]'
6684 symcode='[BCDEGRST]'
6687 symcode='[BCDEGQRST]'
6698 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6706 # If we're using GNU nm, then use its standard symbol codes.
6707 case `$NM -V 2>&1` in
6708 *GNU* | *'with BFD'*)
6709 symcode='[ABCDGIRSTW]' ;;
6712 # Transform an extracted symbol line into a proper C declaration.
6713 # Some systems (esp. on ia64) link data and code symbols differently,
6714 # so use this general approach.
6715 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6717 # Transform an extracted symbol line into symbol name and symbol address
6718 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6719 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6721 # Handle CRLF in mingw tool chain
6725 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6729 # Try without a prefix underscore, then with it.
6730 for ac_symprfx in "" "_"; do
6732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6733 symxfrm="\\1 $ac_symprfx\\2 \\2"
6735 # Write the raw and C identifiers.
6736 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6737 # Fake it for dumpbin and say T for any non-static function
6738 # and D for any global variable.
6739 # Also find C++ and __fastcall symbols from MSVC++,
6740 # which start with @ or ?.
6741 lt_cv_sys_global_symbol_pipe="$AWK '"\
6742 " {last_section=section; section=\$ 3};"\
6743 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6744 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6745 " \$ 0!~/External *\|/{next};"\
6746 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6747 " {if(hide[section]) next};"\
6748 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6749 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6750 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6751 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6752 " ' prfx=^$ac_symprfx"
6754 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6756 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6758 # Check to see that the pipe works correctly.
6762 cat > conftest.$ac_ext <<_LT_EOF
6767 void nm_test_func(void);
6768 void nm_test_func(void){}
6772 int main(){nm_test_var='a';nm_test_func();return(0);}
6775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6776 (eval $ac_compile) 2>&5
6778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779 test $ac_status = 0; }; then
6780 # Now try to grab the symbols.
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6783 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; } && test -s "$nlist"; then
6787 # Try sorting and uniquifying the output.
6788 if sort "$nlist" | uniq > "$nlist"T; then
6789 mv -f "$nlist"T "$nlist"
6794 # Make sure that we snagged all the symbols we need.
6795 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6796 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6797 cat <<_LT_EOF > conftest.$ac_ext
6798 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6799 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6800 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6801 relocations are performed -- see ld's documentation on pseudo-relocs. */
6802 # define LT_DLSYM_CONST
6803 #elif defined(__osf__)
6804 /* This system does not cope well with relocations in const data. */
6805 # define LT_DLSYM_CONST
6807 # define LT_DLSYM_CONST const
6815 # Now generate the symbol file.
6816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6818 cat <<_LT_EOF >> conftest.$ac_ext
6820 /* The mapping between symbol names and symbols. */
6821 LT_DLSYM_CONST struct {
6825 lt__PROGRAM__LTX_preloaded_symbols[] =
6827 { "@PROGRAM@", (void *) 0 },
6829 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6830 cat <<\_LT_EOF >> conftest.$ac_ext
6834 /* This works around a problem in FreeBSD linker */
6835 #ifdef FREEBSD_WORKAROUND
6836 static const void *lt_preloaded_setup() {
6837 return lt__PROGRAM__LTX_preloaded_symbols;
6845 # Now try linking the two files.
6846 mv conftest.$ac_objext conftstm.$ac_objext
6847 lt_globsym_save_LIBS=$LIBS
6848 lt_globsym_save_CFLAGS=$CFLAGS
6849 LIBS="conftstm.$ac_objext"
6850 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6852 (eval $ac_link) 2>&5
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6858 LIBS=$lt_globsym_save_LIBS
6859 CFLAGS=$lt_globsym_save_CFLAGS
6861 echo "cannot find nm_test_func in $nlist" >&5
6864 echo "cannot find nm_test_var in $nlist" >&5
6867 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6870 echo "$progname: failed program was:" >&5
6871 cat conftest.$ac_ext >&5
6873 rm -rf conftest* conftst*
6875 # Do not use the global_symbol_pipe unless it works.
6876 if test "$pipe_works" = yes; then
6879 lt_cv_sys_global_symbol_pipe=
6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6886 lt_cv_sys_global_symbol_to_cdecl=
6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6890 $as_echo "failed" >&6; }
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6893 $as_echo "ok" >&6; }
6896 # Response file support.
6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6898 nm_file_list_spec='@'
6899 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6900 nm_file_list_spec='@'
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6930 $as_echo_n "checking for sysroot... " >&6; }
6932 # Check whether --with-sysroot was given.
6933 if test "${with_sysroot+set}" = set; then :
6934 withval=$with_sysroot;
6941 case ${with_sysroot} in #(
6943 if test "$GCC" = yes; then
6944 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6948 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6954 $as_echo "${with_sysroot}" >&6; }
6955 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6960 $as_echo "${lt_sysroot:-no}" >&6; }
6966 # Check whether --enable-libtool-lock was given.
6967 if test "${enable_libtool_lock+set}" = set; then :
6968 enableval=$enable_libtool_lock;
6971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6973 # Some flags need to be propagated to the compiler or linker for good
6977 # Find out which ABI we are using.
6978 echo 'int i;' > conftest.$ac_ext
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6980 (eval $ac_compile) 2>&5
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6983 test $ac_status = 0; }; then
6984 case `/usr/bin/file conftest.$ac_objext` in
6996 # Find out which ABI we are using.
6997 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 if test "$lt_cv_prog_gnu_ld" = yes; then
7004 case `/usr/bin/file conftest.$ac_objext` in
7006 LD="${LD-ld} -melf32bsmip"
7009 LD="${LD-ld} -melf32bmipn32"
7012 LD="${LD-ld} -melf64bmip"
7016 case `/usr/bin/file conftest.$ac_objext` in
7032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7034 # Find out which ABI we are using.
7035 echo 'int i;' > conftest.$ac_ext
7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037 (eval $ac_compile) 2>&5
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040 test $ac_status = 0; }; then
7041 case `/usr/bin/file conftest.o` in
7044 x86_64-*kfreebsd*-gnu)
7045 LD="${LD-ld} -m elf_i386_fbsd"
7048 LD="${LD-ld} -m elf_i386"
7050 ppc64-*linux*|powerpc64-*linux*)
7051 LD="${LD-ld} -m elf32ppclinux"
7054 LD="${LD-ld} -m elf_s390"
7057 LD="${LD-ld} -m elf32_sparc"
7063 x86_64-*kfreebsd*-gnu)
7064 LD="${LD-ld} -m elf_x86_64_fbsd"
7067 LD="${LD-ld} -m elf_x86_64"
7069 ppc*-*linux*|powerpc*-*linux*)
7070 LD="${LD-ld} -m elf64ppc"
7072 s390*-*linux*|s390*-*tpf*)
7073 LD="${LD-ld} -m elf64_s390"
7076 LD="${LD-ld} -m elf64_sparc"
7086 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7087 SAVE_CFLAGS="$CFLAGS"
7088 CFLAGS="$CFLAGS -belf"
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7090 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7091 if ${lt_cv_cc_needs_belf+:} false; then :
7092 $as_echo_n "(cached) " >&6
7095 ac_cpp='$CPP $CPPFLAGS'
7096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7111 if ac_fn_c_try_link "$LINENO"; then :
7112 lt_cv_cc_needs_belf=yes
7114 lt_cv_cc_needs_belf=no
7116 rm -f core conftest.err conftest.$ac_objext \
7117 conftest$ac_exeext conftest.$ac_ext
7119 ac_cpp='$CPP $CPPFLAGS'
7120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7126 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7127 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7128 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7129 CFLAGS="$SAVE_CFLAGS"
7133 # Find out which ABI we are using.
7134 echo 'int i;' > conftest.$ac_ext
7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7136 (eval $ac_compile) 2>&5
7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7139 test $ac_status = 0; }; then
7140 case `/usr/bin/file conftest.o` in
7142 case $lt_cv_prog_gnu_ld in
7146 LD="${LD-ld} -m elf_x86_64"
7149 LD="${LD-ld} -m elf64_sparc"
7152 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7153 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7158 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7170 need_locks="$enable_libtool_lock"
7172 if test -n "$ac_tool_prefix"; then
7173 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}mt; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7178 $as_echo_n "(cached) " >&6
7180 if test -n "$MANIFEST_TOOL"; then
7181 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7201 if test -n "$MANIFEST_TOOL"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7203 $as_echo "$MANIFEST_TOOL" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7211 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7212 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7213 # Extract the first word of "mt", so it can be a program name with args.
7214 set dummy mt; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -n "$ac_ct_MANIFEST_TOOL"; then
7221 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7241 if test -n "$ac_ct_MANIFEST_TOOL"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7243 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7249 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7252 case $cross_compiling:$ac_tool_warned in
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7258 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7261 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7264 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7266 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7267 if ${lt_cv_path_mainfest_tool+:} false; then :
7268 $as_echo_n "(cached) " >&6
7270 lt_cv_path_mainfest_tool=no
7271 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7272 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7273 cat conftest.err >&5
7274 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7275 lt_cv_path_mainfest_tool=yes
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7280 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7281 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7291 rhapsody* | darwin*)
7292 if test -n "$ac_tool_prefix"; then
7293 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$DSYMUTIL"; then
7301 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir=.
7308 for ac_exec_ext in '' $ac_executable_extensions; do
7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7321 if test -n "$DSYMUTIL"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7323 $as_echo "$DSYMUTIL" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_prog_DSYMUTIL"; then
7332 ac_ct_DSYMUTIL=$DSYMUTIL
7333 # Extract the first word of "dsymutil", so it can be a program name with args.
7334 set dummy dsymutil; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7338 $as_echo_n "(cached) " >&6
7340 if test -n "$ac_ct_DSYMUTIL"; then
7341 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 test -z "$as_dir" && as_dir=.
7348 for ac_exec_ext in '' $ac_executable_extensions; do
7349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7361 if test -n "$ac_ct_DSYMUTIL"; then
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7363 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7369 if test "x$ac_ct_DSYMUTIL" = x; then
7372 case $cross_compiling:$ac_tool_warned in
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7378 DSYMUTIL=$ac_ct_DSYMUTIL
7381 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7384 if test -n "$ac_tool_prefix"; then
7385 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7386 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if ${ac_cv_prog_NMEDIT+:} false; then :
7390 $as_echo_n "(cached) " >&6
7392 if test -n "$NMEDIT"; then
7393 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 NMEDIT=$ac_cv_prog_NMEDIT
7413 if test -n "$NMEDIT"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7415 $as_echo "$NMEDIT" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7423 if test -z "$ac_cv_prog_NMEDIT"; then
7424 ac_ct_NMEDIT=$NMEDIT
7425 # Extract the first word of "nmedit", so it can be a program name with args.
7426 set dummy nmedit; ac_word=$2
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 $as_echo_n "checking for $ac_word... " >&6; }
7429 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 if test -n "$ac_ct_NMEDIT"; then
7433 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7442 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7453 if test -n "$ac_ct_NMEDIT"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7455 $as_echo "$ac_ct_NMEDIT" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7461 if test "x$ac_ct_NMEDIT" = x; then
7464 case $cross_compiling:$ac_tool_warned in
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468 ac_tool_warned=yes ;;
7470 NMEDIT=$ac_ct_NMEDIT
7473 NMEDIT="$ac_cv_prog_NMEDIT"
7476 if test -n "$ac_tool_prefix"; then
7477 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7478 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480 $as_echo_n "checking for $ac_word... " >&6; }
7481 if ${ac_cv_prog_LIPO+:} false; then :
7482 $as_echo_n "(cached) " >&6
7484 if test -n "$LIPO"; then
7485 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7494 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 LIPO=$ac_cv_prog_LIPO
7505 if test -n "$LIPO"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7507 $as_echo "$LIPO" >&6; }
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7510 $as_echo "no" >&6; }
7515 if test -z "$ac_cv_prog_LIPO"; then
7517 # Extract the first word of "lipo", so it can be a program name with args.
7518 set dummy lipo; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7522 $as_echo_n "(cached) " >&6
7524 if test -n "$ac_ct_LIPO"; then
7525 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 test -z "$as_dir" && as_dir=.
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7534 ac_cv_prog_ac_ct_LIPO="lipo"
7535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7544 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7545 if test -n "$ac_ct_LIPO"; then
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7547 $as_echo "$ac_ct_LIPO" >&6; }
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7553 if test "x$ac_ct_LIPO" = x; then
7556 case $cross_compiling:$ac_tool_warned in
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7560 ac_tool_warned=yes ;;
7565 LIPO="$ac_cv_prog_LIPO"
7568 if test -n "$ac_tool_prefix"; then
7569 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7570 set dummy ${ac_tool_prefix}otool; ac_word=$2
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7572 $as_echo_n "checking for $ac_word... " >&6; }
7573 if ${ac_cv_prog_OTOOL+:} false; then :
7574 $as_echo_n "(cached) " >&6
7576 if test -n "$OTOOL"; then
7577 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 OTOOL=$ac_cv_prog_OTOOL
7597 if test -n "$OTOOL"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7599 $as_echo "$OTOOL" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7607 if test -z "$ac_cv_prog_OTOOL"; then
7609 # Extract the first word of "otool", so it can be a program name with args.
7610 set dummy otool; ac_word=$2
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612 $as_echo_n "checking for $ac_word... " >&6; }
7613 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7614 $as_echo_n "(cached) " >&6
7616 if test -n "$ac_ct_OTOOL"; then
7617 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_prog_ac_ct_OTOOL="otool"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7637 if test -n "$ac_ct_OTOOL"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7639 $as_echo "$ac_ct_OTOOL" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7645 if test "x$ac_ct_OTOOL" = x; then
7648 case $cross_compiling:$ac_tool_warned in
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7652 ac_tool_warned=yes ;;
7657 OTOOL="$ac_cv_prog_OTOOL"
7660 if test -n "$ac_tool_prefix"; then
7661 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7662 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_OTOOL64+:} false; then :
7666 $as_echo_n "(cached) " >&6
7668 if test -n "$OTOOL64"; then
7669 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 OTOOL64=$ac_cv_prog_OTOOL64
7689 if test -n "$OTOOL64"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7691 $as_echo "$OTOOL64" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7699 if test -z "$ac_cv_prog_OTOOL64"; then
7700 ac_ct_OTOOL64=$OTOOL64
7701 # Extract the first word of "otool64", so it can be a program name with args.
7702 set dummy otool64; ac_word=$2
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704 $as_echo_n "checking for $ac_word... " >&6; }
7705 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7706 $as_echo_n "(cached) " >&6
7708 if test -n "$ac_ct_OTOOL64"; then
7709 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718 ac_cv_prog_ac_ct_OTOOL64="otool64"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7729 if test -n "$ac_ct_OTOOL64"; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7731 $as_echo "$ac_ct_OTOOL64" >&6; }
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 $as_echo "no" >&6; }
7737 if test "x$ac_ct_OTOOL64" = x; then
7740 case $cross_compiling:$ac_tool_warned in
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7744 ac_tool_warned=yes ;;
7746 OTOOL64=$ac_ct_OTOOL64
7749 OTOOL64="$ac_cv_prog_OTOOL64"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7779 $as_echo_n "checking for -single_module linker flag... " >&6; }
7780 if ${lt_cv_apple_cc_single_mod+:} false; then :
7781 $as_echo_n "(cached) " >&6
7783 lt_cv_apple_cc_single_mod=no
7784 if test -z "${LT_MULTI_MODULE}"; then
7785 # By default we will add the -single_module flag. You can override
7786 # by either setting the environment variable LT_MULTI_MODULE
7787 # non-empty at configure time, or by adding -multi_module to the
7789 rm -rf libconftest.dylib*
7790 echo "int foo(void){return 1;}" > conftest.c
7791 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7792 -dynamiclib -Wl,-single_module conftest.c" >&5
7793 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7794 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7796 # If there is a non-empty error log, and "single_module"
7797 # appears in it, assume the flag caused a linker warning
7798 if test -s conftest.err && $GREP single_module conftest.err; then
7799 cat conftest.err >&5
7800 # Otherwise, if the output was created with a 0 exit code from
7801 # the compiler, it worked.
7802 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7803 lt_cv_apple_cc_single_mod=yes
7805 cat conftest.err >&5
7807 rm -rf libconftest.dylib*
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7812 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7815 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7816 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7817 $as_echo_n "(cached) " >&6
7819 lt_cv_ld_exported_symbols_list=no
7820 save_LDFLAGS=$LDFLAGS
7821 echo "_main" > conftest.sym
7822 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7834 if ac_fn_c_try_link "$LINENO"; then :
7835 lt_cv_ld_exported_symbols_list=yes
7837 lt_cv_ld_exported_symbols_list=no
7839 rm -f core conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LDFLAGS="$save_LDFLAGS"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7845 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7848 $as_echo_n "checking for -force_load linker flag... " >&6; }
7849 if ${lt_cv_ld_force_load+:} false; then :
7850 $as_echo_n "(cached) " >&6
7852 lt_cv_ld_force_load=no
7853 cat > conftest.c << _LT_EOF
7854 int forced_loaded() { return 2;}
7856 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7857 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7858 echo "$AR cru libconftest.a conftest.o" >&5
7859 $AR cru libconftest.a conftest.o 2>&5
7860 echo "$RANLIB libconftest.a" >&5
7861 $RANLIB libconftest.a 2>&5
7862 cat > conftest.c << _LT_EOF
7863 int main() { return 0;}
7865 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7866 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7868 if test -s conftest.err && $GREP force_load conftest.err; then
7869 cat conftest.err >&5
7870 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7871 lt_cv_ld_force_load=yes
7873 cat conftest.err >&5
7875 rm -f conftest.err libconftest.a conftest conftest.c
7876 rm -rf conftest.dSYM
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7880 $as_echo "$lt_cv_ld_force_load" >&6; }
7882 rhapsody* | darwin1.[012])
7883 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7885 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7886 darwin*) # darwin 5.x on
7887 # if running on 10.5 or later, the deployment target defaults
7888 # to the OS version, if on x86, and 10.4, the deployment
7889 # target defaults to 10.4. Don't you love it?
7890 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7891 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7892 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7894 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7896 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7900 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7901 _lt_dar_single_mod='$single_module'
7903 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7904 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7906 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7908 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7909 _lt_dsymutil='~$DSYMUTIL $lib || :'
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7923 # On Suns, sometimes $CPP names a directory.
7924 if test -n "$CPP" && test -d "$CPP"; then
7927 if test -z "$CPP"; then
7928 if ${ac_cv_prog_CPP+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 # Double quotes because CPP needs to be expanded
7932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7935 for ac_c_preproc_warn_flag in '' yes
7937 # Use a header file that comes with gcc, so configuring glibc
7938 # with a fresh cross-compiler works.
7939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7940 # <limits.h> exists even on freestanding compilers.
7941 # On the NeXT, cc -E runs the code through the compiler's parser,
7942 # not just through cpp. "Syntax error" is here to catch this case.
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7946 # include <limits.h>
7948 # include <assert.h>
7952 if ac_fn_c_try_cpp "$LINENO"; then :
7955 # Broken: fails on valid input.
7958 rm -f conftest.err conftest.i conftest.$ac_ext
7960 # OK, works on sane cases. Now check whether nonexistent headers
7961 # can be detected and how.
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 #include <ac_nonexistent.h>
7966 if ac_fn_c_try_cpp "$LINENO"; then :
7967 # Broken: success on invalid input.
7970 # Passes both tests.
7974 rm -f conftest.err conftest.i conftest.$ac_ext
7977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7978 rm -f conftest.i conftest.err conftest.$ac_ext
7979 if $ac_preproc_ok; then :
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7992 $as_echo "$CPP" >&6; }
7994 for ac_c_preproc_warn_flag in '' yes
7996 # Use a header file that comes with gcc, so configuring glibc
7997 # with a fresh cross-compiler works.
7998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7999 # <limits.h> exists even on freestanding compilers.
8000 # On the NeXT, cc -E runs the code through the compiler's parser,
8001 # not just through cpp. "Syntax error" is here to catch this case.
8002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8003 /* end confdefs.h. */
8005 # include <limits.h>
8007 # include <assert.h>
8011 if ac_fn_c_try_cpp "$LINENO"; then :
8014 # Broken: fails on valid input.
8017 rm -f conftest.err conftest.i conftest.$ac_ext
8019 # OK, works on sane cases. Now check whether nonexistent headers
8020 # can be detected and how.
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8023 #include <ac_nonexistent.h>
8025 if ac_fn_c_try_cpp "$LINENO"; then :
8026 # Broken: success on invalid input.
8029 # Passes both tests.
8033 rm -f conftest.err conftest.i conftest.$ac_ext
8036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8037 rm -f conftest.i conftest.err conftest.$ac_ext
8038 if $ac_preproc_ok; then :
8041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8043 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8044 See \`config.log' for more details" "$LINENO" 5; }
8048 ac_cpp='$CPP $CPPFLAGS'
8049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8055 $as_echo_n "checking for ANSI C header files... " >&6; }
8056 if ${ac_cv_header_stdc+:} false; then :
8057 $as_echo_n "(cached) " >&6
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8074 if ac_fn_c_try_compile "$LINENO"; then :
8075 ac_cv_header_stdc=yes
8077 ac_cv_header_stdc=no
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 if test $ac_cv_header_stdc = yes; then
8082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8089 $EGREP "memchr" >/dev/null 2>&1; then :
8092 ac_cv_header_stdc=no
8098 if test $ac_cv_header_stdc = yes; then
8099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8106 $EGREP "free" >/dev/null 2>&1; then :
8109 ac_cv_header_stdc=no
8115 if test $ac_cv_header_stdc = yes; then
8116 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8117 if test "$cross_compiling" = yes; then :
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8124 #if ((' ' & 0x0FF) == 0x020)
8125 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8126 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8128 # define ISLOWER(c) \
8129 (('a' <= (c) && (c) <= 'i') \
8130 || ('j' <= (c) && (c) <= 'r') \
8131 || ('s' <= (c) && (c) <= 'z'))
8132 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8140 for (i = 0; i < 256; i++)
8141 if (XOR (islower (i), ISLOWER (i))
8142 || toupper (i) != TOUPPER (i))
8147 if ac_fn_c_try_run "$LINENO"; then :
8150 ac_cv_header_stdc=no
8152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8153 conftest.$ac_objext conftest.beam conftest.$ac_ext
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8159 $as_echo "$ac_cv_header_stdc" >&6; }
8160 if test $ac_cv_header_stdc = yes; then
8162 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8166 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8167 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8168 inttypes.h stdint.h unistd.h
8170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8174 cat >>confdefs.h <<_ACEOF
8175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8183 for ac_header in dlfcn.h
8185 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8187 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8188 cat >>confdefs.h <<_ACEOF
8189 #define HAVE_DLFCN_H 1
8210 # Check whether --enable-shared was given.
8211 if test "${enable_shared+set}" = set; then :
8212 enableval=$enable_shared; p=${PACKAGE-default}
8214 yes) enable_shared=yes ;;
8215 no) enable_shared=no ;;
8218 # Look at the argument we got. We use all the common list separators.
8219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8220 for pkg in $enableval; do
8222 if test "X$pkg" = "X$p"; then
8241 # Check whether --enable-static was given.
8242 if test "${enable_static+set}" = set; then :
8243 enableval=$enable_static; p=${PACKAGE-default}
8245 yes) enable_static=yes ;;
8246 no) enable_static=no ;;
8249 # Look at the argument we got. We use all the common list separators.
8250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8251 for pkg in $enableval; do
8253 if test "X$pkg" = "X$p"; then
8273 # Check whether --with-pic was given.
8274 if test "${with_pic+set}" = set; then :
8275 withval=$with_pic; lt_p=${PACKAGE-default}
8277 yes|no) pic_mode=$withval ;;
8280 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8282 for lt_pkg in $withval; do
8284 if test "X$lt_pkg" = "X$lt_p"; then
8296 test -z "$pic_mode" && pic_mode=default
8304 # Check whether --enable-fast-install was given.
8305 if test "${enable_fast_install+set}" = set; then :
8306 enableval=$enable_fast_install; p=${PACKAGE-default}
8308 yes) enable_fast_install=yes ;;
8309 no) enable_fast_install=no ;;
8311 enable_fast_install=no
8312 # Look at the argument we got. We use all the common list separators.
8313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8314 for pkg in $enableval; do
8316 if test "X$pkg" = "X$p"; then
8317 enable_fast_install=yes
8324 enable_fast_install=yes
8337 # This can be used to rebuild libtool when needed
8338 LIBTOOL_DEPS="$ltmain"
8340 # Always use our own libtool.
8341 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8372 test -z "$LN_S" && LN_S="ln -s"
8387 if test -n "${ZSH_VERSION+set}" ; then
8388 setopt NO_GLOB_SUBST
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8392 $as_echo_n "checking for objdir... " >&6; }
8393 if ${lt_cv_objdir+:} false; then :
8394 $as_echo_n "(cached) " >&6
8396 rm -f .libs 2>/dev/null
8397 mkdir .libs 2>/dev/null
8398 if test -d .libs; then
8401 # MS-DOS does not allow filenames that begin with a dot.
8404 rmdir .libs 2>/dev/null
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8407 $as_echo "$lt_cv_objdir" >&6; }
8408 objdir=$lt_cv_objdir
8414 cat >>confdefs.h <<_ACEOF
8415 #define LT_OBJDIR "$lt_cv_objdir/"
8423 # AIX sometimes has problems with the GCC collect2 program. For some
8424 # reason, if we set the COLLECT_NAMES environment variable, the problems
8425 # vanish in a puff of smoke.
8426 if test "X${COLLECT_NAMES+set}" != Xset; then
8428 export COLLECT_NAMES
8435 can_build_shared=yes
8437 # All known linkers require a `.a' archive for static linking (except MSVC,
8438 # which needs '.lib').
8441 with_gnu_ld="$lt_cv_prog_gnu_ld"
8444 old_CFLAGS="$CFLAGS"
8446 # Set sane defaults for various variables
8447 test -z "$CC" && CC=cc
8448 test -z "$LTCC" && LTCC=$CC
8449 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8450 test -z "$LD" && LD=ld
8451 test -z "$ac_objext" && ac_objext=o
8453 for cc_temp in $compiler""; do
8455 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8456 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8461 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8464 # Only perform the check for file, if the check method requires it
8465 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8466 case $deplibs_check_method in
8468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8470 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8471 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8472 $as_echo_n "(cached) " >&6
8476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8479 lt_save_MAGIC_CMD="$MAGIC_CMD"
8480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8482 for ac_dir in $ac_dummy; do
8484 test -z "$ac_dir" && ac_dir=.
8485 if test -f $ac_dir/${ac_tool_prefix}file; then
8486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8487 if test -n "$file_magic_test_file"; then
8488 case $deplibs_check_method in
8490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8493 $EGREP "$file_magic_regex" > /dev/null; then
8498 *** Warning: the command libtool uses to detect shared libraries,
8499 *** $file_magic_cmd, produces output that libtool cannot recognize.
8500 *** The result is that libtool may fail to recognize shared libraries
8501 *** as such. This will affect the creation of libtool libraries that
8502 *** depend on shared libraries, but programs linked with such libtool
8503 *** libraries will work regardless of this problem. Nevertheless, you
8504 *** may want to report the problem to your system manager and/or to
8505 *** bug-libtool@gnu.org
8515 MAGIC_CMD="$lt_save_MAGIC_CMD"
8520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8521 if test -n "$MAGIC_CMD"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8523 $as_echo "$MAGIC_CMD" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8533 if test -z "$lt_cv_path_MAGIC_CMD"; then
8534 if test -n "$ac_tool_prefix"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8536 $as_echo_n "checking for file... " >&6; }
8537 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8538 $as_echo_n "(cached) " >&6
8542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8545 lt_save_MAGIC_CMD="$MAGIC_CMD"
8546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8548 for ac_dir in $ac_dummy; do
8550 test -z "$ac_dir" && ac_dir=.
8551 if test -f $ac_dir/file; then
8552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8553 if test -n "$file_magic_test_file"; then
8554 case $deplibs_check_method in
8556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8559 $EGREP "$file_magic_regex" > /dev/null; then
8564 *** Warning: the command libtool uses to detect shared libraries,
8565 *** $file_magic_cmd, produces output that libtool cannot recognize.
8566 *** The result is that libtool may fail to recognize shared libraries
8567 *** as such. This will affect the creation of libtool libraries that
8568 *** depend on shared libraries, but programs linked with such libtool
8569 *** libraries will work regardless of this problem. Nevertheless, you
8570 *** may want to report the problem to your system manager and/or to
8571 *** bug-libtool@gnu.org
8581 MAGIC_CMD="$lt_save_MAGIC_CMD"
8586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8587 if test -n "$MAGIC_CMD"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8589 $as_echo "$MAGIC_CMD" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8605 # Use C for the default configuration in the libtool script
8609 ac_cpp='$CPP $CPPFLAGS'
8610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8615 # Source file extension for C test sources.
8618 # Object file extension for compiled C test sources.
8622 # Code to be used in simple compile tests
8623 lt_simple_compile_test_code="int some_variable = 0;"
8625 # Code to be used in simple link tests
8626 lt_simple_link_test_code='int main(){return(0);}'
8634 # If no C compiler was specified, use CC.
8637 # If no C compiler flags were specified, use CFLAGS.
8638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8640 # Allow CC to be a program name with arguments.
8643 # Save the default compiler, since it gets overwritten when the other
8644 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8645 compiler_DEFAULT=$CC
8647 # save warnings/boilerplate of simple test code
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8650 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651 _lt_compiler_boilerplate=`cat conftest.err`
8654 ac_outfile=conftest.$ac_objext
8655 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8656 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8657 _lt_linker_boilerplate=`cat conftest.err`
8661 if test -n "$compiler"; then
8663 lt_prog_compiler_no_builtin_flag=
8665 if test "$GCC" = yes; then
8666 case $cc_basename in
8668 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8670 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8674 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8675 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8676 $as_echo_n "(cached) " >&6
8678 lt_cv_prog_compiler_rtti_exceptions=no
8679 ac_outfile=conftest.$ac_objext
8680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8681 lt_compiler_flag="-fno-rtti -fno-exceptions"
8682 # Insert the option either (1) after the last *FLAGS variable, or
8683 # (2) before a word containing "conftest.", or (3) at the end.
8684 # Note that $ac_compile itself does not contain backslashes and begins
8685 # with a dollar sign (not a hyphen), so the echo should work correctly.
8686 # The option is referenced via a variable to avoid confusing sed.
8687 lt_compile=`echo "$ac_compile" | $SED \
8688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8690 -e 's:$: $lt_compiler_flag:'`
8691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8692 (eval "$lt_compile" 2>conftest.err)
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 if (exit $ac_status) && test -s "$ac_outfile"; then
8697 # The compiler can only warn and ignore the option if not recognized
8698 # So say no if there are warnings other than the usual output.
8699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8702 lt_cv_prog_compiler_rtti_exceptions=yes
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8709 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8711 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8712 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8724 lt_prog_compiler_wl=
8725 lt_prog_compiler_pic=
8726 lt_prog_compiler_static=
8729 if test "$GCC" = yes; then
8730 lt_prog_compiler_wl='-Wl,'
8731 lt_prog_compiler_static='-static'
8735 # All AIX code is PIC.
8736 if test "$host_cpu" = ia64; then
8737 # AIX 5 now supports IA64 processor
8738 lt_prog_compiler_static='-Bstatic'
8745 # see comment about AmigaOS4 .so support
8746 lt_prog_compiler_pic='-fPIC'
8749 # FIXME: we need at least 68020 code to build shared libraries, but
8750 # adding the `-m68020' flag to GCC prevents building anything better,
8752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8757 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8758 # PIC is the default for these OSes.
8761 mingw* | cygwin* | pw32* | os2* | cegcc*)
8762 # This hack is so that the source file can tell whether it is being
8763 # built for inclusion in a dll (and should export symbols for example).
8764 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8765 # (--disable-auto-import) libraries
8766 lt_prog_compiler_pic='-DDLL_EXPORT'
8769 darwin* | rhapsody*)
8770 # PIC is the default on this platform
8771 # Common symbols not allowed in MH_DYLIB files
8772 lt_prog_compiler_pic='-fno-common'
8776 # PIC is the default for Haiku.
8777 # The "-static" flag exists, but is broken.
8778 lt_prog_compiler_static=
8782 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8783 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8784 # sets the default TLS model and affects inlining.
8790 lt_prog_compiler_pic='-fPIC'
8796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8797 # Instead, we relocate shared libraries at runtime.
8801 # Just because we use GCC doesn't mean we suddenly get shared libraries
8802 # on systems that don't support them.
8803 lt_prog_compiler_can_build_shared=no
8808 # QNX uses GNU C++, but need to define -shared option too, otherwise
8810 lt_prog_compiler_pic='-fPIC -shared'
8814 if test -d /usr/nec; then
8815 lt_prog_compiler_pic=-Kconform_pic
8820 lt_prog_compiler_pic='-fPIC'
8824 case $cc_basename in
8825 nvcc*) # Cuda Compiler Driver 2.2
8826 lt_prog_compiler_wl='-Xlinker '
8827 if test -n "$lt_prog_compiler_pic"; then
8828 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8833 # PORTME Check for flag to pass linker flags through the system compiler.
8836 lt_prog_compiler_wl='-Wl,'
8837 if test "$host_cpu" = ia64; then
8838 # AIX 5 now supports IA64 processor
8839 lt_prog_compiler_static='-Bstatic'
8841 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8845 mingw* | cygwin* | pw32* | os2* | cegcc*)
8846 # This hack is so that the source file can tell whether it is being
8847 # built for inclusion in a dll (and should export symbols for example).
8848 lt_prog_compiler_pic='-DDLL_EXPORT'
8851 hpux9* | hpux10* | hpux11*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8860 lt_prog_compiler_pic='+Z'
8863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8864 lt_prog_compiler_static='${wl}-a ${wl}archive'
8867 irix5* | irix6* | nonstopux*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # PIC (with -KPIC) is the default.
8870 lt_prog_compiler_static='-non_shared'
8873 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8874 case $cc_basename in
8875 # old Intel for x86_64 which still supported -KPIC.
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-KPIC'
8879 lt_prog_compiler_static='-static'
8881 # icc used to be incompatible with GCC.
8882 # ICC 10 doesn't accept -KPIC any more.
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='-fPIC'
8886 lt_prog_compiler_static='-static'
8888 # Lahey Fortran 8.1.
8890 lt_prog_compiler_wl='-Wl,'
8891 lt_prog_compiler_pic='--shared'
8892 lt_prog_compiler_static='--static'
8895 # NAG Fortran compiler
8896 lt_prog_compiler_wl='-Wl,-Wl,,'
8897 lt_prog_compiler_pic='-PIC'
8898 lt_prog_compiler_static='-Bstatic'
8900 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8901 # Portland Group compilers (*not* the Pentium gcc compiler,
8902 # which looks to be a dead project)
8903 lt_prog_compiler_wl='-Wl,'
8904 lt_prog_compiler_pic='-fpic'
8905 lt_prog_compiler_static='-Bstatic'
8908 lt_prog_compiler_wl='-Wl,'
8909 # All Alpha code is PIC.
8910 lt_prog_compiler_static='-non_shared'
8912 xl* | bgxl* | bgf* | mpixl*)
8913 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8914 lt_prog_compiler_wl='-Wl,'
8915 lt_prog_compiler_pic='-qpic'
8916 lt_prog_compiler_static='-qstaticlink'
8919 case `$CC -V 2>&1 | sed 5q` in
8920 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8921 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8922 lt_prog_compiler_pic='-KPIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 lt_prog_compiler_wl=''
8926 *Sun\ F* | *Sun*Fortran*)
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 lt_prog_compiler_wl='-Qoption ld '
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 lt_prog_compiler_wl='-Wl,'
8937 *Intel*\ [CF]*Compiler*)
8938 lt_prog_compiler_wl='-Wl,'
8939 lt_prog_compiler_pic='-fPIC'
8940 lt_prog_compiler_static='-static'
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-fpic'
8945 lt_prog_compiler_static='-Bstatic'
8953 lt_prog_compiler_pic='-KPIC'
8954 lt_prog_compiler_static='-Bstatic'
8958 # QNX uses GNU C++, but need to define -shared option too, otherwise
8960 lt_prog_compiler_pic='-fPIC -shared'
8963 osf3* | osf4* | osf5*)
8964 lt_prog_compiler_wl='-Wl,'
8965 # All OSF/1 code is PIC.
8966 lt_prog_compiler_static='-non_shared'
8970 lt_prog_compiler_static='-non_shared'
8974 lt_prog_compiler_pic='-KPIC'
8975 lt_prog_compiler_static='-Bstatic'
8976 case $cc_basename in
8977 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8978 lt_prog_compiler_wl='-Qoption ld ';;
8980 lt_prog_compiler_wl='-Wl,';;
8985 lt_prog_compiler_wl='-Qoption ld '
8986 lt_prog_compiler_pic='-PIC'
8987 lt_prog_compiler_static='-Bstatic'
8990 sysv4 | sysv4.2uw2* | sysv4.3*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-KPIC'
8993 lt_prog_compiler_static='-Bstatic'
8997 if test -d /usr/nec ;then
8998 lt_prog_compiler_pic='-Kconform_pic'
8999 lt_prog_compiler_static='-Bstatic'
9003 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='-KPIC'
9006 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_can_build_shared=no
9015 lt_prog_compiler_pic='-pic'
9016 lt_prog_compiler_static='-Bstatic'
9020 lt_prog_compiler_can_build_shared=no
9026 # For platforms which do not support PIC, -DPIC is meaningless:
9028 lt_prog_compiler_pic=
9031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9036 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9037 if ${lt_cv_prog_compiler_pic+:} false; then :
9038 $as_echo_n "(cached) " >&6
9040 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9043 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9044 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9047 # Check to make sure the PIC flag actually works.
9049 if test -n "$lt_prog_compiler_pic"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9051 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9052 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9053 $as_echo_n "(cached) " >&6
9055 lt_cv_prog_compiler_pic_works=no
9056 ac_outfile=conftest.$ac_objext
9057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9059 # Insert the option either (1) after the last *FLAGS variable, or
9060 # (2) before a word containing "conftest.", or (3) at the end.
9061 # Note that $ac_compile itself does not contain backslashes and begins
9062 # with a dollar sign (not a hyphen), so the echo should work correctly.
9063 # The option is referenced via a variable to avoid confusing sed.
9064 lt_compile=`echo "$ac_compile" | $SED \
9065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067 -e 's:$: $lt_compiler_flag:'`
9068 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9069 (eval "$lt_compile" 2>conftest.err)
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 if (exit $ac_status) && test -s "$ac_outfile"; then
9074 # The compiler can only warn and ignore the option if not recognized
9075 # So say no if there are warnings other than the usual output.
9076 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9079 lt_cv_prog_compiler_pic_works=yes
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9086 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9088 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9089 case $lt_prog_compiler_pic in
9091 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9094 lt_prog_compiler_pic=
9095 lt_prog_compiler_can_build_shared=no
9111 # Check to make sure the static flag actually works.
9113 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9115 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9116 if ${lt_cv_prog_compiler_static_works+:} false; then :
9117 $as_echo_n "(cached) " >&6
9119 lt_cv_prog_compiler_static_works=no
9120 save_LDFLAGS="$LDFLAGS"
9121 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9122 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9123 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9124 # The linker can only warn and ignore the option if not recognized
9125 # So say no if there are warnings
9126 if test -s conftest.err; then
9127 # Append any errors to the config.log.
9128 cat conftest.err 1>&5
9129 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9130 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9131 if diff conftest.exp conftest.er2 >/dev/null; then
9132 lt_cv_prog_compiler_static_works=yes
9135 lt_cv_prog_compiler_static_works=yes
9139 LDFLAGS="$save_LDFLAGS"
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9143 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9145 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9148 lt_prog_compiler_static=
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9158 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9159 if ${lt_cv_prog_compiler_c_o+:} false; then :
9160 $as_echo_n "(cached) " >&6
9162 lt_cv_prog_compiler_c_o=no
9163 $RM -r conftest 2>/dev/null
9167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9169 lt_compiler_flag="-o out/conftest2.$ac_objext"
9170 # Insert the option either (1) after the last *FLAGS variable, or
9171 # (2) before a word containing "conftest.", or (3) at the end.
9172 # Note that $ac_compile itself does not contain backslashes and begins
9173 # with a dollar sign (not a hyphen), so the echo should work correctly.
9174 lt_compile=`echo "$ac_compile" | $SED \
9175 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9176 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9177 -e 's:$: $lt_compiler_flag:'`
9178 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9179 (eval "$lt_compile" 2>out/conftest.err)
9181 cat out/conftest.err >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9185 # The compiler can only warn and ignore the option if not recognized
9186 # So say no if there are warnings
9187 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9188 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9189 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9190 lt_cv_prog_compiler_c_o=yes
9195 # SGI C++ compiler will create directory out/ii_files/ for
9196 # template instantiation
9197 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9198 $RM out/* && rmdir out
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9205 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9213 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9214 if ${lt_cv_prog_compiler_c_o+:} false; then :
9215 $as_echo_n "(cached) " >&6
9217 lt_cv_prog_compiler_c_o=no
9218 $RM -r conftest 2>/dev/null
9222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9224 lt_compiler_flag="-o out/conftest2.$ac_objext"
9225 # Insert the option either (1) after the last *FLAGS variable, or
9226 # (2) before a word containing "conftest.", or (3) at the end.
9227 # Note that $ac_compile itself does not contain backslashes and begins
9228 # with a dollar sign (not a hyphen), so the echo should work correctly.
9229 lt_compile=`echo "$ac_compile" | $SED \
9230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9232 -e 's:$: $lt_compiler_flag:'`
9233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9234 (eval "$lt_compile" 2>out/conftest.err)
9236 cat out/conftest.err >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9240 # The compiler can only warn and ignore the option if not recognized
9241 # So say no if there are warnings
9242 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9245 lt_cv_prog_compiler_c_o=yes
9250 # SGI C++ compiler will create directory out/ii_files/ for
9251 # template instantiation
9252 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9253 $RM out/* && rmdir out
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9260 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9265 hard_links="nottested"
9266 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9267 # do not overwrite the value of need_locks provided by the user
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9269 $as_echo_n "checking if we can lock with hard links... " >&6; }
9272 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9274 ln conftest.a conftest.b 2>&5 || hard_links=no
9275 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9277 $as_echo "$hard_links" >&6; }
9278 if test "$hard_links" = no; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9280 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9293 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9296 allow_undefined_flag=
9297 always_export_symbols=no
9299 archive_expsym_cmds=
9300 compiler_needs_object=no
9301 enable_shared_with_static_runtimes=no
9302 export_dynamic_flag_spec=
9303 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9304 hardcode_automatic=no
9306 hardcode_direct_absolute=no
9307 hardcode_libdir_flag_spec=
9308 hardcode_libdir_separator=
9310 hardcode_shlibpath_var=unsupported
9312 link_all_deplibs=unknown
9315 old_archive_from_new_cmds=
9316 old_archive_from_expsyms_cmds=
9317 thread_safe_flag_spec=
9318 whole_archive_flag_spec=
9319 # include_expsyms should be a list of space-separated symbols to be *always*
9320 # included in the symbol list
9322 # exclude_expsyms can be an extended regexp of symbols to exclude
9323 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9324 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9325 # as well as any symbol that contains `d'.
9326 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9327 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9328 # platforms (ab)use it in PIC code, but their linkers get confused if
9329 # the symbol is explicitly referenced. Since portable code cannot
9330 # rely on this symbol name, it's probably fine to never include it in
9331 # preloaded symbol tables.
9332 # Exclude shared library initialization/finalization symbols.
9333 extract_expsyms_cmds=
9336 cygwin* | mingw* | pw32* | cegcc*)
9337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9338 # When not using gcc, we currently assume that we are using
9339 # Microsoft Visual C++.
9340 if test "$GCC" != yes; then
9345 # we just hope/assume this is gcc and not c89 (= MSVC++)
9355 # On some targets, GNU ld is compatible enough with the native linker
9356 # that we're better off using the native interface for both.
9357 lt_use_gnu_ld_interface=no
9358 if test "$with_gnu_ld" = yes; then
9361 # The AIX port of GNU ld has always aspired to compatibility
9362 # with the native linker. However, as the warning in the GNU ld
9363 # block says, versions before 2.19.5* couldn't really create working
9364 # shared libraries, regardless of the interface used.
9365 case `$LD -v 2>&1` in
9366 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9370 lt_use_gnu_ld_interface=yes
9375 lt_use_gnu_ld_interface=yes
9380 if test "$lt_use_gnu_ld_interface" = yes; then
9381 # If archive_cmds runs LD, not CC, wlarc should be empty
9384 # Set some defaults for GNU ld with shared library support. These
9385 # are reset later if shared libraries are not supported. Putting them
9386 # here allows them to be overridden if necessary.
9387 runpath_var=LD_RUN_PATH
9388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389 export_dynamic_flag_spec='${wl}--export-dynamic'
9390 # ancient GNU ld didn't support --whole-archive et. al.
9391 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9394 whole_archive_flag_spec=
9396 supports_anon_versioning=no
9397 case `$LD -v 2>&1` in
9398 *GNU\ gold*) supports_anon_versioning=yes ;;
9399 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402 *\ 2.11.*) ;; # other 2.11 versions
9403 *) supports_anon_versioning=yes ;;
9406 # See if GNU ld supports shared libraries.
9409 # On AIX/PPC, the GNU linker is very broken
9410 if test "$host_cpu" != ia64; then
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support. If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9428 # see comment about AmigaOS4 .so support
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 archive_expsym_cmds=''
9433 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)'
9434 hardcode_libdir_flag_spec='-L$libdir'
9435 hardcode_minus_L=yes
9441 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442 allow_undefined_flag=unsupported
9443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444 # support --undefined. This deserves some investigation. FIXME
9445 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451 cygwin* | mingw* | pw32* | cegcc*)
9452 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453 # as there is no search path for DLLs.
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 export_dynamic_flag_spec='${wl}--export-all-symbols'
9456 allow_undefined_flag=unsupported
9457 always_export_symbols=no
9458 enable_shared_with_static_runtimes=yes
9459 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'
9460 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9462 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464 # If the export-symbols file already is a .def file (1st line
9465 # is EXPORTS), use it as is; otherwise, prepend...
9466 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467 cp $export_symbols $output_objdir/$soname.def;
9469 echo EXPORTS > $output_objdir/$soname.def;
9470 cat $export_symbols >> $output_objdir/$soname.def;
9472 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 link_all_deplibs=yes
9485 hardcode_shlibpath_var=no
9486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487 export_dynamic_flag_spec='${wl}-E'
9488 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489 # Instead, shared libraries are loaded at an image base (0x10000000 by
9490 # default) and relocated if they conflict, which is a slow very memory
9491 # consuming and fragmenting process. To avoid this, we pick a random,
9492 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9494 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495 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'
9498 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9500 if test "$host_os" = linux-dietlibc; then
9501 case $cc_basename in
9502 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9505 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506 && test "$tmp_diet" = no
9508 tmp_addflag=' $pic_flag'
9509 tmp_sharedflag='-shared'
9510 case $cc_basename,$host_cpu in
9511 pgcc*) # Portland Group C compiler
9512 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'
9513 tmp_addflag=' $pic_flag'
9515 pgf77* | pgf90* | pgf95* | pgfortran*)
9516 # Portland Group f77 and f90 compilers
9517 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'
9518 tmp_addflag=' $pic_flag -Mnomain' ;;
9519 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9520 tmp_addflag=' -i_dynamic' ;;
9521 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9522 tmp_addflag=' -i_dynamic -nofor_main' ;;
9523 ifc* | ifort*) # Intel Fortran compiler
9524 tmp_addflag=' -nofor_main' ;;
9525 lf95*) # Lahey Fortran 8.1
9526 whole_archive_flag_spec=
9527 tmp_sharedflag='--shared' ;;
9528 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529 tmp_sharedflag='-qmkshrobj'
9531 nvcc*) # Cuda Compiler Driver 2.2
9532 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'
9533 compiler_needs_object=yes
9536 case `$CC -V 2>&1 | sed 5q` in
9537 *Sun\ C*) # Sun C 5.9
9538 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'
9539 compiler_needs_object=yes
9540 tmp_sharedflag='-G' ;;
9541 *Sun\ F*) # Sun Fortran 8.3
9542 tmp_sharedflag='-G' ;;
9544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 if test "x$supports_anon_versioning" = xyes; then
9547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549 echo "local: *; };" >> $output_objdir/$libname.ver~
9550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9553 case $cc_basename in
9554 xlf* | bgf* | bgxlf* | mpixlf*)
9555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559 if test "x$supports_anon_versioning" = xyes; then
9560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562 echo "local: *; };" >> $output_objdir/$libname.ver~
9563 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9573 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9577 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems. Therefore, libtool
9589 *** is disabling shared libraries support. We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer. Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9595 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9603 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604 case `$LD -v 2>&1` in
9605 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems. Therefore, libtool
9611 *** is disabling shared libraries support. We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9619 # For security reasons, it is highly recommended that you always
9620 # use absolute paths for naming shared libraries, and exclude the
9621 # DT_RUNPATH tag from executables and libraries. But doing so
9622 # requires that you compile everything twice, which is a pain.
9623 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_shlibpath_var=no
9642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 if test "$ld_shlibs" = no; then
9653 hardcode_libdir_flag_spec=
9654 export_dynamic_flag_spec=
9655 whole_archive_flag_spec=
9658 # PORTME fill in a description of your system's linker (not GNU ld)
9661 allow_undefined_flag=unsupported
9662 always_export_symbols=yes
9663 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'
9664 # Note: this linker hardcodes the directories in LIBPATH if there
9665 # are no directories specified by -L.
9666 hardcode_minus_L=yes
9667 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668 # Neither direct hardcoding nor static linking is supported with a
9670 hardcode_direct=unsupported
9675 if test "$host_cpu" = ia64; then
9676 # On IA64, the linker does run time linking by default, so we don't
9677 # have to do anything special.
9678 aix_use_runtimelinking=no
9679 exp_sym_flag='-Bexport'
9682 # If we're using GNU nm, then we don't want the "-C" option.
9683 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684 # Also, AIX nm treats weak defined symbols like other global
9685 # defined symbols, whereas GNU nm marks them as "W".
9686 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9689 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9691 aix_use_runtimelinking=no
9693 # Test if we are trying to use run time linking or normal
9694 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695 # need to do runtime linking.
9696 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697 for ld_flag in $LDFLAGS; do
9698 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699 aix_use_runtimelinking=yes
9706 exp_sym_flag='-bexport'
9707 no_entry_flag='-bnoentry'
9710 # When large executables or shared objects are built, AIX ld can
9711 # have problems creating the table of contents. If linking a library
9712 # or program results in "error TOC overflow" add -mminimal-toc to
9713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9718 hardcode_direct_absolute=yes
9719 hardcode_libdir_separator=':'
9720 link_all_deplibs=yes
9721 file_list_spec='${wl}-f,'
9723 if test "$GCC" = yes; then
9724 case $host_os in aix4.[012]|aix4.[012].*)
9725 # We only want to do this on AIX 4.2 and lower, the check
9726 # below for broken collect2 doesn't work under 4.3+
9727 collect2name=`${CC} -print-prog-name=collect2`
9728 if test -f "$collect2name" &&
9729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9731 # We have reworked collect2
9734 # We have old collect2
9735 hardcode_direct=unsupported
9736 # It fails to find uninstalled libraries when the uninstalled
9737 # path is not listed in the libpath. Setting hardcode_minus_L
9738 # to unsupported forces relinking
9739 hardcode_minus_L=yes
9740 hardcode_libdir_flag_spec='-L$libdir'
9741 hardcode_libdir_separator=
9745 shared_flag='-shared'
9746 if test "$aix_use_runtimelinking" = yes; then
9747 shared_flag="$shared_flag "'${wl}-G'
9751 if test "$host_cpu" = ia64; then
9752 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9753 # chokes on -Wl,-G. The following line is correct:
9756 if test "$aix_use_runtimelinking" = yes; then
9757 shared_flag='${wl}-G'
9759 shared_flag='${wl}-bM:SRE'
9764 export_dynamic_flag_spec='${wl}-bexpall'
9765 # It seems that -bexpall does not export symbols beginning with
9766 # underscore (_), so it is better to generate a list of symbols to export.
9767 always_export_symbols=yes
9768 if test "$aix_use_runtimelinking" = yes; then
9769 # Warning - without using the other runtime loading flags (-brtl),
9770 # -berok will link without error, but may produce a broken library.
9771 allow_undefined_flag='-berok'
9772 # Determine the default libpath from the value encoded in an
9774 if test "${lt_cv_aix_libpath+set}" = set; then
9775 aix_libpath=$lt_cv_aix_libpath
9777 if ${lt_cv_aix_libpath_+:} false; then :
9778 $as_echo_n "(cached) " >&6
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9791 if ac_fn_c_try_link "$LINENO"; then :
9793 lt_aix_libpath_sed='
9794 /Import File Strings/,/^$/ {
9796 s/^0 *\([^ ]*\) *$/\1/
9800 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 # Check for a 64-bit object if we didn't find anything.
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 if test -z "$lt_cv_aix_libpath_"; then
9809 lt_cv_aix_libpath_="/usr/lib:/lib"
9814 aix_libpath=$lt_cv_aix_libpath_
9817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9818 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9820 if test "$host_cpu" = ia64; then
9821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9822 allow_undefined_flag="-z nodefs"
9823 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"
9825 # Determine the default libpath from the value encoded in an
9827 if test "${lt_cv_aix_libpath+set}" = set; then
9828 aix_libpath=$lt_cv_aix_libpath
9830 if ${lt_cv_aix_libpath_+:} false; then :
9831 $as_echo_n "(cached) " >&6
9833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9844 if ac_fn_c_try_link "$LINENO"; then :
9846 lt_aix_libpath_sed='
9847 /Import File Strings/,/^$/ {
9849 s/^0 *\([^ ]*\) *$/\1/
9853 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9854 # Check for a 64-bit object if we didn't find anything.
9855 if test -z "$lt_cv_aix_libpath_"; then
9856 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9859 rm -f core conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9861 if test -z "$lt_cv_aix_libpath_"; then
9862 lt_cv_aix_libpath_="/usr/lib:/lib"
9867 aix_libpath=$lt_cv_aix_libpath_
9870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9871 # Warning - without using the other run time loading flags,
9872 # -berok will link without error, but may produce a broken library.
9873 no_undefined_flag=' ${wl}-bernotok'
9874 allow_undefined_flag=' ${wl}-berok'
9875 if test "$with_gnu_ld" = yes; then
9876 # We only use this code for GNU lds that support --whole-archive.
9877 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9879 # Exported symbols can be pulled into shared objects from archives
9880 whole_archive_flag_spec='$convenience'
9882 archive_cmds_need_lc=yes
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9892 # see comment about AmigaOS4 .so support
9893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9894 archive_expsym_cmds=''
9897 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)'
9898 hardcode_libdir_flag_spec='-L$libdir'
9899 hardcode_minus_L=yes
9905 export_dynamic_flag_spec=-rdynamic
9908 cygwin* | mingw* | pw32* | cegcc*)
9909 # When not using gcc, we currently assume that we are using
9910 # Microsoft Visual C++.
9911 # hardcode_libdir_flag_spec is actually meaningless, as there is
9912 # no search path for DLLs.
9913 case $cc_basename in
9916 hardcode_libdir_flag_spec=' '
9917 allow_undefined_flag=unsupported
9918 always_export_symbols=yes
9920 # Tell ltmain to make .lib files, not .a files.
9922 # Tell ltmain to make .dll files, not .so files.
9924 # FIXME: Setting linknames here is a bad hack.
9925 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9926 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9927 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9929 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9931 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9933 # The linker will not automatically build a static lib if we build a DLL.
9934 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9935 enable_shared_with_static_runtimes=yes
9936 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939 old_postinstall_cmds='chmod 644 $oldlib'
9940 postlink_cmds='lt_outputfile="@OUTPUT@"~
9941 lt_tool_outputfile="@TOOL_OUTPUT@"~
9942 case $lt_outputfile in
9945 lt_outputfile="$lt_outputfile.exe"
9946 lt_tool_outputfile="$lt_tool_outputfile.exe"
9949 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9950 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9951 $RM "$lt_outputfile.manifest";
9955 # Assume MSVC wrapper
9956 hardcode_libdir_flag_spec=' '
9957 allow_undefined_flag=unsupported
9958 # Tell ltmain to make .lib files, not .a files.
9960 # Tell ltmain to make .dll files, not .so files.
9962 # FIXME: Setting linknames here is a bad hack.
9963 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9964 # The linker will automatically build a .lib file if we build a DLL.
9965 old_archive_from_new_cmds='true'
9966 # FIXME: Should let the user specify the lib program.
9967 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9968 enable_shared_with_static_runtimes=yes
9973 darwin* | rhapsody*)
9976 archive_cmds_need_lc=no
9978 hardcode_automatic=yes
9979 hardcode_shlibpath_var=unsupported
9980 if test "$lt_cv_ld_force_load" = "yes"; then
9981 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\"`'
9984 whole_archive_flag_spec=''
9986 link_all_deplibs=yes
9987 allow_undefined_flag="$_lt_dar_allow_undefined"
9988 case $cc_basename in
9989 ifort*) _lt_dar_can_shared=yes ;;
9990 *) _lt_dar_can_shared=$GCC ;;
9992 if test "$_lt_dar_can_shared" = "yes"; then
9993 output_verbose_link_cmd=func_echo_all
9994 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9995 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9996 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}"
9997 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}"
10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_libdir_flag_spec='-L$libdir'
10008 hardcode_shlibpath_var=no
10011 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10012 # support. Future versions do this automatically, but an explicit c++rt0.o
10013 # does not break anything, and helps significantly (at the cost of a little
10016 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10017 hardcode_libdir_flag_spec='-R$libdir'
10018 hardcode_direct=yes
10019 hardcode_shlibpath_var=no
10022 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10024 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025 hardcode_direct=yes
10026 hardcode_minus_L=yes
10027 hardcode_shlibpath_var=no
10030 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10031 freebsd* | dragonfly*)
10032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033 hardcode_libdir_flag_spec='-R$libdir'
10034 hardcode_direct=yes
10035 hardcode_shlibpath_var=no
10039 if test "$GCC" = yes; then
10040 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10042 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045 hardcode_libdir_separator=:
10046 hardcode_direct=yes
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L=yes
10051 export_dynamic_flag_spec='${wl}-E'
10055 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10056 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060 if test "$with_gnu_ld" = no; then
10061 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10062 hardcode_libdir_separator=:
10063 hardcode_direct=yes
10064 hardcode_direct_absolute=yes
10065 export_dynamic_flag_spec='${wl}-E'
10066 # hardcode_minus_L: Not really in the search PATH,
10067 # but as the default location of the library.
10068 hardcode_minus_L=yes
10073 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10076 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10079 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10095 # Older versions of the 11.00 compiler do not understand -b yet
10096 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10098 $as_echo_n "checking if $CC understands -b... " >&6; }
10099 if ${lt_cv_prog_compiler__b+:} false; then :
10100 $as_echo_n "(cached) " >&6
10102 lt_cv_prog_compiler__b=no
10103 save_LDFLAGS="$LDFLAGS"
10104 LDFLAGS="$LDFLAGS -b"
10105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107 # The linker can only warn and ignore the option if not recognized
10108 # So say no if there are warnings
10109 if test -s conftest.err; then
10110 # Append any errors to the config.log.
10111 cat conftest.err 1>&5
10112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114 if diff conftest.exp conftest.er2 >/dev/null; then
10115 lt_cv_prog_compiler__b=yes
10118 lt_cv_prog_compiler__b=yes
10122 LDFLAGS="$save_LDFLAGS"
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10128 if test x"$lt_cv_prog_compiler__b" = xyes; then
10129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10137 if test "$with_gnu_ld" = no; then
10138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10139 hardcode_libdir_separator=:
10144 hardcode_shlibpath_var=no
10147 hardcode_direct=yes
10148 hardcode_direct_absolute=yes
10149 export_dynamic_flag_spec='${wl}-E'
10151 # hardcode_minus_L: Not really in the search PATH,
10152 # but as the default location of the library.
10153 hardcode_minus_L=yes
10159 irix5* | irix6* | nonstopux*)
10160 if test "$GCC" = yes; then
10161 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'
10162 # Try to use the -exported_symbol ld option, if it does not
10163 # work, assume that -exports_file does not work either and
10164 # implicitly export all symbols.
10165 # This should be the same for all languages, so no per-tag cache variable.
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10168 if ${lt_cv_irix_exported_symbol+:} false; then :
10169 $as_echo_n "(cached) " >&6
10171 save_LDFLAGS="$LDFLAGS"
10172 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int foo (void) { return 0; }
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 lt_cv_irix_exported_symbol=yes
10180 lt_cv_irix_exported_symbol=no
10182 rm -f core conftest.err conftest.$ac_objext \
10183 conftest$ac_exeext conftest.$ac_ext
10184 LDFLAGS="$save_LDFLAGS"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10188 if test "$lt_cv_irix_exported_symbol" = yes; then
10189 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'
10192 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'
10193 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'
10195 archive_cmds_need_lc='no'
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator=:
10199 link_all_deplibs=yes
10203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes
10216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator=:
10218 hardcode_shlibpath_var=no
10225 if test -f /usr/libexec/ld.so; then
10226 hardcode_direct=yes
10227 hardcode_shlibpath_var=no
10228 hardcode_direct_absolute=yes
10229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233 export_dynamic_flag_spec='${wl}-E'
10236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_libdir_flag_spec='-R$libdir'
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_minus_L=yes
10254 allow_undefined_flag=unsupported
10255 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10260 if test "$GCC" = yes; then
10261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262 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'
10264 allow_undefined_flag=' -expect_unresolved \*'
10265 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'
10267 archive_cmds_need_lc='no'
10268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269 hardcode_libdir_separator=:
10272 osf4* | osf5*) # as osf3* with the addition of -msym flag
10273 if test "$GCC" = yes; then
10274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278 allow_undefined_flag=' -expect_unresolved \*'
10279 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'
10280 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~
10281 $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'
10283 # Both c and cxx compiler support -rpath directly
10284 hardcode_libdir_flag_spec='-rpath $libdir'
10286 archive_cmds_need_lc='no'
10287 hardcode_libdir_separator=:
10291 no_undefined_flag=' -z defs'
10292 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $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'
10298 case `$CC -V 2>&1` in
10301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_shlibpath_var=no
10316 solaris2.[0-5] | solaris2.[0-5].*) ;;
10318 # The compiler driver will combine and reorder linker options,
10319 # but understands `-z linker_flag'. GCC discards it without `$wl',
10320 # but is careful enough not to reorder.
10321 # Supported since Solaris 2.6 (maybe 2.5.1?)
10322 if test "$GCC" = yes; then
10323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10329 link_all_deplibs=yes
10333 if test "x$host_vendor" = xsequent; then
10334 # Use $CC to link under sequent, because it throws in some extra .o
10335 # files that make .init and .fini sections work.
10336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_direct=yes
10342 hardcode_minus_L=yes
10343 hardcode_shlibpath_var=no
10347 case $host_vendor in
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_direct=yes # is this really true???
10353 ## LD is ld it makes a PLAMLIB
10354 ## CC just makes a GrossModule.
10355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356 reload_cmds='$CC -r -o $output$reload_objs'
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10364 runpath_var='LD_RUN_PATH'
10365 hardcode_shlibpath_var=no
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var=no
10371 export_dynamic_flag_spec='-Bexport'
10375 if test -d /usr/nec; then
10376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_shlibpath_var=no
10378 runpath_var=LD_RUN_PATH
10379 hardcode_runpath_var=yes
10384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385 no_undefined_flag='${wl}-z,text'
10386 archive_cmds_need_lc=no
10387 hardcode_shlibpath_var=no
10388 runpath_var='LD_RUN_PATH'
10390 if test "$GCC" = yes; then
10391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 sysv5* | sco3.2v5* | sco5v6*)
10400 # Note: We can NOT use -z defs as we might desire, because we do not
10401 # link with -lc, and that would cause any symbols used from libc to
10402 # always be unresolved, which means just about no library would
10403 # ever link correctly. If we're not using GNU ld we use -z text
10404 # though, which does catch some bad symbols but isn't as heavy-handed
10406 no_undefined_flag='${wl}-z,text'
10407 allow_undefined_flag='${wl}-z,nodefs'
10408 archive_cmds_need_lc=no
10409 hardcode_shlibpath_var=no
10410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411 hardcode_libdir_separator=':'
10412 link_all_deplibs=yes
10413 export_dynamic_flag_spec='${wl}-Bexport'
10414 runpath_var='LD_RUN_PATH'
10416 if test "$GCC" = yes; then
10417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_shlibpath_var=no
10436 if test x$host_vendor = xsni; then
10438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439 export_dynamic_flag_spec='${wl}-Blargedynsym'
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446 $as_echo "$ld_shlibs" >&6; }
10447 test "$ld_shlibs" = no && can_build_shared=no
10449 with_gnu_ld=$with_gnu_ld
10466 # Do we need to explicitly link libc?
10468 case "x$archive_cmds_need_lc" in
10470 # Assume -lc should be added
10471 archive_cmds_need_lc=yes
10473 if test "$enable_shared" = yes && test "$GCC" = yes; then
10474 case $archive_cmds in
10476 # FIXME: we may have to deal with multi-command sequences.
10479 # Test whether the compiler implicitly links with -lc since on some
10480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481 # to ld, don't add -lc before -lgcc.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10485 $as_echo_n "(cached) " >&6
10488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491 (eval $ac_compile) 2>&5
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } 2>conftest.err; then
10497 libobjs=conftest.$ac_objext
10499 wl=$lt_prog_compiler_wl
10500 pic_flag=$lt_prog_compiler_pic
10506 lt_save_allow_undefined_flag=$allow_undefined_flag
10507 allow_undefined_flag=
10508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512 test $ac_status = 0; }
10514 lt_cv_archive_cmds_need_lc=no
10516 lt_cv_archive_cmds_need_lc=yes
10518 allow_undefined_flag=$lt_save_allow_undefined_flag
10520 cat conftest.err 1>&5
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688 if test "$GCC" = yes; then
10690 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10691 *) lt_awk_arg="/^libraries:/" ;;
10694 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10695 *) lt_sed_strip_eq="s,=/,/,g" ;;
10697 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10698 case $lt_search_path_spec in
10700 # if the path contains ";" then we assume it to be the separator
10701 # otherwise default to the standard path separator (i.e. ":") - it is
10702 # assumed that no part of a normal pathname contains ";" but that should
10703 # okay in the real world where ";" in dirpaths is itself problematic.
10704 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10707 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10710 # Ok, now we have the path, separated by spaces, we can step through it
10711 # and add multilib dir if necessary.
10712 lt_tmp_lt_search_path_spec=
10713 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10714 for lt_sys_path in $lt_search_path_spec; do
10715 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10716 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10718 test -d "$lt_sys_path" && \
10719 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10722 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10723 BEGIN {RS=" "; FS="/|\n";} {
10726 for (lt_i = NF; lt_i > 0; lt_i--) {
10727 if ($lt_i != "" && $lt_i != ".") {
10728 if ($lt_i == "..") {
10731 if (lt_count == 0) {
10732 lt_foo="/" $lt_i lt_foo;
10739 if (lt_foo != "") { lt_freq[lt_foo]++; }
10740 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10742 # AWK program above erroneously prepends '/' to C:/dos/paths
10745 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10746 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10748 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10750 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 library_names_spec=
10753 libname_spec='lib$name'
10757 postuninstall_cmds=
10761 shlibpath_overrides_runpath=unknown
10763 dynamic_linker="$host_os ld.so"
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10765 need_lib_prefix=unknown
10766 hardcode_into_libs=no
10768 # when you set need_version to no, make sure it does not cause -set_version
10769 # flags to be left without arguments
10770 need_version=unknown
10774 version_type=linux # correct to gnu/linux during the next big refactor
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10776 shlibpath_var=LIBPATH
10778 # AIX 3 has no versioning support, so we append a major version to the name.
10779 soname_spec='${libname}${release}${shared_ext}$major'
10783 version_type=linux # correct to gnu/linux during the next big refactor
10786 hardcode_into_libs=yes
10787 if test "$host_cpu" = ia64; then
10788 # AIX 5 supports IA64
10789 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10790 shlibpath_var=LD_LIBRARY_PATH
10792 # With GCC up to 2.95.x, collect2 would create an import file
10793 # for dependence libraries. The import file would start with
10794 # the line `#! .'. This would cause the generated library to
10795 # depend on `.', always an invalid library. This was fixed in
10796 # development snapshots of GCC prior to 3.0.
10798 aix4 | aix4.[01] | aix4.[01].*)
10799 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10801 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10804 can_build_shared=no
10808 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10809 # soname into executable. Probably we can add versioning support to
10810 # collect2, so additional links can be useful in future.
10811 if test "$aix_use_runtimelinking" = yes; then
10812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10813 # instead of lib<name>.a to let people know that these are not
10814 # typical AIX shared libraries.
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817 # We preserve .a as extension for shared libraries through AIX4.2
10818 # and later when we are not doing run time linking.
10819 library_names_spec='${libname}${release}.a $libname.a'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10822 shlibpath_var=LIBPATH
10829 # Since July 2007 AmigaOS4 officially supports .so libraries.
10830 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834 library_names_spec='$libname.ixlibrary $libname.a'
10835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10836 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10842 library_names_spec='${libname}${shared_ext}'
10843 dynamic_linker="$host_os ld.so"
10844 shlibpath_var=LIBRARY_PATH
10848 version_type=linux # correct to gnu/linux during the next big refactor
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856 # the default ld.so.conf also contains /usr/contrib/lib and
10857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858 # libtool to hard-code these into programs
10861 cygwin* | mingw* | pw32* | cegcc*)
10862 version_type=windows
10867 case $GCC,$cc_basename in
10870 library_names_spec='$libname.dll.a'
10871 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10872 postinstall_cmds='base_file=`basename \${file}`~
10873 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10874 dldir=$destdir/`dirname \$dlpath`~
10875 test -d \$dldir || mkdir -p \$dldir~
10876 $install_prog $dir/$dlname \$dldir/$dlname~
10877 chmod a+x \$dldir/$dlname~
10878 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10879 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10882 dlpath=$dir/\$dldll~
10884 shlibpath_overrides_runpath=yes
10888 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10889 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10894 # MinGW DLLs use traditional 'lib' prefix
10895 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10898 # pw32 DLLs use 'pw' prefix rather than 'lib'
10899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10902 dynamic_linker='Win32 ld.exe'
10907 libname_spec='$name'
10908 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909 library_names_spec='${libname}.dll.lib'
10913 sys_lib_search_path_spec=
10916 for lt_path in $LIB
10919 # Let DOS variable expansion print the short 8.3 style file name.
10920 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10921 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10924 # Convert to MSYS style.
10925 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10928 # Convert to unix form, then to dos form, then back to unix form
10929 # but this time dos style (no spaces!) so that the unix form looks
10930 # like /cygdrive/c/PROGRA~1:/cygdr...
10931 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10932 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10933 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10936 sys_lib_search_path_spec="$LIB"
10937 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10938 # It is most probably a Windows format PATH.
10939 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10941 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10943 # FIXME: find the short name or the path components, as spaces are
10944 # common. (e.g. "Program Files" -> "PROGRA~1")
10948 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10949 postinstall_cmds='base_file=`basename \${file}`~
10950 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10951 dldir=$destdir/`dirname \$dlpath`~
10952 test -d \$dldir || mkdir -p \$dldir~
10953 $install_prog $dir/$dlname \$dldir/$dlname'
10954 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10955 dlpath=$dir/\$dldll~
10957 shlibpath_overrides_runpath=yes
10958 dynamic_linker='Win32 link.exe'
10962 # Assume MSVC wrapper
10963 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10964 dynamic_linker='Win32 ld.exe'
10967 # FIXME: first we should search . and the directory the executable is in
10971 darwin* | rhapsody*)
10972 dynamic_linker="$host_os dyld"
10973 version_type=darwin
10976 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10977 soname_spec='${libname}${release}${major}$shared_ext'
10978 shlibpath_overrides_runpath=yes
10979 shlibpath_var=DYLD_LIBRARY_PATH
10980 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10982 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10987 version_type=linux # correct to gnu/linux during the next big refactor
10990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10991 soname_spec='${libname}${release}${shared_ext}$major'
10992 shlibpath_var=LD_LIBRARY_PATH
10995 freebsd* | dragonfly*)
10996 # DragonFly does not have aout. When/if they implement a new
10997 # versioning mechanism, adjust this.
10998 if test -x /usr/bin/objformat; then
10999 objformat=`/usr/bin/objformat`
11002 freebsd[23].*) objformat=aout ;;
11003 *) objformat=elf ;;
11006 version_type=freebsd-$objformat
11007 case $version_type in
11009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11018 shlibpath_var=LD_LIBRARY_PATH
11021 shlibpath_overrides_runpath=yes
11023 freebsd3.[01]* | freebsdelf3.[01]*)
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11027 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11028 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11029 shlibpath_overrides_runpath=no
11030 hardcode_into_libs=yes
11032 *) # from 4.6 on, and DragonFly
11033 shlibpath_overrides_runpath=yes
11034 hardcode_into_libs=yes
11040 version_type=linux # correct to gnu/linux during the next big refactor
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=no
11047 hardcode_into_libs=yes
11051 version_type=linux # correct to gnu/linux during the next big refactor
11054 dynamic_linker="$host_os runtime_loader"
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 shlibpath_var=LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11060 hardcode_into_libs=yes
11063 hpux9* | hpux10* | hpux11*)
11064 # Give a soname corresponding to the major version so that dld.sl refuses to
11065 # link against other versions.
11072 hardcode_into_libs=yes
11073 dynamic_linker="$host_os dld.so"
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 if test "X$HPUX_IA64_MODE" = X32; then
11079 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11081 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11083 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11087 hardcode_into_libs=yes
11088 dynamic_linker="$host_os dld.sl"
11089 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11094 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11098 dynamic_linker="$host_os dld.sl"
11099 shlibpath_var=SHLIB_PATH
11100 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11105 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11106 postinstall_cmds='chmod 555 $lib'
11107 # or fails outright, so override atomically:
11108 install_override_mode=555
11112 version_type=linux # correct to gnu/linux during the next big refactor
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=no
11120 hardcode_into_libs=yes
11123 irix5* | irix6* | nonstopux*)
11125 nonstopux*) version_type=nonstopux ;;
11127 if test "$lt_cv_prog_gnu_ld" = yes; then
11128 version_type=linux # correct to gnu/linux during the next big refactor
11135 soname_spec='${libname}${release}${shared_ext}$major'
11136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11138 irix5* | nonstopux*)
11139 libsuff= shlibsuff=
11142 case $LD in # libtool.m4 will add one of these switches to LD
11143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11144 libsuff= shlibsuff= libmagic=32-bit;;
11145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11146 libsuff=32 shlibsuff=N32 libmagic=N32;;
11147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11149 *) libsuff= shlibsuff= libmagic=never-match;;
11153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11154 shlibpath_overrides_runpath=no
11155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11157 hardcode_into_libs=yes
11160 # No shared lib support for Linux oldld, aout, or coff.
11161 linux*oldld* | linux*aout* | linux*coff*)
11165 # This must be glibc/ELF.
11166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11167 version_type=linux # correct to gnu/linux during the next big refactor
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=no
11176 # Some binutils ld are patched to set DT_RUNPATH
11177 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11178 $as_echo_n "(cached) " >&6
11180 lt_cv_shlibpath_overrides_runpath=no
11181 save_LDFLAGS=$LDFLAGS
11182 save_libdir=$libdir
11183 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11184 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11186 /* end confdefs.h. */
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11198 lt_cv_shlibpath_overrides_runpath=yes
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LDFLAGS=$save_LDFLAGS
11204 libdir=$save_libdir
11208 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11210 # This implies no fast_install, which is unacceptable.
11211 # Some rework will be needed to allow for fast_install
11212 # before this can be enabled.
11213 hardcode_into_libs=yes
11215 # Append ld.so.conf contents to the search path
11216 if test -f /etc/ld.so.conf; then
11217 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' ' '`
11218 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11221 # We used to test for /lib/ld.so.1 and disable shared libraries on
11222 # powerpc, because MkLinux only supported shared libraries with the
11223 # GNU dynamic linker. Since this was broken with cross compilers,
11224 # most powerpc-linux boxes support dynamic linking these days and
11225 # people can always --disable-shared, the test was removed, and we
11226 # assume the GNU/Linux dynamic linker is in use.
11227 dynamic_linker='GNU/Linux ld.so'
11234 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11237 dynamic_linker='NetBSD (a.out) ld.so'
11239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11240 soname_spec='${libname}${release}${shared_ext}$major'
11241 dynamic_linker='NetBSD ld.elf_so'
11243 shlibpath_var=LD_LIBRARY_PATH
11244 shlibpath_overrides_runpath=yes
11245 hardcode_into_libs=yes
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 shlibpath_overrides_runpath=no
11263 hardcode_into_libs=yes
11264 dynamic_linker='ldqnx.so'
11269 sys_lib_dlsearch_path_spec="/usr/lib"
11271 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11273 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11274 *) need_version=no ;;
11276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11278 shlibpath_var=LD_LIBRARY_PATH
11279 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11281 openbsd2.[89] | openbsd2.[89].*)
11282 shlibpath_overrides_runpath=no
11285 shlibpath_overrides_runpath=yes
11289 shlibpath_overrides_runpath=yes
11294 libname_spec='$name'
11297 library_names_spec='$libname${shared_ext} $libname.a'
11298 dynamic_linker='OS/2 ld.exe'
11299 shlibpath_var=LIBPATH
11302 osf3* | osf4* | osf5*)
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11310 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11318 version_type=linux # correct to gnu/linux during the next big refactor
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 shlibpath_overrides_runpath=yes
11325 hardcode_into_libs=yes
11326 # ldd complains unless libraries are executable
11327 postinstall_cmds='chmod +x $lib'
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11333 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11334 shlibpath_var=LD_LIBRARY_PATH
11335 shlibpath_overrides_runpath=yes
11336 if test "$with_gnu_ld" = yes; then
11343 version_type=linux # correct to gnu/linux during the next big refactor
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345 soname_spec='${libname}${release}${shared_ext}$major'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 case $host_vendor in
11349 shlibpath_overrides_runpath=no
11351 runpath_var=LD_RUN_PATH
11359 shlibpath_overrides_runpath=no
11360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11366 if test -d /usr/nec ;then
11367 version_type=linux # correct to gnu/linux during the next big refactor
11368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11369 soname_spec='$libname${shared_ext}.$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11374 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11375 version_type=freebsd-elf
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=yes
11382 hardcode_into_libs=yes
11383 if test "$with_gnu_ld" = yes; then
11384 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11389 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11393 sys_lib_dlsearch_path_spec='/usr/lib'
11397 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11398 version_type=linux # correct to gnu/linux during the next big refactor
11401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=no
11404 hardcode_into_libs=yes
11408 version_type=linux # correct to gnu/linux during the next big refactor
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410 soname_spec='${libname}${release}${shared_ext}$major'
11411 shlibpath_var=LD_LIBRARY_PATH
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11419 $as_echo "$dynamic_linker" >&6; }
11420 test "$dynamic_linker" = no && can_build_shared=no
11422 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11423 if test "$GCC" = yes; then
11424 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11427 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11428 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11430 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11431 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11526 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11528 if test -n "$hardcode_libdir_flag_spec" ||
11529 test -n "$runpath_var" ||
11530 test "X$hardcode_automatic" = "Xyes" ; then
11532 # We can hardcode non-existent directories.
11533 if test "$hardcode_direct" != no &&
11534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11535 # have to relink, otherwise we might link with an installed library
11536 # when we should be linking with a yet-to-be-installed one
11537 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11538 test "$hardcode_minus_L" != no; then
11539 # Linking always hardcodes the temporary library directory.
11540 hardcode_action=relink
11542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11543 hardcode_action=immediate
11546 # We cannot hardcode anything, or else we can only hardcode existing
11548 hardcode_action=unsupported
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11551 $as_echo "$hardcode_action" >&6; }
11553 if test "$hardcode_action" = relink ||
11554 test "$inherit_rpath" = yes; then
11555 # Fast installation is not supported
11556 enable_fast_install=no
11557 elif test "$shlibpath_overrides_runpath" = yes ||
11558 test "$enable_shared" = no; then
11559 # Fast installation is not necessary
11560 enable_fast_install=needless
11568 if test "x$enable_dlopen" != xyes; then
11569 enable_dlopen=unknown
11570 enable_dlopen_self=unknown
11571 enable_dlopen_self_static=unknown
11578 lt_cv_dlopen="load_add_on"
11580 lt_cv_dlopen_self=yes
11583 mingw* | pw32* | cegcc*)
11584 lt_cv_dlopen="LoadLibrary"
11589 lt_cv_dlopen="dlopen"
11594 # if libdl is installed we need to link against it
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11596 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11597 if ${ac_cv_lib_dl_dlopen+:} false; then :
11598 $as_echo_n "(cached) " >&6
11600 ac_check_lib_save_LIBS=$LIBS
11602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h. */
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11620 if ac_fn_c_try_link "$LINENO"; then :
11621 ac_cv_lib_dl_dlopen=yes
11623 ac_cv_lib_dl_dlopen=no
11625 rm -f core conftest.err conftest.$ac_objext \
11626 conftest$ac_exeext conftest.$ac_ext
11627 LIBS=$ac_check_lib_save_LIBS
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11630 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11631 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11632 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11635 lt_cv_dlopen="dyld"
11637 lt_cv_dlopen_self=yes
11644 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11645 if test "x$ac_cv_func_shl_load" = xyes; then :
11646 lt_cv_dlopen="shl_load"
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11649 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11650 if ${ac_cv_lib_dld_shl_load+:} false; then :
11651 $as_echo_n "(cached) " >&6
11653 ac_check_lib_save_LIBS=$LIBS
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11658 /* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11668 return shl_load ();
11673 if ac_fn_c_try_link "$LINENO"; then :
11674 ac_cv_lib_dld_shl_load=yes
11676 ac_cv_lib_dld_shl_load=no
11678 rm -f core conftest.err conftest.$ac_objext \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11683 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11684 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11685 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11687 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11688 if test "x$ac_cv_func_dlopen" = xyes; then :
11689 lt_cv_dlopen="dlopen"
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11693 if ${ac_cv_lib_dl_dlopen+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 ac_check_lib_save_LIBS=$LIBS
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11716 if ac_fn_c_try_link "$LINENO"; then :
11717 ac_cv_lib_dl_dlopen=yes
11719 ac_cv_lib_dl_dlopen=no
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 LIBS=$ac_check_lib_save_LIBS
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11731 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11732 if ${ac_cv_lib_svld_dlopen+:} false; then :
11733 $as_echo_n "(cached) " >&6
11735 ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-lsvld $LIBS"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h. */
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11755 if ac_fn_c_try_link "$LINENO"; then :
11756 ac_cv_lib_svld_dlopen=yes
11758 ac_cv_lib_svld_dlopen=no
11760 rm -f core conftest.err conftest.$ac_objext \
11761 conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_lib_save_LIBS
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11765 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11766 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11767 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11770 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11771 if ${ac_cv_lib_dld_dld_link+:} false; then :
11772 $as_echo_n "(cached) " >&6
11774 ac_check_lib_save_LIBS=$LIBS
11776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11777 /* end confdefs.h. */
11779 /* Override any GCC internal prototype to avoid an error.
11780 Use char because int might match the return type of a GCC
11781 builtin and then its argument prototype would still apply. */
11789 return dld_link ();
11794 if ac_fn_c_try_link "$LINENO"; then :
11795 ac_cv_lib_dld_dld_link=yes
11797 ac_cv_lib_dld_dld_link=no
11799 rm -f core conftest.err conftest.$ac_objext \
11800 conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11804 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11805 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11806 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11827 if test "x$lt_cv_dlopen" != xno; then
11833 case $lt_cv_dlopen in
11835 save_CPPFLAGS="$CPPFLAGS"
11836 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11838 save_LDFLAGS="$LDFLAGS"
11839 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11842 LIBS="$lt_cv_dlopen_libs $LIBS"
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11845 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11846 if ${lt_cv_dlopen_self+:} false; then :
11847 $as_echo_n "(cached) " >&6
11849 if test "$cross_compiling" = yes; then :
11850 lt_cv_dlopen_self=cross
11852 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11853 lt_status=$lt_dlunknown
11854 cat > conftest.$ac_ext <<_LT_EOF
11855 #line $LINENO "configure"
11856 #include "confdefs.h"
11865 # define LT_DLGLOBAL RTLD_GLOBAL
11868 # define LT_DLGLOBAL DL_GLOBAL
11870 # define LT_DLGLOBAL 0
11874 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11875 find out it does not work in some platform. */
11876 #ifndef LT_DLLAZY_OR_NOW
11878 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11881 # define LT_DLLAZY_OR_NOW DL_LAZY
11884 # define LT_DLLAZY_OR_NOW RTLD_NOW
11887 # define LT_DLLAZY_OR_NOW DL_NOW
11889 # define LT_DLLAZY_OR_NOW 0
11896 /* When -fvisbility=hidden is used, assume the code has been annotated
11897 correspondingly for the symbols needed. */
11898 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11899 int fnord () __attribute__((visibility("default")));
11902 int fnord () { return 42; }
11905 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11906 int status = $lt_dlunknown;
11910 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11913 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11914 else puts (dlerror ());
11916 /* dlclose (self); */
11924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11925 (eval $ac_link) 2>&5
11927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11928 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11929 (./conftest; exit; ) >&5 2>/dev/null
11931 case x$lt_status in
11932 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11933 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11934 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11937 # compilation failed
11938 lt_cv_dlopen_self=no
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11946 $as_echo "$lt_cv_dlopen_self" >&6; }
11948 if test "x$lt_cv_dlopen_self" = xyes; then
11949 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11951 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11952 if ${lt_cv_dlopen_self_static+:} false; then :
11953 $as_echo_n "(cached) " >&6
11955 if test "$cross_compiling" = yes; then :
11956 lt_cv_dlopen_self_static=cross
11958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11959 lt_status=$lt_dlunknown
11960 cat > conftest.$ac_ext <<_LT_EOF
11961 #line $LINENO "configure"
11962 #include "confdefs.h"
11971 # define LT_DLGLOBAL RTLD_GLOBAL
11974 # define LT_DLGLOBAL DL_GLOBAL
11976 # define LT_DLGLOBAL 0
11980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11981 find out it does not work in some platform. */
11982 #ifndef LT_DLLAZY_OR_NOW
11984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11987 # define LT_DLLAZY_OR_NOW DL_LAZY
11990 # define LT_DLLAZY_OR_NOW RTLD_NOW
11993 # define LT_DLLAZY_OR_NOW DL_NOW
11995 # define LT_DLLAZY_OR_NOW 0
12002 /* When -fvisbility=hidden is used, assume the code has been annotated
12003 correspondingly for the symbols needed. */
12004 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12005 int fnord () __attribute__((visibility("default")));
12008 int fnord () { return 42; }
12011 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12012 int status = $lt_dlunknown;
12016 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12019 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12020 else puts (dlerror ());
12022 /* dlclose (self); */
12030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12031 (eval $ac_link) 2>&5
12033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12034 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12035 (./conftest; exit; ) >&5 2>/dev/null
12037 case x$lt_status in
12038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12040 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12043 # compilation failed
12044 lt_cv_dlopen_self_static=no
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12052 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12055 CPPFLAGS="$save_CPPFLAGS"
12056 LDFLAGS="$save_LDFLAGS"
12061 case $lt_cv_dlopen_self in
12062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12063 *) enable_dlopen_self=unknown ;;
12066 case $lt_cv_dlopen_self_static in
12067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12068 *) enable_dlopen_self_static=unknown ;;
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12091 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12092 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12098 # FIXME - insert some real tests, host_os isn't really good enough
12101 if test -n "$STRIP" ; then
12102 striplib="$STRIP -x"
12103 old_striplib="$STRIP -S"
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12105 $as_echo "yes" >&6; }
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113 $as_echo "no" >&6; }
12129 # Report which library types will actually be built
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12131 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12133 $as_echo "$can_build_shared" >&6; }
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12136 $as_echo_n "checking whether to build shared libraries... " >&6; }
12137 test "$can_build_shared" = "no" && enable_shared=no
12139 # On AIX, shared libraries and static libraries use the same namespace, and
12140 # are all built from PIC.
12143 test "$enable_shared" = yes && enable_static=no
12144 if test -n "$RANLIB"; then
12145 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12146 postinstall_cmds='$RANLIB $lib'
12151 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12152 test "$enable_shared" = yes && enable_static=no
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12157 $as_echo "$enable_shared" >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12160 $as_echo_n "checking whether to build static libraries... " >&6; }
12161 # Make sure either enable_shared or enable_static is yes.
12162 test "$enable_shared" = yes || enable_static=yes
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12164 $as_echo "$enable_static" >&6; }
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12192 ac_config_commands="$ac_config_commands libtool"
12197 # Only expand once:
12202 # Check for library functions that SQLite can optionally use.
12203 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12205 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12206 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12207 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12208 cat >>confdefs.h <<_ACEOF
12209 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12215 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12216 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12222 cat >>confdefs.h <<_ACEOF
12223 #define HAVE_DECL_STRERROR_R $ac_have_decl
12226 for ac_func in strerror_r
12228 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12229 if test "x$ac_cv_func_strerror_r" = xyes; then :
12230 cat >>confdefs.h <<_ACEOF
12231 #define HAVE_STRERROR_R 1
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12238 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12239 if ${ac_cv_func_strerror_r_char_p+:} false; then :
12240 $as_echo_n "(cached) " >&6
12243 ac_cv_func_strerror_r_char_p=no
12244 if test $ac_cv_have_decl_strerror_r = yes; then
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 $ac_includes_default
12253 char x = *strerror_r (0, buf, sizeof buf);
12254 char *p = strerror_r (0, buf, sizeof buf);
12261 if ac_fn_c_try_compile "$LINENO"; then :
12262 ac_cv_func_strerror_r_char_p=yes
12264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12266 # strerror_r is not declared. Choose between
12267 # systems that have relatively inaccessible declarations for the
12268 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12269 # former has a strerror_r that returns char*, while the latter
12270 # has a strerror_r that returns `int'.
12271 # This test should segfault on the DEC system.
12272 if test "$cross_compiling" = yes; then :
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 $ac_includes_default
12278 extern char *strerror_r ();
12283 char x = *strerror_r (0, buf, sizeof buf);
12284 return ! isalpha (x);
12289 if ac_fn_c_try_run "$LINENO"; then :
12290 ac_cv_func_strerror_r_char_p=yes
12292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12293 conftest.$ac_objext conftest.beam conftest.$ac_ext
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12300 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12301 if test $ac_cv_func_strerror_r_char_p = yes; then
12303 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12308 ac_config_files="$ac_config_files Makefile sqlite3.pc"
12312 #-----------------------------------------------------------------------
12313 # --enable-readline
12315 # Check whether --enable-readline was given.
12316 if test "${enable_readline+set}" = set; then :
12317 enableval=$enable_readline;
12319 enable_readline=yes
12322 if test x"$enable_readline" != xno ; then
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12326 $as_echo_n "checking for library containing tgetent... " >&6; }
12327 if ${ac_cv_search_tgetent+:} false; then :
12328 $as_echo_n "(cached) " >&6
12330 ac_func_search_save_LIBS=$LIBS
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12349 for ac_lib in '' curses ncurses ncursesw; do
12350 if test -z "$ac_lib"; then
12351 ac_res="none required"
12354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12356 if ac_fn_c_try_link "$LINENO"; then :
12357 ac_cv_search_tgetent=$ac_res
12359 rm -f core conftest.err conftest.$ac_objext \
12361 if ${ac_cv_search_tgetent+:} false; then :
12365 if ${ac_cv_search_tgetent+:} false; then :
12368 ac_cv_search_tgetent=no
12370 rm conftest.$ac_ext
12371 LIBS=$ac_func_search_save_LIBS
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12374 $as_echo "$ac_cv_search_tgetent" >&6; }
12375 ac_res=$ac_cv_search_tgetent
12376 if test "$ac_res" != no; then :
12377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12382 $as_echo_n "checking for library containing readline... " >&6; }
12383 if ${ac_cv_search_readline+:} false; then :
12384 $as_echo_n "(cached) " >&6
12386 ac_func_search_save_LIBS=$LIBS
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12390 /* Override any GCC internal prototype to avoid an error.
12391 Use char because int might match the return type of a GCC
12392 builtin and then its argument prototype would still apply. */
12400 return readline ();
12405 for ac_lib in '' readline; do
12406 if test -z "$ac_lib"; then
12407 ac_res="none required"
12410 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12412 if ac_fn_c_try_link "$LINENO"; then :
12413 ac_cv_search_readline=$ac_res
12415 rm -f core conftest.err conftest.$ac_objext \
12417 if ${ac_cv_search_readline+:} false; then :
12421 if ${ac_cv_search_readline+:} false; then :
12424 ac_cv_search_readline=no
12426 rm conftest.$ac_ext
12427 LIBS=$ac_func_search_save_LIBS
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12430 $as_echo "$ac_cv_search_readline" >&6; }
12431 ac_res=$ac_cv_search_readline
12432 if test "$ac_res" != no; then :
12433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12439 for ac_func in readline
12441 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
12442 if test "x$ac_cv_func_readline" = xyes; then :
12443 cat >>confdefs.h <<_ACEOF
12444 #define HAVE_READLINE 1
12450 READLINE_LIBS=$LIBS
12454 #-----------------------------------------------------------------------
12456 #-----------------------------------------------------------------------
12457 # --enable-threadsafe
12459 # Check whether --enable-threadsafe was given.
12460 if test "${enable_threadsafe+set}" = set; then :
12461 enableval=$enable_threadsafe;
12463 enable_threadsafe=yes
12466 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
12467 if test x"$enable_threadsafe" != "xno"; then
12468 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12470 $as_echo_n "checking for library containing pthread_create... " >&6; }
12471 if ${ac_cv_search_pthread_create+:} false; then :
12472 $as_echo_n "(cached) " >&6
12474 ac_func_search_save_LIBS=$LIBS
12475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12476 /* end confdefs.h. */
12478 /* Override any GCC internal prototype to avoid an error.
12479 Use char because int might match the return type of a GCC
12480 builtin and then its argument prototype would still apply. */
12484 char pthread_create ();
12488 return pthread_create ();
12493 for ac_lib in '' pthread; do
12494 if test -z "$ac_lib"; then
12495 ac_res="none required"
12498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12500 if ac_fn_c_try_link "$LINENO"; then :
12501 ac_cv_search_pthread_create=$ac_res
12503 rm -f core conftest.err conftest.$ac_objext \
12505 if ${ac_cv_search_pthread_create+:} false; then :
12509 if ${ac_cv_search_pthread_create+:} false; then :
12512 ac_cv_search_pthread_create=no
12514 rm conftest.$ac_ext
12515 LIBS=$ac_func_search_save_LIBS
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12518 $as_echo "$ac_cv_search_pthread_create" >&6; }
12519 ac_res=$ac_cv_search_pthread_create
12520 if test "$ac_res" != no; then :
12521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12527 #-----------------------------------------------------------------------
12529 #-----------------------------------------------------------------------
12530 # --enable-dynamic-extensions
12532 # Check whether --enable-dynamic-extensions was given.
12533 if test "${enable_dynamic_extensions+set}" = set; then :
12534 enableval=$enable_dynamic_extensions;
12536 enable_dynamic_extensions=yes
12539 if test x"$enable_dynamic_extensions" != "xno"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12541 $as_echo_n "checking for library containing dlopen... " >&6; }
12542 if ${ac_cv_search_dlopen+:} false; then :
12543 $as_echo_n "(cached) " >&6
12545 ac_func_search_save_LIBS=$LIBS
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12564 for ac_lib in '' dl; do
12565 if test -z "$ac_lib"; then
12566 ac_res="none required"
12569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12571 if ac_fn_c_try_link "$LINENO"; then :
12572 ac_cv_search_dlopen=$ac_res
12574 rm -f core conftest.err conftest.$ac_objext \
12576 if ${ac_cv_search_dlopen+:} false; then :
12580 if ${ac_cv_search_dlopen+:} false; then :
12583 ac_cv_search_dlopen=no
12585 rm conftest.$ac_ext
12586 LIBS=$ac_func_search_save_LIBS
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12589 $as_echo "$ac_cv_search_dlopen" >&6; }
12590 ac_res=$ac_cv_search_dlopen
12591 if test "$ac_res" != no; then :
12592 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12597 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
12600 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
12602 $as_echo "$enable_dynamic_extensions" >&6; }
12604 #-----------------------------------------------------------------------
12606 #-----------------------------------------------------------------------
12609 # Check whether --enable-fts5 was given.
12610 if test "${enable_fts5+set}" = set; then :
12611 enableval=$enable_fts5;
12616 if test x"$enable_fts5" == "xyes"; then
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
12618 $as_echo_n "checking for library containing log... " >&6; }
12619 if ${ac_cv_search_log+:} false; then :
12620 $as_echo_n "(cached) " >&6
12622 ac_func_search_save_LIBS=$LIBS
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12626 /* Override any GCC internal prototype to avoid an error.
12627 Use char because int might match the return type of a GCC
12628 builtin and then its argument prototype would still apply. */
12641 for ac_lib in '' m; do
12642 if test -z "$ac_lib"; then
12643 ac_res="none required"
12646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12648 if ac_fn_c_try_link "$LINENO"; then :
12649 ac_cv_search_log=$ac_res
12651 rm -f core conftest.err conftest.$ac_objext \
12653 if ${ac_cv_search_log+:} false; then :
12657 if ${ac_cv_search_log+:} false; then :
12660 ac_cv_search_log=no
12662 rm conftest.$ac_ext
12663 LIBS=$ac_func_search_save_LIBS
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
12666 $as_echo "$ac_cv_search_log" >&6; }
12667 ac_res=$ac_cv_search_log
12668 if test "$ac_res" != no; then :
12669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12673 FTS5_FLAGS=-DSQLITE_ENABLE_FTS5
12676 #-----------------------------------------------------------------------
12678 #-----------------------------------------------------------------------
12681 # Check whether --enable-json1 was given.
12682 if test "${enable_json1+set}" = set; then :
12683 enableval=$enable_json1;
12688 if test x"$enable_json1" == "xyes"; then
12689 JSON1_FLAGS=-DSQLITE_ENABLE_JSON1
12692 #-----------------------------------------------------------------------
12694 for ac_func in posix_fallocate
12696 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12697 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12698 cat >>confdefs.h <<_ACEOF
12699 #define HAVE_POSIX_FALLOCATE 1
12706 #-----------------------------------------------------------------------
12707 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
12708 # configure. This option doesn't really add much...
12710 # --enable-tempstore
12712 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
12713 # [--enable-tempstore],
12714 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
12715 # [], [enable_tempstore=no])
12716 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
12717 # case "$enable_tempstore" in
12718 # never ) TEMP_STORE=0 ;;
12719 # no ) TEMP_STORE=1 ;;
12720 # always ) TEMP_STORE=3 ;;
12721 # yes ) TEMP_STORE=3 ;;
12724 # enable_tempstore=yes
12727 # AC_MSG_RESULT($enable_tempstore)
12728 # AC_SUBST(TEMP_STORE)
12729 #-----------------------------------------------------------------------
12731 cat >confcache <<\_ACEOF
12732 # This file is a shell script that caches the results of configure
12733 # tests run on this system so they can be shared between configure
12734 # scripts and configure runs, see configure's option --config-cache.
12735 # It is not useful on other systems. If it contains results you don't
12736 # want to keep, you may remove or edit it.
12738 # config.status only pays attention to the cache file if you give it
12739 # the --recheck option to rerun configure.
12741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12743 # following values.
12747 # The following way of writing the cache mishandles newlines in values,
12748 # but we know of no workaround that is simple, portable, and efficient.
12749 # So, we kill variables containing newlines.
12750 # Ultrix sh set writes to stderr and can't be redirected directly,
12751 # and sets the high bit in the cache file unless we assign to the vars.
12753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12754 eval ac_val=\$$ac_var
12758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12762 _ | IFS | as_nl) ;; #(
12763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12764 *) { eval $ac_var=; unset $ac_var;} ;;
12770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12771 *${as_nl}ac_space=\ *)
12772 # `set' does not quote correctly, so add quotes: double-quote
12773 # substitution turns \\\\ into \\, and sed turns \\ into \.
12776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12779 # `set' quotes correctly as required by POSIX, so do not add quotes.
12780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12794 if test -w "$cache_file"; then
12795 if test "x$cache_file" != "x/dev/null"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12797 $as_echo "$as_me: updating cache $cache_file" >&6;}
12798 if test ! -f "$cache_file" || test -h "$cache_file"; then
12799 cat confcache >"$cache_file"
12801 case $cache_file in #(
12803 mv -f confcache "$cache_file"$$ &&
12804 mv -f "$cache_file"$$ "$cache_file" ;; #(
12806 mv -f confcache "$cache_file" ;;
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12818 # Let make expand exec_prefix.
12819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12821 # Transform confdefs.h into DEFS.
12822 # Protect against shell expansion while executing Makefile rules.
12823 # Protect against Makefile macro expansion.
12825 # If the first sed substitution is executed (which looks for macros that
12826 # take arguments), then branch to the quote section. Otherwise,
12827 # look for a macro that doesn't take arguments.
12837 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12839 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12843 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12856 DEFS=`sed -n "$ac_script" confdefs.h`
12862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12863 # 1. Remove the extension, and $U if already installed.
12864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12865 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12867 # will be set to the directory where LIBOBJS objects are built.
12868 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12869 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12871 LIBOBJS=$ac_libobjs
12873 LTLIBOBJS=$ac_ltlibobjs
12876 if test -n "$EXEEXT"; then
12878 am__EXEEXT_FALSE='#'
12880 am__EXEEXT_TRUE='#'
12884 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12885 as_fn_error $? "conditional \"AMDEP\" was never defined.
12886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12888 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12889 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12893 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12897 : "${CONFIG_STATUS=./config.status}"
12899 ac_clean_files_save=$ac_clean_files
12900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12906 # Generated by $as_me.
12907 # Run this file to recreate the current configuration.
12908 # Compiler output produced by configure, useful for debugging
12909 # configure, is in config.log if it exists.
12912 ac_cs_recheck=false
12915 SHELL=\${CONFIG_SHELL-$SHELL}
12918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12919 ## -------------------- ##
12920 ## M4sh Initialization. ##
12921 ## -------------------- ##
12923 # Be more Bourne compatible
12924 DUALCASE=1; export DUALCASE # for MKS sh
12925 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12929 # is contrary to our usage. Disable this feature.
12930 alias -g '${1+"$@"}'='"$@"'
12931 setopt NO_GLOB_SUBST
12933 case `(set -o) 2>/dev/null` in #(
12945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12946 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12949 # Prefer a ksh shell builtin over an external printf program on Solaris,
12950 # but without wasting forks for bash or zsh.
12951 if test -z "$BASH_VERSION$ZSH_VERSION" \
12952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12953 as_echo='print -r --'
12954 as_echo_n='print -rn --'
12955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12956 as_echo='printf %s\n'
12957 as_echo_n='printf %s'
12959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12961 as_echo_n='/usr/ucb/echo -n'
12963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12964 as_echo_n_body='eval
12968 expr "X$arg" : "X\\(.*\\)$as_nl";
12969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12973 export as_echo_n_body
12974 as_echo_n='sh -c $as_echo_n_body as_echo'
12976 export as_echo_body
12977 as_echo='sh -c $as_echo_body as_echo'
12980 # The user is always right.
12981 if test "${PATH_SEPARATOR+set}" != set; then
12983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12991 # We need space, tab and new line, in precisely that order. Quoting is
12992 # there to prevent editors from complaining about space-tab.
12993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12994 # splitting by setting IFS to empty value.)
12997 # Find who we are. Look in the path if we contain no directory separator.
13000 *[\\/]* ) as_myself=$0 ;;
13001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13005 test -z "$as_dir" && as_dir=.
13006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13012 # We did not find ourselves, most probably we were run as `sh COMMAND'
13013 # in which case we are not to be found in the path.
13014 if test "x$as_myself" = x; then
13017 if test ! -f "$as_myself"; then
13018 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13022 # Unset variables that we do not need and which cause bugs (e.g. in
13023 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13024 # suppresses any "Segmentation fault" message there. '((' could
13025 # trigger a bug in pdksh 5.2.14.
13026 for as_var in BASH_ENV ENV MAIL MAILPATH
13027 do eval test x\${$as_var+set} = xset \
13028 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13044 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13045 # ----------------------------------------
13046 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13047 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13048 # script with STATUS, using 1 if that was 0.
13051 as_status=$1; test $as_status -eq 0 && as_status=1
13053 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13054 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13056 $as_echo "$as_me: error: $2" >&2
13057 as_fn_exit $as_status
13061 # as_fn_set_status STATUS
13062 # -----------------------
13063 # Set $? to STATUS, without forking.
13064 as_fn_set_status ()
13067 } # as_fn_set_status
13069 # as_fn_exit STATUS
13070 # -----------------
13071 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13075 as_fn_set_status $1
13081 # Portably unset VAR.
13084 { eval $1=; unset $1;}
13086 as_unset=as_fn_unset
13087 # as_fn_append VAR VALUE
13088 # ----------------------
13089 # Append the text in VALUE to the end of the definition contained in VAR. Take
13090 # advantage of any shell optimizations that allow amortized linear growth over
13091 # repeated appends, instead of the typical quadratic growth present in naive
13093 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13094 eval 'as_fn_append ()
13105 # as_fn_arith ARG...
13106 # ------------------
13107 # Perform arithmetic evaluation on the ARGs, and store the result in the
13108 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13109 # must be portable across $(()) and expr.
13110 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13111 eval 'as_fn_arith ()
13118 as_val=`expr "$@" || test $? -eq 1`
13123 if expr a : '\(a\)' >/dev/null 2>&1 &&
13124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13130 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13131 as_basename=basename
13136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13142 as_me=`$as_basename -- "$0" ||
13143 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13144 X"$0" : 'X\(//\)$' \| \
13145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13147 sed '/^.*\/\([^/][^/]*\)\/*$/{
13161 # Avoid depending upon Character Ranges.
13162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13165 as_cr_digits='0123456789'
13166 as_cr_alnum=$as_cr_Letters$as_cr_digits
13168 ECHO_C= ECHO_N= ECHO_T=
13169 case `echo -n x` in #(((((
13171 case `echo 'xy\c'` in
13172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13181 rm -f conf$$ conf$$.exe conf$$.file
13182 if test -d conf$$.dir; then
13183 rm -f conf$$.dir/conf$$.file
13186 mkdir conf$$.dir 2>/dev/null
13188 if (echo >conf$$.file) 2>/dev/null; then
13189 if ln -s conf$$.file conf$$ 2>/dev/null; then
13191 # ... but there are two gotchas:
13192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13194 # In both cases, we have to default to `cp -pR'.
13195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13197 elif ln conf$$.file conf$$ 2>/dev/null; then
13205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13206 rmdir conf$$.dir 2>/dev/null
13211 # Create "$as_dir" as a directory, including parents if necessary.
13216 -*) as_dir=./$as_dir;;
13218 test -d "$as_dir" || eval $as_mkdir_p || {
13222 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13223 *) as_qdir=$as_dir;;
13225 as_dirs="'$as_qdir' $as_dirs"
13226 as_dir=`$as_dirname -- "$as_dir" ||
13227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13228 X"$as_dir" : 'X\(//\)[^/]' \| \
13229 X"$as_dir" : 'X\(//\)$' \| \
13230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13231 $as_echo X"$as_dir" |
13232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13236 /^X\(\/\/\)[^/].*/{
13249 test -d "$as_dir" && break
13251 test -z "$as_dirs" || eval "mkdir $as_dirs"
13252 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13256 if mkdir -p . 2>/dev/null; then
13257 as_mkdir_p='mkdir -p "$as_dir"'
13259 test -d ./-p && rmdir ./-p
13264 # as_fn_executable_p FILE
13265 # -----------------------
13266 # Test if FILE is an executable regular file.
13267 as_fn_executable_p ()
13269 test -f "$1" && test -x "$1"
13270 } # as_fn_executable_p
13271 as_test_x='test -x'
13272 as_executable_p=as_fn_executable_p
13274 # Sed expression to map a string onto a valid CPP name.
13275 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13277 # Sed expression to map a string onto a valid variable name.
13278 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13282 ## ----------------------------------- ##
13283 ## Main body of $CONFIG_STATUS script. ##
13284 ## ----------------------------------- ##
13286 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13289 # Save the log message, to keep $0 and so on meaningful, and to
13290 # report actual input values of CONFIG_FILES etc. instead of their
13291 # values after options handling.
13293 This file was extended by sqlite $as_me 3.9.2, which was
13294 generated by GNU Autoconf 2.69. Invocation command line was
13296 CONFIG_FILES = $CONFIG_FILES
13297 CONFIG_HEADERS = $CONFIG_HEADERS
13298 CONFIG_LINKS = $CONFIG_LINKS
13299 CONFIG_COMMANDS = $CONFIG_COMMANDS
13302 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13307 case $ac_config_files in *"
13308 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13314 # Files that config.status was made for.
13315 config_files="$ac_config_files"
13316 config_commands="$ac_config_commands"
13320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13322 \`$as_me' instantiates files and other configuration actions
13323 from templates according to the current configuration. Unless the files
13324 and actions are specified as TAGs, all are instantiated by default.
13326 Usage: $0 [OPTION]... [TAG]...
13328 -h, --help print this help, then exit
13329 -V, --version print version number and configuration settings, then exit
13330 --config print configuration, then exit
13331 -q, --quiet, --silent
13332 do not print progress messages
13333 -d, --debug don't remove temporary files
13334 --recheck update $as_me by reconfiguring in the same conditions
13335 --file=FILE[:TEMPLATE]
13336 instantiate the configuration file FILE
13338 Configuration files:
13341 Configuration commands:
13344 Report bugs to <http://www.sqlite.org>."
13347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13348 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13350 sqlite config.status 3.9.2
13351 configured by $0, generated by GNU Autoconf 2.69,
13352 with options \\"\$ac_cs_config\\"
13354 Copyright (C) 2012 Free Software Foundation, Inc.
13355 This config.status script is free software; the Free Software Foundation
13356 gives unlimited permission to copy, distribute and modify it."
13363 test -n "\$AWK" || AWK=awk
13366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13367 # The default lists apply if the user does not specify any file.
13373 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13374 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13378 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13390 # Handling of the options.
13391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13393 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13394 $as_echo "$ac_cs_version"; exit ;;
13395 --config | --confi | --conf | --con | --co | --c )
13396 $as_echo "$ac_cs_config"; exit ;;
13397 --debug | --debu | --deb | --de | --d | -d )
13399 --file | --fil | --fi | --f )
13402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13403 '') as_fn_error $? "missing file argument" ;;
13405 as_fn_append CONFIG_FILES " '$ac_optarg'"
13406 ac_need_defaults=false;;
13407 --he | --h | --help | --hel | -h )
13408 $as_echo "$ac_cs_usage"; exit ;;
13409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13413 # This is an error.
13414 -*) as_fn_error $? "unrecognized option: \`$1'
13415 Try \`$0 --help' for more information." ;;
13417 *) as_fn_append ac_config_targets " $1"
13418 ac_need_defaults=false ;;
13424 ac_configure_extra_args=
13426 if $ac_cs_silent; then
13428 ac_configure_extra_args="$ac_configure_extra_args --silent"
13432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13433 if \$ac_cs_recheck; then
13434 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13437 CONFIG_SHELL='$SHELL'
13438 export CONFIG_SHELL
13443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13448 ## Running $as_me. ##
13454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13461 # The HP-UX ksh and POSIX shell print the target directory to stdout
13462 # if CDPATH is set.
13463 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13465 sed_quote_subst='$sed_quote_subst'
13466 double_quote_subst='$double_quote_subst'
13467 delay_variable_subst='$delay_variable_subst'
13468 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13469 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13470 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13471 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13472 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13473 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13474 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13475 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13476 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13477 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13478 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13479 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13480 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13481 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13482 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13483 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13484 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13485 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13486 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13487 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13488 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13489 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13490 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13491 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13492 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13493 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13494 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13495 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13496 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13497 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13498 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13499 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13500 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13501 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13502 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13503 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13504 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13505 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13506 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13507 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13508 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13509 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13510 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13511 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13512 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13513 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13514 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13515 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13516 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13517 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13518 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13519 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13520 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13521 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13522 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13523 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13524 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"`'
13525 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13526 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13527 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13528 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13529 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13530 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13531 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13532 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13533 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13534 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13535 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13536 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13537 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13538 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13539 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13540 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13541 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13542 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13543 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13544 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13545 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13546 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13547 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13548 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13549 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13550 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13551 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13552 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13553 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13554 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13555 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13556 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13557 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13558 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13559 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13560 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13561 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13562 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13563 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13564 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13565 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13566 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13567 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13568 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13569 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13570 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13571 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13572 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13573 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13574 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13575 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13576 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13577 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13578 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13579 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13580 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13581 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13582 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13583 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13584 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13585 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13586 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13587 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13588 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13589 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13590 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13591 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13592 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13593 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13594 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13595 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13596 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13597 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13600 LTCFLAGS='$LTCFLAGS'
13601 compiler='$compiler_DEFAULT'
13603 # A function that is used when there is no print builtin or printf.
13604 func_fallback_echo ()
13606 eval 'cat <<_LTECHO_EOF
13611 # Quote evaled strings.
13626 deplibs_check_method \
13631 sharedlib_from_linklib_cmd \
13634 archiver_list_spec \
13640 lt_cv_sys_global_symbol_pipe \
13641 lt_cv_sys_global_symbol_to_cdecl \
13642 lt_cv_sys_global_symbol_to_c_name_address \
13643 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13644 nm_file_list_spec \
13645 lt_prog_compiler_no_builtin_flag \
13646 lt_prog_compiler_pic \
13647 lt_prog_compiler_wl \
13648 lt_prog_compiler_static \
13649 lt_cv_prog_compiler_c_o \
13658 export_dynamic_flag_spec \
13659 whole_archive_flag_spec \
13660 compiler_needs_object \
13662 allow_undefined_flag \
13663 no_undefined_flag \
13664 hardcode_libdir_flag_spec \
13665 hardcode_libdir_separator \
13669 variables_saved_for_relink \
13671 library_names_spec \
13673 install_override_mode \
13677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13678 *[\\\\\\\`\\"\\\$]*)
13679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13687 # Double-quote double-evaled strings.
13688 for var in reload_cmds \
13689 old_postinstall_cmds \
13690 old_postuninstall_cmds \
13692 extract_expsyms_cmds \
13693 old_archive_from_new_cmds \
13694 old_archive_from_expsyms_cmds \
13696 archive_expsym_cmds \
13698 module_expsym_cmds \
13699 export_symbols_cmds \
13703 postuninstall_cmds \
13705 sys_lib_search_path_spec \
13706 sys_lib_dlsearch_path_spec; do
13707 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13708 *[\\\\\\\`\\"\\\$]*)
13709 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13712 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13717 ac_aux_dir='$ac_aux_dir'
13718 xsi_shell='$xsi_shell'
13719 lt_shell_append='$lt_shell_append'
13721 # See if we are running on zsh, and set the options which allow our
13722 # commands through without removal of \ escapes INIT.
13723 if test -n "\${ZSH_VERSION+set}" ; then
13724 setopt NO_GLOB_SUBST
13730 TIMESTAMP='$TIMESTAMP'
13739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13741 # Handling of arguments.
13742 for ac_config_target in $ac_config_targets
13744 case $ac_config_target in
13745 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13746 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13747 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13748 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
13750 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13755 # If the user did not use the arguments to specify the items to instantiate,
13756 # then the envvar interface is used. Set only those that are not.
13757 # We use the long form for the default assignment because of an extremely
13758 # bizarre bug on SunOS 4.1.3.
13759 if $ac_need_defaults; then
13760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13764 # Have a temporary directory for convenience. Make it in the build tree
13765 # simply because there is no reason against having it here, and in addition,
13766 # creating and moving files from /tmp can sometimes cause problems.
13767 # Hook for its removal unless debugging.
13768 # Note that there is a small window in which the directory will not be cleaned:
13769 # after its creation but before its name has been assigned to `$tmp'.
13773 trap 'exit_status=$?
13774 : "${ac_tmp:=$tmp}"
13775 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13777 trap 'as_fn_exit 1' 1 2 13 15
13779 # Create a (secure) tmp directory for tmp files.
13782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13786 tmp=./conf$$-$RANDOM
13787 (umask 077 && mkdir "$tmp")
13788 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13791 # Set up the scripts for CONFIG_FILES section.
13792 # No need to generate them if there are no CONFIG_FILES.
13793 # This happens for instance with `./config.status config.h'.
13794 if test -n "$CONFIG_FILES"; then
13797 ac_cr=`echo X | tr X '\015'`
13798 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13799 # But we know of no other shell where ac_cr would be empty at this
13800 # point, so we can use a bashism as a fallback.
13801 if test "x$ac_cr" = x; then
13802 eval ac_cr=\$\'\\r\'
13804 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13805 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13808 ac_cs_awk_cr=$ac_cr
13811 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13816 echo "cat >conf$$subs.awk <<_ACEOF" &&
13817 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13819 } >conf$$subs.sh ||
13820 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13823 for ac_last_try in false false false false false :; do
13824 . ./conf$$subs.sh ||
13825 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13827 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13828 if test $ac_delim_n = $ac_delim_num; then
13830 elif $ac_last_try; then
13831 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13836 rm -f conf$$subs.sh
13838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13839 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13843 s/^/S["/; s/!.*/"]=/
13853 s/\(.\{148\}\)..*/\1/
13855 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13860 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13867 s/\(.\{148\}\)..*/\1/
13869 s/["\\]/\\&/g; s/^/"/; s/$/"/
13873 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13878 ' <conf$$subs.awk | sed '
13883 ' >>$CONFIG_STATUS || ac_write_fail=1
13884 rm -f conf$$subs.awk
13885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13887 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13888 for (key in S) S_is_set[key] = 1
13894 nfields = split(line, field, "@")
13896 len = length(field[1])
13897 for (i = 2; i < nfields; i++) {
13899 keylen = length(key)
13900 if (S_is_set[key]) {
13902 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13903 len += length(value) + length(field[++i])
13914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13915 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13916 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13919 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13920 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13923 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13924 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13925 # trailing colons and then remove the whole line if VPATH becomes empty
13926 # (actually we leave an empty line to preserve line numbers).
13927 if test "x$srcdir" = x.; then
13928 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13947 fi # test -n "$CONFIG_FILES"
13950 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13955 :[FHLC]) ac_mode=$ac_tag; continue;;
13957 case $ac_mode$ac_tag in
13959 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13960 :[FH]-) ac_tag=-:-;;
13961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13978 -) ac_f="$ac_tmp/stdin";;
13979 *) # Look for the file first in the build tree, then in the source tree
13980 # (if the path is not absolute). The absolute path cannot be DOS-style,
13981 # because $ac_f cannot contain `:'.
13985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13987 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13989 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13990 as_fn_append ac_file_inputs " '$ac_f'"
13993 # Let's still pretend it is `configure' which instantiates (i.e., don't
13994 # use $as_me), people would be surprised to read:
13995 # /* config.h. Generated by config.status. */
13996 configure_input='Generated from '`
13997 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13999 if test x"$ac_file" != x-; then
14000 configure_input="$ac_file. $configure_input"
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14002 $as_echo "$as_me: creating $ac_file" >&6;}
14004 # Neutralize special characters interpreted by sed in replacement strings.
14005 case $configure_input in #(
14006 *\&* | *\|* | *\\* )
14007 ac_sed_conf_input=`$as_echo "$configure_input" |
14008 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14009 *) ac_sed_conf_input=$configure_input;;
14013 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14014 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14019 ac_dir=`$as_dirname -- "$ac_file" ||
14020 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14021 X"$ac_file" : 'X\(//\)[^/]' \| \
14022 X"$ac_file" : 'X\(//\)$' \| \
14023 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14024 $as_echo X"$ac_file" |
14025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14029 /^X\(\/\/\)[^/].*/{
14042 as_dir="$ac_dir"; as_fn_mkdir_p
14046 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14048 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14049 # A ".." for each directory in $ac_dir_suffix.
14050 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14051 case $ac_top_builddir_sub in
14052 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14053 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14056 ac_abs_top_builddir=$ac_pwd
14057 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14058 # for backward compatibility:
14059 ac_top_builddir=$ac_top_build_prefix
14062 .) # We are building in place.
14064 ac_top_srcdir=$ac_top_builddir_sub
14065 ac_abs_top_srcdir=$ac_pwd ;;
14066 [\\/]* | ?:[\\/]* ) # Absolute name.
14067 ac_srcdir=$srcdir$ac_dir_suffix;
14068 ac_top_srcdir=$srcdir
14069 ac_abs_top_srcdir=$srcdir ;;
14070 *) # Relative name.
14071 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14072 ac_top_srcdir=$ac_top_build_prefix$srcdir
14073 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14075 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14085 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14086 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14088 ac_MKDIR_P=$MKDIR_P
14090 [\\/$]* | ?:[\\/]* ) ;;
14091 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14096 # If the template does not know about datarootdir, expand it.
14097 # FIXME: This hack should be removed a few years after 2.60.
14098 ac_datarootdir_hack=; ac_datarootdir_seen=
14109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14110 *datarootdir*) ac_datarootdir_seen=yes;;
14111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14116 ac_datarootdir_hack='
14117 s&@datadir@&$datadir&g
14118 s&@docdir@&$docdir&g
14119 s&@infodir@&$infodir&g
14120 s&@localedir@&$localedir&g
14121 s&@mandir@&$mandir&g
14122 s&\\\${datarootdir}&$datarootdir&g' ;;
14126 # Neutralize VPATH when `$srcdir' = `.'.
14127 # Shell code in configure.ac might set extrasub.
14128 # FIXME: do we really want to maintain this feature?
14129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14130 ac_sed_extra="$ac_vpsub
14133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14136 s|@configure_input@|$ac_sed_conf_input|;t t
14137 s&@top_builddir@&$ac_top_builddir_sub&;t t
14138 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14139 s&@srcdir@&$ac_srcdir&;t t
14140 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14141 s&@top_srcdir@&$ac_top_srcdir&;t t
14142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14143 s&@builddir@&$ac_builddir&;t t
14144 s&@abs_builddir@&$ac_abs_builddir&;t t
14145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14146 s&@INSTALL@&$ac_INSTALL&;t t
14147 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14148 $ac_datarootdir_hack
14150 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14151 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14154 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14156 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14158 which seems to be undefined. Please make sure it is defined" >&5
14159 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14160 which seems to be undefined. Please make sure it is defined" >&2;}
14162 rm -f "$ac_tmp/stdin"
14164 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14165 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14167 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14171 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14172 $as_echo "$as_me: executing $ac_file commands" >&6;}
14177 case $ac_file$ac_mode in
14178 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14179 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14180 # are listed without --file. Let's play safe and only enable the eval
14181 # if we detect the quoting.
14182 case $CONFIG_FILES in
14183 *\'*) eval set x "$CONFIG_FILES" ;;
14184 *) set x $CONFIG_FILES ;;
14189 # Strip MF so we end up with the name of the file.
14190 mf=`echo "$mf" | sed -e 's/:.*$//'`
14191 # Check whether this is an Automake generated Makefile or not.
14192 # We used to match only the files named `Makefile.in', but
14193 # some people rename them; so instead we look at the file content.
14194 # Grep'ing the first line is not enough: some people post-process
14195 # each Makefile.in and add a new line on top of each file to say so.
14196 # Grep'ing the whole file is not good either: AIX grep has a line
14197 # limit of 2048, but all sed's we know have understand at least 4000.
14198 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14199 dirpart=`$as_dirname -- "$mf" ||
14200 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14201 X"$mf" : 'X\(//\)[^/]' \| \
14202 X"$mf" : 'X\(//\)$' \| \
14203 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14209 /^X\(\/\/\)[^/].*/{
14225 # Extract the definition of DEPDIR, am__include, and am__quote
14226 # from the Makefile without running `make'.
14227 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14228 test -z "$DEPDIR" && continue
14229 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14230 test -z "am__include" && continue
14231 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14232 # When using ansi2knr, U may be empty or an underscore; expand it
14233 U=`sed -n 's/^U = //p' < "$mf"`
14234 # Find all dependency output files, they are included files with
14235 # $(DEPDIR) in their names. We invoke sed twice because it is the
14236 # simplest approach to changing $(DEPDIR) to its actual value in the
14238 for file in `sed -n "
14239 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14240 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14241 # Make sure the directory exists.
14242 test -f "$dirpart/$file" && continue
14243 fdir=`$as_dirname -- "$file" ||
14244 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14245 X"$file" : 'X\(//\)[^/]' \| \
14246 X"$file" : 'X\(//\)$' \| \
14247 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14248 $as_echo X"$file" |
14249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14253 /^X\(\/\/\)[^/].*/{
14266 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14267 # echo "creating $dirpart/$file"
14268 echo '# dummy' > "$dirpart/$file"
14275 # See if we are running on zsh, and set the options which allow our
14276 # commands through without removal of \ escapes.
14277 if test -n "${ZSH_VERSION+set}" ; then
14278 setopt NO_GLOB_SUBST
14281 cfgfile="${ofile}T"
14282 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14285 cat <<_LT_EOF >> "$cfgfile"
14288 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14289 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14290 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14293 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14294 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14296 # Written by Gordon Matzigkeit, 1996
14298 # This file is part of GNU Libtool.
14300 # GNU Libtool is free software; you can redistribute it and/or
14301 # modify it under the terms of the GNU General Public License as
14302 # published by the Free Software Foundation; either version 2 of
14303 # the License, or (at your option) any later version.
14305 # As a special exception to the GNU General Public License,
14306 # if you distribute this file as part of a program or library that
14307 # is built using GNU Libtool, you may include this file under the
14308 # same distribution terms that you use for the rest of that program.
14310 # GNU Libtool is distributed in the hope that it will be useful,
14311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14313 # GNU General Public License for more details.
14315 # You should have received a copy of the GNU General Public License
14316 # along with GNU Libtool; see the file COPYING. If not, a copy
14317 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14318 # obtained by writing to the Free Software Foundation, Inc.,
14319 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14322 # The names of the tagged configurations supported by this script.
14325 # ### BEGIN LIBTOOL CONFIG
14327 # Which release of libtool.m4 was used?
14328 macro_version=$macro_version
14329 macro_revision=$macro_revision
14331 # Whether or not to build shared libraries.
14332 build_libtool_libs=$enable_shared
14334 # Whether or not to build static libraries.
14335 build_old_libs=$enable_static
14337 # What type of objects to build.
14340 # Whether or not to optimize for fast installation.
14341 fast_install=$enable_fast_install
14343 # Shell to use when invoking shell scripts.
14346 # An echo program that protects backslashes.
14349 # The PATH separator for the build system.
14350 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14353 host_alias=$host_alias
14357 # The build system.
14358 build_alias=$build_alias
14362 # A sed program that does not truncate output.
14365 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14366 Xsed="\$SED -e 1s/^X//"
14368 # A grep program that handles long lines.
14374 # A literal string matcher.
14377 # A BSD- or MS-compatible name lister.
14380 # Whether we need soft or hard links.
14383 # What is the maximum length of a command?
14384 max_cmd_len=$max_cmd_len
14386 # Object file suffix (normally "o").
14389 # Executable file suffix (normally "").
14392 # whether the shell understands "unset".
14395 # turn spaces into newlines.
14398 # turn newlines into spaces.
14401 # convert \$build file names to \$host format.
14402 to_host_file_cmd=$lt_cv_to_host_file_cmd
14404 # convert \$build files to toolchain format.
14405 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14407 # An object symbol dumper.
14408 OBJDUMP=$lt_OBJDUMP
14410 # Method to check whether dependent libraries are shared objects.
14411 deplibs_check_method=$lt_deplibs_check_method
14413 # Command to use when deplibs_check_method = "file_magic".
14414 file_magic_cmd=$lt_file_magic_cmd
14416 # How to find potential files when deplibs_check_method = "file_magic".
14417 file_magic_glob=$lt_file_magic_glob
14419 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14420 want_nocaseglob=$lt_want_nocaseglob
14422 # DLL creation program.
14423 DLLTOOL=$lt_DLLTOOL
14425 # Command to associate shared and link libraries.
14426 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14431 # Flags to create an archive.
14432 AR_FLAGS=$lt_AR_FLAGS
14434 # How to feed a file listing to the archiver.
14435 archiver_list_spec=$lt_archiver_list_spec
14437 # A symbol stripping program.
14440 # Commands used to install an old-style archive.
14442 old_postinstall_cmds=$lt_old_postinstall_cmds
14443 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14445 # Whether to use a lock for old archive extraction.
14446 lock_old_archive_extraction=$lock_old_archive_extraction
14451 # LTCC compiler flags.
14452 LTCFLAGS=$lt_CFLAGS
14454 # Take the output of nm and produce a listing of raw symbols and C names.
14455 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14457 # Transform the output of nm in a proper C declaration.
14458 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14460 # Transform the output of nm in a C name address pair.
14461 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14463 # Transform the output of nm in a C name address pair when lib prefix is needed.
14464 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14466 # Specify filename containing input files for \$NM.
14467 nm_file_list_spec=$lt_nm_file_list_spec
14469 # The root where to search for dependent libraries,and in which our libraries should be installed.
14470 lt_sysroot=$lt_sysroot
14472 # The name of the directory that contains temporary libtool files.
14475 # Used to examine libraries when file_magic_cmd begins with "file".
14476 MAGIC_CMD=$MAGIC_CMD
14478 # Must we lock files when doing compilation?
14479 need_locks=$lt_need_locks
14482 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14484 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14485 DSYMUTIL=$lt_DSYMUTIL
14487 # Tool to change global to local symbols on Mac OS X.
14490 # Tool to manipulate fat objects and archives on Mac OS X.
14493 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14496 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14497 OTOOL64=$lt_OTOOL64
14499 # Old archive suffix (normally "a").
14502 # Shared library suffix (normally ".so").
14503 shrext_cmds=$lt_shrext_cmds
14505 # The commands to extract the exported symbol list from a shared archive.
14506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14508 # Variables whose values should be saved in libtool wrapper scripts and
14509 # restored at link time.
14510 variables_saved_for_relink=$lt_variables_saved_for_relink
14512 # Do we need the "lib" prefix for modules?
14513 need_lib_prefix=$need_lib_prefix
14515 # Do we need a version for libraries?
14516 need_version=$need_version
14518 # Library versioning type.
14519 version_type=$version_type
14521 # Shared library runtime path variable.
14522 runpath_var=$runpath_var
14524 # Shared library path variable.
14525 shlibpath_var=$shlibpath_var
14527 # Is shlibpath searched before the hard-coded library search path?
14528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14530 # Format of library name prefix.
14531 libname_spec=$lt_libname_spec
14533 # List of archive names. First name is the real one, the rest are links.
14534 # The last name is the one that the linker finds with -lNAME
14535 library_names_spec=$lt_library_names_spec
14537 # The coded name of the library, if different from the real name.
14538 soname_spec=$lt_soname_spec
14540 # Permission mode override for installation of shared libraries.
14541 install_override_mode=$lt_install_override_mode
14543 # Command to use after installation of a shared archive.
14544 postinstall_cmds=$lt_postinstall_cmds
14546 # Command to use after uninstallation of a shared archive.
14547 postuninstall_cmds=$lt_postuninstall_cmds
14549 # Commands used to finish a libtool library installation in a directory.
14550 finish_cmds=$lt_finish_cmds
14552 # As "finish_cmds", except a single script fragment to be evaled but
14554 finish_eval=$lt_finish_eval
14556 # Whether we should hardcode library paths into libraries.
14557 hardcode_into_libs=$hardcode_into_libs
14559 # Compile-time system search path for libraries.
14560 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14562 # Run-time system search path for libraries.
14563 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14565 # Whether dlopen is supported.
14566 dlopen_support=$enable_dlopen
14568 # Whether dlopen of programs is supported.
14569 dlopen_self=$enable_dlopen_self
14571 # Whether dlopen of statically linked programs is supported.
14572 dlopen_self_static=$enable_dlopen_self_static
14574 # Commands to strip libraries.
14575 old_striplib=$lt_old_striplib
14576 striplib=$lt_striplib
14579 # The linker used to build libraries.
14582 # How to create reloadable object files.
14583 reload_flag=$lt_reload_flag
14584 reload_cmds=$lt_reload_cmds
14586 # Commands used to build an old-style archive.
14587 old_archive_cmds=$lt_old_archive_cmds
14589 # A language specific compiler.
14592 # Is the compiler the GNU compiler?
14595 # Compiler flag to turn off builtin functions.
14596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14598 # Additional compiler flags for building library objects.
14599 pic_flag=$lt_lt_prog_compiler_pic
14601 # How to pass a linker flag through the compiler.
14602 wl=$lt_lt_prog_compiler_wl
14604 # Compiler flag to prevent dynamic linking.
14605 link_static_flag=$lt_lt_prog_compiler_static
14607 # Does compiler simultaneously support -c and -o options?
14608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14610 # Whether or not to add -lc for building shared libraries.
14611 build_libtool_need_lc=$archive_cmds_need_lc
14613 # Whether or not to disallow shared libs when runtime libs are static.
14614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14616 # Compiler flag to allow reflexive dlopens.
14617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14619 # Compiler flag to generate shared objects directly from archives.
14620 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14622 # Whether the compiler copes with passing no objects directly.
14623 compiler_needs_object=$lt_compiler_needs_object
14625 # Create an old-style archive from a shared archive.
14626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14628 # Create a temporary old-style archive to link instead of a shared archive.
14629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14631 # Commands used to build a shared archive.
14632 archive_cmds=$lt_archive_cmds
14633 archive_expsym_cmds=$lt_archive_expsym_cmds
14635 # Commands used to build a loadable module if different from building
14636 # a shared archive.
14637 module_cmds=$lt_module_cmds
14638 module_expsym_cmds=$lt_module_expsym_cmds
14640 # Whether we are building with GNU ld or not.
14641 with_gnu_ld=$lt_with_gnu_ld
14643 # Flag that allows shared libraries with undefined symbols to be built.
14644 allow_undefined_flag=$lt_allow_undefined_flag
14646 # Flag that enforces no undefined symbols.
14647 no_undefined_flag=$lt_no_undefined_flag
14649 # Flag to hardcode \$libdir into a binary during linking.
14650 # This must work even if \$libdir does not exist
14651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14653 # Whether we need a single "-rpath" flag with a separated argument.
14654 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14656 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14657 # DIR into the resulting binary.
14658 hardcode_direct=$hardcode_direct
14660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14661 # DIR into the resulting binary and the resulting library dependency is
14662 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14663 # library is relocated.
14664 hardcode_direct_absolute=$hardcode_direct_absolute
14666 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14667 # into the resulting binary.
14668 hardcode_minus_L=$hardcode_minus_L
14670 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14671 # into the resulting binary.
14672 hardcode_shlibpath_var=$hardcode_shlibpath_var
14674 # Set to "yes" if building a shared library automatically hardcodes DIR
14675 # into the library and all subsequent libraries and executables linked
14677 hardcode_automatic=$hardcode_automatic
14679 # Set to yes if linker adds runtime paths of dependent libraries
14680 # to runtime path list.
14681 inherit_rpath=$inherit_rpath
14683 # Whether libtool must link a program against all its dependency libraries.
14684 link_all_deplibs=$link_all_deplibs
14686 # Set to "yes" if exported symbols are required.
14687 always_export_symbols=$always_export_symbols
14689 # The commands to list exported symbols.
14690 export_symbols_cmds=$lt_export_symbols_cmds
14692 # Symbols that should not be listed in the preloaded symbols.
14693 exclude_expsyms=$lt_exclude_expsyms
14695 # Symbols that must always be exported.
14696 include_expsyms=$lt_include_expsyms
14698 # Commands necessary for linking programs (against libraries) with templates.
14699 prelink_cmds=$lt_prelink_cmds
14701 # Commands necessary for finishing linking programs.
14702 postlink_cmds=$lt_postlink_cmds
14704 # Specify filename containing input files.
14705 file_list_spec=$lt_file_list_spec
14707 # How to hardcode a shared library path into an executable.
14708 hardcode_action=$hardcode_action
14710 # ### END LIBTOOL CONFIG
14716 cat <<\_LT_EOF >> "$cfgfile"
14717 # AIX sometimes has problems with the GCC collect2 program. For some
14718 # reason, if we set the COLLECT_NAMES environment variable, the problems
14719 # vanish in a puff of smoke.
14720 if test "X${COLLECT_NAMES+set}" != Xset; then
14722 export COLLECT_NAMES
14729 ltmain="$ac_aux_dir/ltmain.sh"
14732 # We use sed instead of cat because bash on DJGPP gets confused if
14733 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14734 # text mode, it properly converts lines to CR/LF. This bash problem
14735 # is reportedly fixed, but why not run on old versions too?
14736 sed '$q' "$ltmain" >> "$cfgfile" \
14737 || (rm -f "$cfgfile"; exit 1)
14739 if test x"$xsi_shell" = xyes; then
14740 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14744 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14745 \ * ) func_dirname_result="${3}" ;;\
14747 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14748 && mv -f "$cfgfile.tmp" "$cfgfile" \
14749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14750 test 0 -eq $? || _lt_function_replace_fail=:
14753 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14756 \ func_basename_result="${1##*/}"\
14757 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14758 && mv -f "$cfgfile.tmp" "$cfgfile" \
14759 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14760 test 0 -eq $? || _lt_function_replace_fail=:
14763 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14764 func_dirname_and_basename ()\
14767 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14768 \ * ) func_dirname_result="${3}" ;;\
14770 \ func_basename_result="${1##*/}"\
14771 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14772 && mv -f "$cfgfile.tmp" "$cfgfile" \
14773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14774 test 0 -eq $? || _lt_function_replace_fail=:
14777 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14780 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14781 \ # positional parameters, so assign one to ordinary parameter first.\
14782 \ func_stripname_result=${3}\
14783 \ func_stripname_result=${func_stripname_result#"${1}"}\
14784 \ func_stripname_result=${func_stripname_result%"${2}"}\
14785 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14786 && mv -f "$cfgfile.tmp" "$cfgfile" \
14787 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788 test 0 -eq $? || _lt_function_replace_fail=:
14791 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14792 func_split_long_opt ()\
14794 \ func_split_long_opt_name=${1%%=*}\
14795 \ func_split_long_opt_arg=${1#*=}\
14796 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14797 && mv -f "$cfgfile.tmp" "$cfgfile" \
14798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14799 test 0 -eq $? || _lt_function_replace_fail=:
14802 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14803 func_split_short_opt ()\
14805 \ func_split_short_opt_arg=${1#??}\
14806 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14807 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14808 && mv -f "$cfgfile.tmp" "$cfgfile" \
14809 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14810 test 0 -eq $? || _lt_function_replace_fail=:
14813 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14817 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14818 \ *) func_lo2o_result=${1} ;;\
14820 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14821 && mv -f "$cfgfile.tmp" "$cfgfile" \
14822 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14823 test 0 -eq $? || _lt_function_replace_fail=:
14826 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14829 func_xform_result=${1%.*}.lo\
14830 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14831 && mv -f "$cfgfile.tmp" "$cfgfile" \
14832 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14833 test 0 -eq $? || _lt_function_replace_fail=:
14836 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14839 func_arith_result=$(( $* ))\
14840 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14841 && mv -f "$cfgfile.tmp" "$cfgfile" \
14842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14843 test 0 -eq $? || _lt_function_replace_fail=:
14846 sed -e '/^func_len ()$/,/^} # func_len /c\
14849 func_len_result=${#1}\
14850 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14851 && mv -f "$cfgfile.tmp" "$cfgfile" \
14852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14853 test 0 -eq $? || _lt_function_replace_fail=:
14857 if test x"$lt_shell_append" = xyes; then
14858 sed -e '/^func_append ()$/,/^} # func_append /c\
14861 eval "${1}+=\\${2}"\
14862 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14863 && mv -f "$cfgfile.tmp" "$cfgfile" \
14864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865 test 0 -eq $? || _lt_function_replace_fail=:
14868 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14869 func_append_quoted ()\
14871 \ func_quote_for_eval "${2}"\
14872 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14873 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14874 && mv -f "$cfgfile.tmp" "$cfgfile" \
14875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14876 test 0 -eq $? || _lt_function_replace_fail=:
14879 # Save a `func_append' function call where possible by direct use of '+='
14880 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14881 && mv -f "$cfgfile.tmp" "$cfgfile" \
14882 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14883 test 0 -eq $? || _lt_function_replace_fail=:
14885 # Save a `func_append' function call even when '+=' is not available
14886 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14887 && mv -f "$cfgfile.tmp" "$cfgfile" \
14888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14889 test 0 -eq $? || _lt_function_replace_fail=:
14892 if test x"$_lt_function_replace_fail" = x":"; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14894 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14898 mv -f "$cfgfile" "$ofile" ||
14899 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14910 ac_clean_files=$ac_clean_files_save
14912 test $ac_write_fail = 0 ||
14913 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14916 # configure is writing to config.log, and then calls config.status.
14917 # config.status does its own redirection, appending to config.log.
14918 # Unfortunately, on DOS this fails, as config.log is still kept open
14919 # by configure, so config.status won't be able to write to it; its
14920 # output is simply discarded. So we exec the FD to /dev/null,
14921 # effectively closing config.log, so it can be properly (re)opened and
14922 # appended to by config.status. When coming back to configure, we
14923 # need to make the FD available again.
14924 if test "$no_create" != yes; then
14926 ac_config_status_args=
14927 test "$silent" = yes &&
14928 ac_config_status_args="$ac_config_status_args --quiet"
14930 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14932 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14933 # would make configure fail if this is the last instruction.
14934 $ac_cs_success || as_fn_exit 1
14936 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14938 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}