2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sqlite 3.8.7.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.8.7.2'
594 PACKAGE_STRING='sqlite 3.8.7.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
639 DYNAMIC_EXTENSION_FLAGS
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
755 enable_dependency_tracking
765 enable_dynamic_extensions
767 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 ac_unrecognized_opts=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
792 program_transform_name=s,x,x,
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 # Accept the important Cygnus configure options, so we can diagnose typos.
845 case $ac_dashdash$ac_option in
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
867 cache_file=config.cache ;;
869 -datadir | --datadir | --datadi | --datad)
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
895 eval enable_$ac_useropt=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
921 eval enable_$ac_useropt=\$ac_optarg ;;
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
936 -help | --help | --hel | --he | -h)
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
952 htmldir=$ac_optarg ;;
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
966 -libdir | --libdir | --libdi | --libd)
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
978 -localedir | --localedir | --localedi | --localed | --locale)
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 # Obsolete; use --without-fp.
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1057 -psdir | --psdir | --psdi | --psd | --ps)
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1070 sbindir=$ac_optarg ;;
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1081 sharedstatedir=$ac_optarg ;;
1083 -site | --site | --sit)
1085 -site=* | --site=* | --sit=*)
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1141 eval with_$ac_useropt=no ;;
1144 # Obsolete; use --with-x.
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1212 # Be sure to have absolute directory names.
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1239 test "$silent" = yes && exec 6>/dev/null
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures sqlite 3.8.7.2 to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of sqlite 3.8.7.2:";;
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --disable-largefile omit support for large files
1395 --disable-dependency-tracking speeds up one-time build
1396 --enable-dependency-tracking do not reject slow dependency extractors
1397 --enable-shared[=PKGS] build shared libraries [default=yes]
1398 --enable-static[=PKGS] build static libraries [default=yes]
1399 --enable-fast-install[=PKGS]
1400 optimize for fast installation [default=yes]
1401 --disable-libtool-lock avoid locking (might break parallel builds)
1402 --enable-readline use readline in shell tool (yes, no) [default=yes]
1403 --enable-threadsafe build a thread-safe library [default=yes]
1404 --enable-dynamic-extensions
1405 support loadable extensions [default=yes]
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1412 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1413 --with-sysroot=DIR Search for dependent libraries within DIR
1414 (or the compiler's sysroot if not specified).
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1429 Report bugs to <http://www.sqlite.org>.
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1459 .) # We are building in place.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1492 sqlite configure 3.8.7.2
1493 generated by GNU Autoconf 2.69
1495 Copyright (C) 2012 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
1542 } # ac_fn_c_try_compile
1544 # ac_fn_c_try_link LINENO
1545 # -----------------------
1546 # Try to link conftest.$ac_ext, and return whether this succeeded.
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext conftest$ac_exeext
1551 if { { ac_try="$ac_link"
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_link") 2>conftest.err
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest$ac_exeext && {
1570 test "$cross_compiling" = yes ||
1571 test -x conftest$ac_exeext
1575 $as_echo "$as_me: failed program was:" >&5
1576 sed 's/^/| /' conftest.$ac_ext >&5
1580 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1581 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1582 # interfere with the next link command; also delete a directory that is
1583 # left behind by Apple's compiler. We do this before executing the actions.
1584 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1585 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586 as_fn_set_status $ac_retval
1588 } # ac_fn_c_try_link
1590 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1591 # -------------------------------------------------------
1592 # Tests whether HEADER exists and can be compiled using the include files in
1593 # INCLUDES, setting the cache variable VAR accordingly.
1594 ac_fn_c_check_header_compile ()
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600 $as_echo_n "(cached) " >&6
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1607 if ac_fn_c_try_compile "$LINENO"; then :
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616 $as_echo "$ac_res" >&6; }
1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 } # ac_fn_c_check_header_compile
1621 # ac_fn_c_try_cpp LINENO
1622 # ----------------------
1623 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 if { { ac_try="$ac_cpp conftest.$ac_ext"
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } > conftest.i && {
1643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1658 # ac_fn_c_try_run LINENO
1659 # ----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1661 # that executables *can* be run.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_link"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>&5
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1676 { { case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_try") 2>&5
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; }; }; then :
1688 $as_echo "$as_me: program exited with status $ac_status" >&5
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1692 ac_retval=$ac_status
1694 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1700 # ac_fn_c_check_func LINENO FUNC VAR
1701 # ----------------------------------
1702 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1703 ac_fn_c_check_func ()
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709 $as_echo_n "(cached) " >&6
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1713 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1715 #define $2 innocuous_$2
1717 /* System header to define __stub macros and hopefully few prototypes,
1718 which can conflict with char $2 (); below.
1719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1720 <limits.h> exists even on freestanding compilers. */
1723 # include <limits.h>
1725 # include <assert.h>
1730 /* Override any GCC internal prototype to avoid an error.
1731 Use char because int might match the return type of a GCC
1732 builtin and then its argument prototype would still apply. */
1737 /* The GNU C library defines this for functions which it implements
1738 to always fail with ENOSYS. Some functions are actually named
1739 something starting with __ and the normal name is an alias. */
1740 #if defined __stub_$2 || defined __stub___$2
1752 if ac_fn_c_try_link "$LINENO"; then :
1757 rm -f core conftest.err conftest.$ac_objext \
1758 conftest$ac_exeext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 } # ac_fn_c_check_func
1767 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1768 # ---------------------------------------------
1769 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1771 ac_fn_c_check_decl ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 as_decl_name=`echo $2|sed 's/ *(.*//'`
1775 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1777 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1778 if eval \${$3+:} false; then :
1779 $as_echo_n "(cached) " >&6
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1787 #ifndef $as_decl_name
1789 (void) $as_decl_use;
1791 (void) $as_decl_name;
1799 if ac_fn_c_try_compile "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 } # ac_fn_c_check_decl
1812 cat >config.log <<_ACEOF
1813 This file contains any messages produced by compilers while
1814 running configure, to aid debugging if configure makes a mistake.
1816 It was created by sqlite $as_me 3.8.7.2, which was
1817 generated by GNU Autoconf 2.69. Invocation command line was
1829 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1830 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1831 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1832 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1833 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1835 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1836 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1838 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1839 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1840 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1841 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1842 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1843 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1844 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852 test -z "$as_dir" && as_dir=.
1853 $as_echo "PATH: $as_dir"
1869 # Keep a trace of the command line.
1870 # Strip out --no-create and --no-recursion so they do not pile up.
1871 # Strip out --silent because we don't want to record it for future runs.
1872 # Also quote any args containing shell meta-characters.
1873 # Make two passes to allow for proper duplicate-argument suppression.
1877 ac_must_keep_next=false
1883 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1885 | -silent | --silent | --silen | --sile | --sil)
1888 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1893 as_fn_append ac_configure_args1 " '$ac_arg'"
1894 if test $ac_must_keep_next = true; then
1895 ac_must_keep_next=false # Got value, back to normal.
1898 *=* | --config-cache | -C | -disable-* | --disable-* \
1899 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1900 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1901 | -with-* | --with-* | -without-* | --without-* | --x)
1902 case "$ac_configure_args0 " in
1903 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1906 -* ) ac_must_keep_next=true ;;
1909 as_fn_append ac_configure_args " '$ac_arg'"
1914 { ac_configure_args0=; unset ac_configure_args0;}
1915 { ac_configure_args1=; unset ac_configure_args1;}
1917 # When interrupted or exit'd, cleanup temporary files, and complete
1918 # config.log. We remove comments because anyway the quotes in there
1919 # would cause problems or look ugly.
1920 # WARNING: Use '\'' to represent an apostrophe within the trap.
1921 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1922 trap 'exit_status=$?
1923 # Save into config.log some information that might help in debugging.
1927 $as_echo "## ---------------- ##
1928 ## Cache variables. ##
1929 ## ---------------- ##"
1931 # The following way of writing the cache mishandles newlines in values,
1933 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1934 eval ac_val=\$$ac_var
1938 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1939 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1942 _ | IFS | as_nl) ;; #(
1943 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1944 *) { eval $ac_var=; unset $ac_var;} ;;
1949 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1950 *${as_nl}ac_space=\ *)
1952 "s/'\''/'\''\\\\'\'''\''/g;
1953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1963 $as_echo "## ----------------- ##
1964 ## Output variables. ##
1965 ## ----------------- ##"
1967 for ac_var in $ac_subst_vars
1969 eval ac_val=\$$ac_var
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 $as_echo "$ac_var='\''$ac_val'\''"
1977 if test -n "$ac_subst_files"; then
1978 $as_echo "## ------------------- ##
1979 ## File substitutions. ##
1980 ## ------------------- ##"
1982 for ac_var in $ac_subst_files
1984 eval ac_val=\$$ac_var
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 $as_echo "$ac_var='\''$ac_val'\''"
1993 if test -s confdefs.h; then
1994 $as_echo "## ----------- ##
2001 test "$ac_signal" != 0 &&
2002 $as_echo "$as_me: caught signal $ac_signal"
2003 $as_echo "$as_me: exit $exit_status"
2005 rm -f core *.core core.conftest.* &&
2006 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2009 for ac_signal in 1 2 13 15; do
2010 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2014 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2015 rm -f -r conftest* confdefs.h
2017 $as_echo "/* confdefs.h */" > confdefs.h
2019 # Predefined preprocessor variables.
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_NAME "$PACKAGE_NAME"
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2029 cat >>confdefs.h <<_ACEOF
2030 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2033 cat >>confdefs.h <<_ACEOF
2034 #define PACKAGE_STRING "$PACKAGE_STRING"
2037 cat >>confdefs.h <<_ACEOF
2038 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_URL "$PACKAGE_URL"
2046 # Let the site file select an alternate cache file if it wants to.
2047 # Prefer an explicitly selected file to automatically selected ones.
2050 if test -n "$CONFIG_SITE"; then
2051 # We do not want a PATH search for config.site.
2052 case $CONFIG_SITE in #((
2053 -*) ac_site_file1=./$CONFIG_SITE;;
2054 */*) ac_site_file1=$CONFIG_SITE;;
2055 *) ac_site_file1=./$CONFIG_SITE;;
2057 elif test "x$prefix" != xNONE; then
2058 ac_site_file1=$prefix/share/config.site
2059 ac_site_file2=$prefix/etc/config.site
2061 ac_site_file1=$ac_default_prefix/share/config.site
2062 ac_site_file2=$ac_default_prefix/etc/config.site
2064 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2066 test "x$ac_site_file" = xNONE && continue
2067 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2069 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2070 sed 's/^/| /' "$ac_site_file" >&5
2072 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2074 as_fn_error $? "failed to load site script $ac_site_file
2075 See \`config.log' for more details" "$LINENO" 5; }
2079 if test -r "$cache_file"; then
2080 # Some versions of bash will fail to source /dev/null (special files
2081 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2082 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2084 $as_echo "$as_me: loading cache $cache_file" >&6;}
2086 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2087 *) . "./$cache_file";;
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2092 $as_echo "$as_me: creating cache $cache_file" >&6;}
2096 # Check that the precious variables saved in the cache have kept the same
2098 ac_cache_corrupted=false
2099 for ac_var in $ac_precious_vars; do
2100 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2101 eval ac_new_set=\$ac_env_${ac_var}_set
2102 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2103 eval ac_new_val=\$ac_env_${ac_var}_value
2104 case $ac_old_set,$ac_new_set in
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2107 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2108 ac_cache_corrupted=: ;;
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2111 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2112 ac_cache_corrupted=: ;;
2115 if test "x$ac_old_val" != "x$ac_new_val"; then
2116 # differences in whitespace do not lead to failure.
2117 ac_old_val_w=`echo x $ac_old_val`
2118 ac_new_val_w=`echo x $ac_new_val`
2119 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2121 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2122 ac_cache_corrupted=:
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2125 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2126 eval $ac_var=\$ac_old_val
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2129 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2131 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2134 # Pass precious variables to config.status.
2135 if test "$ac_new_set" = set; then
2137 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 *) ac_arg=$ac_var=$ac_new_val ;;
2140 case " $ac_configure_args " in
2141 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2142 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2146 if $ac_cache_corrupted; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2150 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2151 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2153 ## -------------------- ##
2154 ## Main body of script. ##
2155 ## -------------------- ##
2158 ac_cpp='$CPP $CPPFLAGS'
2159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 am__api_version='1.11'
2170 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2171 if test -f "$ac_dir/install-sh"; then
2173 ac_install_sh="$ac_aux_dir/install-sh -c"
2175 elif test -f "$ac_dir/install.sh"; then
2177 ac_install_sh="$ac_aux_dir/install.sh -c"
2179 elif test -f "$ac_dir/shtool"; then
2181 ac_install_sh="$ac_aux_dir/shtool install -c"
2185 if test -z "$ac_aux_dir"; then
2186 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2189 # These three variables are undocumented and unsupported,
2190 # and are intended to be withdrawn in a future Autoconf release.
2191 # They can cause serious problems if a builder's source tree is in a directory
2192 # whose full name contains unusual characters.
2193 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2194 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2195 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2198 # Find a good install program. We prefer a C program (faster),
2199 # so one script is as good as another. But avoid the broken or
2200 # incompatible versions:
2201 # SysV /etc/install, /usr/sbin/install
2202 # SunOS /usr/etc/install
2203 # IRIX /sbin/install
2205 # AmigaOS /C/install, which installs bootblocks on floppy discs
2206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2209 # OS/2's system install, which has a completely different semantic
2210 # ./install, which can be erroneously created by make from ./install.sh.
2211 # Reject install programs that cannot install multiple files.
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2214 if test -z "$INSTALL"; then
2215 if ${ac_cv_path_install+:} false; then :
2216 $as_echo_n "(cached) " >&6
2218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 test -z "$as_dir" && as_dir=.
2223 # Account for people who put trailing slashes in PATH elements.
2224 case $as_dir/ in #((
2225 ./ | .// | /[cC]/* | \
2226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2230 # OSF1 and SCO ODT 3.0 have their own names for install.
2231 # Don't use installbsd from OSF since it installs stuff as root
2233 for ac_prog in ginstall scoinst install; do
2234 for ac_exec_ext in '' $ac_executable_extensions; do
2235 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2236 if test $ac_prog = install &&
2237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2238 # AIX install. It has an incompatible calling convention.
2240 elif test $ac_prog = install &&
2241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2242 # program-specific install script used by HP pwplus--don't use.
2245 rm -rf conftest.one conftest.two conftest.dir
2246 echo one > conftest.one
2247 echo two > conftest.two
2249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2250 test -s conftest.one && test -s conftest.two &&
2251 test -s conftest.dir/conftest.one &&
2252 test -s conftest.dir/conftest.two
2254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2267 rm -rf conftest.one conftest.two conftest.dir
2270 if test "${ac_cv_path_install+set}" = set; then
2271 INSTALL=$ac_cv_path_install
2273 # As a last resort, use the slow shell script. Don't cache a
2274 # value for INSTALL within a source directory, because that will
2275 # break other packages using the cache if that directory is
2276 # removed, or if the value is a relative name.
2277 INSTALL=$ac_install_sh
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2281 $as_echo "$INSTALL" >&6; }
2283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2284 # It thinks the first close brace ends the variable substitution.
2285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2292 $as_echo_n "checking whether build environment is sane... " >&6; }
2295 echo timestamp > conftest.file
2296 # Reject unsafe characters in $srcdir or the absolute working directory
2297 # name. Accept space and tab only in the latter.
2301 *[\\\"\#\$\&\'\`$am_lf]*)
2302 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2305 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2306 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2309 # Do `set' in a subshell so we don't clobber the current shell's
2310 # arguments. Must try -L first in case configure is actually a
2311 # symlink; some systems play weird games with the mod time of symlinks
2312 # (eg FreeBSD returns the mod time of the symlink's containing
2315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2316 if test "$*" = "X"; then
2318 set X `ls -t "$srcdir/configure" conftest.file`
2321 if test "$*" != "X $srcdir/configure conftest.file" \
2322 && test "$*" != "X conftest.file $srcdir/configure"; then
2324 # If neither matched, then we have a broken ls. This can happen
2325 # if, for instance, CONFIG_SHELL is bash and it inherits a
2326 # broken ls alias from the environment. This has actually
2327 # happened. Such a system could not be considered "sane".
2328 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2329 alias in your environment" "$LINENO" 5
2332 test "$2" = conftest.file
2338 as_fn_error $? "newly created file is older than distributed files!
2339 Check your system clock" "$LINENO" 5
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2342 $as_echo "yes" >&6; }
2343 test "$program_prefix" != NONE &&
2344 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2345 # Use a double $ so make ignores it.
2346 test "$program_suffix" != NONE &&
2347 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2348 # Double any \ or $.
2349 # By default was `s,x,x', remove it if useless.
2350 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2351 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2353 # expand $ac_aux_dir to an absolute path
2354 am_aux_dir=`cd $ac_aux_dir && pwd`
2356 if test x"${MISSING+set}" != xset; then
2359 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2361 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2364 # Use eval to expand $SHELL
2365 if eval "$MISSING --run true"; then
2366 am_missing_run="$MISSING --run "
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2370 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2373 if test x"${install_sh}" != xset; then
2376 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2378 install_sh="\${SHELL} $am_aux_dir/install-sh"
2382 # Installed binaries are usually stripped using `strip' when the user
2383 # run `make install-strip'. However `strip' might not be the right
2384 # tool to use in cross-compilation environments, therefore Automake
2385 # will honor the `STRIP' environment variable to overrule this program.
2386 if test "$cross_compiling" != no; then
2387 if test -n "$ac_tool_prefix"; then
2388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2389 set dummy ${ac_tool_prefix}strip; ac_word=$2
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2391 $as_echo_n "checking for $ac_word... " >&6; }
2392 if ${ac_cv_prog_STRIP+:} false; then :
2393 $as_echo_n "(cached) " >&6
2395 if test -n "$STRIP"; then
2396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 STRIP=$ac_cv_prog_STRIP
2416 if test -n "$STRIP"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2418 $as_echo "$STRIP" >&6; }
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421 $as_echo "no" >&6; }
2426 if test -z "$ac_cv_prog_STRIP"; then
2428 # Extract the first word of "strip", so it can be a program name with args.
2429 set dummy strip; ac_word=$2
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2431 $as_echo_n "checking for $ac_word... " >&6; }
2432 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2433 $as_echo_n "(cached) " >&6
2435 if test -n "$ac_ct_STRIP"; then
2436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 test -z "$as_dir" && as_dir=.
2443 for ac_exec_ext in '' $ac_executable_extensions; do
2444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445 ac_cv_prog_ac_ct_STRIP="strip"
2446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2456 if test -n "$ac_ct_STRIP"; then
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2458 $as_echo "$ac_ct_STRIP" >&6; }
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2461 $as_echo "no" >&6; }
2464 if test "x$ac_ct_STRIP" = x; then
2467 case $cross_compiling:$ac_tool_warned in
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2471 ac_tool_warned=yes ;;
2476 STRIP="$ac_cv_prog_STRIP"
2480 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2483 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2484 if test -z "$MKDIR_P"; then
2485 if ${ac_cv_path_mkdir+:} false; then :
2486 $as_echo_n "(cached) " >&6
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2492 test -z "$as_dir" && as_dir=.
2493 for ac_prog in mkdir gmkdir; do
2494 for ac_exec_ext in '' $ac_executable_extensions; do
2495 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2496 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2497 'mkdir (GNU coreutils) '* | \
2498 'mkdir (coreutils) '* | \
2499 'mkdir (fileutils) '4.1*)
2500 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2510 test -d ./--version && rmdir ./--version
2511 if test "${ac_cv_path_mkdir+set}" = set; then
2512 MKDIR_P="$ac_cv_path_mkdir -p"
2514 # As a last resort, use the slow shell script. Don't cache a
2515 # value for MKDIR_P within a source directory, because that will
2516 # break other packages using the cache if that directory is
2517 # removed, or if the value is a relative name.
2518 MKDIR_P="$ac_install_sh -d"
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2522 $as_echo "$MKDIR_P" >&6; }
2526 [\\/$]* | ?:[\\/]*) ;;
2527 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2530 for ac_prog in gawk mawk nawk awk
2532 # Extract the first word of "$ac_prog", so it can be a program name with args.
2533 set dummy $ac_prog; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_AWK+:} false; then :
2537 $as_echo_n "(cached) " >&6
2539 if test -n "$AWK"; then
2540 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_AWK="$ac_prog"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test -n "$AWK"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2562 $as_echo "$AWK" >&6; }
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2569 test -n "$AWK" && break
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2573 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2575 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2576 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2577 $as_echo_n "(cached) " >&6
2579 cat >conftest.make <<\_ACEOF
2582 @echo '@@@%%%=$(MAKE)=@@@%%%'
2584 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2585 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2587 eval ac_cv_prog_make_${ac_make}_set=yes;;
2589 eval ac_cv_prog_make_${ac_make}_set=no;;
2593 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595 $as_echo "yes" >&6; }
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2600 SET_MAKE="MAKE=${MAKE-make}"
2603 rm -rf .tst 2>/dev/null
2604 mkdir .tst 2>/dev/null
2605 if test -d .tst; then
2610 rmdir .tst 2>/dev/null
2612 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2613 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2614 # is not polluted with repeated "-I."
2615 am__isrc=' -I$(srcdir)'
2616 # test to see if srcdir already configured
2617 if test -f $srcdir/config.status; then
2618 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2622 # test whether we have cygpath
2623 if test -z "$CYGPATH_W"; then
2624 if (cygpath --version) >/dev/null 2>/dev/null; then
2625 CYGPATH_W='cygpath -w'
2632 # Define the identity of the package.
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE "$PACKAGE"
2642 cat >>confdefs.h <<_ACEOF
2643 #define VERSION "$VERSION"
2646 # Some tools Automake needs.
2648 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2651 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2654 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2657 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2660 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2662 # We need awk for the "check" target. The system "awk" is bad on
2664 # Always define AMTAR for backward compatibility. Yes, it's still used
2665 # in the wild :-( We should find a proper way to deprecate it ...
2668 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2675 DEPDIR="${am__leading_dot}deps"
2677 ac_config_commands="$ac_config_commands depfiles"
2680 am_make=${MAKE-make}
2681 cat > confinc << 'END'
2683 @echo this is the am__doit target
2686 # If we don't find an include directive, just comment out the code.
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2688 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2692 # First try GNU make style include.
2693 echo "include confinc" > confmf
2694 # Ignore all kinds of additional output from `make'.
2695 case `$am_make -s -f confmf 2> /dev/null` in #(
2696 *the\ am__doit\ target*)
2702 # Now try BSD make style include.
2703 if test "$am__include" = "#"; then
2704 echo '.include "confinc"' > confmf
2705 case `$am_make -s -f confmf 2> /dev/null` in #(
2706 *the\ am__doit\ target*)
2707 am__include=.include
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2716 $as_echo "$_am_result" >&6; }
2717 rm -f confinc confmf
2719 # Check whether --enable-dependency-tracking was given.
2720 if test "${enable_dependency_tracking+set}" = set; then :
2721 enableval=$enable_dependency_tracking;
2724 if test "x$enable_dependency_tracking" != xno; then
2725 am_depcomp="$ac_aux_dir/depcomp"
2729 if test "x$enable_dependency_tracking" != xno; then
2739 ac_cpp='$CPP $CPPFLAGS'
2740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2743 if test -n "$ac_tool_prefix"; then
2744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2745 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2747 $as_echo_n "checking for $ac_word... " >&6; }
2748 if ${ac_cv_prog_CC+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 if test -n "$CC"; then
2752 ac_cv_prog_CC="$CC" # Let the user override the test.
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 test -z "$as_dir" && as_dir=.
2759 for ac_exec_ext in '' $ac_executable_extensions; do
2760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2761 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 if test -n "$CC"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2774 $as_echo "$CC" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2782 if test -z "$ac_cv_prog_CC"; then
2784 # Extract the first word of "gcc", so it can be a program name with args.
2785 set dummy gcc; ac_word=$2
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2787 $as_echo_n "checking for $ac_word... " >&6; }
2788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2789 $as_echo_n "(cached) " >&6
2791 if test -n "$ac_ct_CC"; then
2792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 test -z "$as_dir" && as_dir=.
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_ac_ct_CC="gcc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2814 $as_echo "$ac_ct_CC" >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2820 if test "x$ac_ct_CC" = x; then
2823 case $cross_compiling:$ac_tool_warned in
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2827 ac_tool_warned=yes ;;
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}cc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="${ac_tool_prefix}cc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2876 if test -z "$CC"; then
2877 # Extract the first word of "cc", so it can be a program name with args.
2878 set dummy cc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2896 ac_prog_rejected=yes
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 if test $ac_prog_rejected = yes; then
2908 # We found a bogon in the path, so make sure we never use it.
2909 set dummy $ac_cv_prog_CC
2911 if test $# != 0; then
2912 # We chose a different compiler from the bogus one.
2913 # However, it has the same basename, so the bogon will be chosen
2914 # first if we set CC to just the basename; use the full file name.
2916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2932 if test -z "$CC"; then
2933 if test -n "$ac_tool_prefix"; then
2934 for ac_prog in cl.exe
2936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 for ac_exec_ext in '' $ac_executable_extensions; do
2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test -n "$CC"; then
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2973 test -n "$CC" && break
2976 if test -z "$CC"; then
2978 for ac_prog in cl.exe
2980 # Extract the first word of "$ac_prog", so it can be a program name with args.
2981 set dummy $ac_prog; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985 $as_echo_n "(cached) " >&6
2987 if test -n "$ac_ct_CC"; then
2988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997 ac_cv_prog_ac_ct_CC="$ac_prog"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008 if test -n "$ac_ct_CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010 $as_echo "$ac_ct_CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3017 test -n "$ac_ct_CC" && break
3020 if test "x$ac_ct_CC" = x; then
3023 case $cross_compiling:$ac_tool_warned in
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3027 ac_tool_warned=yes ;;
3036 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error $? "no acceptable C compiler found in \$PATH
3039 See \`config.log' for more details" "$LINENO" 5; }
3041 # Provide some information about the compiler.
3042 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3045 for ac_option in --version -v -V -qversion; do
3046 { { ac_try="$ac_compiler $ac_option >&5"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052 $as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3055 if test -s conftest.err; then
3057 ... rest of stderr output deleted ...
3058 10q' conftest.err >conftest.er1
3059 cat conftest.er1 >&5
3061 rm -f conftest.er1 conftest.err
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3077 ac_clean_files_save=$ac_clean_files
3078 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3079 # Try to create an executable without -o first, disregard a.out.
3080 # It will help us diagnose broken compilers, and finding out an intuition
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3083 $as_echo_n "checking whether the C compiler works... " >&6; }
3084 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3086 # The possible output files:
3087 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3090 for ac_file in $ac_files
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3094 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3099 if { { ac_try="$ac_link_default"
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_link_default") 2>&5
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3111 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3112 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3113 # so that the user can short-circuit this test for compilers unknown to
3115 for ac_file in $ac_files ''
3117 test -f "$ac_file" || continue
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3122 # We found the default executable, but exeext='' is most
3126 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 # We set ac_cv_exeext here because the later test for it is not
3131 # safe: cross compilers may not add the suffix if given an `-o'
3132 # argument, so we may need to know it at that point already.
3133 # Even if this section looks crufty: it has the advantage of
3140 test "$ac_cv_exeext" = no && ac_cv_exeext=
3145 if test -z "$ac_file"; then :
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 $as_echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error 77 "C compiler cannot create executables
3154 See \`config.log' for more details" "$LINENO" 5; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157 $as_echo "yes" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3160 $as_echo_n "checking for C compiler default output file name... " >&6; }
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3162 $as_echo "$ac_file" >&6; }
3163 ac_exeext=$ac_cv_exeext
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3166 ac_clean_files=$ac_clean_files_save
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3168 $as_echo_n "checking for suffix of executables... " >&6; }
3169 if { { ac_try="$ac_link"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_link") 2>&5
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3181 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3182 # work properly (i.e., refer to `conftest.exe'), while it won't with
3184 for ac_file in conftest.exe conftest conftest.*; do
3185 test -f "$ac_file" || continue
3187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3188 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3197 See \`config.log' for more details" "$LINENO" 5; }
3199 rm -f conftest conftest$ac_cv_exeext
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3201 $as_echo "$ac_cv_exeext" >&6; }
3203 rm -f conftest.$ac_ext
3204 EXEEXT=$ac_cv_exeext
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3212 FILE *f = fopen ("conftest.out", "w");
3213 return ferror (f) || fclose (f) != 0;
3219 ac_clean_files="$ac_clean_files conftest.out"
3220 # Check that the compiler produces executables we can run. If not, either
3221 # the compiler is broken, or we cross compile.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3223 $as_echo_n "checking whether we are cross compiling... " >&6; }
3224 if test "$cross_compiling" != yes; then
3225 { { ac_try="$ac_link"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link") 2>&5
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }
3236 if { ac_try='./conftest$ac_cv_exeext'
3237 { { case "(($ac_try" in
3238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3239 *) ac_try_echo=$ac_try;;
3241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3242 $as_echo "$ac_try_echo"; } >&5
3243 (eval "$ac_try") 2>&5
3245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3246 test $ac_status = 0; }; }; then
3249 if test "$cross_compiling" = maybe; then
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "cannot run C compiled programs.
3255 If you meant to cross compile, use \`--host'.
3256 See \`config.log' for more details" "$LINENO" 5; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3261 $as_echo "$cross_compiling" >&6; }
3263 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3264 ac_clean_files=$ac_clean_files_save
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3266 $as_echo_n "checking for suffix of object files... " >&6; }
3267 if ${ac_cv_objext+:} false; then :
3268 $as_echo_n "(cached) " >&6
3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271 /* end confdefs.h. */
3281 rm -f conftest.o conftest.obj
3282 if { { ac_try="$ac_compile"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compile") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 for ac_file in conftest.o conftest.obj conftest.*; do
3294 test -f "$ac_file" || continue;
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3297 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3302 $as_echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of object files: cannot compile
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3313 $as_echo "$ac_cv_objext" >&6; }
3314 OBJEXT=$ac_cv_objext
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3317 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3318 if ${ac_cv_c_compiler_gnu+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3335 if ac_fn_c_try_compile "$LINENO"; then :
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3345 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3346 if test $ac_compiler_gnu = yes; then
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3354 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3355 if ${ac_cv_prog_cc_g+:} false; then :
3356 $as_echo_n "(cached) " >&6
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3373 if ac_fn_c_try_compile "$LINENO"; then :
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3388 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_c_werror_flag=$ac_save_c_werror_flag
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3404 if ac_fn_c_try_compile "$LINENO"; then :
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3415 $as_echo "$ac_cv_prog_cc_g" >&6; }
3416 if test "$ac_test_CFLAGS" = set; then
3417 CFLAGS=$ac_save_CFLAGS
3418 elif test $ac_cv_prog_cc_g = yes; then
3419 if test "$GCC" = yes; then
3425 if test "$GCC" = yes; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3432 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3433 if ${ac_cv_prog_cc_c89+:} false; then :
3434 $as_echo_n "(cached) " >&6
3436 ac_cv_prog_cc_c89=no
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3444 struct buf { int x; };
3445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3446 static char *e (p, i)
3452 static char *f (char * (*g) (char **, int), char **p, ...)
3457 s = g (p, va_arg (v,int));
3462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3463 function prototypes and stuff, but not '\xHH' hex character constants.
3464 These don't provoke an error unfortunately, instead are silently treated
3465 as 'x'. The following induces an error, until -std is added to get
3466 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3467 array size at least. It's necessary to write '\x00'==0 to get something
3468 that's true only with -std. */
3469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3472 inside strings and character constants. */
3474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3476 int test (int i, double x);
3477 struct s1 {int (*f) (int a);};
3478 struct s2 {int (*f) (double a);};
3479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3485 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3491 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3493 CC="$ac_save_CC $ac_arg"
3494 if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_prog_cc_c89=$ac_arg
3497 rm -f core conftest.err conftest.$ac_objext
3498 test "x$ac_cv_prog_cc_c89" != "xno" && break
3500 rm -f conftest.$ac_ext
3505 case "x$ac_cv_prog_cc_c89" in
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508 $as_echo "none needed" >&6; } ;;
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3511 $as_echo "unsupported" >&6; } ;;
3513 CC="$CC $ac_cv_prog_cc_c89"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3515 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3517 if test "x$ac_cv_prog_cc_c89" != xno; then :
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 depcc="$CC" am_compiler_list=
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3530 $as_echo_n "checking dependency style of $depcc... " >&6; }
3531 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3535 # We make a subdir and do the tests there. Otherwise we can end up
3536 # making bogus files that we don't know about and never remove. For
3537 # instance it was reported that on HP-UX the gcc test will end up
3538 # making a dummy file named `D' -- because `-MD' means `put the output
3542 # Copy depcomp to subdir because otherwise we won't find it if we're
3543 # using a relative directory.
3544 cp "$am_depcomp" conftest.dir
3546 # We will build objects and dependencies in a subdirectory because
3547 # it helps to detect inapplicable dependency modes. For instance
3548 # both Tru64's cc and ICC support -MD to output dependencies as a
3549 # side effect of compilation, but ICC will put the dependencies in
3550 # the current directory while Tru64 will put them in the object
3554 am_cv_CC_dependencies_compiler_type=none
3555 if test "$am_compiler_list" = ""; then
3556 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3559 case " $depcc " in #(
3560 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3563 for depmode in $am_compiler_list; do
3564 # Setup a source with many dependencies, because some compilers
3565 # like to wrap large dependency lists on column 80 (with \), and
3566 # we should not choose a depcomp mode which is confused by this.
3568 # We need to recreate these files for each test, as the compiler may
3569 # overwrite some of them when testing with obscure command lines.
3570 # This happens at least with the AIX C compiler.
3572 for i in 1 2 3 4 5 6; do
3573 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3574 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3575 # Solaris 8's {/usr,}/bin/sh.
3576 touch sub/conftst$i.h
3578 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3580 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3581 # mode. It turns out that the SunPro C++ compiler does not properly
3582 # handle `-M -o', and we need to detect this. Also, some Intel
3583 # versions had trouble with output in subdirs
3584 am__obj=sub/conftest.${OBJEXT-o}
3585 am__minus_obj="-o $am__obj"
3588 # This depmode causes a compiler race in universal mode.
3589 test "$am__universal" = false || continue
3592 # after this tag, mechanisms are not by side-effect, so they'll
3593 # only be used when explicitly requested
3594 if test "x$enable_dependency_tracking" = xyes; then
3600 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3601 # This compiler won't grok `-c -o', but also, the minuso test has
3602 # not run yet. These depmodes are late enough in the game, and
3603 # so weak that their functioning should not be impacted.
3604 am__obj=conftest.${OBJEXT-o}
3609 if depmode=$depmode \
3610 source=sub/conftest.c object=$am__obj \
3611 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3613 >/dev/null 2>conftest.err &&
3614 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3615 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3617 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618 # icc doesn't choke on unknown options, it will just issue warnings
3619 # or remarks (even with -Werror). So we grep stderr for any message
3620 # that says an option was ignored or not supported.
3621 # When given -MP, icc 7.0 and 7.1 complain thusly:
3622 # icc: Command line warning: ignoring option '-M'; no argument required
3623 # The diagnosis changed in icc 8.0:
3624 # icc: Command line remark: option '-MP' not supported
3625 if (grep 'ignoring option' conftest.err ||
3626 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627 am_cv_CC_dependencies_compiler_type=$depmode
3636 am_cv_CC_dependencies_compiler_type=none
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3641 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3642 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3645 test "x$enable_dependency_tracking" != xno \
3646 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3648 am__fastdepCC_FALSE='#'
3650 am__fastdepCC_TRUE='#'
3651 am__fastdepCC_FALSE=
3656 # Check whether --enable-largefile was given.
3657 if test "${enable_largefile+set}" = set; then :
3658 enableval=$enable_largefile;
3661 if test "$enable_largefile" != no; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3664 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3665 if ${ac_cv_sys_largefile_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3668 ac_cv_sys_largefile_CC=no
3669 if test "$GCC" != yes; then
3672 # IRIX 6.2 and later do not support large files by default,
3673 # so use the C compiler's -n32 option if that helps.
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676 #include <sys/types.h>
3677 /* Check that off_t can represent 2**63 - 1 correctly.
3678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3679 since some C++ compilers masquerading as C compilers
3680 incorrectly reject 9223372036854775807. */
3681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3683 && LARGE_OFF_T % 2147483647 == 1)
3693 if ac_fn_c_try_compile "$LINENO"; then :
3696 rm -f core conftest.err conftest.$ac_objext
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_sys_largefile_CC=' -n32'; break
3701 rm -f core conftest.err conftest.$ac_objext
3705 rm -f conftest.$ac_ext
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3709 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3710 if test "$ac_cv_sys_largefile_CC" != no; then
3711 CC=$CC$ac_cv_sys_largefile_CC
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3715 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3716 if ${ac_cv_sys_file_offset_bits+:} false; then :
3717 $as_echo_n "(cached) " >&6
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722 #include <sys/types.h>
3723 /* Check that off_t can represent 2**63 - 1 correctly.
3724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3725 since some C++ compilers masquerading as C compilers
3726 incorrectly reject 9223372036854775807. */
3727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3729 && LARGE_OFF_T % 2147483647 == 1)
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_sys_file_offset_bits=no; break
3742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #define _FILE_OFFSET_BITS 64
3746 #include <sys/types.h>
3747 /* Check that off_t can represent 2**63 - 1 correctly.
3748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3749 since some C++ compilers masquerading as C compilers
3750 incorrectly reject 9223372036854775807. */
3751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3753 && LARGE_OFF_T % 2147483647 == 1)
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_cv_sys_file_offset_bits=64; break
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 ac_cv_sys_file_offset_bits=unknown
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3772 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3773 case $ac_cv_sys_file_offset_bits in #(
3776 cat >>confdefs.h <<_ACEOF
3777 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3782 if test $ac_cv_sys_file_offset_bits = unknown; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3784 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3785 if ${ac_cv_sys_large_files+:} false; then :
3786 $as_echo_n "(cached) " >&6
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3791 #include <sys/types.h>
3792 /* Check that off_t can represent 2**63 - 1 correctly.
3793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3794 since some C++ compilers masquerading as C compilers
3795 incorrectly reject 9223372036854775807. */
3796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3798 && LARGE_OFF_T % 2147483647 == 1)
3808 if ac_fn_c_try_compile "$LINENO"; then :
3809 ac_cv_sys_large_files=no; break
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #define _LARGE_FILES 1
3815 #include <sys/types.h>
3816 /* Check that off_t can represent 2**63 - 1 correctly.
3817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3818 since some C++ compilers masquerading as C compilers
3819 incorrectly reject 9223372036854775807. */
3820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3822 && LARGE_OFF_T % 2147483647 == 1)
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_sys_large_files=1; break
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_cv_sys_large_files=unknown
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3841 $as_echo "$ac_cv_sys_large_files" >&6; }
3842 case $ac_cv_sys_large_files in #(
3845 cat >>confdefs.h <<_ACEOF
3846 #define _LARGE_FILES $ac_cv_sys_large_files
3857 # Check for required programs.
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if ${ac_cv_prog_CC+:} false; then :
3869 $as_echo_n "(cached) " >&6
3871 if test -n "$CC"; then
3872 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 if test -n "$CC"; then
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894 $as_echo "$CC" >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897 $as_echo "no" >&6; }
3902 if test -z "$ac_cv_prog_CC"; then
3904 # Extract the first word of "gcc", so it can be a program name with args.
3905 set dummy gcc; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3909 $as_echo_n "(cached) " >&6
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3921 ac_cv_prog_ac_ct_CC="gcc"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932 if test -n "$ac_ct_CC"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3934 $as_echo "$ac_ct_CC" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3940 if test "x$ac_ct_CC" = x; then
3943 case $cross_compiling:$ac_tool_warned in
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3947 ac_tool_warned=yes ;;
3955 if test -z "$CC"; then
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3958 set dummy ${ac_tool_prefix}cc; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_prog_CC+:} false; then :
3962 $as_echo_n "(cached) " >&6
3964 if test -n "$CC"; then
3965 ac_cv_prog_CC="$CC" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_CC="${ac_tool_prefix}cc"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 if test -n "$CC"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987 $as_echo "$CC" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3996 if test -z "$CC"; then
3997 # Extract the first word of "cc", so it can be a program name with args.
3998 set dummy cc; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_CC+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4016 ac_prog_rejected=yes
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 if test $ac_prog_rejected = yes; then
4028 # We found a bogon in the path, so make sure we never use it.
4029 set dummy $ac_cv_prog_CC
4031 if test $# != 0; then
4032 # We chose a different compiler from the bogus one.
4033 # However, it has the same basename, so the bogon will be chosen
4034 # first if we set CC to just the basename; use the full file name.
4036 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4042 if test -n "$CC"; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4044 $as_echo "$CC" >&6; }
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047 $as_echo "no" >&6; }
4052 if test -z "$CC"; then
4053 if test -n "$ac_tool_prefix"; then
4054 for ac_prog in cl.exe
4056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if ${ac_cv_prog_CC+:} false; then :
4061 $as_echo_n "(cached) " >&6
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 if test -n "$CC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086 $as_echo "$CC" >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4093 test -n "$CC" && break
4096 if test -z "$CC"; then
4098 for ac_prog in cl.exe
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 if test -n "$ac_ct_CC"; then
4108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir=.
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4117 ac_cv_prog_ac_ct_CC="$ac_prog"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128 if test -n "$ac_ct_CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4130 $as_echo "$ac_ct_CC" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4137 test -n "$ac_ct_CC" && break
4140 if test "x$ac_ct_CC" = x; then
4143 case $cross_compiling:$ac_tool_warned in
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147 ac_tool_warned=yes ;;
4156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "no acceptable C compiler found in \$PATH
4159 See \`config.log' for more details" "$LINENO" 5; }
4161 # Provide some information about the compiler.
4162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4165 for ac_option in --version -v -V -qversion; do
4166 { { ac_try="$ac_compiler $ac_option >&5"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172 $as_echo "$ac_try_echo"; } >&5
4173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4175 if test -s conftest.err; then
4177 ... rest of stderr output deleted ...
4178 10q' conftest.err >conftest.er1
4179 cat conftest.er1 >&5
4181 rm -f conftest.er1 conftest.err
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4187 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4188 if ${ac_cv_c_compiler_gnu+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4205 if ac_fn_c_try_compile "$LINENO"; then :
4210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4215 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4216 if test $ac_compiler_gnu = yes; then
4221 ac_test_CFLAGS=${CFLAGS+set}
4222 ac_save_CFLAGS=$CFLAGS
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4224 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4225 if ${ac_cv_prog_cc_g+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 ac_save_c_werror_flag=$ac_c_werror_flag
4229 ac_c_werror_flag=yes
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4243 if ac_fn_c_try_compile "$LINENO"; then :
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4258 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_c_werror_flag=$ac_save_c_werror_flag
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4274 if ac_fn_c_try_compile "$LINENO"; then :
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 ac_c_werror_flag=$ac_save_c_werror_flag
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4285 $as_echo "$ac_cv_prog_cc_g" >&6; }
4286 if test "$ac_test_CFLAGS" = set; then
4287 CFLAGS=$ac_save_CFLAGS
4288 elif test $ac_cv_prog_cc_g = yes; then
4289 if test "$GCC" = yes; then
4295 if test "$GCC" = yes; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4302 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4303 if ${ac_cv_prog_cc_c89+:} false; then :
4304 $as_echo_n "(cached) " >&6
4306 ac_cv_prog_cc_c89=no
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4314 struct buf { int x; };
4315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4316 static char *e (p, i)
4322 static char *f (char * (*g) (char **, int), char **p, ...)
4327 s = g (p, va_arg (v,int));
4332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4333 function prototypes and stuff, but not '\xHH' hex character constants.
4334 These don't provoke an error unfortunately, instead are silently treated
4335 as 'x'. The following induces an error, until -std is added to get
4336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4337 array size at least. It's necessary to write '\x00'==0 to get something
4338 that's true only with -std. */
4339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4341 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4342 inside strings and character constants. */
4344 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4346 int test (int i, double x);
4347 struct s1 {int (*f) (int a);};
4348 struct s2 {int (*f) (double a);};
4349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4355 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4360 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4361 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4363 CC="$ac_save_CC $ac_arg"
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_cv_prog_cc_c89=$ac_arg
4367 rm -f core conftest.err conftest.$ac_objext
4368 test "x$ac_cv_prog_cc_c89" != "xno" && break
4370 rm -f conftest.$ac_ext
4375 case "x$ac_cv_prog_cc_c89" in
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4378 $as_echo "none needed" >&6; } ;;
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4381 $as_echo "unsupported" >&6; } ;;
4383 CC="$CC $ac_cv_prog_cc_c89"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4385 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4387 if test "x$ac_cv_prog_cc_c89" != xno; then :
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 depcc="$CC" am_compiler_list=
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4400 $as_echo_n "checking dependency style of $depcc... " >&6; }
4401 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4405 # We make a subdir and do the tests there. Otherwise we can end up
4406 # making bogus files that we don't know about and never remove. For
4407 # instance it was reported that on HP-UX the gcc test will end up
4408 # making a dummy file named `D' -- because `-MD' means `put the output
4412 # Copy depcomp to subdir because otherwise we won't find it if we're
4413 # using a relative directory.
4414 cp "$am_depcomp" conftest.dir
4416 # We will build objects and dependencies in a subdirectory because
4417 # it helps to detect inapplicable dependency modes. For instance
4418 # both Tru64's cc and ICC support -MD to output dependencies as a
4419 # side effect of compilation, but ICC will put the dependencies in
4420 # the current directory while Tru64 will put them in the object
4424 am_cv_CC_dependencies_compiler_type=none
4425 if test "$am_compiler_list" = ""; then
4426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4429 case " $depcc " in #(
4430 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4433 for depmode in $am_compiler_list; do
4434 # Setup a source with many dependencies, because some compilers
4435 # like to wrap large dependency lists on column 80 (with \), and
4436 # we should not choose a depcomp mode which is confused by this.
4438 # We need to recreate these files for each test, as the compiler may
4439 # overwrite some of them when testing with obscure command lines.
4440 # This happens at least with the AIX C compiler.
4442 for i in 1 2 3 4 5 6; do
4443 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4444 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4445 # Solaris 8's {/usr,}/bin/sh.
4446 touch sub/conftst$i.h
4448 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4450 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4451 # mode. It turns out that the SunPro C++ compiler does not properly
4452 # handle `-M -o', and we need to detect this. Also, some Intel
4453 # versions had trouble with output in subdirs
4454 am__obj=sub/conftest.${OBJEXT-o}
4455 am__minus_obj="-o $am__obj"
4458 # This depmode causes a compiler race in universal mode.
4459 test "$am__universal" = false || continue
4462 # after this tag, mechanisms are not by side-effect, so they'll
4463 # only be used when explicitly requested
4464 if test "x$enable_dependency_tracking" = xyes; then
4470 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4471 # This compiler won't grok `-c -o', but also, the minuso test has
4472 # not run yet. These depmodes are late enough in the game, and
4473 # so weak that their functioning should not be impacted.
4474 am__obj=conftest.${OBJEXT-o}
4479 if depmode=$depmode \
4480 source=sub/conftest.c object=$am__obj \
4481 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4482 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4483 >/dev/null 2>conftest.err &&
4484 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4485 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4486 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4487 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4488 # icc doesn't choke on unknown options, it will just issue warnings
4489 # or remarks (even with -Werror). So we grep stderr for any message
4490 # that says an option was ignored or not supported.
4491 # When given -MP, icc 7.0 and 7.1 complain thusly:
4492 # icc: Command line warning: ignoring option '-M'; no argument required
4493 # The diagnosis changed in icc 8.0:
4494 # icc: Command line remark: option '-MP' not supported
4495 if (grep 'ignoring option' conftest.err ||
4496 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4497 am_cv_CC_dependencies_compiler_type=$depmode
4506 am_cv_CC_dependencies_compiler_type=none
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4511 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4512 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4515 test "x$enable_dependency_tracking" != xno \
4516 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4518 am__fastdepCC_FALSE='#'
4520 am__fastdepCC_TRUE='#'
4521 am__fastdepCC_FALSE=
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4527 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_RANLIB+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$RANLIB"; then
4534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 RANLIB=$ac_cv_prog_RANLIB
4554 if test -n "$RANLIB"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4556 $as_echo "$RANLIB" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4564 if test -z "$ac_cv_prog_RANLIB"; then
4565 ac_ct_RANLIB=$RANLIB
4566 # Extract the first word of "ranlib", so it can be a program name with args.
4567 set dummy ranlib; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 if test -n "$ac_ct_RANLIB"; then
4574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583 ac_cv_prog_ac_ct_RANLIB="ranlib"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4594 if test -n "$ac_ct_RANLIB"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4596 $as_echo "$ac_ct_RANLIB" >&6; }
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4602 if test "x$ac_ct_RANLIB" = x; then
4605 case $cross_compiling:$ac_tool_warned in
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4611 RANLIB=$ac_ct_RANLIB
4614 RANLIB="$ac_cv_prog_RANLIB"
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4620 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4625 macro_version='2.4.2'
4626 macro_revision='1.3337'
4640 ltmain="$ac_aux_dir/ltmain.sh"
4642 # Make sure we can run config.sub.
4643 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4644 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4647 $as_echo_n "checking build system type... " >&6; }
4648 if ${ac_cv_build+:} false; then :
4649 $as_echo_n "(cached) " >&6
4651 ac_build_alias=$build_alias
4652 test "x$ac_build_alias" = x &&
4653 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4654 test "x$ac_build_alias" = x &&
4655 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4656 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4657 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4661 $as_echo "$ac_cv_build" >&6; }
4662 case $ac_cv_build in
4664 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4667 ac_save_IFS=$IFS; IFS='-'
4673 # Remember, the first character of IFS is used to create $*,
4674 # except with old shells:
4677 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4681 $as_echo_n "checking host system type... " >&6; }
4682 if ${ac_cv_host+:} false; then :
4683 $as_echo_n "(cached) " >&6
4685 if test "x$host_alias" = x; then
4686 ac_cv_host=$ac_cv_build
4688 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4689 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4694 $as_echo "$ac_cv_host" >&6; }
4697 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4700 ac_save_IFS=$IFS; IFS='-'
4706 # Remember, the first character of IFS is used to create $*,
4707 # except with old shells:
4710 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4713 # Backslashify metacharacters that are still active within
4714 # double-quoted strings.
4715 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4717 # Same as above, but do not quote variable references.
4718 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4720 # Sed substitution to delay expansion of an escaped shell variable in a
4721 # double_quote_subst'ed string.
4722 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4724 # Sed substitution to delay expansion of an escaped single quote.
4725 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4727 # Sed substitution to avoid accidental globbing in evaled expressions
4728 no_glob_subst='s/\*/\\\*/g'
4730 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4731 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4732 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4735 $as_echo_n "checking how to print strings... " >&6; }
4736 # Test print first, because it will be a builtin if present.
4737 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4738 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4740 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4743 # Use this function as a fallback that always works.
4744 func_fallback_echo ()
4746 eval 'cat <<_LTECHO_EOF
4750 ECHO='func_fallback_echo'
4753 # func_echo_all arg...
4754 # Invoke $ECHO with all args, space-separated.
4761 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4762 $as_echo "printf" >&6; } ;;
4763 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4764 $as_echo "print -r" >&6; } ;;
4765 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4766 $as_echo "cat" >&6; } ;;
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4783 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4784 if ${ac_cv_path_SED+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4788 for ac_i in 1 2 3 4 5 6 7; do
4789 ac_script="$ac_script$as_nl$ac_script"
4791 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4792 { ac_script=; unset ac_script;}
4793 if test -z "$SED"; then
4794 ac_path_SED_found=false
4795 # Loop through the user's path and test for each of PROGNAME-LIST
4796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 test -z "$as_dir" && as_dir=.
4801 for ac_prog in sed gsed; do
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4804 as_fn_executable_p "$ac_path_SED" || continue
4805 # Check for GNU ac_path_SED and select it if it is found.
4806 # Check for GNU $ac_path_SED
4807 case `"$ac_path_SED" --version 2>&1` in
4809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4812 $as_echo_n 0123456789 >"conftest.in"
4815 cat "conftest.in" "conftest.in" >"conftest.tmp"
4816 mv "conftest.tmp" "conftest.in"
4817 cp "conftest.in" "conftest.nl"
4818 $as_echo '' >> "conftest.nl"
4819 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821 as_fn_arith $ac_count + 1 && ac_count=$as_val
4822 if test $ac_count -gt ${ac_path_SED_max-0}; then
4823 # Best one so far, save it but keep looking for a better one
4824 ac_cv_path_SED="$ac_path_SED"
4825 ac_path_SED_max=$ac_count
4827 # 10*(2^10) chars as input seems more than enough
4828 test $ac_count -gt 10 && break
4830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 $ac_path_SED_found && break 3
4838 if test -z "$ac_cv_path_SED"; then
4839 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4847 $as_echo "$ac_cv_path_SED" >&6; }
4848 SED="$ac_cv_path_SED"
4851 test -z "$SED" && SED=sed
4852 Xsed="$SED -e 1s/^X//"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4865 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4866 if ${ac_cv_path_GREP+:} false; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -z "$GREP"; then
4870 ac_path_GREP_found=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4876 test -z "$as_dir" && as_dir=.
4877 for ac_prog in grep ggrep; do
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4880 as_fn_executable_p "$ac_path_GREP" || continue
4881 # Check for GNU ac_path_GREP and select it if it is found.
4882 # Check for GNU $ac_path_GREP
4883 case `"$ac_path_GREP" --version 2>&1` in
4885 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4888 $as_echo_n 0123456789 >"conftest.in"
4891 cat "conftest.in" "conftest.in" >"conftest.tmp"
4892 mv "conftest.tmp" "conftest.in"
4893 cp "conftest.in" "conftest.nl"
4894 $as_echo 'GREP' >> "conftest.nl"
4895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4896 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4897 as_fn_arith $ac_count + 1 && ac_count=$as_val
4898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4899 # Best one so far, save it but keep looking for a better one
4900 ac_cv_path_GREP="$ac_path_GREP"
4901 ac_path_GREP_max=$ac_count
4903 # 10*(2^10) chars as input seems more than enough
4904 test $ac_count -gt 10 && break
4906 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909 $ac_path_GREP_found && break 3
4914 if test -z "$ac_cv_path_GREP"; then
4915 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918 ac_cv_path_GREP=$GREP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4923 $as_echo "$ac_cv_path_GREP" >&6; }
4924 GREP="$ac_cv_path_GREP"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4928 $as_echo_n "checking for egrep... " >&6; }
4929 if ${ac_cv_path_EGREP+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4933 then ac_cv_path_EGREP="$GREP -E"
4935 if test -z "$EGREP"; then
4936 ac_path_EGREP_found=false
4937 # Loop through the user's path and test for each of PROGNAME-LIST
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4942 test -z "$as_dir" && as_dir=.
4943 for ac_prog in egrep; do
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4946 as_fn_executable_p "$ac_path_EGREP" || continue
4947 # Check for GNU ac_path_EGREP and select it if it is found.
4948 # Check for GNU $ac_path_EGREP
4949 case `"$ac_path_EGREP" --version 2>&1` in
4951 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4954 $as_echo_n 0123456789 >"conftest.in"
4957 cat "conftest.in" "conftest.in" >"conftest.tmp"
4958 mv "conftest.tmp" "conftest.in"
4959 cp "conftest.in" "conftest.nl"
4960 $as_echo 'EGREP' >> "conftest.nl"
4961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4963 as_fn_arith $ac_count + 1 && ac_count=$as_val
4964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4965 # Best one so far, save it but keep looking for a better one
4966 ac_cv_path_EGREP="$ac_path_EGREP"
4967 ac_path_EGREP_max=$ac_count
4969 # 10*(2^10) chars as input seems more than enough
4970 test $ac_count -gt 10 && break
4972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4975 $ac_path_EGREP_found && break 3
4980 if test -z "$ac_cv_path_EGREP"; then
4981 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4984 ac_cv_path_EGREP=$EGREP
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4990 $as_echo "$ac_cv_path_EGREP" >&6; }
4991 EGREP="$ac_cv_path_EGREP"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4995 $as_echo_n "checking for fgrep... " >&6; }
4996 if ${ac_cv_path_FGREP+:} false; then :
4997 $as_echo_n "(cached) " >&6
4999 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5000 then ac_cv_path_FGREP="$GREP -F"
5002 if test -z "$FGREP"; then
5003 ac_path_FGREP_found=false
5004 # Loop through the user's path and test for each of PROGNAME-LIST
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5009 test -z "$as_dir" && as_dir=.
5010 for ac_prog in fgrep; do
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5013 as_fn_executable_p "$ac_path_FGREP" || continue
5014 # Check for GNU ac_path_FGREP and select it if it is found.
5015 # Check for GNU $ac_path_FGREP
5016 case `"$ac_path_FGREP" --version 2>&1` in
5018 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5021 $as_echo_n 0123456789 >"conftest.in"
5024 cat "conftest.in" "conftest.in" >"conftest.tmp"
5025 mv "conftest.tmp" "conftest.in"
5026 cp "conftest.in" "conftest.nl"
5027 $as_echo 'FGREP' >> "conftest.nl"
5028 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5030 as_fn_arith $ac_count + 1 && ac_count=$as_val
5031 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5032 # Best one so far, save it but keep looking for a better one
5033 ac_cv_path_FGREP="$ac_path_FGREP"
5034 ac_path_FGREP_max=$ac_count
5036 # 10*(2^10) chars as input seems more than enough
5037 test $ac_count -gt 10 && break
5039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042 $ac_path_FGREP_found && break 3
5047 if test -z "$ac_cv_path_FGREP"; then
5048 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5051 ac_cv_path_FGREP=$FGREP
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5057 $as_echo "$ac_cv_path_FGREP" >&6; }
5058 FGREP="$ac_cv_path_FGREP"
5061 test -z "$GREP" && GREP=grep
5081 # Check whether --with-gnu-ld was given.
5082 if test "${with_gnu_ld+set}" = set; then :
5083 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5089 if test "$GCC" = yes; then
5090 # Check if gcc -print-prog-name=ld gives a path.
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5092 $as_echo_n "checking for ld used by $CC... " >&6; }
5095 # gcc leaves a trailing carriage return which upsets mingw
5096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5101 # Accept absolute paths.
5103 re_direlt='/[^/][^/]*/\.\./'
5104 # Canonicalize the pathname of ld
5105 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5106 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5107 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5109 test -z "$LD" && LD="$ac_prog"
5112 # If it fails, then pretend we aren't using GCC.
5116 # If it is relative, then search for the first ld in PATH.
5120 elif test "$with_gnu_ld" = yes; then
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5122 $as_echo_n "checking for GNU ld... " >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5125 $as_echo_n "checking for non-GNU ld... " >&6; }
5127 if ${lt_cv_path_LD+:} false; then :
5128 $as_echo_n "(cached) " >&6
5130 if test -z "$LD"; then
5131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5132 for ac_dir in $PATH; do
5134 test -z "$ac_dir" && ac_dir=.
5135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5136 lt_cv_path_LD="$ac_dir/$ac_prog"
5137 # Check to see if the program is GNU ld. I'd rather use --version,
5138 # but apparently some variants of GNU ld only accept -v.
5139 # Break only if it was the GNU/non-GNU ld that we prefer.
5140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5141 *GNU* | *'with BFD'*)
5142 test "$with_gnu_ld" != no && break
5145 test "$with_gnu_ld" != yes && break
5152 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5157 if test -n "$LD"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5159 $as_echo "$LD" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5164 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5166 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5167 if ${lt_cv_prog_gnu_ld+:} false; then :
5168 $as_echo_n "(cached) " >&6
5170 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5171 case `$LD -v 2>&1 </dev/null` in
5172 *GNU* | *'with BFD'*)
5173 lt_cv_prog_gnu_ld=yes
5176 lt_cv_prog_gnu_ld=no
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5181 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5182 with_gnu_ld=$lt_cv_prog_gnu_ld
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5193 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5194 if ${lt_cv_path_NM+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 if test -n "$NM"; then
5198 # Let the user override the test.
5201 lt_nm_to_check="${ac_tool_prefix}nm"
5202 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5203 lt_nm_to_check="$lt_nm_to_check nm"
5205 for lt_tmp_nm in $lt_nm_to_check; do
5206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5207 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5209 test -z "$ac_dir" && ac_dir=.
5210 tmp_nm="$ac_dir/$lt_tmp_nm"
5211 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5212 # Check to see if the nm accepts a BSD-compat flag.
5213 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5214 # nm: unknown option "B" ignored
5215 # Tru64's nm complains that /dev/null is an invalid object file
5216 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5217 */dev/null* | *'Invalid file or object type'*)
5218 lt_cv_path_NM="$tmp_nm -B"
5222 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5224 lt_cv_path_NM="$tmp_nm -p"
5228 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5229 continue # so that we can try to find one that supports BSD flags
5238 : ${lt_cv_path_NM=no}
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5242 $as_echo "$lt_cv_path_NM" >&6; }
5243 if test "$lt_cv_path_NM" != "no"; then
5246 # Didn't find any BSD compatible name lister, look for dumpbin.
5247 if test -n "$DUMPBIN"; then :
5248 # Let the user override the test.
5250 if test -n "$ac_tool_prefix"; then
5251 for ac_prog in dumpbin "link -dump"
5253 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5254 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_DUMPBIN+:} false; then :
5258 $as_echo_n "(cached) " >&6
5260 if test -n "$DUMPBIN"; then
5261 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 DUMPBIN=$ac_cv_prog_DUMPBIN
5281 if test -n "$DUMPBIN"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5283 $as_echo "$DUMPBIN" >&6; }
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5290 test -n "$DUMPBIN" && break
5293 if test -z "$DUMPBIN"; then
5294 ac_ct_DUMPBIN=$DUMPBIN
5295 for ac_prog in dumpbin "link -dump"
5297 # Extract the first word of "$ac_prog", so it can be a program name with args.
5298 set dummy $ac_prog; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5302 $as_echo_n "(cached) " >&6
5304 if test -n "$ac_ct_DUMPBIN"; then
5305 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5325 if test -n "$ac_ct_DUMPBIN"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5327 $as_echo "$ac_ct_DUMPBIN" >&6; }
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5334 test -n "$ac_ct_DUMPBIN" && break
5337 if test "x$ac_ct_DUMPBIN" = x; then
5340 case $cross_compiling:$ac_tool_warned in
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5344 ac_tool_warned=yes ;;
5346 DUMPBIN=$ac_ct_DUMPBIN
5350 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5352 DUMPBIN="$DUMPBIN -symbols"
5360 if test "$DUMPBIN" != ":"; then
5364 test -z "$NM" && NM=nm
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5372 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5373 if ${lt_cv_nm_interface+:} false; then :
5374 $as_echo_n "(cached) " >&6
5376 lt_cv_nm_interface="BSD nm"
5377 echo "int some_variable = 0;" > conftest.$ac_ext
5378 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5379 (eval "$ac_compile" 2>conftest.err)
5380 cat conftest.err >&5
5381 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5382 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5383 cat conftest.err >&5
5384 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5385 cat conftest.out >&5
5386 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5387 lt_cv_nm_interface="MS dumpbin"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5392 $as_echo "$lt_cv_nm_interface" >&6; }
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5395 $as_echo_n "checking whether ln -s works... " >&6; }
5397 if test "$LN_S" = "ln -s"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399 $as_echo "yes" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5402 $as_echo "no, using $LN_S" >&6; }
5405 # find the maximum length of command line arguments
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5407 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5408 if ${lt_cv_sys_max_cmd_len+:} false; then :
5409 $as_echo_n "(cached) " >&6
5416 # On DJGPP, this test can blow up pretty badly due to problems in libc
5417 # (any single argument exceeding 2000 bytes causes a buffer overrun
5418 # during glob expansion). Even if it were fixed, the result of this
5419 # check would be larger than it should be.
5420 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5424 # Under GNU Hurd, this test is not required because there is
5425 # no limit to the length of command line arguments.
5426 # Libtool will interpret -1 as no limit whatsoever
5427 lt_cv_sys_max_cmd_len=-1;
5430 cygwin* | mingw* | cegcc*)
5431 # On Win9x/ME, this test blows up -- it succeeds, but takes
5432 # about 5 minutes as the teststring grows exponentially.
5433 # Worse, since 9x/ME are not pre-emptively multitasking,
5434 # you end up with a "frozen" computer, even though with patience
5435 # the test eventually succeeds (with a max line length of 256k).
5436 # Instead, let's just punt: use the minimum linelength reported by
5437 # all of the supported platforms: 8192 (on NT/2K/XP).
5438 lt_cv_sys_max_cmd_len=8192;
5442 # On MiNT this can take a long time and run out of memory.
5443 lt_cv_sys_max_cmd_len=8192;
5447 # On AmigaOS with pdksh, this test takes hours, literally.
5448 # So we just punt and use a minimum line length of 8192.
5449 lt_cv_sys_max_cmd_len=8192;
5452 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5453 # This has been around since 386BSD, at least. Likely further.
5454 if test -x /sbin/sysctl; then
5455 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5456 elif test -x /usr/sbin/sysctl; then
5457 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5459 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5461 # And add a safety zone
5462 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5467 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5468 lt_cv_sys_max_cmd_len=196608
5472 # The test takes a long time on OS/2.
5473 lt_cv_sys_max_cmd_len=8192
5477 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5478 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5479 # nice to cause kernel panics so lets avoid the loop below.
5480 # First set a reasonable default.
5481 lt_cv_sys_max_cmd_len=16384
5483 if test -x /sbin/sysconfig; then
5484 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5485 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5490 lt_cv_sys_max_cmd_len=102400
5492 sysv5* | sco5v6* | sysv4.2uw2*)
5493 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5494 if test -n "$kargmax"; then
5495 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5497 lt_cv_sys_max_cmd_len=32768
5501 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5502 if test -n "$lt_cv_sys_max_cmd_len"; then
5503 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5504 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5506 # Make teststring a little bigger before we do anything with it.
5507 # a 1K string should be a reasonable start.
5508 for i in 1 2 3 4 5 6 7 8 ; do
5509 teststring=$teststring$teststring
5511 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5512 # If test is not a shell built-in, we'll probably end up computing a
5513 # maximum length that is only half of the actual maximum length, but
5515 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5516 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5517 test $i != 17 # 1/2 MB should be enough
5520 teststring=$teststring$teststring
5522 # Only check the string length outside the loop.
5523 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5525 # Add a significant safety factor because C++ compilers can tack on
5526 # massive amounts of additional arguments before passing them to the
5527 # linker. It appears as though 1/2 is a usable value.
5528 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5535 if test -n $lt_cv_sys_max_cmd_len ; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5537 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5540 $as_echo "none" >&6; }
5542 max_cmd_len=$lt_cv_sys_max_cmd_len
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5554 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5555 # Try some XSI features
5558 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5560 && eval 'test $(( 1 + 1 )) -eq 2 \
5561 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5564 $as_echo "$xsi_shell" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5568 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5570 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5572 && lt_shell_append=yes
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5574 $as_echo "$lt_shell_append" >&6; }
5577 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5587 # test EBCDIC or ASCII
5588 case `echo X|tr X '\101'` in
5589 A) # ASCII based system
5590 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5591 lt_SP2NL='tr \040 \012'
5592 lt_NL2SP='tr \015\012 \040\040'
5594 *) # EBCDIC based system
5595 lt_SP2NL='tr \100 \n'
5596 lt_NL2SP='tr \r\n \100\100'
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5609 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5610 if ${lt_cv_to_host_file_cmd+:} false; then :
5611 $as_echo_n "(cached) " >&6
5616 *-*-mingw* ) # actually msys
5617 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5620 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5622 * ) # otherwise, assume *nix
5623 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5629 *-*-mingw* ) # actually msys
5630 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5633 lt_cv_to_host_file_cmd=func_convert_file_noop
5635 * ) # otherwise, assume *nix
5636 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5640 * ) # unhandled hosts (and "normal" native builds)
5641 lt_cv_to_host_file_cmd=func_convert_file_noop
5647 to_host_file_cmd=$lt_cv_to_host_file_cmd
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5649 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5656 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5657 if ${lt_cv_to_tool_file_cmd+:} false; then :
5658 $as_echo_n "(cached) " >&6
5660 #assume ordinary cross tools, or native build.
5661 lt_cv_to_tool_file_cmd=func_convert_file_noop
5665 *-*-mingw* ) # actually msys
5666 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5674 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5676 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5683 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5684 if ${lt_cv_ld_reload_flag+:} false; then :
5685 $as_echo_n "(cached) " >&6
5687 lt_cv_ld_reload_flag='-r'
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5690 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5691 reload_flag=$lt_cv_ld_reload_flag
5692 case $reload_flag in
5694 *) reload_flag=" $reload_flag" ;;
5696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698 cygwin* | mingw* | pw32* | cegcc*)
5699 if test "$GCC" != yes; then
5704 if test "$GCC" = yes; then
5705 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5720 if test -n "$ac_tool_prefix"; then
5721 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5722 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5724 $as_echo_n "checking for $ac_word... " >&6; }
5725 if ${ac_cv_prog_OBJDUMP+:} false; then :
5726 $as_echo_n "(cached) " >&6
5728 if test -n "$OBJDUMP"; then
5729 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5738 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748 OBJDUMP=$ac_cv_prog_OBJDUMP
5749 if test -n "$OBJDUMP"; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5751 $as_echo "$OBJDUMP" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5754 $as_echo "no" >&6; }
5759 if test -z "$ac_cv_prog_OBJDUMP"; then
5760 ac_ct_OBJDUMP=$OBJDUMP
5761 # Extract the first word of "objdump", so it can be a program name with args.
5762 set dummy objdump; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$ac_ct_OBJDUMP"; then
5769 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5789 if test -n "$ac_ct_OBJDUMP"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5791 $as_echo "$ac_ct_OBJDUMP" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5797 if test "x$ac_ct_OBJDUMP" = x; then
5800 case $cross_compiling:$ac_tool_warned in
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5804 ac_tool_warned=yes ;;
5806 OBJDUMP=$ac_ct_OBJDUMP
5809 OBJDUMP="$ac_cv_prog_OBJDUMP"
5812 test -z "$OBJDUMP" && OBJDUMP=objdump
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5823 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5824 if ${lt_cv_deplibs_check_method+:} false; then :
5825 $as_echo_n "(cached) " >&6
5827 lt_cv_file_magic_cmd='$MAGIC_CMD'
5828 lt_cv_file_magic_test_file=
5829 lt_cv_deplibs_check_method='unknown'
5830 # Need to set the preceding variable on all platforms that support
5831 # interlibrary dependencies.
5832 # 'none' -- dependencies not supported.
5833 # `unknown' -- same as none, but documents that we really don't know.
5834 # 'pass_all' -- all dependencies passed with no checks.
5835 # 'test_compile' -- check by making test program.
5836 # 'file_magic [[regex]]' -- check by looking for files in library path
5837 # which responds to the $file_magic_cmd with a given extended regex.
5838 # If you have `file' or equivalent on your system and you're not sure
5839 # whether `pass_all' will *always* work, you probably want this one.
5843 lt_cv_deplibs_check_method=pass_all
5847 lt_cv_deplibs_check_method=pass_all
5851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5852 lt_cv_file_magic_cmd='/usr/bin/file -L'
5853 lt_cv_file_magic_test_file=/shlib/libc.so
5857 # func_win32_libid is a shell function defined in ltmain.sh
5858 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5859 lt_cv_file_magic_cmd='func_win32_libid'
5863 # Base MSYS/MinGW do not provide the 'file' command needed by
5864 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5865 # unless we find 'file', for example because we are cross-compiling.
5866 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5867 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5868 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5869 lt_cv_file_magic_cmd='func_win32_libid'
5871 # Keep this pattern in sync with the one in func_win32_libid.
5872 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5873 lt_cv_file_magic_cmd='$OBJDUMP -f'
5878 # use the weaker test based on 'objdump'. See mingw*.
5879 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5880 lt_cv_file_magic_cmd='$OBJDUMP -f'
5883 darwin* | rhapsody*)
5884 lt_cv_deplibs_check_method=pass_all
5887 freebsd* | dragonfly*)
5888 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5891 # Not sure whether the presence of OpenBSD here was a mistake.
5892 # Let's accept both of them until this is cleared up.
5893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5894 lt_cv_file_magic_cmd=/usr/bin/file
5895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5899 lt_cv_deplibs_check_method=pass_all
5904 lt_cv_deplibs_check_method=pass_all
5908 lt_cv_deplibs_check_method=pass_all
5911 hpux10.20* | hpux11*)
5912 lt_cv_file_magic_cmd=/usr/bin/file
5915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5919 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]'
5920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5934 irix5* | irix6* | nonstopux*)
5936 *-32|*"-32 ") libmagic=32-bit;;
5937 *-n32|*"-n32 ") libmagic=N32;;
5938 *-64|*"-64 ") libmagic=64-bit;;
5939 *) libmagic=never-match;;
5941 lt_cv_deplibs_check_method=pass_all
5944 # This must be glibc/ELF.
5945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5946 lt_cv_deplibs_check_method=pass_all
5950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5959 lt_cv_file_magic_cmd=/usr/bin/file
5960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5964 lt_cv_deplibs_check_method=pass_all
5968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5975 osf3* | osf4* | osf5*)
5976 lt_cv_deplibs_check_method=pass_all
5980 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5988 lt_cv_deplibs_check_method=pass_all
5992 case $host_vendor in
5994 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]'
5995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5998 lt_cv_deplibs_check_method=pass_all
6001 lt_cv_file_magic_cmd='/bin/file'
6002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6005 lt_cv_file_magic_cmd='/bin/file'
6006 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6007 lt_cv_file_magic_test_file=/lib/libc.so
6010 lt_cv_deplibs_check_method=pass_all
6013 lt_cv_deplibs_check_method=pass_all
6019 lt_cv_deplibs_check_method=pass_all
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6029 if test "$build" = "$host"; then
6032 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6035 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6041 file_magic_cmd=$lt_cv_file_magic_cmd
6042 deplibs_check_method=$lt_cv_deplibs_check_method
6043 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6066 if test -n "$ac_tool_prefix"; then
6067 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6068 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_DLLTOOL+:} false; then :
6072 $as_echo_n "(cached) " >&6
6074 if test -n "$DLLTOOL"; then
6075 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 DLLTOOL=$ac_cv_prog_DLLTOOL
6095 if test -n "$DLLTOOL"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6097 $as_echo "$DLLTOOL" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6105 if test -z "$ac_cv_prog_DLLTOOL"; then
6106 ac_ct_DLLTOOL=$DLLTOOL
6107 # Extract the first word of "dlltool", so it can be a program name with args.
6108 set dummy dlltool; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 if test -n "$ac_ct_DLLTOOL"; then
6115 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6124 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6135 if test -n "$ac_ct_DLLTOOL"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6137 $as_echo "$ac_ct_DLLTOOL" >&6; }
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6143 if test "x$ac_ct_DLLTOOL" = x; then
6146 case $cross_compiling:$ac_tool_warned in
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150 ac_tool_warned=yes ;;
6152 DLLTOOL=$ac_ct_DLLTOOL
6155 DLLTOOL="$ac_cv_prog_DLLTOOL"
6158 test -z "$DLLTOOL" && DLLTOOL=dlltool
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6170 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6171 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 lt_cv_sharedlib_from_linklib_cmd='unknown'
6177 cygwin* | mingw* | pw32* | cegcc*)
6178 # two different shell functions defined in ltmain.sh
6179 # decide which to use based on capabilities of $DLLTOOL
6180 case `$DLLTOOL --help 2>&1` in
6181 *--identify-strict*)
6182 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6185 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6190 # fallback: assume linklib IS sharedlib
6191 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6197 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6198 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6199 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6207 if test -n "$ac_tool_prefix"; then
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213 $as_echo_n "checking for $ac_word... " >&6; }
6214 if ${ac_cv_prog_AR+:} false; then :
6215 $as_echo_n "(cached) " >&6
6217 if test -n "$AR"; then
6218 ac_cv_prog_AR="$AR" # Let the user override the test.
6220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6227 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238 if test -n "$AR"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6240 $as_echo "$AR" >&6; }
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243 $as_echo "no" >&6; }
6247 test -n "$AR" && break
6250 if test -z "$AR"; then
6254 # Extract the first word of "$ac_prog", so it can be a program name with args.
6255 set dummy $ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6259 $as_echo_n "(cached) " >&6
6261 if test -n "$ac_ct_AR"; then
6262 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_ac_ct_AR="$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282 if test -n "$ac_ct_AR"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6284 $as_echo "$ac_ct_AR" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$ac_ct_AR" && break
6294 if test "x$ac_ct_AR" = x; then
6297 case $cross_compiling:$ac_tool_warned in
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6301 ac_tool_warned=yes ;;
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6321 $as_echo_n "checking for archiver @FILE support... " >&6; }
6322 if ${lt_cv_ar_at_file+:} false; then :
6323 $as_echo_n "(cached) " >&6
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 echo conftest.$ac_objext > conftest.lst
6339 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6341 (eval $lt_ar_try) 2>&5
6343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6344 test $ac_status = 0; }
6345 if test "$ac_status" -eq 0; then
6346 # Ensure the archiver fails upon bogus file names.
6347 rm -f conftest.$ac_objext libconftest.a
6348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6349 (eval $lt_ar_try) 2>&5
6351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6352 test $ac_status = 0; }
6353 if test "$ac_status" -ne 0; then
6357 rm -f conftest.* libconftest.a
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6364 $as_echo "$lt_cv_ar_at_file" >&6; }
6366 if test "x$lt_cv_ar_at_file" = xno; then
6369 archiver_list_spec=$lt_cv_ar_at_file
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}strip; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_STRIP+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 if test -n "$STRIP"; then
6387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 STRIP=$ac_cv_prog_STRIP
6407 if test -n "$STRIP"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6409 $as_echo "$STRIP" >&6; }
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6417 if test -z "$ac_cv_prog_STRIP"; then
6419 # Extract the first word of "strip", so it can be a program name with args.
6420 set dummy strip; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 if test -n "$ac_ct_STRIP"; then
6427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_ac_ct_STRIP="strip"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6447 if test -n "$ac_ct_STRIP"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6449 $as_echo "$ac_ct_STRIP" >&6; }
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6455 if test "x$ac_ct_STRIP" = x; then
6458 case $cross_compiling:$ac_tool_warned in
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6467 STRIP="$ac_cv_prog_STRIP"
6470 test -z "$STRIP" && STRIP=:
6477 if test -n "$ac_tool_prefix"; then
6478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_RANLIB+:} false; then :
6483 $as_echo_n "(cached) " >&6
6485 if test -n "$RANLIB"; then
6486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 RANLIB=$ac_cv_prog_RANLIB
6506 if test -n "$RANLIB"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6508 $as_echo "$RANLIB" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6516 if test -z "$ac_cv_prog_RANLIB"; then
6517 ac_ct_RANLIB=$RANLIB
6518 # Extract the first word of "ranlib", so it can be a program name with args.
6519 set dummy ranlib; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6523 $as_echo_n "(cached) " >&6
6525 if test -n "$ac_ct_RANLIB"; then
6526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535 ac_cv_prog_ac_ct_RANLIB="ranlib"
6536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6546 if test -n "$ac_ct_RANLIB"; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6548 $as_echo "$ac_ct_RANLIB" >&6; }
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6554 if test "x$ac_ct_RANLIB" = x; then
6557 case $cross_compiling:$ac_tool_warned in
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6561 ac_tool_warned=yes ;;
6563 RANLIB=$ac_ct_RANLIB
6566 RANLIB="$ac_cv_prog_RANLIB"
6569 test -z "$RANLIB" && RANLIB=:
6576 # Determine commands to create old-style static archives.
6577 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6578 old_postinstall_cmds='chmod 644 $oldlib'
6579 old_postuninstall_cmds=
6581 if test -n "$RANLIB"; then
6584 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6587 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6590 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6595 lock_old_archive_extraction=yes ;;
6597 lock_old_archive_extraction=no ;;
6638 # If no C compiler was specified, use CC.
6641 # If no C compiler flags were specified, use CFLAGS.
6642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6644 # Allow CC to be a program name with arguments.
6648 # Check for command to grab the raw symbol name followed by C symbol from nm.
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6650 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6651 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6652 $as_echo_n "(cached) " >&6
6655 # These are sane defaults that work on at least a few old systems.
6656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6658 # Character class describing NM global symbol codes.
6659 symcode='[BCDEGRST]'
6661 # Regexp to match symbols that can be accessed directly from C.
6662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6664 # Define system-specific variables.
6669 cygwin* | mingw* | pw32* | cegcc*)
6670 symcode='[ABCDGISTW]'
6673 if test "$host_cpu" = ia64; then
6674 symcode='[ABCDEGRST]'
6678 symcode='[BCDEGRST]'
6681 symcode='[BCDEGQRST]'
6692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6700 # If we're using GNU nm, then use its standard symbol codes.
6701 case `$NM -V 2>&1` in
6702 *GNU* | *'with BFD'*)
6703 symcode='[ABCDGIRSTW]' ;;
6706 # Transform an extracted symbol line into a proper C declaration.
6707 # Some systems (esp. on ia64) link data and code symbols differently,
6708 # so use this general approach.
6709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6711 # Transform an extracted symbol line into symbol name and symbol address
6712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6713 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'"
6715 # Handle CRLF in mingw tool chain
6719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6723 # Try without a prefix underscore, then with it.
6724 for ac_symprfx in "" "_"; do
6726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6727 symxfrm="\\1 $ac_symprfx\\2 \\2"
6729 # Write the raw and C identifiers.
6730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6731 # Fake it for dumpbin and say T for any non-static function
6732 # and D for any global variable.
6733 # Also find C++ and __fastcall symbols from MSVC++,
6734 # which start with @ or ?.
6735 lt_cv_sys_global_symbol_pipe="$AWK '"\
6736 " {last_section=section; section=\$ 3};"\
6737 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6738 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6739 " \$ 0!~/External *\|/{next};"\
6740 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6741 " {if(hide[section]) next};"\
6742 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6743 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6744 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6745 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6746 " ' prfx=^$ac_symprfx"
6748 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6750 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6752 # Check to see that the pipe works correctly.
6756 cat > conftest.$ac_ext <<_LT_EOF
6761 void nm_test_func(void);
6762 void nm_test_func(void){}
6766 int main(){nm_test_var='a';nm_test_func();return(0);}
6769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6770 (eval $ac_compile) 2>&5
6772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773 test $ac_status = 0; }; then
6774 # Now try to grab the symbols.
6776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6777 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780 test $ac_status = 0; } && test -s "$nlist"; then
6781 # Try sorting and uniquifying the output.
6782 if sort "$nlist" | uniq > "$nlist"T; then
6783 mv -f "$nlist"T "$nlist"
6788 # Make sure that we snagged all the symbols we need.
6789 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6790 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6791 cat <<_LT_EOF > conftest.$ac_ext
6792 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6793 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6794 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6795 relocations are performed -- see ld's documentation on pseudo-relocs. */
6796 # define LT_DLSYM_CONST
6797 #elif defined(__osf__)
6798 /* This system does not cope well with relocations in const data. */
6799 # define LT_DLSYM_CONST
6801 # define LT_DLSYM_CONST const
6809 # Now generate the symbol file.
6810 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6812 cat <<_LT_EOF >> conftest.$ac_ext
6814 /* The mapping between symbol names and symbols. */
6815 LT_DLSYM_CONST struct {
6819 lt__PROGRAM__LTX_preloaded_symbols[] =
6821 { "@PROGRAM@", (void *) 0 },
6823 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6824 cat <<\_LT_EOF >> conftest.$ac_ext
6828 /* This works around a problem in FreeBSD linker */
6829 #ifdef FREEBSD_WORKAROUND
6830 static const void *lt_preloaded_setup() {
6831 return lt__PROGRAM__LTX_preloaded_symbols;
6839 # Now try linking the two files.
6840 mv conftest.$ac_objext conftstm.$ac_objext
6841 lt_globsym_save_LIBS=$LIBS
6842 lt_globsym_save_CFLAGS=$CFLAGS
6843 LIBS="conftstm.$ac_objext"
6844 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6846 (eval $ac_link) 2>&5
6848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6849 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6852 LIBS=$lt_globsym_save_LIBS
6853 CFLAGS=$lt_globsym_save_CFLAGS
6855 echo "cannot find nm_test_func in $nlist" >&5
6858 echo "cannot find nm_test_var in $nlist" >&5
6861 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6864 echo "$progname: failed program was:" >&5
6865 cat conftest.$ac_ext >&5
6867 rm -rf conftest* conftst*
6869 # Do not use the global_symbol_pipe unless it works.
6870 if test "$pipe_works" = yes; then
6873 lt_cv_sys_global_symbol_pipe=
6879 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6880 lt_cv_sys_global_symbol_to_cdecl=
6882 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6884 $as_echo "failed" >&6; }
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6887 $as_echo "ok" >&6; }
6890 # Response file support.
6891 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6892 nm_file_list_spec='@'
6893 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6894 nm_file_list_spec='@'
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6924 $as_echo_n "checking for sysroot... " >&6; }
6926 # Check whether --with-sysroot was given.
6927 if test "${with_sysroot+set}" = set; then :
6928 withval=$with_sysroot;
6935 case ${with_sysroot} in #(
6937 if test "$GCC" = yes; then
6938 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6942 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6948 $as_echo "${with_sysroot}" >&6; }
6949 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6954 $as_echo "${lt_sysroot:-no}" >&6; }
6960 # Check whether --enable-libtool-lock was given.
6961 if test "${enable_libtool_lock+set}" = set; then :
6962 enableval=$enable_libtool_lock;
6965 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6967 # Some flags need to be propagated to the compiler or linker for good
6971 # Find out which ABI we are using.
6972 echo 'int i;' > conftest.$ac_ext
6973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6974 (eval $ac_compile) 2>&5
6976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 test $ac_status = 0; }; then
6978 case `/usr/bin/file conftest.$ac_objext` in
6990 # Find out which ABI we are using.
6991 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 if test "$lt_cv_prog_gnu_ld" = yes; then
6998 case `/usr/bin/file conftest.$ac_objext` in
7000 LD="${LD-ld} -melf32bsmip"
7003 LD="${LD-ld} -melf32bmipn32"
7006 LD="${LD-ld} -melf64bmip"
7010 case `/usr/bin/file conftest.$ac_objext` in
7026 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7027 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7028 # Find out which ABI we are using.
7029 echo 'int i;' > conftest.$ac_ext
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 case `/usr/bin/file conftest.o` in
7038 x86_64-*kfreebsd*-gnu)
7039 LD="${LD-ld} -m elf_i386_fbsd"
7042 LD="${LD-ld} -m elf_i386"
7044 ppc64-*linux*|powerpc64-*linux*)
7045 LD="${LD-ld} -m elf32ppclinux"
7048 LD="${LD-ld} -m elf_s390"
7051 LD="${LD-ld} -m elf32_sparc"
7057 x86_64-*kfreebsd*-gnu)
7058 LD="${LD-ld} -m elf_x86_64_fbsd"
7061 LD="${LD-ld} -m elf_x86_64"
7063 ppc*-*linux*|powerpc*-*linux*)
7064 LD="${LD-ld} -m elf64ppc"
7066 s390*-*linux*|s390*-*tpf*)
7067 LD="${LD-ld} -m elf64_s390"
7070 LD="${LD-ld} -m elf64_sparc"
7080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7081 SAVE_CFLAGS="$CFLAGS"
7082 CFLAGS="$CFLAGS -belf"
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7084 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7085 if ${lt_cv_cc_needs_belf+:} false; then :
7086 $as_echo_n "(cached) " >&6
7089 ac_cpp='$CPP $CPPFLAGS'
7090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7105 if ac_fn_c_try_link "$LINENO"; then :
7106 lt_cv_cc_needs_belf=yes
7108 lt_cv_cc_needs_belf=no
7110 rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7120 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7121 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7122 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7123 CFLAGS="$SAVE_CFLAGS"
7127 # Find out which ABI we are using.
7128 echo 'int i;' > conftest.$ac_ext
7129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7130 (eval $ac_compile) 2>&5
7132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133 test $ac_status = 0; }; then
7134 case `/usr/bin/file conftest.o` in
7136 case $lt_cv_prog_gnu_ld in
7140 LD="${LD-ld} -m elf_x86_64"
7143 LD="${LD-ld} -m elf64_sparc"
7146 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7147 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7152 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7164 need_locks="$enable_libtool_lock"
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}mt; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7172 $as_echo_n "(cached) " >&6
7174 if test -n "$MANIFEST_TOOL"; then
7175 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7195 if test -n "$MANIFEST_TOOL"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7197 $as_echo "$MANIFEST_TOOL" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7205 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7206 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7207 # Extract the first word of "mt", so it can be a program name with args.
7208 set dummy mt; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7212 $as_echo_n "(cached) " >&6
7214 if test -n "$ac_ct_MANIFEST_TOOL"; then
7215 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7235 if test -n "$ac_ct_MANIFEST_TOOL"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7237 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7243 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7246 case $cross_compiling:$ac_tool_warned in
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7252 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7255 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7258 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7260 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7261 if ${lt_cv_path_mainfest_tool+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 lt_cv_path_mainfest_tool=no
7265 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7266 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7267 cat conftest.err >&5
7268 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7269 lt_cv_path_mainfest_tool=yes
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7274 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7275 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7285 rhapsody* | darwin*)
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$DSYMUTIL"; then
7295 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7315 if test -n "$DSYMUTIL"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7317 $as_echo "$DSYMUTIL" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_prog_DSYMUTIL"; then
7326 ac_ct_DSYMUTIL=$DSYMUTIL
7327 # Extract the first word of "dsymutil", so it can be a program name with args.
7328 set dummy dsymutil; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$ac_ct_DSYMUTIL"; then
7335 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7355 if test -n "$ac_ct_DSYMUTIL"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7357 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7363 if test "x$ac_ct_DSYMUTIL" = x; then
7366 case $cross_compiling:$ac_tool_warned in
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7372 DSYMUTIL=$ac_ct_DSYMUTIL
7375 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7378 if test -n "$ac_tool_prefix"; then
7379 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7380 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_NMEDIT+:} false; then :
7384 $as_echo_n "(cached) " >&6
7386 if test -n "$NMEDIT"; then
7387 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 test -z "$as_dir" && as_dir=.
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 NMEDIT=$ac_cv_prog_NMEDIT
7407 if test -n "$NMEDIT"; then
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7409 $as_echo "$NMEDIT" >&6; }
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7417 if test -z "$ac_cv_prog_NMEDIT"; then
7418 ac_ct_NMEDIT=$NMEDIT
7419 # Extract the first word of "nmedit", so it can be a program name with args.
7420 set dummy nmedit; ac_word=$2
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422 $as_echo_n "checking for $ac_word... " >&6; }
7423 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7424 $as_echo_n "(cached) " >&6
7426 if test -n "$ac_ct_NMEDIT"; then
7427 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 test -z "$as_dir" && as_dir=.
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7436 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7447 if test -n "$ac_ct_NMEDIT"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7449 $as_echo "$ac_ct_NMEDIT" >&6; }
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }
7455 if test "x$ac_ct_NMEDIT" = x; then
7458 case $cross_compiling:$ac_tool_warned in
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7464 NMEDIT=$ac_ct_NMEDIT
7467 NMEDIT="$ac_cv_prog_NMEDIT"
7470 if test -n "$ac_tool_prefix"; then
7471 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7472 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_LIPO+:} false; then :
7476 $as_echo_n "(cached) " >&6
7478 if test -n "$LIPO"; then
7479 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 LIPO=$ac_cv_prog_LIPO
7499 if test -n "$LIPO"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7501 $as_echo "$LIPO" >&6; }
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7509 if test -z "$ac_cv_prog_LIPO"; then
7511 # Extract the first word of "lipo", so it can be a program name with args.
7512 set dummy lipo; ac_word=$2
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514 $as_echo_n "checking for $ac_word... " >&6; }
7515 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7516 $as_echo_n "(cached) " >&6
7518 if test -n "$ac_ct_LIPO"; then
7519 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528 ac_cv_prog_ac_ct_LIPO="lipo"
7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7539 if test -n "$ac_ct_LIPO"; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7541 $as_echo "$ac_ct_LIPO" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7547 if test "x$ac_ct_LIPO" = x; then
7550 case $cross_compiling:$ac_tool_warned in
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7559 LIPO="$ac_cv_prog_LIPO"
7562 if test -n "$ac_tool_prefix"; then
7563 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7564 set dummy ${ac_tool_prefix}otool; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_OTOOL+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 if test -n "$OTOOL"; then
7571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 OTOOL=$ac_cv_prog_OTOOL
7591 if test -n "$OTOOL"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7593 $as_echo "$OTOOL" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7601 if test -z "$ac_cv_prog_OTOOL"; then
7603 # Extract the first word of "otool", so it can be a program name with args.
7604 set dummy otool; ac_word=$2
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 $as_echo_n "checking for $ac_word... " >&6; }
7607 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 if test -n "$ac_ct_OTOOL"; then
7611 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 test -z "$as_dir" && as_dir=.
7618 for ac_exec_ext in '' $ac_executable_extensions; do
7619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 ac_cv_prog_ac_ct_OTOOL="otool"
7621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7631 if test -n "$ac_ct_OTOOL"; then
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7633 $as_echo "$ac_ct_OTOOL" >&6; }
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636 $as_echo "no" >&6; }
7639 if test "x$ac_ct_OTOOL" = x; then
7642 case $cross_compiling:$ac_tool_warned in
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7646 ac_tool_warned=yes ;;
7651 OTOOL="$ac_cv_prog_OTOOL"
7654 if test -n "$ac_tool_prefix"; then
7655 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7656 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_prog_OTOOL64+:} false; then :
7660 $as_echo_n "(cached) " >&6
7662 if test -n "$OTOOL64"; then
7663 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 OTOOL64=$ac_cv_prog_OTOOL64
7683 if test -n "$OTOOL64"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7685 $as_echo "$OTOOL64" >&6; }
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 $as_echo "no" >&6; }
7693 if test -z "$ac_cv_prog_OTOOL64"; then
7694 ac_ct_OTOOL64=$OTOOL64
7695 # Extract the first word of "otool64", so it can be a program name with args.
7696 set dummy otool64; ac_word=$2
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698 $as_echo_n "checking for $ac_word... " >&6; }
7699 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7700 $as_echo_n "(cached) " >&6
7702 if test -n "$ac_ct_OTOOL64"; then
7703 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712 ac_cv_prog_ac_ct_OTOOL64="otool64"
7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7723 if test -n "$ac_ct_OTOOL64"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7725 $as_echo "$ac_ct_OTOOL64" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7731 if test "x$ac_ct_OTOOL64" = x; then
7734 case $cross_compiling:$ac_tool_warned in
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7738 ac_tool_warned=yes ;;
7740 OTOOL64=$ac_ct_OTOOL64
7743 OTOOL64="$ac_cv_prog_OTOOL64"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7773 $as_echo_n "checking for -single_module linker flag... " >&6; }
7774 if ${lt_cv_apple_cc_single_mod+:} false; then :
7775 $as_echo_n "(cached) " >&6
7777 lt_cv_apple_cc_single_mod=no
7778 if test -z "${LT_MULTI_MODULE}"; then
7779 # By default we will add the -single_module flag. You can override
7780 # by either setting the environment variable LT_MULTI_MODULE
7781 # non-empty at configure time, or by adding -multi_module to the
7783 rm -rf libconftest.dylib*
7784 echo "int foo(void){return 1;}" > conftest.c
7785 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7786 -dynamiclib -Wl,-single_module conftest.c" >&5
7787 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7788 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7790 # If there is a non-empty error log, and "single_module"
7791 # appears in it, assume the flag caused a linker warning
7792 if test -s conftest.err && $GREP single_module conftest.err; then
7793 cat conftest.err >&5
7794 # Otherwise, if the output was created with a 0 exit code from
7795 # the compiler, it worked.
7796 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7797 lt_cv_apple_cc_single_mod=yes
7799 cat conftest.err >&5
7801 rm -rf libconftest.dylib*
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7806 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7809 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7810 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7811 $as_echo_n "(cached) " >&6
7813 lt_cv_ld_exported_symbols_list=no
7814 save_LDFLAGS=$LDFLAGS
7815 echo "_main" > conftest.sym
7816 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7828 if ac_fn_c_try_link "$LINENO"; then :
7829 lt_cv_ld_exported_symbols_list=yes
7831 lt_cv_ld_exported_symbols_list=no
7833 rm -f core conftest.err conftest.$ac_objext \
7834 conftest$ac_exeext conftest.$ac_ext
7835 LDFLAGS="$save_LDFLAGS"
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7839 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7842 $as_echo_n "checking for -force_load linker flag... " >&6; }
7843 if ${lt_cv_ld_force_load+:} false; then :
7844 $as_echo_n "(cached) " >&6
7846 lt_cv_ld_force_load=no
7847 cat > conftest.c << _LT_EOF
7848 int forced_loaded() { return 2;}
7850 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7851 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7852 echo "$AR cru libconftest.a conftest.o" >&5
7853 $AR cru libconftest.a conftest.o 2>&5
7854 echo "$RANLIB libconftest.a" >&5
7855 $RANLIB libconftest.a 2>&5
7856 cat > conftest.c << _LT_EOF
7857 int main() { return 0;}
7859 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7860 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7862 if test -s conftest.err && $GREP force_load conftest.err; then
7863 cat conftest.err >&5
7864 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7865 lt_cv_ld_force_load=yes
7867 cat conftest.err >&5
7869 rm -f conftest.err libconftest.a conftest conftest.c
7870 rm -rf conftest.dSYM
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7874 $as_echo "$lt_cv_ld_force_load" >&6; }
7876 rhapsody* | darwin1.[012])
7877 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7879 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7880 darwin*) # darwin 5.x on
7881 # if running on 10.5 or later, the deployment target defaults
7882 # to the OS version, if on x86, and 10.4, the deployment
7883 # target defaults to 10.4. Don't you love it?
7884 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7885 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7886 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7888 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7890 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7894 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7895 _lt_dar_single_mod='$single_module'
7897 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7898 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7900 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7902 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7903 _lt_dsymutil='~$DSYMUTIL $lib || :'
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7916 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7917 # On Suns, sometimes $CPP names a directory.
7918 if test -n "$CPP" && test -d "$CPP"; then
7921 if test -z "$CPP"; then
7922 if ${ac_cv_prog_CPP+:} false; then :
7923 $as_echo_n "(cached) " >&6
7925 # Double quotes because CPP needs to be expanded
7926 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7929 for ac_c_preproc_warn_flag in '' yes
7931 # Use a header file that comes with gcc, so configuring glibc
7932 # with a fresh cross-compiler works.
7933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7934 # <limits.h> exists even on freestanding compilers.
7935 # On the NeXT, cc -E runs the code through the compiler's parser,
7936 # not just through cpp. "Syntax error" is here to catch this case.
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7940 # include <limits.h>
7942 # include <assert.h>
7946 if ac_fn_c_try_cpp "$LINENO"; then :
7949 # Broken: fails on valid input.
7952 rm -f conftest.err conftest.i conftest.$ac_ext
7954 # OK, works on sane cases. Now check whether nonexistent headers
7955 # can be detected and how.
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 #include <ac_nonexistent.h>
7960 if ac_fn_c_try_cpp "$LINENO"; then :
7961 # Broken: success on invalid input.
7964 # Passes both tests.
7968 rm -f conftest.err conftest.i conftest.$ac_ext
7971 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7972 rm -f conftest.i conftest.err conftest.$ac_ext
7973 if $ac_preproc_ok; then :
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7986 $as_echo "$CPP" >&6; }
7988 for ac_c_preproc_warn_flag in '' yes
7990 # Use a header file that comes with gcc, so configuring glibc
7991 # with a fresh cross-compiler works.
7992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7993 # <limits.h> exists even on freestanding compilers.
7994 # On the NeXT, cc -E runs the code through the compiler's parser,
7995 # not just through cpp. "Syntax error" is here to catch this case.
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7999 # include <limits.h>
8001 # include <assert.h>
8005 if ac_fn_c_try_cpp "$LINENO"; then :
8008 # Broken: fails on valid input.
8011 rm -f conftest.err conftest.i conftest.$ac_ext
8013 # OK, works on sane cases. Now check whether nonexistent headers
8014 # can be detected and how.
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #include <ac_nonexistent.h>
8019 if ac_fn_c_try_cpp "$LINENO"; then :
8020 # Broken: success on invalid input.
8023 # Passes both tests.
8027 rm -f conftest.err conftest.i conftest.$ac_ext
8030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8031 rm -f conftest.i conftest.err conftest.$ac_ext
8032 if $ac_preproc_ok; then :
8035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8037 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8038 See \`config.log' for more details" "$LINENO" 5; }
8042 ac_cpp='$CPP $CPPFLAGS'
8043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8049 $as_echo_n "checking for ANSI C header files... " >&6; }
8050 if ${ac_cv_header_stdc+:} false; then :
8051 $as_echo_n "(cached) " >&6
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069 ac_cv_header_stdc=yes
8071 ac_cv_header_stdc=no
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 if test $ac_cv_header_stdc = yes; then
8076 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8083 $EGREP "memchr" >/dev/null 2>&1; then :
8086 ac_cv_header_stdc=no
8092 if test $ac_cv_header_stdc = yes; then
8093 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8100 $EGREP "free" >/dev/null 2>&1; then :
8103 ac_cv_header_stdc=no
8109 if test $ac_cv_header_stdc = yes; then
8110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8111 if test "$cross_compiling" = yes; then :
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8118 #if ((' ' & 0x0FF) == 0x020)
8119 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8120 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8122 # define ISLOWER(c) \
8123 (('a' <= (c) && (c) <= 'i') \
8124 || ('j' <= (c) && (c) <= 'r') \
8125 || ('s' <= (c) && (c) <= 'z'))
8126 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8134 for (i = 0; i < 256; i++)
8135 if (XOR (islower (i), ISLOWER (i))
8136 || toupper (i) != TOUPPER (i))
8141 if ac_fn_c_try_run "$LINENO"; then :
8144 ac_cv_header_stdc=no
8146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8147 conftest.$ac_objext conftest.beam conftest.$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8153 $as_echo "$ac_cv_header_stdc" >&6; }
8154 if test $ac_cv_header_stdc = yes; then
8156 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8160 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8161 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8162 inttypes.h stdint.h unistd.h
8164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8165 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8168 cat >>confdefs.h <<_ACEOF
8169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8177 for ac_header in dlfcn.h
8179 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8181 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8182 cat >>confdefs.h <<_ACEOF
8183 #define HAVE_DLFCN_H 1
8204 # Check whether --enable-shared was given.
8205 if test "${enable_shared+set}" = set; then :
8206 enableval=$enable_shared; p=${PACKAGE-default}
8208 yes) enable_shared=yes ;;
8209 no) enable_shared=no ;;
8212 # Look at the argument we got. We use all the common list separators.
8213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8214 for pkg in $enableval; do
8216 if test "X$pkg" = "X$p"; then
8235 # Check whether --enable-static was given.
8236 if test "${enable_static+set}" = set; then :
8237 enableval=$enable_static; p=${PACKAGE-default}
8239 yes) enable_static=yes ;;
8240 no) enable_static=no ;;
8243 # Look at the argument we got. We use all the common list separators.
8244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8245 for pkg in $enableval; do
8247 if test "X$pkg" = "X$p"; then
8267 # Check whether --with-pic was given.
8268 if test "${with_pic+set}" = set; then :
8269 withval=$with_pic; lt_p=${PACKAGE-default}
8271 yes|no) pic_mode=$withval ;;
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for lt_pkg in $withval; do
8278 if test "X$lt_pkg" = "X$lt_p"; then
8290 test -z "$pic_mode" && pic_mode=default
8298 # Check whether --enable-fast-install was given.
8299 if test "${enable_fast_install+set}" = set; then :
8300 enableval=$enable_fast_install; p=${PACKAGE-default}
8302 yes) enable_fast_install=yes ;;
8303 no) enable_fast_install=no ;;
8305 enable_fast_install=no
8306 # Look at the argument we got. We use all the common list separators.
8307 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8308 for pkg in $enableval; do
8310 if test "X$pkg" = "X$p"; then
8311 enable_fast_install=yes
8318 enable_fast_install=yes
8331 # This can be used to rebuild libtool when needed
8332 LIBTOOL_DEPS="$ltmain"
8334 # Always use our own libtool.
8335 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8366 test -z "$LN_S" && LN_S="ln -s"
8381 if test -n "${ZSH_VERSION+set}" ; then
8382 setopt NO_GLOB_SUBST
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8386 $as_echo_n "checking for objdir... " >&6; }
8387 if ${lt_cv_objdir+:} false; then :
8388 $as_echo_n "(cached) " >&6
8390 rm -f .libs 2>/dev/null
8391 mkdir .libs 2>/dev/null
8392 if test -d .libs; then
8395 # MS-DOS does not allow filenames that begin with a dot.
8398 rmdir .libs 2>/dev/null
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8401 $as_echo "$lt_cv_objdir" >&6; }
8402 objdir=$lt_cv_objdir
8408 cat >>confdefs.h <<_ACEOF
8409 #define LT_OBJDIR "$lt_cv_objdir/"
8417 # AIX sometimes has problems with the GCC collect2 program. For some
8418 # reason, if we set the COLLECT_NAMES environment variable, the problems
8419 # vanish in a puff of smoke.
8420 if test "X${COLLECT_NAMES+set}" != Xset; then
8422 export COLLECT_NAMES
8429 can_build_shared=yes
8431 # All known linkers require a `.a' archive for static linking (except MSVC,
8432 # which needs '.lib').
8435 with_gnu_ld="$lt_cv_prog_gnu_ld"
8438 old_CFLAGS="$CFLAGS"
8440 # Set sane defaults for various variables
8441 test -z "$CC" && CC=cc
8442 test -z "$LTCC" && LTCC=$CC
8443 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8444 test -z "$LD" && LD=ld
8445 test -z "$ac_objext" && ac_objext=o
8447 for cc_temp in $compiler""; do
8449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8455 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8458 # Only perform the check for file, if the check method requires it
8459 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8460 case $deplibs_check_method in
8462 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8464 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8465 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8466 $as_echo_n "(cached) " >&6
8470 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8473 lt_save_MAGIC_CMD="$MAGIC_CMD"
8474 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8476 for ac_dir in $ac_dummy; do
8478 test -z "$ac_dir" && ac_dir=.
8479 if test -f $ac_dir/${ac_tool_prefix}file; then
8480 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8481 if test -n "$file_magic_test_file"; then
8482 case $deplibs_check_method in
8484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8485 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8487 $EGREP "$file_magic_regex" > /dev/null; then
8492 *** Warning: the command libtool uses to detect shared libraries,
8493 *** $file_magic_cmd, produces output that libtool cannot recognize.
8494 *** The result is that libtool may fail to recognize shared libraries
8495 *** as such. This will affect the creation of libtool libraries that
8496 *** depend on shared libraries, but programs linked with such libtool
8497 *** libraries will work regardless of this problem. Nevertheless, you
8498 *** may want to report the problem to your system manager and/or to
8499 *** bug-libtool@gnu.org
8509 MAGIC_CMD="$lt_save_MAGIC_CMD"
8514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8515 if test -n "$MAGIC_CMD"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8517 $as_echo "$MAGIC_CMD" >&6; }
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8527 if test -z "$lt_cv_path_MAGIC_CMD"; then
8528 if test -n "$ac_tool_prefix"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8530 $as_echo_n "checking for file... " >&6; }
8531 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8532 $as_echo_n "(cached) " >&6
8536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8539 lt_save_MAGIC_CMD="$MAGIC_CMD"
8540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8542 for ac_dir in $ac_dummy; do
8544 test -z "$ac_dir" && ac_dir=.
8545 if test -f $ac_dir/file; then
8546 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8547 if test -n "$file_magic_test_file"; then
8548 case $deplibs_check_method in
8550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8553 $EGREP "$file_magic_regex" > /dev/null; then
8558 *** Warning: the command libtool uses to detect shared libraries,
8559 *** $file_magic_cmd, produces output that libtool cannot recognize.
8560 *** The result is that libtool may fail to recognize shared libraries
8561 *** as such. This will affect the creation of libtool libraries that
8562 *** depend on shared libraries, but programs linked with such libtool
8563 *** libraries will work regardless of this problem. Nevertheless, you
8564 *** may want to report the problem to your system manager and/or to
8565 *** bug-libtool@gnu.org
8575 MAGIC_CMD="$lt_save_MAGIC_CMD"
8580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581 if test -n "$MAGIC_CMD"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8583 $as_echo "$MAGIC_CMD" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8599 # Use C for the default configuration in the libtool script
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609 # Source file extension for C test sources.
8612 # Object file extension for compiled C test sources.
8616 # Code to be used in simple compile tests
8617 lt_simple_compile_test_code="int some_variable = 0;"
8619 # Code to be used in simple link tests
8620 lt_simple_link_test_code='int main(){return(0);}'
8628 # If no C compiler was specified, use CC.
8631 # If no C compiler flags were specified, use CFLAGS.
8632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8634 # Allow CC to be a program name with arguments.
8637 # Save the default compiler, since it gets overwritten when the other
8638 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8639 compiler_DEFAULT=$CC
8641 # save warnings/boilerplate of simple test code
8642 ac_outfile=conftest.$ac_objext
8643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8645 _lt_compiler_boilerplate=`cat conftest.err`
8648 ac_outfile=conftest.$ac_objext
8649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8651 _lt_linker_boilerplate=`cat conftest.err`
8655 if test -n "$compiler"; then
8657 lt_prog_compiler_no_builtin_flag=
8659 if test "$GCC" = yes; then
8660 case $cc_basename in
8662 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8664 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8668 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8669 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8670 $as_echo_n "(cached) " >&6
8672 lt_cv_prog_compiler_rtti_exceptions=no
8673 ac_outfile=conftest.$ac_objext
8674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8675 lt_compiler_flag="-fno-rtti -fno-exceptions"
8676 # Insert the option either (1) after the last *FLAGS variable, or
8677 # (2) before a word containing "conftest.", or (3) at the end.
8678 # Note that $ac_compile itself does not contain backslashes and begins
8679 # with a dollar sign (not a hyphen), so the echo should work correctly.
8680 # The option is referenced via a variable to avoid confusing sed.
8681 lt_compile=`echo "$ac_compile" | $SED \
8682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8684 -e 's:$: $lt_compiler_flag:'`
8685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8686 (eval "$lt_compile" 2>conftest.err)
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 if (exit $ac_status) && test -s "$ac_outfile"; then
8691 # The compiler can only warn and ignore the option if not recognized
8692 # So say no if there are warnings other than the usual output.
8693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8696 lt_cv_prog_compiler_rtti_exceptions=yes
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8703 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8705 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8706 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8718 lt_prog_compiler_wl=
8719 lt_prog_compiler_pic=
8720 lt_prog_compiler_static=
8723 if test "$GCC" = yes; then
8724 lt_prog_compiler_wl='-Wl,'
8725 lt_prog_compiler_static='-static'
8729 # All AIX code is PIC.
8730 if test "$host_cpu" = ia64; then
8731 # AIX 5 now supports IA64 processor
8732 lt_prog_compiler_static='-Bstatic'
8739 # see comment about AmigaOS4 .so support
8740 lt_prog_compiler_pic='-fPIC'
8743 # FIXME: we need at least 68020 code to build shared libraries, but
8744 # adding the `-m68020' flag to GCC prevents building anything better,
8746 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8751 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8752 # PIC is the default for these OSes.
8755 mingw* | cygwin* | pw32* | os2* | cegcc*)
8756 # This hack is so that the source file can tell whether it is being
8757 # built for inclusion in a dll (and should export symbols for example).
8758 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8759 # (--disable-auto-import) libraries
8760 lt_prog_compiler_pic='-DDLL_EXPORT'
8763 darwin* | rhapsody*)
8764 # PIC is the default on this platform
8765 # Common symbols not allowed in MH_DYLIB files
8766 lt_prog_compiler_pic='-fno-common'
8770 # PIC is the default for Haiku.
8771 # The "-static" flag exists, but is broken.
8772 lt_prog_compiler_static=
8776 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8777 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8778 # sets the default TLS model and affects inlining.
8784 lt_prog_compiler_pic='-fPIC'
8790 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8791 # Instead, we relocate shared libraries at runtime.
8795 # Just because we use GCC doesn't mean we suddenly get shared libraries
8796 # on systems that don't support them.
8797 lt_prog_compiler_can_build_shared=no
8802 # QNX uses GNU C++, but need to define -shared option too, otherwise
8804 lt_prog_compiler_pic='-fPIC -shared'
8808 if test -d /usr/nec; then
8809 lt_prog_compiler_pic=-Kconform_pic
8814 lt_prog_compiler_pic='-fPIC'
8818 case $cc_basename in
8819 nvcc*) # Cuda Compiler Driver 2.2
8820 lt_prog_compiler_wl='-Xlinker '
8821 if test -n "$lt_prog_compiler_pic"; then
8822 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8827 # PORTME Check for flag to pass linker flags through the system compiler.
8830 lt_prog_compiler_wl='-Wl,'
8831 if test "$host_cpu" = ia64; then
8832 # AIX 5 now supports IA64 processor
8833 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8839 mingw* | cygwin* | pw32* | os2* | cegcc*)
8840 # This hack is so that the source file can tell whether it is being
8841 # built for inclusion in a dll (and should export symbols for example).
8842 lt_prog_compiler_pic='-DDLL_EXPORT'
8845 hpux9* | hpux10* | hpux11*)
8846 lt_prog_compiler_wl='-Wl,'
8847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8854 lt_prog_compiler_pic='+Z'
8857 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8858 lt_prog_compiler_static='${wl}-a ${wl}archive'
8861 irix5* | irix6* | nonstopux*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # PIC (with -KPIC) is the default.
8864 lt_prog_compiler_static='-non_shared'
8867 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8868 case $cc_basename in
8869 # old Intel for x86_64 which still supported -KPIC.
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-KPIC'
8873 lt_prog_compiler_static='-static'
8875 # icc used to be incompatible with GCC.
8876 # ICC 10 doesn't accept -KPIC any more.
8878 lt_prog_compiler_wl='-Wl,'
8879 lt_prog_compiler_pic='-fPIC'
8880 lt_prog_compiler_static='-static'
8882 # Lahey Fortran 8.1.
8884 lt_prog_compiler_wl='-Wl,'
8885 lt_prog_compiler_pic='--shared'
8886 lt_prog_compiler_static='--static'
8889 # NAG Fortran compiler
8890 lt_prog_compiler_wl='-Wl,-Wl,,'
8891 lt_prog_compiler_pic='-PIC'
8892 lt_prog_compiler_static='-Bstatic'
8894 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8895 # Portland Group compilers (*not* the Pentium gcc compiler,
8896 # which looks to be a dead project)
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-fpic'
8899 lt_prog_compiler_static='-Bstatic'
8902 lt_prog_compiler_wl='-Wl,'
8903 # All Alpha code is PIC.
8904 lt_prog_compiler_static='-non_shared'
8906 xl* | bgxl* | bgf* | mpixl*)
8907 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8908 lt_prog_compiler_wl='-Wl,'
8909 lt_prog_compiler_pic='-qpic'
8910 lt_prog_compiler_static='-qstaticlink'
8913 case `$CC -V 2>&1 | sed 5q` in
8914 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8915 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 lt_prog_compiler_wl=''
8920 *Sun\ F* | *Sun*Fortran*)
8921 lt_prog_compiler_pic='-KPIC'
8922 lt_prog_compiler_static='-Bstatic'
8923 lt_prog_compiler_wl='-Qoption ld '
8927 lt_prog_compiler_pic='-KPIC'
8928 lt_prog_compiler_static='-Bstatic'
8929 lt_prog_compiler_wl='-Wl,'
8931 *Intel*\ [CF]*Compiler*)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fPIC'
8934 lt_prog_compiler_static='-static'
8937 lt_prog_compiler_wl='-Wl,'
8938 lt_prog_compiler_pic='-fpic'
8939 lt_prog_compiler_static='-Bstatic'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8952 # QNX uses GNU C++, but need to define -shared option too, otherwise
8954 lt_prog_compiler_pic='-fPIC -shared'
8957 osf3* | osf4* | osf5*)
8958 lt_prog_compiler_wl='-Wl,'
8959 # All OSF/1 code is PIC.
8960 lt_prog_compiler_static='-non_shared'
8964 lt_prog_compiler_static='-non_shared'
8968 lt_prog_compiler_pic='-KPIC'
8969 lt_prog_compiler_static='-Bstatic'
8970 case $cc_basename in
8971 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8972 lt_prog_compiler_wl='-Qoption ld ';;
8974 lt_prog_compiler_wl='-Wl,';;
8979 lt_prog_compiler_wl='-Qoption ld '
8980 lt_prog_compiler_pic='-PIC'
8981 lt_prog_compiler_static='-Bstatic'
8984 sysv4 | sysv4.2uw2* | sysv4.3*)
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_pic='-KPIC'
8987 lt_prog_compiler_static='-Bstatic'
8991 if test -d /usr/nec ;then
8992 lt_prog_compiler_pic='-Kconform_pic'
8993 lt_prog_compiler_static='-Bstatic'
8997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='-KPIC'
9000 lt_prog_compiler_static='-Bstatic'
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_can_build_shared=no
9009 lt_prog_compiler_pic='-pic'
9010 lt_prog_compiler_static='-Bstatic'
9014 lt_prog_compiler_can_build_shared=no
9020 # For platforms which do not support PIC, -DPIC is meaningless:
9022 lt_prog_compiler_pic=
9025 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9030 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9031 if ${lt_cv_prog_compiler_pic+:} false; then :
9032 $as_echo_n "(cached) " >&6
9034 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9037 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9038 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9041 # Check to make sure the PIC flag actually works.
9043 if test -n "$lt_prog_compiler_pic"; then
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9045 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9046 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9047 $as_echo_n "(cached) " >&6
9049 lt_cv_prog_compiler_pic_works=no
9050 ac_outfile=conftest.$ac_objext
9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9052 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9053 # Insert the option either (1) after the last *FLAGS variable, or
9054 # (2) before a word containing "conftest.", or (3) at the end.
9055 # Note that $ac_compile itself does not contain backslashes and begins
9056 # with a dollar sign (not a hyphen), so the echo should work correctly.
9057 # The option is referenced via a variable to avoid confusing sed.
9058 lt_compile=`echo "$ac_compile" | $SED \
9059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9061 -e 's:$: $lt_compiler_flag:'`
9062 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9063 (eval "$lt_compile" 2>conftest.err)
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 if (exit $ac_status) && test -s "$ac_outfile"; then
9068 # The compiler can only warn and ignore the option if not recognized
9069 # So say no if there are warnings other than the usual output.
9070 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9072 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9073 lt_cv_prog_compiler_pic_works=yes
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9080 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9082 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9083 case $lt_prog_compiler_pic in
9085 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9088 lt_prog_compiler_pic=
9089 lt_prog_compiler_can_build_shared=no
9105 # Check to make sure the static flag actually works.
9107 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9109 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9110 if ${lt_cv_prog_compiler_static_works+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 lt_cv_prog_compiler_static_works=no
9114 save_LDFLAGS="$LDFLAGS"
9115 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9116 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9117 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9118 # The linker can only warn and ignore the option if not recognized
9119 # So say no if there are warnings
9120 if test -s conftest.err; then
9121 # Append any errors to the config.log.
9122 cat conftest.err 1>&5
9123 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9124 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9125 if diff conftest.exp conftest.er2 >/dev/null; then
9126 lt_cv_prog_compiler_static_works=yes
9129 lt_cv_prog_compiler_static_works=yes
9133 LDFLAGS="$save_LDFLAGS"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9137 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9139 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9142 lt_prog_compiler_static=
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9152 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9153 if ${lt_cv_prog_compiler_c_o+:} false; then :
9154 $as_echo_n "(cached) " >&6
9156 lt_cv_prog_compiler_c_o=no
9157 $RM -r conftest 2>/dev/null
9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9163 lt_compiler_flag="-o out/conftest2.$ac_objext"
9164 # Insert the option either (1) after the last *FLAGS variable, or
9165 # (2) before a word containing "conftest.", or (3) at the end.
9166 # Note that $ac_compile itself does not contain backslashes and begins
9167 # with a dollar sign (not a hyphen), so the echo should work correctly.
9168 lt_compile=`echo "$ac_compile" | $SED \
9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171 -e 's:$: $lt_compiler_flag:'`
9172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173 (eval "$lt_compile" 2>out/conftest.err)
9175 cat out/conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9179 # The compiler can only warn and ignore the option if not recognized
9180 # So say no if there are warnings
9181 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9184 lt_cv_prog_compiler_c_o=yes
9189 # SGI C++ compiler will create directory out/ii_files/ for
9190 # template instantiation
9191 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9192 $RM out/* && rmdir out
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9199 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9207 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9208 if ${lt_cv_prog_compiler_c_o+:} false; then :
9209 $as_echo_n "(cached) " >&6
9211 lt_cv_prog_compiler_c_o=no
9212 $RM -r conftest 2>/dev/null
9216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9218 lt_compiler_flag="-o out/conftest2.$ac_objext"
9219 # Insert the option either (1) after the last *FLAGS variable, or
9220 # (2) before a word containing "conftest.", or (3) at the end.
9221 # Note that $ac_compile itself does not contain backslashes and begins
9222 # with a dollar sign (not a hyphen), so the echo should work correctly.
9223 lt_compile=`echo "$ac_compile" | $SED \
9224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9226 -e 's:$: $lt_compiler_flag:'`
9227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9228 (eval "$lt_compile" 2>out/conftest.err)
9230 cat out/conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9234 # The compiler can only warn and ignore the option if not recognized
9235 # So say no if there are warnings
9236 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9237 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9238 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9239 lt_cv_prog_compiler_c_o=yes
9244 # SGI C++ compiler will create directory out/ii_files/ for
9245 # template instantiation
9246 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9247 $RM out/* && rmdir out
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9254 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9259 hard_links="nottested"
9260 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9261 # do not overwrite the value of need_locks provided by the user
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9263 $as_echo_n "checking if we can lock with hard links... " >&6; }
9266 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9268 ln conftest.a conftest.b 2>&5 || hard_links=no
9269 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9271 $as_echo "$hard_links" >&6; }
9272 if test "$hard_links" = no; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9274 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9287 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9290 allow_undefined_flag=
9291 always_export_symbols=no
9293 archive_expsym_cmds=
9294 compiler_needs_object=no
9295 enable_shared_with_static_runtimes=no
9296 export_dynamic_flag_spec=
9297 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9298 hardcode_automatic=no
9300 hardcode_direct_absolute=no
9301 hardcode_libdir_flag_spec=
9302 hardcode_libdir_separator=
9304 hardcode_shlibpath_var=unsupported
9306 link_all_deplibs=unknown
9309 old_archive_from_new_cmds=
9310 old_archive_from_expsyms_cmds=
9311 thread_safe_flag_spec=
9312 whole_archive_flag_spec=
9313 # include_expsyms should be a list of space-separated symbols to be *always*
9314 # included in the symbol list
9316 # exclude_expsyms can be an extended regexp of symbols to exclude
9317 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9318 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9319 # as well as any symbol that contains `d'.
9320 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9321 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9322 # platforms (ab)use it in PIC code, but their linkers get confused if
9323 # the symbol is explicitly referenced. Since portable code cannot
9324 # rely on this symbol name, it's probably fine to never include it in
9325 # preloaded symbol tables.
9326 # Exclude shared library initialization/finalization symbols.
9327 extract_expsyms_cmds=
9330 cygwin* | mingw* | pw32* | cegcc*)
9331 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9332 # When not using gcc, we currently assume that we are using
9333 # Microsoft Visual C++.
9334 if test "$GCC" != yes; then
9339 # we just hope/assume this is gcc and not c89 (= MSVC++)
9349 # On some targets, GNU ld is compatible enough with the native linker
9350 # that we're better off using the native interface for both.
9351 lt_use_gnu_ld_interface=no
9352 if test "$with_gnu_ld" = yes; then
9355 # The AIX port of GNU ld has always aspired to compatibility
9356 # with the native linker. However, as the warning in the GNU ld
9357 # block says, versions before 2.19.5* couldn't really create working
9358 # shared libraries, regardless of the interface used.
9359 case `$LD -v 2>&1` in
9360 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9361 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9362 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9364 lt_use_gnu_ld_interface=yes
9369 lt_use_gnu_ld_interface=yes
9374 if test "$lt_use_gnu_ld_interface" = yes; then
9375 # If archive_cmds runs LD, not CC, wlarc should be empty
9378 # Set some defaults for GNU ld with shared library support. These
9379 # are reset later if shared libraries are not supported. Putting them
9380 # here allows them to be overridden if necessary.
9381 runpath_var=LD_RUN_PATH
9382 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9383 export_dynamic_flag_spec='${wl}--export-dynamic'
9384 # ancient GNU ld didn't support --whole-archive et. al.
9385 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9386 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9388 whole_archive_flag_spec=
9390 supports_anon_versioning=no
9391 case `$LD -v 2>&1` in
9392 *GNU\ gold*) supports_anon_versioning=yes ;;
9393 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9394 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9395 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9396 *\ 2.11.*) ;; # other 2.11 versions
9397 *) supports_anon_versioning=yes ;;
9400 # See if GNU ld supports shared libraries.
9403 # On AIX/PPC, the GNU linker is very broken
9404 if test "$host_cpu" != ia64; then
9408 *** Warning: the GNU linker, at least up to release 2.19, is reported
9409 *** to be unable to reliably create shared libraries on AIX.
9410 *** Therefore, libtool is disabling shared libraries support. If you
9411 *** really care for shared libraries, you may want to install binutils
9412 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9413 *** You will then need to restart the configuration process.
9422 # see comment about AmigaOS4 .so support
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds=''
9427 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)'
9428 hardcode_libdir_flag_spec='-L$libdir'
9429 hardcode_minus_L=yes
9435 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436 allow_undefined_flag=unsupported
9437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9438 # support --undefined. This deserves some investigation. FIXME
9439 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9445 cygwin* | mingw* | pw32* | cegcc*)
9446 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9447 # as there is no search path for DLLs.
9448 hardcode_libdir_flag_spec='-L$libdir'
9449 export_dynamic_flag_spec='${wl}--export-all-symbols'
9450 allow_undefined_flag=unsupported
9451 always_export_symbols=no
9452 enable_shared_with_static_runtimes=yes
9453 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'
9454 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9456 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9458 # If the export-symbols file already is a .def file (1st line
9459 # is EXPORTS), use it as is; otherwise, prepend...
9460 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9461 cp $export_symbols $output_objdir/$soname.def;
9463 echo EXPORTS > $output_objdir/$soname.def;
9464 cat $export_symbols >> $output_objdir/$soname.def;
9466 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9474 link_all_deplibs=yes
9479 hardcode_shlibpath_var=no
9480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9481 export_dynamic_flag_spec='${wl}-E'
9482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9483 # Instead, shared libraries are loaded at an image base (0x10000000 by
9484 # default) and relocated if they conflict, which is a slow very memory
9485 # consuming and fragmenting process. To avoid this, we pick a random,
9486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9487 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9488 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9489 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'
9492 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9494 if test "$host_os" = linux-dietlibc; then
9495 case $cc_basename in
9496 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9499 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9500 && test "$tmp_diet" = no
9502 tmp_addflag=' $pic_flag'
9503 tmp_sharedflag='-shared'
9504 case $cc_basename,$host_cpu in
9505 pgcc*) # Portland Group C compiler
9506 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'
9507 tmp_addflag=' $pic_flag'
9509 pgf77* | pgf90* | pgf95* | pgfortran*)
9510 # Portland Group f77 and f90 compilers
9511 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'
9512 tmp_addflag=' $pic_flag -Mnomain' ;;
9513 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9514 tmp_addflag=' -i_dynamic' ;;
9515 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9516 tmp_addflag=' -i_dynamic -nofor_main' ;;
9517 ifc* | ifort*) # Intel Fortran compiler
9518 tmp_addflag=' -nofor_main' ;;
9519 lf95*) # Lahey Fortran 8.1
9520 whole_archive_flag_spec=
9521 tmp_sharedflag='--shared' ;;
9522 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9523 tmp_sharedflag='-qmkshrobj'
9525 nvcc*) # Cuda Compiler Driver 2.2
9526 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'
9527 compiler_needs_object=yes
9530 case `$CC -V 2>&1 | sed 5q` in
9531 *Sun\ C*) # Sun C 5.9
9532 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'
9533 compiler_needs_object=yes
9534 tmp_sharedflag='-G' ;;
9535 *Sun\ F*) # Sun Fortran 8.3
9536 tmp_sharedflag='-G' ;;
9538 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9540 if test "x$supports_anon_versioning" = xyes; then
9541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9542 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9543 echo "local: *; };" >> $output_objdir/$libname.ver~
9544 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9547 case $cc_basename in
9548 xlf* | bgf* | bgxlf* | mpixlf*)
9549 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9550 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9552 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9553 if test "x$supports_anon_versioning" = xyes; then
9554 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9555 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9556 echo "local: *; };" >> $output_objdir/$libname.ver~
9557 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9568 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9571 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9577 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9581 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9582 *** create shared libraries on Solaris systems. Therefore, libtool
9583 *** is disabling shared libraries support. We urge you to upgrade GNU
9584 *** binutils to release 2.9.1 or newer. Another option is to modify
9585 *** your PATH or compiler configuration so that the native linker is
9586 *** used, and then restart.
9589 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9598 case `$LD -v 2>&1` in
9599 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9603 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9604 *** reliably create shared libraries on SCO systems. Therefore, libtool
9605 *** is disabling shared libraries support. We urge you to upgrade GNU
9606 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9607 *** your PATH or compiler configuration so that the native linker is
9608 *** used, and then restart.
9613 # For security reasons, it is highly recommended that you always
9614 # use absolute paths for naming shared libraries, and exclude the
9615 # DT_RUNPATH tag from executables and libraries. But doing so
9616 # requires that you compile everything twice, which is a pain.
9617 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_shlibpath_var=no
9636 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9637 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9638 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645 if test "$ld_shlibs" = no; then
9647 hardcode_libdir_flag_spec=
9648 export_dynamic_flag_spec=
9649 whole_archive_flag_spec=
9652 # PORTME fill in a description of your system's linker (not GNU ld)
9655 allow_undefined_flag=unsupported
9656 always_export_symbols=yes
9657 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'
9658 # Note: this linker hardcodes the directories in LIBPATH if there
9659 # are no directories specified by -L.
9660 hardcode_minus_L=yes
9661 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9662 # Neither direct hardcoding nor static linking is supported with a
9664 hardcode_direct=unsupported
9669 if test "$host_cpu" = ia64; then
9670 # On IA64, the linker does run time linking by default, so we don't
9671 # have to do anything special.
9672 aix_use_runtimelinking=no
9673 exp_sym_flag='-Bexport'
9676 # If we're using GNU nm, then we don't want the "-C" option.
9677 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9678 # Also, AIX nm treats weak defined symbols like other global
9679 # defined symbols, whereas GNU nm marks them as "W".
9680 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9681 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'
9683 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'
9685 aix_use_runtimelinking=no
9687 # Test if we are trying to use run time linking or normal
9688 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9689 # need to do runtime linking.
9690 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9691 for ld_flag in $LDFLAGS; do
9692 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9693 aix_use_runtimelinking=yes
9700 exp_sym_flag='-bexport'
9701 no_entry_flag='-bnoentry'
9704 # When large executables or shared objects are built, AIX ld can
9705 # have problems creating the table of contents. If linking a library
9706 # or program results in "error TOC overflow" add -mminimal-toc to
9707 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9708 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9712 hardcode_direct_absolute=yes
9713 hardcode_libdir_separator=':'
9714 link_all_deplibs=yes
9715 file_list_spec='${wl}-f,'
9717 if test "$GCC" = yes; then
9718 case $host_os in aix4.[012]|aix4.[012].*)
9719 # We only want to do this on AIX 4.2 and lower, the check
9720 # below for broken collect2 doesn't work under 4.3+
9721 collect2name=`${CC} -print-prog-name=collect2`
9722 if test -f "$collect2name" &&
9723 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9725 # We have reworked collect2
9728 # We have old collect2
9729 hardcode_direct=unsupported
9730 # It fails to find uninstalled libraries when the uninstalled
9731 # path is not listed in the libpath. Setting hardcode_minus_L
9732 # to unsupported forces relinking
9733 hardcode_minus_L=yes
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 hardcode_libdir_separator=
9739 shared_flag='-shared'
9740 if test "$aix_use_runtimelinking" = yes; then
9741 shared_flag="$shared_flag "'${wl}-G'
9745 if test "$host_cpu" = ia64; then
9746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9747 # chokes on -Wl,-G. The following line is correct:
9750 if test "$aix_use_runtimelinking" = yes; then
9751 shared_flag='${wl}-G'
9753 shared_flag='${wl}-bM:SRE'
9758 export_dynamic_flag_spec='${wl}-bexpall'
9759 # It seems that -bexpall does not export symbols beginning with
9760 # underscore (_), so it is better to generate a list of symbols to export.
9761 always_export_symbols=yes
9762 if test "$aix_use_runtimelinking" = yes; then
9763 # Warning - without using the other runtime loading flags (-brtl),
9764 # -berok will link without error, but may produce a broken library.
9765 allow_undefined_flag='-berok'
9766 # Determine the default libpath from the value encoded in an
9768 if test "${lt_cv_aix_libpath+set}" = set; then
9769 aix_libpath=$lt_cv_aix_libpath
9771 if ${lt_cv_aix_libpath_+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9785 if ac_fn_c_try_link "$LINENO"; then :
9787 lt_aix_libpath_sed='
9788 /Import File Strings/,/^$/ {
9790 s/^0 *\([^ ]*\) *$/\1/
9794 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$lt_cv_aix_libpath_"; then
9797 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_="/usr/lib:/lib"
9808 aix_libpath=$lt_cv_aix_libpath_
9811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9812 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"
9814 if test "$host_cpu" = ia64; then
9815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9816 allow_undefined_flag="-z nodefs"
9817 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"
9819 # Determine the default libpath from the value encoded in an
9821 if test "${lt_cv_aix_libpath+set}" = set; then
9822 aix_libpath=$lt_cv_aix_libpath
9824 if ${lt_cv_aix_libpath_+:} false; then :
9825 $as_echo_n "(cached) " >&6
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9838 if ac_fn_c_try_link "$LINENO"; then :
9840 lt_aix_libpath_sed='
9841 /Import File Strings/,/^$/ {
9843 s/^0 *\([^ ]*\) *$/\1/
9847 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9848 # Check for a 64-bit object if we didn't find anything.
9849 if test -z "$lt_cv_aix_libpath_"; then
9850 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9853 rm -f core conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855 if test -z "$lt_cv_aix_libpath_"; then
9856 lt_cv_aix_libpath_="/usr/lib:/lib"
9861 aix_libpath=$lt_cv_aix_libpath_
9864 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9865 # Warning - without using the other run time loading flags,
9866 # -berok will link without error, but may produce a broken library.
9867 no_undefined_flag=' ${wl}-bernotok'
9868 allow_undefined_flag=' ${wl}-berok'
9869 if test "$with_gnu_ld" = yes; then
9870 # We only use this code for GNU lds that support --whole-archive.
9871 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9873 # Exported symbols can be pulled into shared objects from archives
9874 whole_archive_flag_spec='$convenience'
9876 archive_cmds_need_lc=yes
9877 # This is similar to how AIX traditionally builds its shared libraries.
9878 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'
9886 # see comment about AmigaOS4 .so support
9887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9888 archive_expsym_cmds=''
9891 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)'
9892 hardcode_libdir_flag_spec='-L$libdir'
9893 hardcode_minus_L=yes
9899 export_dynamic_flag_spec=-rdynamic
9902 cygwin* | mingw* | pw32* | cegcc*)
9903 # When not using gcc, we currently assume that we are using
9904 # Microsoft Visual C++.
9905 # hardcode_libdir_flag_spec is actually meaningless, as there is
9906 # no search path for DLLs.
9907 case $cc_basename in
9910 hardcode_libdir_flag_spec=' '
9911 allow_undefined_flag=unsupported
9912 always_export_symbols=yes
9914 # Tell ltmain to make .lib files, not .a files.
9916 # Tell ltmain to make .dll files, not .so files.
9918 # FIXME: Setting linknames here is a bad hack.
9919 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9920 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9921 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9923 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9925 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9927 # The linker will not automatically build a static lib if we build a DLL.
9928 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9929 enable_shared_with_static_runtimes=yes
9930 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9931 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9933 old_postinstall_cmds='chmod 644 $oldlib'
9934 postlink_cmds='lt_outputfile="@OUTPUT@"~
9935 lt_tool_outputfile="@TOOL_OUTPUT@"~
9936 case $lt_outputfile in
9939 lt_outputfile="$lt_outputfile.exe"
9940 lt_tool_outputfile="$lt_tool_outputfile.exe"
9943 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9944 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9945 $RM "$lt_outputfile.manifest";
9949 # Assume MSVC wrapper
9950 hardcode_libdir_flag_spec=' '
9951 allow_undefined_flag=unsupported
9952 # Tell ltmain to make .lib files, not .a files.
9954 # Tell ltmain to make .dll files, not .so files.
9956 # FIXME: Setting linknames here is a bad hack.
9957 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9958 # The linker will automatically build a .lib file if we build a DLL.
9959 old_archive_from_new_cmds='true'
9960 # FIXME: Should let the user specify the lib program.
9961 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9962 enable_shared_with_static_runtimes=yes
9967 darwin* | rhapsody*)
9970 archive_cmds_need_lc=no
9972 hardcode_automatic=yes
9973 hardcode_shlibpath_var=unsupported
9974 if test "$lt_cv_ld_force_load" = "yes"; then
9975 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\"`'
9978 whole_archive_flag_spec=''
9980 link_all_deplibs=yes
9981 allow_undefined_flag="$_lt_dar_allow_undefined"
9982 case $cc_basename in
9983 ifort*) _lt_dar_can_shared=yes ;;
9984 *) _lt_dar_can_shared=$GCC ;;
9986 if test "$_lt_dar_can_shared" = "yes"; then
9987 output_verbose_link_cmd=func_echo_all
9988 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9989 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9990 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}"
9991 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}"
10000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10001 hardcode_libdir_flag_spec='-L$libdir'
10002 hardcode_shlibpath_var=no
10005 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10006 # support. Future versions do this automatically, but an explicit c++rt0.o
10007 # does not break anything, and helps significantly (at the cost of a little
10010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10011 hardcode_libdir_flag_spec='-R$libdir'
10012 hardcode_direct=yes
10013 hardcode_shlibpath_var=no
10016 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_direct=yes
10020 hardcode_minus_L=yes
10021 hardcode_shlibpath_var=no
10024 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10025 freebsd* | dragonfly*)
10026 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10027 hardcode_libdir_flag_spec='-R$libdir'
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10033 if test "$GCC" = yes; then
10034 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'
10036 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'
10038 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10039 hardcode_libdir_separator=:
10040 hardcode_direct=yes
10042 # hardcode_minus_L: Not really in the search PATH,
10043 # but as the default location of the library.
10044 hardcode_minus_L=yes
10045 export_dynamic_flag_spec='${wl}-E'
10049 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10050 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10052 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10054 if test "$with_gnu_ld" = no; then
10055 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10056 hardcode_libdir_separator=:
10057 hardcode_direct=yes
10058 hardcode_direct_absolute=yes
10059 export_dynamic_flag_spec='${wl}-E'
10060 # hardcode_minus_L: Not really in the search PATH,
10061 # but as the default location of the library.
10062 hardcode_minus_L=yes
10067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10070 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10089 # Older versions of the 11.00 compiler do not understand -b yet
10090 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10092 $as_echo_n "checking if $CC understands -b... " >&6; }
10093 if ${lt_cv_prog_compiler__b+:} false; then :
10094 $as_echo_n "(cached) " >&6
10096 lt_cv_prog_compiler__b=no
10097 save_LDFLAGS="$LDFLAGS"
10098 LDFLAGS="$LDFLAGS -b"
10099 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10101 # The linker can only warn and ignore the option if not recognized
10102 # So say no if there are warnings
10103 if test -s conftest.err; then
10104 # Append any errors to the config.log.
10105 cat conftest.err 1>&5
10106 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108 if diff conftest.exp conftest.er2 >/dev/null; then
10109 lt_cv_prog_compiler__b=yes
10112 lt_cv_prog_compiler__b=yes
10116 LDFLAGS="$save_LDFLAGS"
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10122 if test x"$lt_cv_prog_compiler__b" = xyes; then
10123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10131 if test "$with_gnu_ld" = no; then
10132 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10133 hardcode_libdir_separator=:
10138 hardcode_shlibpath_var=no
10141 hardcode_direct=yes
10142 hardcode_direct_absolute=yes
10143 export_dynamic_flag_spec='${wl}-E'
10145 # hardcode_minus_L: Not really in the search PATH,
10146 # but as the default location of the library.
10147 hardcode_minus_L=yes
10153 irix5* | irix6* | nonstopux*)
10154 if test "$GCC" = yes; then
10155 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'
10156 # Try to use the -exported_symbol ld option, if it does not
10157 # work, assume that -exports_file does not work either and
10158 # implicitly export all symbols.
10159 # This should be the same for all languages, so no per-tag cache variable.
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10161 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10162 if ${lt_cv_irix_exported_symbol+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 save_LDFLAGS="$LDFLAGS"
10166 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168 /* end confdefs.h. */
10169 int foo (void) { return 0; }
10171 if ac_fn_c_try_link "$LINENO"; then :
10172 lt_cv_irix_exported_symbol=yes
10174 lt_cv_irix_exported_symbol=no
10176 rm -f core conftest.err conftest.$ac_objext \
10177 conftest$ac_exeext conftest.$ac_ext
10178 LDFLAGS="$save_LDFLAGS"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10181 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10182 if test "$lt_cv_irix_exported_symbol" = yes; then
10183 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'
10186 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'
10187 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'
10189 archive_cmds_need_lc='no'
10190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10191 hardcode_libdir_separator=:
10193 link_all_deplibs=yes
10197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10198 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10200 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10202 hardcode_libdir_flag_spec='-R$libdir'
10203 hardcode_direct=yes
10204 hardcode_shlibpath_var=no
10208 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10209 hardcode_direct=yes
10210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10211 hardcode_libdir_separator=:
10212 hardcode_shlibpath_var=no
10219 if test -f /usr/libexec/ld.so; then
10220 hardcode_direct=yes
10221 hardcode_shlibpath_var=no
10222 hardcode_direct_absolute=yes
10223 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10224 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10225 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10226 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10227 export_dynamic_flag_spec='${wl}-E'
10230 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_libdir_flag_spec='-R$libdir'
10235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10236 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_minus_L=yes
10248 allow_undefined_flag=unsupported
10249 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'
10250 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10254 if test "$GCC" = yes; then
10255 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10256 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'
10258 allow_undefined_flag=' -expect_unresolved \*'
10259 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'
10261 archive_cmds_need_lc='no'
10262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10263 hardcode_libdir_separator=:
10266 osf4* | osf5*) # as osf3* with the addition of -msym flag
10267 if test "$GCC" = yes; then
10268 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10269 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'
10270 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272 allow_undefined_flag=' -expect_unresolved \*'
10273 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'
10274 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~
10275 $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'
10277 # Both c and cxx compiler support -rpath directly
10278 hardcode_libdir_flag_spec='-rpath $libdir'
10280 archive_cmds_need_lc='no'
10281 hardcode_libdir_separator=:
10285 no_undefined_flag=' -z defs'
10286 if test "$GCC" = yes; then
10288 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10290 $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'
10292 case `$CC -V 2>&1` in
10295 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10301 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10307 hardcode_libdir_flag_spec='-R$libdir'
10308 hardcode_shlibpath_var=no
10310 solaris2.[0-5] | solaris2.[0-5].*) ;;
10312 # The compiler driver will combine and reorder linker options,
10313 # but understands `-z linker_flag'. GCC discards it without `$wl',
10314 # but is careful enough not to reorder.
10315 # Supported since Solaris 2.6 (maybe 2.5.1?)
10316 if test "$GCC" = yes; then
10317 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10319 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10323 link_all_deplibs=yes
10327 if test "x$host_vendor" = xsequent; then
10328 # Use $CC to link under sequent, because it throws in some extra .o
10329 # files that make .init and .fini sections work.
10330 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10334 hardcode_libdir_flag_spec='-L$libdir'
10335 hardcode_direct=yes
10336 hardcode_minus_L=yes
10337 hardcode_shlibpath_var=no
10341 case $host_vendor in
10343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10344 hardcode_direct=yes # is this really true???
10347 ## LD is ld it makes a PLAMLIB
10348 ## CC just makes a GrossModule.
10349 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10350 reload_cmds='$CC -r -o $output$reload_objs'
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10358 runpath_var='LD_RUN_PATH'
10359 hardcode_shlibpath_var=no
10363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_shlibpath_var=no
10365 export_dynamic_flag_spec='-Bexport'
10369 if test -d /usr/nec; then
10370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371 hardcode_shlibpath_var=no
10372 runpath_var=LD_RUN_PATH
10373 hardcode_runpath_var=yes
10378 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10379 no_undefined_flag='${wl}-z,text'
10380 archive_cmds_need_lc=no
10381 hardcode_shlibpath_var=no
10382 runpath_var='LD_RUN_PATH'
10384 if test "$GCC" = yes; then
10385 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 sysv5* | sco3.2v5* | sco5v6*)
10394 # Note: We can NOT use -z defs as we might desire, because we do not
10395 # link with -lc, and that would cause any symbols used from libc to
10396 # always be unresolved, which means just about no library would
10397 # ever link correctly. If we're not using GNU ld we use -z text
10398 # though, which does catch some bad symbols but isn't as heavy-handed
10400 no_undefined_flag='${wl}-z,text'
10401 allow_undefined_flag='${wl}-z,nodefs'
10402 archive_cmds_need_lc=no
10403 hardcode_shlibpath_var=no
10404 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10405 hardcode_libdir_separator=':'
10406 link_all_deplibs=yes
10407 export_dynamic_flag_spec='${wl}-Bexport'
10408 runpath_var='LD_RUN_PATH'
10410 if test "$GCC" = yes; then
10411 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421 hardcode_libdir_flag_spec='-L$libdir'
10422 hardcode_shlibpath_var=no
10430 if test x$host_vendor = xsni; then
10432 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10433 export_dynamic_flag_spec='${wl}-Blargedynsym'
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10440 $as_echo "$ld_shlibs" >&6; }
10441 test "$ld_shlibs" = no && can_build_shared=no
10443 with_gnu_ld=$with_gnu_ld
10460 # Do we need to explicitly link libc?
10462 case "x$archive_cmds_need_lc" in
10464 # Assume -lc should be added
10465 archive_cmds_need_lc=yes
10467 if test "$enable_shared" = yes && test "$GCC" = yes; then
10468 case $archive_cmds in
10470 # FIXME: we may have to deal with multi-command sequences.
10473 # Test whether the compiler implicitly links with -lc since on some
10474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10475 # to ld, don't add -lc before -lgcc.
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10478 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10479 $as_echo_n "(cached) " >&6
10482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10485 (eval $ac_compile) 2>&5
10487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488 test $ac_status = 0; } 2>conftest.err; then
10491 libobjs=conftest.$ac_objext
10493 wl=$lt_prog_compiler_wl
10494 pic_flag=$lt_prog_compiler_pic
10500 lt_save_allow_undefined_flag=$allow_undefined_flag
10501 allow_undefined_flag=
10502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10503 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10506 test $ac_status = 0; }
10508 lt_cv_archive_cmds_need_lc=no
10510 lt_cv_archive_cmds_need_lc=yes
10512 allow_undefined_flag=$lt_save_allow_undefined_flag
10514 cat conftest.err 1>&5
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10520 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10521 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10680 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10682 if test "$GCC" = yes; then
10684 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10685 *) lt_awk_arg="/^libraries:/" ;;
10688 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10689 *) lt_sed_strip_eq="s,=/,/,g" ;;
10691 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10692 case $lt_search_path_spec in
10694 # if the path contains ";" then we assume it to be the separator
10695 # otherwise default to the standard path separator (i.e. ":") - it is
10696 # assumed that no part of a normal pathname contains ";" but that should
10697 # okay in the real world where ";" in dirpaths is itself problematic.
10698 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10701 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10704 # Ok, now we have the path, separated by spaces, we can step through it
10705 # and add multilib dir if necessary.
10706 lt_tmp_lt_search_path_spec=
10707 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10708 for lt_sys_path in $lt_search_path_spec; do
10709 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10712 test -d "$lt_sys_path" && \
10713 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10716 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10717 BEGIN {RS=" "; FS="/|\n";} {
10720 for (lt_i = NF; lt_i > 0; lt_i--) {
10721 if ($lt_i != "" && $lt_i != ".") {
10722 if ($lt_i == "..") {
10725 if (lt_count == 0) {
10726 lt_foo="/" $lt_i lt_foo;
10733 if (lt_foo != "") { lt_freq[lt_foo]++; }
10734 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10736 # AWK program above erroneously prepends '/' to C:/dos/paths
10739 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10740 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10742 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10744 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10746 library_names_spec=
10747 libname_spec='lib$name'
10751 postuninstall_cmds=
10755 shlibpath_overrides_runpath=unknown
10757 dynamic_linker="$host_os ld.so"
10758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10759 need_lib_prefix=unknown
10760 hardcode_into_libs=no
10762 # when you set need_version to no, make sure it does not cause -set_version
10763 # flags to be left without arguments
10764 need_version=unknown
10768 version_type=linux # correct to gnu/linux during the next big refactor
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10770 shlibpath_var=LIBPATH
10772 # AIX 3 has no versioning support, so we append a major version to the name.
10773 soname_spec='${libname}${release}${shared_ext}$major'
10777 version_type=linux # correct to gnu/linux during the next big refactor
10780 hardcode_into_libs=yes
10781 if test "$host_cpu" = ia64; then
10782 # AIX 5 supports IA64
10783 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10784 shlibpath_var=LD_LIBRARY_PATH
10786 # With GCC up to 2.95.x, collect2 would create an import file
10787 # for dependence libraries. The import file would start with
10788 # the line `#! .'. This would cause the generated library to
10789 # depend on `.', always an invalid library. This was fixed in
10790 # development snapshots of GCC prior to 3.0.
10792 aix4 | aix4.[01] | aix4.[01].*)
10793 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10795 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10798 can_build_shared=no
10802 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10803 # soname into executable. Probably we can add versioning support to
10804 # collect2, so additional links can be useful in future.
10805 if test "$aix_use_runtimelinking" = yes; then
10806 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10807 # instead of lib<name>.a to let people know that these are not
10808 # typical AIX shared libraries.
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 # We preserve .a as extension for shared libraries through AIX4.2
10812 # and later when we are not doing run time linking.
10813 library_names_spec='${libname}${release}.a $libname.a'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10816 shlibpath_var=LIBPATH
10823 # Since July 2007 AmigaOS4 officially supports .so libraries.
10824 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 library_names_spec='$libname.ixlibrary $libname.a'
10829 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10830 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'
10836 library_names_spec='${libname}${shared_ext}'
10837 dynamic_linker="$host_os ld.so"
10838 shlibpath_var=LIBRARY_PATH
10842 version_type=linux # correct to gnu/linux during the next big refactor
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10850 # the default ld.so.conf also contains /usr/contrib/lib and
10851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10852 # libtool to hard-code these into programs
10855 cygwin* | mingw* | pw32* | cegcc*)
10856 version_type=windows
10861 case $GCC,$cc_basename in
10864 library_names_spec='$libname.dll.a'
10865 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10866 postinstall_cmds='base_file=`basename \${file}`~
10867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10868 dldir=$destdir/`dirname \$dlpath`~
10869 test -d \$dldir || mkdir -p \$dldir~
10870 $install_prog $dir/$dlname \$dldir/$dlname~
10871 chmod a+x \$dldir/$dlname~
10872 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10873 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10876 dlpath=$dir/\$dldll~
10878 shlibpath_overrides_runpath=yes
10882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10885 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10888 # MinGW DLLs use traditional 'lib' prefix
10889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10892 # pw32 DLLs use 'pw' prefix rather than 'lib'
10893 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10896 dynamic_linker='Win32 ld.exe'
10901 libname_spec='$name'
10902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10903 library_names_spec='${libname}.dll.lib'
10907 sys_lib_search_path_spec=
10910 for lt_path in $LIB
10913 # Let DOS variable expansion print the short 8.3 style file name.
10914 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10915 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10918 # Convert to MSYS style.
10919 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10922 # Convert to unix form, then to dos form, then back to unix form
10923 # but this time dos style (no spaces!) so that the unix form looks
10924 # like /cygdrive/c/PROGRA~1:/cygdr...
10925 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10926 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10927 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10930 sys_lib_search_path_spec="$LIB"
10931 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10932 # It is most probably a Windows format PATH.
10933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10935 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10937 # FIXME: find the short name or the path components, as spaces are
10938 # common. (e.g. "Program Files" -> "PROGRA~1")
10942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10943 postinstall_cmds='base_file=`basename \${file}`~
10944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10945 dldir=$destdir/`dirname \$dlpath`~
10946 test -d \$dldir || mkdir -p \$dldir~
10947 $install_prog $dir/$dlname \$dldir/$dlname'
10948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10949 dlpath=$dir/\$dldll~
10951 shlibpath_overrides_runpath=yes
10952 dynamic_linker='Win32 link.exe'
10956 # Assume MSVC wrapper
10957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10958 dynamic_linker='Win32 ld.exe'
10961 # FIXME: first we should search . and the directory the executable is in
10965 darwin* | rhapsody*)
10966 dynamic_linker="$host_os dyld"
10967 version_type=darwin
10970 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10971 soname_spec='${libname}${release}${major}$shared_ext'
10972 shlibpath_overrides_runpath=yes
10973 shlibpath_var=DYLD_LIBRARY_PATH
10974 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10976 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10981 version_type=linux # correct to gnu/linux during the next big refactor
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 shlibpath_var=LD_LIBRARY_PATH
10989 freebsd* | dragonfly*)
10990 # DragonFly does not have aout. When/if they implement a new
10991 # versioning mechanism, adjust this.
10992 if test -x /usr/bin/objformat; then
10993 objformat=`/usr/bin/objformat`
10996 freebsd[23].*) objformat=aout ;;
10997 *) objformat=elf ;;
11000 version_type=freebsd-$objformat
11001 case $version_type in
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11012 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11017 freebsd3.[01]* | freebsdelf3.[01]*)
11018 shlibpath_overrides_runpath=yes
11019 hardcode_into_libs=yes
11021 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11022 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11023 shlibpath_overrides_runpath=no
11024 hardcode_into_libs=yes
11026 *) # from 4.6 on, and DragonFly
11027 shlibpath_overrides_runpath=yes
11028 hardcode_into_libs=yes
11034 version_type=linux # correct to gnu/linux during the next big refactor
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=no
11041 hardcode_into_libs=yes
11045 version_type=linux # correct to gnu/linux during the next big refactor
11048 dynamic_linker="$host_os runtime_loader"
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 shlibpath_var=LIBRARY_PATH
11052 shlibpath_overrides_runpath=yes
11053 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11054 hardcode_into_libs=yes
11057 hpux9* | hpux10* | hpux11*)
11058 # Give a soname corresponding to the major version so that dld.sl refuses to
11059 # link against other versions.
11066 hardcode_into_libs=yes
11067 dynamic_linker="$host_os dld.so"
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 if test "X$HPUX_IA64_MODE" = X32; then
11073 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11075 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11081 hardcode_into_libs=yes
11082 dynamic_linker="$host_os dld.sl"
11083 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11092 dynamic_linker="$host_os dld.sl"
11093 shlibpath_var=SHLIB_PATH
11094 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 soname_spec='${libname}${release}${shared_ext}$major'
11099 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11100 postinstall_cmds='chmod 555 $lib'
11101 # or fails outright, so override atomically:
11102 install_override_mode=555
11106 version_type=linux # correct to gnu/linux during the next big refactor
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110 soname_spec='${libname}${release}${shared_ext}$major'
11111 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11112 shlibpath_var=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath=no
11114 hardcode_into_libs=yes
11117 irix5* | irix6* | nonstopux*)
11119 nonstopux*) version_type=nonstopux ;;
11121 if test "$lt_cv_prog_gnu_ld" = yes; then
11122 version_type=linux # correct to gnu/linux during the next big refactor
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11132 irix5* | nonstopux*)
11133 libsuff= shlibsuff=
11136 case $LD in # libtool.m4 will add one of these switches to LD
11137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11138 libsuff= shlibsuff= libmagic=32-bit;;
11139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11140 libsuff=32 shlibsuff=N32 libmagic=N32;;
11141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11142 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11143 *) libsuff= shlibsuff= libmagic=never-match;;
11147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11148 shlibpath_overrides_runpath=no
11149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11151 hardcode_into_libs=yes
11154 # No shared lib support for Linux oldld, aout, or coff.
11155 linux*oldld* | linux*aout* | linux*coff*)
11159 # This must be glibc/ELF.
11160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11161 version_type=linux # correct to gnu/linux during the next big refactor
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=no
11170 # Some binutils ld are patched to set DT_RUNPATH
11171 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11172 $as_echo_n "(cached) " >&6
11174 lt_cv_shlibpath_overrides_runpath=no
11175 save_LDFLAGS=$LDFLAGS
11176 save_libdir=$libdir
11177 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11178 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11190 if ac_fn_c_try_link "$LINENO"; then :
11191 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11192 lt_cv_shlibpath_overrides_runpath=yes
11195 rm -f core conftest.err conftest.$ac_objext \
11196 conftest$ac_exeext conftest.$ac_ext
11197 LDFLAGS=$save_LDFLAGS
11198 libdir=$save_libdir
11202 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11204 # This implies no fast_install, which is unacceptable.
11205 # Some rework will be needed to allow for fast_install
11206 # before this can be enabled.
11207 hardcode_into_libs=yes
11209 # Append ld.so.conf contents to the search path
11210 if test -f /etc/ld.so.conf; then
11211 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' ' '`
11212 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11215 # We used to test for /lib/ld.so.1 and disable shared libraries on
11216 # powerpc, because MkLinux only supported shared libraries with the
11217 # GNU dynamic linker. Since this was broken with cross compilers,
11218 # most powerpc-linux boxes support dynamic linking these days and
11219 # people can always --disable-shared, the test was removed, and we
11220 # assume the GNU/Linux dynamic linker is in use.
11221 dynamic_linker='GNU/Linux ld.so'
11228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231 dynamic_linker='NetBSD (a.out) ld.so'
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 dynamic_linker='NetBSD ld.elf_so'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 shlibpath_overrides_runpath=yes
11239 hardcode_into_libs=yes
11243 version_type=linux # correct to gnu/linux during the next big refactor
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11245 shlibpath_var=LD_LIBRARY_PATH
11246 shlibpath_overrides_runpath=yes
11253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11254 soname_spec='${libname}${release}${shared_ext}$major'
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=no
11257 hardcode_into_libs=yes
11258 dynamic_linker='ldqnx.so'
11263 sys_lib_dlsearch_path_spec="/usr/lib"
11265 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11267 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11268 *) need_version=no ;;
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11275 openbsd2.[89] | openbsd2.[89].*)
11276 shlibpath_overrides_runpath=no
11279 shlibpath_overrides_runpath=yes
11283 shlibpath_overrides_runpath=yes
11288 libname_spec='$name'
11291 library_names_spec='$libname${shared_ext} $libname.a'
11292 dynamic_linker='OS/2 ld.exe'
11293 shlibpath_var=LIBPATH
11296 osf3* | osf4* | osf5*)
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302 shlibpath_var=LD_LIBRARY_PATH
11303 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11304 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11312 version_type=linux # correct to gnu/linux during the next big refactor
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 shlibpath_overrides_runpath=yes
11319 hardcode_into_libs=yes
11320 # ldd complains unless libraries are executable
11321 postinstall_cmds='chmod +x $lib'
11326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11327 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11328 shlibpath_var=LD_LIBRARY_PATH
11329 shlibpath_overrides_runpath=yes
11330 if test "$with_gnu_ld" = yes; then
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11339 soname_spec='${libname}${release}${shared_ext}$major'
11340 shlibpath_var=LD_LIBRARY_PATH
11341 case $host_vendor in
11343 shlibpath_overrides_runpath=no
11345 runpath_var=LD_RUN_PATH
11353 shlibpath_overrides_runpath=no
11354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11360 if test -d /usr/nec ;then
11361 version_type=linux # correct to gnu/linux during the next big refactor
11362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11363 soname_spec='$libname${shared_ext}.$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11369 version_type=freebsd-elf
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 shlibpath_var=LD_LIBRARY_PATH
11375 shlibpath_overrides_runpath=yes
11376 hardcode_into_libs=yes
11377 if test "$with_gnu_ld" = yes; then
11378 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11387 sys_lib_dlsearch_path_spec='/usr/lib'
11391 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11392 version_type=linux # correct to gnu/linux during the next big refactor
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 shlibpath_var=LD_LIBRARY_PATH
11397 shlibpath_overrides_runpath=no
11398 hardcode_into_libs=yes
11402 version_type=linux # correct to gnu/linux during the next big refactor
11403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404 soname_spec='${libname}${release}${shared_ext}$major'
11405 shlibpath_var=LD_LIBRARY_PATH
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11413 $as_echo "$dynamic_linker" >&6; }
11414 test "$dynamic_linker" = no && can_build_shared=no
11416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11417 if test "$GCC" = yes; then
11418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11422 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11425 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11520 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11522 if test -n "$hardcode_libdir_flag_spec" ||
11523 test -n "$runpath_var" ||
11524 test "X$hardcode_automatic" = "Xyes" ; then
11526 # We can hardcode non-existent directories.
11527 if test "$hardcode_direct" != no &&
11528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11529 # have to relink, otherwise we might link with an installed library
11530 # when we should be linking with a yet-to-be-installed one
11531 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11532 test "$hardcode_minus_L" != no; then
11533 # Linking always hardcodes the temporary library directory.
11534 hardcode_action=relink
11536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11537 hardcode_action=immediate
11540 # We cannot hardcode anything, or else we can only hardcode existing
11542 hardcode_action=unsupported
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11545 $as_echo "$hardcode_action" >&6; }
11547 if test "$hardcode_action" = relink ||
11548 test "$inherit_rpath" = yes; then
11549 # Fast installation is not supported
11550 enable_fast_install=no
11551 elif test "$shlibpath_overrides_runpath" = yes ||
11552 test "$enable_shared" = no; then
11553 # Fast installation is not necessary
11554 enable_fast_install=needless
11562 if test "x$enable_dlopen" != xyes; then
11563 enable_dlopen=unknown
11564 enable_dlopen_self=unknown
11565 enable_dlopen_self_static=unknown
11572 lt_cv_dlopen="load_add_on"
11574 lt_cv_dlopen_self=yes
11577 mingw* | pw32* | cegcc*)
11578 lt_cv_dlopen="LoadLibrary"
11583 lt_cv_dlopen="dlopen"
11588 # if libdl is installed we need to link against it
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11590 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11591 if ${ac_cv_lib_dl_dlopen+:} false; then :
11592 $as_echo_n "(cached) " >&6
11594 ac_check_lib_save_LIBS=$LIBS
11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11614 if ac_fn_c_try_link "$LINENO"; then :
11615 ac_cv_lib_dl_dlopen=yes
11617 ac_cv_lib_dl_dlopen=no
11619 rm -f core conftest.err conftest.$ac_objext \
11620 conftest$ac_exeext conftest.$ac_ext
11621 LIBS=$ac_check_lib_save_LIBS
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11624 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11625 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11626 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11629 lt_cv_dlopen="dyld"
11631 lt_cv_dlopen_self=yes
11638 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11639 if test "x$ac_cv_func_shl_load" = xyes; then :
11640 lt_cv_dlopen="shl_load"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11643 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11644 if ${ac_cv_lib_dld_shl_load+:} false; then :
11645 $as_echo_n "(cached) " >&6
11647 ac_check_lib_save_LIBS=$LIBS
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11652 /* Override any GCC internal prototype to avoid an error.
11653 Use char because int might match the return type of a GCC
11654 builtin and then its argument prototype would still apply. */
11662 return shl_load ();
11667 if ac_fn_c_try_link "$LINENO"; then :
11668 ac_cv_lib_dld_shl_load=yes
11670 ac_cv_lib_dld_shl_load=no
11672 rm -f core conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11677 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11678 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11679 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11681 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11682 if test "x$ac_cv_func_dlopen" = xyes; then :
11683 lt_cv_dlopen="dlopen"
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11686 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11687 if ${ac_cv_lib_dl_dlopen+:} false; then :
11688 $as_echo_n "(cached) " >&6
11690 ac_check_lib_save_LIBS=$LIBS
11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11693 /* end confdefs.h. */
11695 /* Override any GCC internal prototype to avoid an error.
11696 Use char because int might match the return type of a GCC
11697 builtin and then its argument prototype would still apply. */
11710 if ac_fn_c_try_link "$LINENO"; then :
11711 ac_cv_lib_dl_dlopen=yes
11713 ac_cv_lib_dl_dlopen=no
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11717 LIBS=$ac_check_lib_save_LIBS
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11720 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11721 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11722 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11725 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11726 if ${ac_cv_lib_svld_dlopen+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 ac_check_lib_save_LIBS=$LIBS
11730 LIBS="-lsvld $LIBS"
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 /* Override any GCC internal prototype to avoid an error.
11735 Use char because int might match the return type of a GCC
11736 builtin and then its argument prototype would still apply. */
11749 if ac_fn_c_try_link "$LINENO"; then :
11750 ac_cv_lib_svld_dlopen=yes
11752 ac_cv_lib_svld_dlopen=no
11754 rm -f core conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
11756 LIBS=$ac_check_lib_save_LIBS
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11759 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11760 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11764 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11765 if ${ac_cv_lib_dld_dld_link+:} false; then :
11766 $as_echo_n "(cached) " >&6
11768 ac_check_lib_save_LIBS=$LIBS
11770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771 /* end confdefs.h. */
11773 /* Override any GCC internal prototype to avoid an error.
11774 Use char because int might match the return type of a GCC
11775 builtin and then its argument prototype would still apply. */
11783 return dld_link ();
11788 if ac_fn_c_try_link "$LINENO"; then :
11789 ac_cv_lib_dld_dld_link=yes
11791 ac_cv_lib_dld_dld_link=no
11793 rm -f core conftest.err conftest.$ac_objext \
11794 conftest$ac_exeext conftest.$ac_ext
11795 LIBS=$ac_check_lib_save_LIBS
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11798 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11799 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11800 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11821 if test "x$lt_cv_dlopen" != xno; then
11827 case $lt_cv_dlopen in
11829 save_CPPFLAGS="$CPPFLAGS"
11830 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11832 save_LDFLAGS="$LDFLAGS"
11833 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11836 LIBS="$lt_cv_dlopen_libs $LIBS"
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11839 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11840 if ${lt_cv_dlopen_self+:} false; then :
11841 $as_echo_n "(cached) " >&6
11843 if test "$cross_compiling" = yes; then :
11844 lt_cv_dlopen_self=cross
11846 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11847 lt_status=$lt_dlunknown
11848 cat > conftest.$ac_ext <<_LT_EOF
11849 #line $LINENO "configure"
11850 #include "confdefs.h"
11859 # define LT_DLGLOBAL RTLD_GLOBAL
11862 # define LT_DLGLOBAL DL_GLOBAL
11864 # define LT_DLGLOBAL 0
11868 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11869 find out it does not work in some platform. */
11870 #ifndef LT_DLLAZY_OR_NOW
11872 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11875 # define LT_DLLAZY_OR_NOW DL_LAZY
11878 # define LT_DLLAZY_OR_NOW RTLD_NOW
11881 # define LT_DLLAZY_OR_NOW DL_NOW
11883 # define LT_DLLAZY_OR_NOW 0
11890 /* When -fvisbility=hidden is used, assume the code has been annotated
11891 correspondingly for the symbols needed. */
11892 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11893 int fnord () __attribute__((visibility("default")));
11896 int fnord () { return 42; }
11899 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11900 int status = $lt_dlunknown;
11904 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11907 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11908 else puts (dlerror ());
11910 /* dlclose (self); */
11918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11919 (eval $ac_link) 2>&5
11921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11922 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11923 (./conftest; exit; ) >&5 2>/dev/null
11925 case x$lt_status in
11926 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11927 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11928 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11931 # compilation failed
11932 lt_cv_dlopen_self=no
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11940 $as_echo "$lt_cv_dlopen_self" >&6; }
11942 if test "x$lt_cv_dlopen_self" = xyes; then
11943 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11945 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11946 if ${lt_cv_dlopen_self_static+:} false; then :
11947 $as_echo_n "(cached) " >&6
11949 if test "$cross_compiling" = yes; then :
11950 lt_cv_dlopen_self_static=cross
11952 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11953 lt_status=$lt_dlunknown
11954 cat > conftest.$ac_ext <<_LT_EOF
11955 #line $LINENO "configure"
11956 #include "confdefs.h"
11965 # define LT_DLGLOBAL RTLD_GLOBAL
11968 # define LT_DLGLOBAL DL_GLOBAL
11970 # define LT_DLGLOBAL 0
11974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11975 find out it does not work in some platform. */
11976 #ifndef LT_DLLAZY_OR_NOW
11978 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11981 # define LT_DLLAZY_OR_NOW DL_LAZY
11984 # define LT_DLLAZY_OR_NOW RTLD_NOW
11987 # define LT_DLLAZY_OR_NOW DL_NOW
11989 # define LT_DLLAZY_OR_NOW 0
11996 /* When -fvisbility=hidden is used, assume the code has been annotated
11997 correspondingly for the symbols needed. */
11998 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11999 int fnord () __attribute__((visibility("default")));
12002 int fnord () { return 42; }
12005 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12006 int status = $lt_dlunknown;
12010 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12013 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12014 else puts (dlerror ());
12016 /* dlclose (self); */
12024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12025 (eval $ac_link) 2>&5
12027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12029 (./conftest; exit; ) >&5 2>/dev/null
12031 case x$lt_status in
12032 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12033 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12034 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12037 # compilation failed
12038 lt_cv_dlopen_self_static=no
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12046 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12049 CPPFLAGS="$save_CPPFLAGS"
12050 LDFLAGS="$save_LDFLAGS"
12055 case $lt_cv_dlopen_self in
12056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12057 *) enable_dlopen_self=unknown ;;
12060 case $lt_cv_dlopen_self_static in
12061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12062 *) enable_dlopen_self_static=unknown ;;
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12085 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12086 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12087 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12088 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12090 $as_echo "yes" >&6; }
12092 # FIXME - insert some real tests, host_os isn't really good enough
12095 if test -n "$STRIP" ; then
12096 striplib="$STRIP -x"
12097 old_striplib="$STRIP -S"
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12099 $as_echo "yes" >&6; }
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102 $as_echo "no" >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12123 # Report which library types will actually be built
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12125 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12127 $as_echo "$can_build_shared" >&6; }
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12130 $as_echo_n "checking whether to build shared libraries... " >&6; }
12131 test "$can_build_shared" = "no" && enable_shared=no
12133 # On AIX, shared libraries and static libraries use the same namespace, and
12134 # are all built from PIC.
12137 test "$enable_shared" = yes && enable_static=no
12138 if test -n "$RANLIB"; then
12139 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140 postinstall_cmds='$RANLIB $lib'
12145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146 test "$enable_shared" = yes && enable_static=no
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12151 $as_echo "$enable_shared" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12154 $as_echo_n "checking whether to build static libraries... " >&6; }
12155 # Make sure either enable_shared or enable_static is yes.
12156 test "$enable_shared" = yes || enable_static=yes
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12158 $as_echo "$enable_static" >&6; }
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186 ac_config_commands="$ac_config_commands libtool"
12191 # Only expand once:
12196 # Check for library functions that SQLite can optionally use.
12197 for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12201 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12202 cat >>confdefs.h <<_ACEOF
12203 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12209 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12210 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12216 cat >>confdefs.h <<_ACEOF
12217 #define HAVE_DECL_STRERROR_R $ac_have_decl
12220 for ac_func in strerror_r
12222 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12223 if test "x$ac_cv_func_strerror_r" = xyes; then :
12224 cat >>confdefs.h <<_ACEOF
12225 #define HAVE_STRERROR_R 1
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12232 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
12233 if ${ac_cv_func_strerror_r_char_p+:} false; then :
12234 $as_echo_n "(cached) " >&6
12237 ac_cv_func_strerror_r_char_p=no
12238 if test $ac_cv_have_decl_strerror_r = yes; then
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 $ac_includes_default
12247 char x = *strerror_r (0, buf, sizeof buf);
12248 char *p = strerror_r (0, buf, sizeof buf);
12255 if ac_fn_c_try_compile "$LINENO"; then :
12256 ac_cv_func_strerror_r_char_p=yes
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 # strerror_r is not declared. Choose between
12261 # systems that have relatively inaccessible declarations for the
12262 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
12263 # former has a strerror_r that returns char*, while the latter
12264 # has a strerror_r that returns `int'.
12265 # This test should segfault on the DEC system.
12266 if test "$cross_compiling" = yes; then :
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 extern char *strerror_r ();
12277 char x = *strerror_r (0, buf, sizeof buf);
12278 return ! isalpha (x);
12283 if ac_fn_c_try_run "$LINENO"; then :
12284 ac_cv_func_strerror_r_char_p=yes
12286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12287 conftest.$ac_objext conftest.beam conftest.$ac_ext
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12294 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12295 if test $ac_cv_func_strerror_r_char_p = yes; then
12297 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12302 ac_config_files="$ac_config_files Makefile sqlite3.pc"
12306 #-----------------------------------------------------------------------
12307 # --enable-readline
12309 # Check whether --enable-readline was given.
12310 if test "${enable_readline+set}" = set; then :
12311 enableval=$enable_readline;
12313 enable_readline=yes
12316 if test x"$enable_readline" != xno ; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12320 $as_echo_n "checking for library containing tgetent... " >&6; }
12321 if ${ac_cv_search_tgetent+:} false; then :
12322 $as_echo_n "(cached) " >&6
12324 ac_func_search_save_LIBS=$LIBS
12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12326 /* end confdefs.h. */
12328 /* Override any GCC internal prototype to avoid an error.
12329 Use char because int might match the return type of a GCC
12330 builtin and then its argument prototype would still apply. */
12343 for ac_lib in '' curses ncurses ncursesw; do
12344 if test -z "$ac_lib"; then
12345 ac_res="none required"
12348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12350 if ac_fn_c_try_link "$LINENO"; then :
12351 ac_cv_search_tgetent=$ac_res
12353 rm -f core conftest.err conftest.$ac_objext \
12355 if ${ac_cv_search_tgetent+:} false; then :
12359 if ${ac_cv_search_tgetent+:} false; then :
12362 ac_cv_search_tgetent=no
12364 rm conftest.$ac_ext
12365 LIBS=$ac_func_search_save_LIBS
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12368 $as_echo "$ac_cv_search_tgetent" >&6; }
12369 ac_res=$ac_cv_search_tgetent
12370 if test "$ac_res" != no; then :
12371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12376 $as_echo_n "checking for library containing readline... " >&6; }
12377 if ${ac_cv_search_readline+:} false; then :
12378 $as_echo_n "(cached) " >&6
12380 ac_func_search_save_LIBS=$LIBS
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12384 /* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
12394 return readline ();
12399 for ac_lib in '' readline; do
12400 if test -z "$ac_lib"; then
12401 ac_res="none required"
12404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 ac_cv_search_readline=$ac_res
12409 rm -f core conftest.err conftest.$ac_objext \
12411 if ${ac_cv_search_readline+:} false; then :
12415 if ${ac_cv_search_readline+:} false; then :
12418 ac_cv_search_readline=no
12420 rm conftest.$ac_ext
12421 LIBS=$ac_func_search_save_LIBS
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12424 $as_echo "$ac_cv_search_readline" >&6; }
12425 ac_res=$ac_cv_search_readline
12426 if test "$ac_res" != no; then :
12427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12433 for ac_func in readline
12435 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
12436 if test "x$ac_cv_func_readline" = xyes; then :
12437 cat >>confdefs.h <<_ACEOF
12438 #define HAVE_READLINE 1
12444 READLINE_LIBS=$LIBS
12448 #-----------------------------------------------------------------------
12450 #-----------------------------------------------------------------------
12451 # --enable-threadsafe
12453 # Check whether --enable-threadsafe was given.
12454 if test "${enable_threadsafe+set}" = set; then :
12455 enableval=$enable_threadsafe;
12457 enable_threadsafe=yes
12460 THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
12461 if test x"$enable_threadsafe" != "xno"; then
12462 THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12464 $as_echo_n "checking for library containing pthread_create... " >&6; }
12465 if ${ac_cv_search_pthread_create+:} false; then :
12466 $as_echo_n "(cached) " >&6
12468 ac_func_search_save_LIBS=$LIBS
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12472 /* Override any GCC internal prototype to avoid an error.
12473 Use char because int might match the return type of a GCC
12474 builtin and then its argument prototype would still apply. */
12478 char pthread_create ();
12482 return pthread_create ();
12487 for ac_lib in '' pthread; do
12488 if test -z "$ac_lib"; then
12489 ac_res="none required"
12492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12494 if ac_fn_c_try_link "$LINENO"; then :
12495 ac_cv_search_pthread_create=$ac_res
12497 rm -f core conftest.err conftest.$ac_objext \
12499 if ${ac_cv_search_pthread_create+:} false; then :
12503 if ${ac_cv_search_pthread_create+:} false; then :
12506 ac_cv_search_pthread_create=no
12508 rm conftest.$ac_ext
12509 LIBS=$ac_func_search_save_LIBS
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12512 $as_echo "$ac_cv_search_pthread_create" >&6; }
12513 ac_res=$ac_cv_search_pthread_create
12514 if test "$ac_res" != no; then :
12515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12521 #-----------------------------------------------------------------------
12523 #-----------------------------------------------------------------------
12524 # --enable-dynamic-extensions
12526 # Check whether --enable-dynamic-extensions was given.
12527 if test "${enable_dynamic_extensions+set}" = set; then :
12528 enableval=$enable_dynamic_extensions;
12530 enable_dynamic_extensions=yes
12533 if test x"$enable_dynamic_extensions" != "xno"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12535 $as_echo_n "checking for library containing dlopen... " >&6; }
12536 if ${ac_cv_search_dlopen+:} false; then :
12537 $as_echo_n "(cached) " >&6
12539 ac_func_search_save_LIBS=$LIBS
12540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12541 /* end confdefs.h. */
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12558 for ac_lib in '' dl; do
12559 if test -z "$ac_lib"; then
12560 ac_res="none required"
12563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12565 if ac_fn_c_try_link "$LINENO"; then :
12566 ac_cv_search_dlopen=$ac_res
12568 rm -f core conftest.err conftest.$ac_objext \
12570 if ${ac_cv_search_dlopen+:} false; then :
12574 if ${ac_cv_search_dlopen+:} false; then :
12577 ac_cv_search_dlopen=no
12579 rm conftest.$ac_ext
12580 LIBS=$ac_func_search_save_LIBS
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12583 $as_echo "$ac_cv_search_dlopen" >&6; }
12584 ac_res=$ac_cv_search_dlopen
12585 if test "$ac_res" != no; then :
12586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12591 DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
12594 $as_echo_n "checking for whether to support dynamic extensions... " >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
12596 $as_echo "$enable_dynamic_extensions" >&6; }
12598 #-----------------------------------------------------------------------
12600 for ac_func in posix_fallocate
12602 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
12603 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
12604 cat >>confdefs.h <<_ACEOF
12605 #define HAVE_POSIX_FALLOCATE 1
12612 #-----------------------------------------------------------------------
12613 # UPDATE: Maybe it's better if users just set CFLAGS before invoking
12614 # configure. This option doesn't really add much...
12616 # --enable-tempstore
12618 # AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
12619 # [--enable-tempstore],
12620 # [in-memory temporary tables (never, no, yes, always) [default=no]])],
12621 # [], [enable_tempstore=no])
12622 # AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
12623 # case "$enable_tempstore" in
12624 # never ) TEMP_STORE=0 ;;
12625 # no ) TEMP_STORE=1 ;;
12626 # always ) TEMP_STORE=3 ;;
12627 # yes ) TEMP_STORE=3 ;;
12630 # enable_tempstore=yes
12633 # AC_MSG_RESULT($enable_tempstore)
12634 # AC_SUBST(TEMP_STORE)
12635 #-----------------------------------------------------------------------
12637 cat >confcache <<\_ACEOF
12638 # This file is a shell script that caches the results of configure
12639 # tests run on this system so they can be shared between configure
12640 # scripts and configure runs, see configure's option --config-cache.
12641 # It is not useful on other systems. If it contains results you don't
12642 # want to keep, you may remove or edit it.
12644 # config.status only pays attention to the cache file if you give it
12645 # the --recheck option to rerun configure.
12647 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12648 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12649 # following values.
12653 # The following way of writing the cache mishandles newlines in values,
12654 # but we know of no workaround that is simple, portable, and efficient.
12655 # So, we kill variables containing newlines.
12656 # Ultrix sh set writes to stderr and can't be redirected directly,
12657 # and sets the high bit in the cache file unless we assign to the vars.
12659 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12660 eval ac_val=\$$ac_var
12664 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12665 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12668 _ | IFS | as_nl) ;; #(
12669 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12670 *) { eval $ac_var=; unset $ac_var;} ;;
12676 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12677 *${as_nl}ac_space=\ *)
12678 # `set' does not quote correctly, so add quotes: double-quote
12679 # substitution turns \\\\ into \\, and sed turns \\ into \.
12682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12685 # `set' quotes correctly as required by POSIX, so do not add quotes.
12686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12697 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12699 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12700 if test -w "$cache_file"; then
12701 if test "x$cache_file" != "x/dev/null"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12703 $as_echo "$as_me: updating cache $cache_file" >&6;}
12704 if test ! -f "$cache_file" || test -h "$cache_file"; then
12705 cat confcache >"$cache_file"
12707 case $cache_file in #(
12709 mv -f confcache "$cache_file"$$ &&
12710 mv -f "$cache_file"$$ "$cache_file" ;; #(
12712 mv -f confcache "$cache_file" ;;
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12718 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12723 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12724 # Let make expand exec_prefix.
12725 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12727 # Transform confdefs.h into DEFS.
12728 # Protect against shell expansion while executing Makefile rules.
12729 # Protect against Makefile macro expansion.
12731 # If the first sed substitution is executed (which looks for macros that
12732 # take arguments), then branch to the quote section. Otherwise,
12733 # look for a macro that doesn't take arguments.
12743 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12745 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12749 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12762 DEFS=`sed -n "$ac_script" confdefs.h`
12768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12769 # 1. Remove the extension, and $U if already installed.
12770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12771 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12773 # will be set to the directory where LIBOBJS objects are built.
12774 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12775 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12777 LIBOBJS=$ac_libobjs
12779 LTLIBOBJS=$ac_ltlibobjs
12782 if test -n "$EXEEXT"; then
12784 am__EXEEXT_FALSE='#'
12786 am__EXEEXT_TRUE='#'
12790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12791 as_fn_error $? "conditional \"AMDEP\" was never defined.
12792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12798 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12799 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12803 : "${CONFIG_STATUS=./config.status}"
12805 ac_clean_files_save=$ac_clean_files
12806 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12808 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12810 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12812 # Generated by $as_me.
12813 # Run this file to recreate the current configuration.
12814 # Compiler output produced by configure, useful for debugging
12815 # configure, is in config.log if it exists.
12818 ac_cs_recheck=false
12821 SHELL=\${CONFIG_SHELL-$SHELL}
12824 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12825 ## -------------------- ##
12826 ## M4sh Initialization. ##
12827 ## -------------------- ##
12829 # Be more Bourne compatible
12830 DUALCASE=1; export DUALCASE # for MKS sh
12831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12834 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12835 # is contrary to our usage. Disable this feature.
12836 alias -g '${1+"$@"}'='"$@"'
12837 setopt NO_GLOB_SUBST
12839 case `(set -o) 2>/dev/null` in #(
12851 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12852 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12853 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12854 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12855 # Prefer a ksh shell builtin over an external printf program on Solaris,
12856 # but without wasting forks for bash or zsh.
12857 if test -z "$BASH_VERSION$ZSH_VERSION" \
12858 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12859 as_echo='print -r --'
12860 as_echo_n='print -rn --'
12861 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12862 as_echo='printf %s\n'
12863 as_echo_n='printf %s'
12865 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12866 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12867 as_echo_n='/usr/ucb/echo -n'
12869 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12870 as_echo_n_body='eval
12874 expr "X$arg" : "X\\(.*\\)$as_nl";
12875 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12877 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12879 export as_echo_n_body
12880 as_echo_n='sh -c $as_echo_n_body as_echo'
12882 export as_echo_body
12883 as_echo='sh -c $as_echo_body as_echo'
12886 # The user is always right.
12887 if test "${PATH_SEPARATOR+set}" != set; then
12889 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12890 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12897 # We need space, tab and new line, in precisely that order. Quoting is
12898 # there to prevent editors from complaining about space-tab.
12899 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12900 # splitting by setting IFS to empty value.)
12903 # Find who we are. Look in the path if we contain no directory separator.
12906 *[\\/]* ) as_myself=$0 ;;
12907 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12911 test -z "$as_dir" && as_dir=.
12912 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12918 # We did not find ourselves, most probably we were run as `sh COMMAND'
12919 # in which case we are not to be found in the path.
12920 if test "x$as_myself" = x; then
12923 if test ! -f "$as_myself"; then
12924 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12928 # Unset variables that we do not need and which cause bugs (e.g. in
12929 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12930 # suppresses any "Segmentation fault" message there. '((' could
12931 # trigger a bug in pdksh 5.2.14.
12932 for as_var in BASH_ENV ENV MAIL MAILPATH
12933 do eval test x\${$as_var+set} = xset \
12934 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12947 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12950 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12951 # ----------------------------------------
12952 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12953 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12954 # script with STATUS, using 1 if that was 0.
12957 as_status=$1; test $as_status -eq 0 && as_status=1
12959 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12960 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12962 $as_echo "$as_me: error: $2" >&2
12963 as_fn_exit $as_status
12967 # as_fn_set_status STATUS
12968 # -----------------------
12969 # Set $? to STATUS, without forking.
12970 as_fn_set_status ()
12973 } # as_fn_set_status
12975 # as_fn_exit STATUS
12976 # -----------------
12977 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12981 as_fn_set_status $1
12987 # Portably unset VAR.
12990 { eval $1=; unset $1;}
12992 as_unset=as_fn_unset
12993 # as_fn_append VAR VALUE
12994 # ----------------------
12995 # Append the text in VALUE to the end of the definition contained in VAR. Take
12996 # advantage of any shell optimizations that allow amortized linear growth over
12997 # repeated appends, instead of the typical quadratic growth present in naive
12999 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13000 eval 'as_fn_append ()
13011 # as_fn_arith ARG...
13012 # ------------------
13013 # Perform arithmetic evaluation on the ARGs, and store the result in the
13014 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13015 # must be portable across $(()) and expr.
13016 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13017 eval 'as_fn_arith ()
13024 as_val=`expr "$@" || test $? -eq 1`
13029 if expr a : '\(a\)' >/dev/null 2>&1 &&
13030 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13036 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13037 as_basename=basename
13042 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13048 as_me=`$as_basename -- "$0" ||
13049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13050 X"$0" : 'X\(//\)$' \| \
13051 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13053 sed '/^.*\/\([^/][^/]*\)\/*$/{
13067 # Avoid depending upon Character Ranges.
13068 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13069 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13070 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13071 as_cr_digits='0123456789'
13072 as_cr_alnum=$as_cr_Letters$as_cr_digits
13074 ECHO_C= ECHO_N= ECHO_T=
13075 case `echo -n x` in #(((((
13077 case `echo 'xy\c'` in
13078 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13080 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13087 rm -f conf$$ conf$$.exe conf$$.file
13088 if test -d conf$$.dir; then
13089 rm -f conf$$.dir/conf$$.file
13092 mkdir conf$$.dir 2>/dev/null
13094 if (echo >conf$$.file) 2>/dev/null; then
13095 if ln -s conf$$.file conf$$ 2>/dev/null; then
13097 # ... but there are two gotchas:
13098 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13099 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13100 # In both cases, we have to default to `cp -pR'.
13101 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13103 elif ln conf$$.file conf$$ 2>/dev/null; then
13111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13112 rmdir conf$$.dir 2>/dev/null
13117 # Create "$as_dir" as a directory, including parents if necessary.
13122 -*) as_dir=./$as_dir;;
13124 test -d "$as_dir" || eval $as_mkdir_p || {
13128 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13129 *) as_qdir=$as_dir;;
13131 as_dirs="'$as_qdir' $as_dirs"
13132 as_dir=`$as_dirname -- "$as_dir" ||
13133 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13134 X"$as_dir" : 'X\(//\)[^/]' \| \
13135 X"$as_dir" : 'X\(//\)$' \| \
13136 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13137 $as_echo X"$as_dir" |
13138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13142 /^X\(\/\/\)[^/].*/{
13155 test -d "$as_dir" && break
13157 test -z "$as_dirs" || eval "mkdir $as_dirs"
13158 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13162 if mkdir -p . 2>/dev/null; then
13163 as_mkdir_p='mkdir -p "$as_dir"'
13165 test -d ./-p && rmdir ./-p
13170 # as_fn_executable_p FILE
13171 # -----------------------
13172 # Test if FILE is an executable regular file.
13173 as_fn_executable_p ()
13175 test -f "$1" && test -x "$1"
13176 } # as_fn_executable_p
13177 as_test_x='test -x'
13178 as_executable_p=as_fn_executable_p
13180 # Sed expression to map a string onto a valid CPP name.
13181 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13183 # Sed expression to map a string onto a valid variable name.
13184 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13188 ## ----------------------------------- ##
13189 ## Main body of $CONFIG_STATUS script. ##
13190 ## ----------------------------------- ##
13192 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13195 # Save the log message, to keep $0 and so on meaningful, and to
13196 # report actual input values of CONFIG_FILES etc. instead of their
13197 # values after options handling.
13199 This file was extended by sqlite $as_me 3.8.7.2, which was
13200 generated by GNU Autoconf 2.69. Invocation command line was
13202 CONFIG_FILES = $CONFIG_FILES
13203 CONFIG_HEADERS = $CONFIG_HEADERS
13204 CONFIG_LINKS = $CONFIG_LINKS
13205 CONFIG_COMMANDS = $CONFIG_COMMANDS
13208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13213 case $ac_config_files in *"
13214 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13219 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13220 # Files that config.status was made for.
13221 config_files="$ac_config_files"
13222 config_commands="$ac_config_commands"
13226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13228 \`$as_me' instantiates files and other configuration actions
13229 from templates according to the current configuration. Unless the files
13230 and actions are specified as TAGs, all are instantiated by default.
13232 Usage: $0 [OPTION]... [TAG]...
13234 -h, --help print this help, then exit
13235 -V, --version print version number and configuration settings, then exit
13236 --config print configuration, then exit
13237 -q, --quiet, --silent
13238 do not print progress messages
13239 -d, --debug don't remove temporary files
13240 --recheck update $as_me by reconfiguring in the same conditions
13241 --file=FILE[:TEMPLATE]
13242 instantiate the configuration file FILE
13244 Configuration files:
13247 Configuration commands:
13250 Report bugs to <http://www.sqlite.org>."
13253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13256 sqlite config.status 3.8.7.2
13257 configured by $0, generated by GNU Autoconf 2.69,
13258 with options \\"\$ac_cs_config\\"
13260 Copyright (C) 2012 Free Software Foundation, Inc.
13261 This config.status script is free software; the Free Software Foundation
13262 gives unlimited permission to copy, distribute and modify it."
13269 test -n "\$AWK" || AWK=awk
13272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13273 # The default lists apply if the user does not specify any file.
13279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13284 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13296 # Handling of the options.
13297 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13299 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13300 $as_echo "$ac_cs_version"; exit ;;
13301 --config | --confi | --conf | --con | --co | --c )
13302 $as_echo "$ac_cs_config"; exit ;;
13303 --debug | --debu | --deb | --de | --d | -d )
13305 --file | --fil | --fi | --f )
13308 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13309 '') as_fn_error $? "missing file argument" ;;
13311 as_fn_append CONFIG_FILES " '$ac_optarg'"
13312 ac_need_defaults=false;;
13313 --he | --h | --help | --hel | -h )
13314 $as_echo "$ac_cs_usage"; exit ;;
13315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13316 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13319 # This is an error.
13320 -*) as_fn_error $? "unrecognized option: \`$1'
13321 Try \`$0 --help' for more information." ;;
13323 *) as_fn_append ac_config_targets " $1"
13324 ac_need_defaults=false ;;
13330 ac_configure_extra_args=
13332 if $ac_cs_silent; then
13334 ac_configure_extra_args="$ac_configure_extra_args --silent"
13338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13339 if \$ac_cs_recheck; then
13340 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13342 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13343 CONFIG_SHELL='$SHELL'
13344 export CONFIG_SHELL
13349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13354 ## Running $as_me. ##
13360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13364 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13367 # The HP-UX ksh and POSIX shell print the target directory to stdout
13368 # if CDPATH is set.
13369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13371 sed_quote_subst='$sed_quote_subst'
13372 double_quote_subst='$double_quote_subst'
13373 delay_variable_subst='$delay_variable_subst'
13374 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13375 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13376 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13377 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13378 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13379 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13380 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13381 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13382 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13383 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13384 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13385 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13386 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13387 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13388 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13389 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13390 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13391 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13392 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13393 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13394 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13395 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13396 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13397 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13398 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13399 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13400 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13401 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13402 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13403 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13404 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13405 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13406 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13407 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13408 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13409 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13410 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13411 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13412 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13413 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13414 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13415 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13416 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13417 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13418 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13419 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13420 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13421 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13422 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13423 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13424 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13425 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13426 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13427 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13428 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13429 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13430 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"`'
13431 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13432 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13433 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13434 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13435 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13436 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13437 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13438 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13439 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13440 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13441 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13442 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13443 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13444 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13445 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13446 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13447 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13448 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13449 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13450 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13451 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13452 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13453 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13454 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13455 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13456 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13457 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13458 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13459 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13460 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13461 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13462 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13463 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13464 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13465 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13466 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13467 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13468 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13469 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13470 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13471 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13472 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13473 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13474 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13475 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13476 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13477 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13478 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13479 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13480 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13481 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13482 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13483 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13484 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13485 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13486 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13487 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13488 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13489 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13490 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13491 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13492 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13493 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13494 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13495 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13496 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13497 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13498 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13499 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13500 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13501 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13502 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13503 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13506 LTCFLAGS='$LTCFLAGS'
13507 compiler='$compiler_DEFAULT'
13509 # A function that is used when there is no print builtin or printf.
13510 func_fallback_echo ()
13512 eval 'cat <<_LTECHO_EOF
13517 # Quote evaled strings.
13532 deplibs_check_method \
13537 sharedlib_from_linklib_cmd \
13540 archiver_list_spec \
13546 lt_cv_sys_global_symbol_pipe \
13547 lt_cv_sys_global_symbol_to_cdecl \
13548 lt_cv_sys_global_symbol_to_c_name_address \
13549 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13550 nm_file_list_spec \
13551 lt_prog_compiler_no_builtin_flag \
13552 lt_prog_compiler_pic \
13553 lt_prog_compiler_wl \
13554 lt_prog_compiler_static \
13555 lt_cv_prog_compiler_c_o \
13564 export_dynamic_flag_spec \
13565 whole_archive_flag_spec \
13566 compiler_needs_object \
13568 allow_undefined_flag \
13569 no_undefined_flag \
13570 hardcode_libdir_flag_spec \
13571 hardcode_libdir_separator \
13575 variables_saved_for_relink \
13577 library_names_spec \
13579 install_override_mode \
13583 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13584 *[\\\\\\\`\\"\\\$]*)
13585 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13588 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13593 # Double-quote double-evaled strings.
13594 for var in reload_cmds \
13595 old_postinstall_cmds \
13596 old_postuninstall_cmds \
13598 extract_expsyms_cmds \
13599 old_archive_from_new_cmds \
13600 old_archive_from_expsyms_cmds \
13602 archive_expsym_cmds \
13604 module_expsym_cmds \
13605 export_symbols_cmds \
13609 postuninstall_cmds \
13611 sys_lib_search_path_spec \
13612 sys_lib_dlsearch_path_spec; do
13613 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13614 *[\\\\\\\`\\"\\\$]*)
13615 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13618 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13623 ac_aux_dir='$ac_aux_dir'
13624 xsi_shell='$xsi_shell'
13625 lt_shell_append='$lt_shell_append'
13627 # See if we are running on zsh, and set the options which allow our
13628 # commands through without removal of \ escapes INIT.
13629 if test -n "\${ZSH_VERSION+set}" ; then
13630 setopt NO_GLOB_SUBST
13636 TIMESTAMP='$TIMESTAMP'
13645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13647 # Handling of arguments.
13648 for ac_config_target in $ac_config_targets
13650 case $ac_config_target in
13651 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13652 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13653 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13654 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
13656 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13661 # If the user did not use the arguments to specify the items to instantiate,
13662 # then the envvar interface is used. Set only those that are not.
13663 # We use the long form for the default assignment because of an extremely
13664 # bizarre bug on SunOS 4.1.3.
13665 if $ac_need_defaults; then
13666 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13667 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13670 # Have a temporary directory for convenience. Make it in the build tree
13671 # simply because there is no reason against having it here, and in addition,
13672 # creating and moving files from /tmp can sometimes cause problems.
13673 # Hook for its removal unless debugging.
13674 # Note that there is a small window in which the directory will not be cleaned:
13675 # after its creation but before its name has been assigned to `$tmp'.
13679 trap 'exit_status=$?
13680 : "${ac_tmp:=$tmp}"
13681 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13683 trap 'as_fn_exit 1' 1 2 13 15
13685 # Create a (secure) tmp directory for tmp files.
13688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13692 tmp=./conf$$-$RANDOM
13693 (umask 077 && mkdir "$tmp")
13694 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13697 # Set up the scripts for CONFIG_FILES section.
13698 # No need to generate them if there are no CONFIG_FILES.
13699 # This happens for instance with `./config.status config.h'.
13700 if test -n "$CONFIG_FILES"; then
13703 ac_cr=`echo X | tr X '\015'`
13704 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13705 # But we know of no other shell where ac_cr would be empty at this
13706 # point, so we can use a bashism as a fallback.
13707 if test "x$ac_cr" = x; then
13708 eval ac_cr=\$\'\\r\'
13710 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13711 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13714 ac_cs_awk_cr=$ac_cr
13717 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13722 echo "cat >conf$$subs.awk <<_ACEOF" &&
13723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13725 } >conf$$subs.sh ||
13726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13729 for ac_last_try in false false false false false :; do
13730 . ./conf$$subs.sh ||
13731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13734 if test $ac_delim_n = $ac_delim_num; then
13736 elif $ac_last_try; then
13737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13742 rm -f conf$$subs.sh
13744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13745 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13749 s/^/S["/; s/!.*/"]=/
13759 s/\(.\{148\}\)..*/\1/
13761 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13773 s/\(.\{148\}\)..*/\1/
13775 s/["\\]/\\&/g; s/^/"/; s/$/"/
13779 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13784 ' <conf$$subs.awk | sed '
13789 ' >>$CONFIG_STATUS || ac_write_fail=1
13790 rm -f conf$$subs.awk
13791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13793 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13794 for (key in S) S_is_set[key] = 1
13800 nfields = split(line, field, "@")
13802 len = length(field[1])
13803 for (i = 2; i < nfields; i++) {
13805 keylen = length(key)
13806 if (S_is_set[key]) {
13808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13809 len += length(value) + length(field[++i])
13820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13821 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13822 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13825 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13826 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13829 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13830 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13831 # trailing colons and then remove the whole line if VPATH becomes empty
13832 # (actually we leave an empty line to preserve line numbers).
13833 if test "x$srcdir" = x.; then
13834 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853 fi # test -n "$CONFIG_FILES"
13856 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13861 :[FHLC]) ac_mode=$ac_tag; continue;;
13863 case $ac_mode$ac_tag in
13865 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13866 :[FH]-) ac_tag=-:-;;
13867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13884 -) ac_f="$ac_tmp/stdin";;
13885 *) # Look for the file first in the build tree, then in the source tree
13886 # (if the path is not absolute). The absolute path cannot be DOS-style,
13887 # because $ac_f cannot contain `:'.
13891 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13893 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13895 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13896 as_fn_append ac_file_inputs " '$ac_f'"
13899 # Let's still pretend it is `configure' which instantiates (i.e., don't
13900 # use $as_me), people would be surprised to read:
13901 # /* config.h. Generated by config.status. */
13902 configure_input='Generated from '`
13903 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13905 if test x"$ac_file" != x-; then
13906 configure_input="$ac_file. $configure_input"
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13908 $as_echo "$as_me: creating $ac_file" >&6;}
13910 # Neutralize special characters interpreted by sed in replacement strings.
13911 case $configure_input in #(
13912 *\&* | *\|* | *\\* )
13913 ac_sed_conf_input=`$as_echo "$configure_input" |
13914 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13915 *) ac_sed_conf_input=$configure_input;;
13919 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13925 ac_dir=`$as_dirname -- "$ac_file" ||
13926 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13927 X"$ac_file" : 'X\(//\)[^/]' \| \
13928 X"$ac_file" : 'X\(//\)$' \| \
13929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13930 $as_echo X"$ac_file" |
13931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13935 /^X\(\/\/\)[^/].*/{
13948 as_dir="$ac_dir"; as_fn_mkdir_p
13952 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13954 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13955 # A ".." for each directory in $ac_dir_suffix.
13956 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13957 case $ac_top_builddir_sub in
13958 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13959 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13962 ac_abs_top_builddir=$ac_pwd
13963 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13964 # for backward compatibility:
13965 ac_top_builddir=$ac_top_build_prefix
13968 .) # We are building in place.
13970 ac_top_srcdir=$ac_top_builddir_sub
13971 ac_abs_top_srcdir=$ac_pwd ;;
13972 [\\/]* | ?:[\\/]* ) # Absolute name.
13973 ac_srcdir=$srcdir$ac_dir_suffix;
13974 ac_top_srcdir=$srcdir
13975 ac_abs_top_srcdir=$srcdir ;;
13976 *) # Relative name.
13977 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13978 ac_top_srcdir=$ac_top_build_prefix$srcdir
13979 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13981 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13992 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13994 ac_MKDIR_P=$MKDIR_P
13996 [\\/$]* | ?:[\\/]* ) ;;
13997 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14002 # If the template does not know about datarootdir, expand it.
14003 # FIXME: This hack should be removed a few years after 2.60.
14004 ac_datarootdir_hack=; ac_datarootdir_seen=
14015 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14016 *datarootdir*) ac_datarootdir_seen=yes;;
14017 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14019 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14022 ac_datarootdir_hack='
14023 s&@datadir@&$datadir&g
14024 s&@docdir@&$docdir&g
14025 s&@infodir@&$infodir&g
14026 s&@localedir@&$localedir&g
14027 s&@mandir@&$mandir&g
14028 s&\\\${datarootdir}&$datarootdir&g' ;;
14032 # Neutralize VPATH when `$srcdir' = `.'.
14033 # Shell code in configure.ac might set extrasub.
14034 # FIXME: do we really want to maintain this feature?
14035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14036 ac_sed_extra="$ac_vpsub
14039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14042 s|@configure_input@|$ac_sed_conf_input|;t t
14043 s&@top_builddir@&$ac_top_builddir_sub&;t t
14044 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14045 s&@srcdir@&$ac_srcdir&;t t
14046 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14047 s&@top_srcdir@&$ac_top_srcdir&;t t
14048 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14049 s&@builddir@&$ac_builddir&;t t
14050 s&@abs_builddir@&$ac_abs_builddir&;t t
14051 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14052 s&@INSTALL@&$ac_INSTALL&;t t
14053 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14054 $ac_datarootdir_hack
14056 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14057 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14059 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14060 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14061 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14062 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14064 which seems to be undefined. Please make sure it is defined" >&5
14065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14066 which seems to be undefined. Please make sure it is defined" >&2;}
14068 rm -f "$ac_tmp/stdin"
14070 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14071 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14073 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14078 $as_echo "$as_me: executing $ac_file commands" >&6;}
14083 case $ac_file$ac_mode in
14084 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14085 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14086 # are listed without --file. Let's play safe and only enable the eval
14087 # if we detect the quoting.
14088 case $CONFIG_FILES in
14089 *\'*) eval set x "$CONFIG_FILES" ;;
14090 *) set x $CONFIG_FILES ;;
14095 # Strip MF so we end up with the name of the file.
14096 mf=`echo "$mf" | sed -e 's/:.*$//'`
14097 # Check whether this is an Automake generated Makefile or not.
14098 # We used to match only the files named `Makefile.in', but
14099 # some people rename them; so instead we look at the file content.
14100 # Grep'ing the first line is not enough: some people post-process
14101 # each Makefile.in and add a new line on top of each file to say so.
14102 # Grep'ing the whole file is not good either: AIX grep has a line
14103 # limit of 2048, but all sed's we know have understand at least 4000.
14104 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14105 dirpart=`$as_dirname -- "$mf" ||
14106 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107 X"$mf" : 'X\(//\)[^/]' \| \
14108 X"$mf" : 'X\(//\)$' \| \
14109 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14115 /^X\(\/\/\)[^/].*/{
14131 # Extract the definition of DEPDIR, am__include, and am__quote
14132 # from the Makefile without running `make'.
14133 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14134 test -z "$DEPDIR" && continue
14135 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14136 test -z "am__include" && continue
14137 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14138 # When using ansi2knr, U may be empty or an underscore; expand it
14139 U=`sed -n 's/^U = //p' < "$mf"`
14140 # Find all dependency output files, they are included files with
14141 # $(DEPDIR) in their names. We invoke sed twice because it is the
14142 # simplest approach to changing $(DEPDIR) to its actual value in the
14144 for file in `sed -n "
14145 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14146 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14147 # Make sure the directory exists.
14148 test -f "$dirpart/$file" && continue
14149 fdir=`$as_dirname -- "$file" ||
14150 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14151 X"$file" : 'X\(//\)[^/]' \| \
14152 X"$file" : 'X\(//\)$' \| \
14153 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14154 $as_echo X"$file" |
14155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14159 /^X\(\/\/\)[^/].*/{
14172 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14173 # echo "creating $dirpart/$file"
14174 echo '# dummy' > "$dirpart/$file"
14181 # See if we are running on zsh, and set the options which allow our
14182 # commands through without removal of \ escapes.
14183 if test -n "${ZSH_VERSION+set}" ; then
14184 setopt NO_GLOB_SUBST
14187 cfgfile="${ofile}T"
14188 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14191 cat <<_LT_EOF >> "$cfgfile"
14194 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14195 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14196 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14197 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14199 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14200 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14202 # Written by Gordon Matzigkeit, 1996
14204 # This file is part of GNU Libtool.
14206 # GNU Libtool is free software; you can redistribute it and/or
14207 # modify it under the terms of the GNU General Public License as
14208 # published by the Free Software Foundation; either version 2 of
14209 # the License, or (at your option) any later version.
14211 # As a special exception to the GNU General Public License,
14212 # if you distribute this file as part of a program or library that
14213 # is built using GNU Libtool, you may include this file under the
14214 # same distribution terms that you use for the rest of that program.
14216 # GNU Libtool is distributed in the hope that it will be useful,
14217 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14218 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14219 # GNU General Public License for more details.
14221 # You should have received a copy of the GNU General Public License
14222 # along with GNU Libtool; see the file COPYING. If not, a copy
14223 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14224 # obtained by writing to the Free Software Foundation, Inc.,
14225 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14228 # The names of the tagged configurations supported by this script.
14231 # ### BEGIN LIBTOOL CONFIG
14233 # Which release of libtool.m4 was used?
14234 macro_version=$macro_version
14235 macro_revision=$macro_revision
14237 # Whether or not to build shared libraries.
14238 build_libtool_libs=$enable_shared
14240 # Whether or not to build static libraries.
14241 build_old_libs=$enable_static
14243 # What type of objects to build.
14246 # Whether or not to optimize for fast installation.
14247 fast_install=$enable_fast_install
14249 # Shell to use when invoking shell scripts.
14252 # An echo program that protects backslashes.
14255 # The PATH separator for the build system.
14256 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14259 host_alias=$host_alias
14263 # The build system.
14264 build_alias=$build_alias
14268 # A sed program that does not truncate output.
14271 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14272 Xsed="\$SED -e 1s/^X//"
14274 # A grep program that handles long lines.
14280 # A literal string matcher.
14283 # A BSD- or MS-compatible name lister.
14286 # Whether we need soft or hard links.
14289 # What is the maximum length of a command?
14290 max_cmd_len=$max_cmd_len
14292 # Object file suffix (normally "o").
14295 # Executable file suffix (normally "").
14298 # whether the shell understands "unset".
14301 # turn spaces into newlines.
14304 # turn newlines into spaces.
14307 # convert \$build file names to \$host format.
14308 to_host_file_cmd=$lt_cv_to_host_file_cmd
14310 # convert \$build files to toolchain format.
14311 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14313 # An object symbol dumper.
14314 OBJDUMP=$lt_OBJDUMP
14316 # Method to check whether dependent libraries are shared objects.
14317 deplibs_check_method=$lt_deplibs_check_method
14319 # Command to use when deplibs_check_method = "file_magic".
14320 file_magic_cmd=$lt_file_magic_cmd
14322 # How to find potential files when deplibs_check_method = "file_magic".
14323 file_magic_glob=$lt_file_magic_glob
14325 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14326 want_nocaseglob=$lt_want_nocaseglob
14328 # DLL creation program.
14329 DLLTOOL=$lt_DLLTOOL
14331 # Command to associate shared and link libraries.
14332 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14337 # Flags to create an archive.
14338 AR_FLAGS=$lt_AR_FLAGS
14340 # How to feed a file listing to the archiver.
14341 archiver_list_spec=$lt_archiver_list_spec
14343 # A symbol stripping program.
14346 # Commands used to install an old-style archive.
14348 old_postinstall_cmds=$lt_old_postinstall_cmds
14349 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14351 # Whether to use a lock for old archive extraction.
14352 lock_old_archive_extraction=$lock_old_archive_extraction
14357 # LTCC compiler flags.
14358 LTCFLAGS=$lt_CFLAGS
14360 # Take the output of nm and produce a listing of raw symbols and C names.
14361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14363 # Transform the output of nm in a proper C declaration.
14364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14366 # Transform the output of nm in a C name address pair.
14367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14369 # Transform the output of nm in a C name address pair when lib prefix is needed.
14370 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14372 # Specify filename containing input files for \$NM.
14373 nm_file_list_spec=$lt_nm_file_list_spec
14375 # The root where to search for dependent libraries,and in which our libraries should be installed.
14376 lt_sysroot=$lt_sysroot
14378 # The name of the directory that contains temporary libtool files.
14381 # Used to examine libraries when file_magic_cmd begins with "file".
14382 MAGIC_CMD=$MAGIC_CMD
14384 # Must we lock files when doing compilation?
14385 need_locks=$lt_need_locks
14388 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14390 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14391 DSYMUTIL=$lt_DSYMUTIL
14393 # Tool to change global to local symbols on Mac OS X.
14396 # Tool to manipulate fat objects and archives on Mac OS X.
14399 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14402 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14403 OTOOL64=$lt_OTOOL64
14405 # Old archive suffix (normally "a").
14408 # Shared library suffix (normally ".so").
14409 shrext_cmds=$lt_shrext_cmds
14411 # The commands to extract the exported symbol list from a shared archive.
14412 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14414 # Variables whose values should be saved in libtool wrapper scripts and
14415 # restored at link time.
14416 variables_saved_for_relink=$lt_variables_saved_for_relink
14418 # Do we need the "lib" prefix for modules?
14419 need_lib_prefix=$need_lib_prefix
14421 # Do we need a version for libraries?
14422 need_version=$need_version
14424 # Library versioning type.
14425 version_type=$version_type
14427 # Shared library runtime path variable.
14428 runpath_var=$runpath_var
14430 # Shared library path variable.
14431 shlibpath_var=$shlibpath_var
14433 # Is shlibpath searched before the hard-coded library search path?
14434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14436 # Format of library name prefix.
14437 libname_spec=$lt_libname_spec
14439 # List of archive names. First name is the real one, the rest are links.
14440 # The last name is the one that the linker finds with -lNAME
14441 library_names_spec=$lt_library_names_spec
14443 # The coded name of the library, if different from the real name.
14444 soname_spec=$lt_soname_spec
14446 # Permission mode override for installation of shared libraries.
14447 install_override_mode=$lt_install_override_mode
14449 # Command to use after installation of a shared archive.
14450 postinstall_cmds=$lt_postinstall_cmds
14452 # Command to use after uninstallation of a shared archive.
14453 postuninstall_cmds=$lt_postuninstall_cmds
14455 # Commands used to finish a libtool library installation in a directory.
14456 finish_cmds=$lt_finish_cmds
14458 # As "finish_cmds", except a single script fragment to be evaled but
14460 finish_eval=$lt_finish_eval
14462 # Whether we should hardcode library paths into libraries.
14463 hardcode_into_libs=$hardcode_into_libs
14465 # Compile-time system search path for libraries.
14466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14468 # Run-time system search path for libraries.
14469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14471 # Whether dlopen is supported.
14472 dlopen_support=$enable_dlopen
14474 # Whether dlopen of programs is supported.
14475 dlopen_self=$enable_dlopen_self
14477 # Whether dlopen of statically linked programs is supported.
14478 dlopen_self_static=$enable_dlopen_self_static
14480 # Commands to strip libraries.
14481 old_striplib=$lt_old_striplib
14482 striplib=$lt_striplib
14485 # The linker used to build libraries.
14488 # How to create reloadable object files.
14489 reload_flag=$lt_reload_flag
14490 reload_cmds=$lt_reload_cmds
14492 # Commands used to build an old-style archive.
14493 old_archive_cmds=$lt_old_archive_cmds
14495 # A language specific compiler.
14498 # Is the compiler the GNU compiler?
14501 # Compiler flag to turn off builtin functions.
14502 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14504 # Additional compiler flags for building library objects.
14505 pic_flag=$lt_lt_prog_compiler_pic
14507 # How to pass a linker flag through the compiler.
14508 wl=$lt_lt_prog_compiler_wl
14510 # Compiler flag to prevent dynamic linking.
14511 link_static_flag=$lt_lt_prog_compiler_static
14513 # Does compiler simultaneously support -c and -o options?
14514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14516 # Whether or not to add -lc for building shared libraries.
14517 build_libtool_need_lc=$archive_cmds_need_lc
14519 # Whether or not to disallow shared libs when runtime libs are static.
14520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14522 # Compiler flag to allow reflexive dlopens.
14523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14525 # Compiler flag to generate shared objects directly from archives.
14526 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14528 # Whether the compiler copes with passing no objects directly.
14529 compiler_needs_object=$lt_compiler_needs_object
14531 # Create an old-style archive from a shared archive.
14532 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14534 # Create a temporary old-style archive to link instead of a shared archive.
14535 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14537 # Commands used to build a shared archive.
14538 archive_cmds=$lt_archive_cmds
14539 archive_expsym_cmds=$lt_archive_expsym_cmds
14541 # Commands used to build a loadable module if different from building
14542 # a shared archive.
14543 module_cmds=$lt_module_cmds
14544 module_expsym_cmds=$lt_module_expsym_cmds
14546 # Whether we are building with GNU ld or not.
14547 with_gnu_ld=$lt_with_gnu_ld
14549 # Flag that allows shared libraries with undefined symbols to be built.
14550 allow_undefined_flag=$lt_allow_undefined_flag
14552 # Flag that enforces no undefined symbols.
14553 no_undefined_flag=$lt_no_undefined_flag
14555 # Flag to hardcode \$libdir into a binary during linking.
14556 # This must work even if \$libdir does not exist
14557 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14559 # Whether we need a single "-rpath" flag with a separated argument.
14560 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14562 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14563 # DIR into the resulting binary.
14564 hardcode_direct=$hardcode_direct
14566 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14567 # DIR into the resulting binary and the resulting library dependency is
14568 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14569 # library is relocated.
14570 hardcode_direct_absolute=$hardcode_direct_absolute
14572 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14573 # into the resulting binary.
14574 hardcode_minus_L=$hardcode_minus_L
14576 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14577 # into the resulting binary.
14578 hardcode_shlibpath_var=$hardcode_shlibpath_var
14580 # Set to "yes" if building a shared library automatically hardcodes DIR
14581 # into the library and all subsequent libraries and executables linked
14583 hardcode_automatic=$hardcode_automatic
14585 # Set to yes if linker adds runtime paths of dependent libraries
14586 # to runtime path list.
14587 inherit_rpath=$inherit_rpath
14589 # Whether libtool must link a program against all its dependency libraries.
14590 link_all_deplibs=$link_all_deplibs
14592 # Set to "yes" if exported symbols are required.
14593 always_export_symbols=$always_export_symbols
14595 # The commands to list exported symbols.
14596 export_symbols_cmds=$lt_export_symbols_cmds
14598 # Symbols that should not be listed in the preloaded symbols.
14599 exclude_expsyms=$lt_exclude_expsyms
14601 # Symbols that must always be exported.
14602 include_expsyms=$lt_include_expsyms
14604 # Commands necessary for linking programs (against libraries) with templates.
14605 prelink_cmds=$lt_prelink_cmds
14607 # Commands necessary for finishing linking programs.
14608 postlink_cmds=$lt_postlink_cmds
14610 # Specify filename containing input files.
14611 file_list_spec=$lt_file_list_spec
14613 # How to hardcode a shared library path into an executable.
14614 hardcode_action=$hardcode_action
14616 # ### END LIBTOOL CONFIG
14622 cat <<\_LT_EOF >> "$cfgfile"
14623 # AIX sometimes has problems with the GCC collect2 program. For some
14624 # reason, if we set the COLLECT_NAMES environment variable, the problems
14625 # vanish in a puff of smoke.
14626 if test "X${COLLECT_NAMES+set}" != Xset; then
14628 export COLLECT_NAMES
14635 ltmain="$ac_aux_dir/ltmain.sh"
14638 # We use sed instead of cat because bash on DJGPP gets confused if
14639 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14640 # text mode, it properly converts lines to CR/LF. This bash problem
14641 # is reportedly fixed, but why not run on old versions too?
14642 sed '$q' "$ltmain" >> "$cfgfile" \
14643 || (rm -f "$cfgfile"; exit 1)
14645 if test x"$xsi_shell" = xyes; then
14646 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14650 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14651 \ * ) func_dirname_result="${3}" ;;\
14653 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14654 && mv -f "$cfgfile.tmp" "$cfgfile" \
14655 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14656 test 0 -eq $? || _lt_function_replace_fail=:
14659 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14662 \ func_basename_result="${1##*/}"\
14663 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14664 && mv -f "$cfgfile.tmp" "$cfgfile" \
14665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14666 test 0 -eq $? || _lt_function_replace_fail=:
14669 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14670 func_dirname_and_basename ()\
14673 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14674 \ * ) func_dirname_result="${3}" ;;\
14676 \ func_basename_result="${1##*/}"\
14677 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14678 && mv -f "$cfgfile.tmp" "$cfgfile" \
14679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14680 test 0 -eq $? || _lt_function_replace_fail=:
14683 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14686 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14687 \ # positional parameters, so assign one to ordinary parameter first.\
14688 \ func_stripname_result=${3}\
14689 \ func_stripname_result=${func_stripname_result#"${1}"}\
14690 \ func_stripname_result=${func_stripname_result%"${2}"}\
14691 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14692 && mv -f "$cfgfile.tmp" "$cfgfile" \
14693 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14694 test 0 -eq $? || _lt_function_replace_fail=:
14697 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14698 func_split_long_opt ()\
14700 \ func_split_long_opt_name=${1%%=*}\
14701 \ func_split_long_opt_arg=${1#*=}\
14702 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14703 && mv -f "$cfgfile.tmp" "$cfgfile" \
14704 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14705 test 0 -eq $? || _lt_function_replace_fail=:
14708 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14709 func_split_short_opt ()\
14711 \ func_split_short_opt_arg=${1#??}\
14712 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14713 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14714 && mv -f "$cfgfile.tmp" "$cfgfile" \
14715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14716 test 0 -eq $? || _lt_function_replace_fail=:
14719 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14723 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14724 \ *) func_lo2o_result=${1} ;;\
14726 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14727 && mv -f "$cfgfile.tmp" "$cfgfile" \
14728 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14729 test 0 -eq $? || _lt_function_replace_fail=:
14732 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14735 func_xform_result=${1%.*}.lo\
14736 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14737 && mv -f "$cfgfile.tmp" "$cfgfile" \
14738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14739 test 0 -eq $? || _lt_function_replace_fail=:
14742 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14745 func_arith_result=$(( $* ))\
14746 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14747 && mv -f "$cfgfile.tmp" "$cfgfile" \
14748 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14749 test 0 -eq $? || _lt_function_replace_fail=:
14752 sed -e '/^func_len ()$/,/^} # func_len /c\
14755 func_len_result=${#1}\
14756 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14757 && mv -f "$cfgfile.tmp" "$cfgfile" \
14758 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14759 test 0 -eq $? || _lt_function_replace_fail=:
14763 if test x"$lt_shell_append" = xyes; then
14764 sed -e '/^func_append ()$/,/^} # func_append /c\
14767 eval "${1}+=\\${2}"\
14768 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14769 && mv -f "$cfgfile.tmp" "$cfgfile" \
14770 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14771 test 0 -eq $? || _lt_function_replace_fail=:
14774 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14775 func_append_quoted ()\
14777 \ func_quote_for_eval "${2}"\
14778 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14779 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14780 && mv -f "$cfgfile.tmp" "$cfgfile" \
14781 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782 test 0 -eq $? || _lt_function_replace_fail=:
14785 # Save a `func_append' function call where possible by direct use of '+='
14786 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14787 && mv -f "$cfgfile.tmp" "$cfgfile" \
14788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14789 test 0 -eq $? || _lt_function_replace_fail=:
14791 # Save a `func_append' function call even when '+=' is not available
14792 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14793 && mv -f "$cfgfile.tmp" "$cfgfile" \
14794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14795 test 0 -eq $? || _lt_function_replace_fail=:
14798 if test x"$_lt_function_replace_fail" = x":"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14800 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14804 mv -f "$cfgfile" "$ofile" ||
14805 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14816 ac_clean_files=$ac_clean_files_save
14818 test $ac_write_fail = 0 ||
14819 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14822 # configure is writing to config.log, and then calls config.status.
14823 # config.status does its own redirection, appending to config.log.
14824 # Unfortunately, on DOS this fails, as config.log is still kept open
14825 # by configure, so config.status won't be able to write to it; its
14826 # output is simply discarded. So we exec the FD to /dev/null,
14827 # effectively closing config.log, so it can be properly (re)opened and
14828 # appended to by config.status. When coming back to configure, we
14829 # need to make the FD available again.
14830 if test "$no_create" != yes; then
14832 ac_config_status_args=
14833 test "$silent" = yes &&
14834 ac_config_status_args="$ac_config_status_args --quiet"
14836 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14838 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14839 # would make configure fail if this is the last instruction.
14840 $ac_cs_success || as_fn_exit 1
14842 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14844 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}