2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libarchive 3.1.2.
5 # Report bugs to <libarchive-discuss@googlegroups.com>.
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
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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: libarchive-discuss@googlegroups.com about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a 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='libarchive'
592 PACKAGE_TARNAME='libarchive'
593 PACKAGE_VERSION='3.1.2'
594 PACKAGE_STRING='libarchive 3.1.2'
595 PACKAGE_BUGREPORT='libarchive-discuss@googlegroups.com'
598 ac_unique_file="libarchive"
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
691 INC_CYGWIN_FILES_FALSE
692 INC_CYGWIN_FILES_TRUE
693 INC_WINDOWS_FILES_FALSE
694 INC_WINDOWS_FILES_TRUE
703 LIBARCHIVE_VERSION_NUMBER
704 LIBARCHIVE_VERSION_STRING
705 BSDTAR_VERSION_STRING
706 BSDCPIO_VERSION_STRING
707 ARCHIVE_LIBTOOL_VERSION
720 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
777 enable_dependency_tracking
799 enable_posix_regex_lib
804 ac_precious_vars='build_alias
815 # Initialize some variables set by options.
817 ac_init_version=false
818 ac_unrecognized_opts=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
829 program_transform_name=s,x,x,
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 includedir='${prefix}/include'
852 oldincludedir='/usr/include'
853 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
854 infodir='${datarootdir}/info'
859 libdir='${exec_prefix}/lib'
860 localedir='${datarootdir}/locale'
861 mandir='${datarootdir}/man'
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
869 eval $ac_prev=\$ac_option
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 # Accept the important Cygnus configure options, so we can diagnose typos.
882 case $ac_dashdash$ac_option in
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 -build | --build | --buil | --bui | --bu)
892 ac_prev=build_alias ;;
893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894 build_alias=$ac_optarg ;;
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901 cache_file=$ac_optarg ;;
904 cache_file=config.cache ;;
906 -datadir | --datadir | --datadi | --datad)
908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
909 datadir=$ac_optarg ;;
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
918 -disable-* | --disable-*)
919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920 # Reject names that are not valid shell variable names.
921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
922 as_fn_error $? "invalid feature name: $ac_useropt"
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
932 eval enable_$ac_useropt=no ;;
934 -docdir | --docdir | --docdi | --doc | --do)
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 -enable-* | --enable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error $? "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: $ac_useropt"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1162 eval with_$ac_useropt=\$ac_optarg ;;
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1178 eval with_$ac_useropt=no ;;
1181 # Obsolete; use --with-x.
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1213 # FIXME: should be removed in autoconf 3.0.
1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1249 # Be sure to have absolute directory names.
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1262 target=$target_alias
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1353 \`configure' configures libarchive 3.1.2 to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/libarchive]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of libarchive 3.1.2:";;
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: `make V=1')
1432 --disable-silent-rules verbose build output (undo: `make V=0')
1433 --disable-dependency-tracking speeds up one-time build
1434 --enable-dependency-tracking do not reject slow dependency extractors
1435 --enable-shared[=PKGS] build shared libraries [default=yes]
1436 --enable-static[=PKGS] build static libraries [default=yes]
1437 --enable-fast-install[=PKGS]
1438 optimize for fast installation [default=yes]
1439 --disable-libtool-lock avoid locking (might break parallel builds)
1440 --enable-bsdtar enable build of bsdtar (default)
1441 --enable-bsdtar=static force static build of bsdtar
1442 --enable-bsdtar=shared force dynamic build of bsdtar
1443 --disable-bsdtar disable build of bsdtar
1444 --enable-bsdcpio enable build of bsdcpio (default)
1445 --enable-bsdcpio=static static build of bsdcpio
1446 --enable-bsdcpio=shared dynamic build of bsdcpio
1447 --disable-bsdcpio disable build of bsdcpio
1448 --disable-rpath do not hardcode runtime library paths
1449 --enable-posix-regex-lib
1450 choose what library to use for POSIX regular
1451 expression support (default: auto)
1452 --enable-posix-regex-lib=libc
1453 use libc POSIX regular expression support
1454 --enable-posix-regex-lib=libregex
1455 use libregex POSIX regular expression support
1456 --enable-posix-regex-lib=libpcreposix
1457 use libpcreposix POSIX regular expression support
1458 --disable-posix-regex-lib
1459 don't enable POSIX regular expression support
1460 --disable-xattr Enable Extended Attributes support (default: check)
1461 --disable-acl Enable ACL support (default: check)
1462 --disable-largefile omit support for large files
1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1470 --with-sysroot=DIR Search for dependent libraries within DIR
1471 (or the compiler's sysroot if not specified).
1472 --without-zlib Don't build support for gzip through zlib
1473 --without-bz2lib Don't build support for bzip2 through bz2lib
1474 --without-lzmadec Don't build support for lzma through lzmadec
1475 --without-iconv Don't try to link against iconv
1476 --with-gnu-ld assume the C compiler uses GNU ld default=no
1477 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1478 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1479 --without-lzma Don't build support for xz through lzma
1480 --without-lzo2 Don't build support for lzop through liblzo2
1481 --without-nettle Don't build with crypto support from Nettle
1482 --without-openssl Don't build support for mtree and xar hashes through
1484 --without-xml2 Don't build support for xar through libxml2
1485 --without-expat Don't build support for xar through expat
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1497 Use these variables to override the choices made by `configure' or to help
1498 it to find libraries and programs with nonstandard names/locations.
1500 Report bugs to <libarchive-discuss@googlegroups.com>.
1505 if test "$ac_init_help" = "recursive"; then
1506 # If there are subdirs, report their specific --help.
1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1508 test -d "$ac_dir" ||
1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1517 # A ".." for each directory in $ac_dir_suffix.
1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1519 case $ac_top_builddir_sub in
1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524 ac_abs_top_builddir=$ac_pwd
1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1526 # for backward compatibility:
1527 ac_top_builddir=$ac_top_build_prefix
1530 .) # We are building in place.
1532 ac_top_srcdir=$ac_top_builddir_sub
1533 ac_abs_top_srcdir=$ac_pwd ;;
1534 [\\/]* | ?:[\\/]* ) # Absolute name.
1535 ac_srcdir=$srcdir$ac_dir_suffix;
1536 ac_top_srcdir=$srcdir
1537 ac_abs_top_srcdir=$srcdir ;;
1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1540 ac_top_srcdir=$ac_top_build_prefix$srcdir
1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545 cd "$ac_dir" || { ac_status=$?; continue; }
1546 # Check for guested configure.
1547 if test -f "$ac_srcdir/configure.gnu"; then
1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1550 elif test -f "$ac_srcdir/configure"; then
1552 $SHELL "$ac_srcdir/configure" --help=recursive
1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd "$ac_pwd" || { ac_status=$?; break; }
1560 test -n "$ac_init_help" && exit $ac_status
1561 if $ac_init_version; then
1563 libarchive configure 3.1.2
1564 generated by GNU Autoconf 2.69
1566 Copyright (C) 2012 Free Software Foundation, Inc.
1567 This configure script is free software; the Free Software Foundation
1568 gives unlimited permission to copy, distribute and modify it.
1573 ## ------------------------ ##
1574 ## Autoconf initialization. ##
1575 ## ------------------------ ##
1577 # ac_fn_c_try_compile LINENO
1578 # --------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_c_try_compile
1615 # ac_fn_c_try_cpp LINENO
1616 # ----------------------
1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 $as_echo "$ac_try_echo"; } >&5
1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } > conftest.i && {
1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648 as_fn_set_status $ac_retval
1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1653 # -------------------------------------------------------
1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1655 # the include files in INCLUDES and setting the cache variable VAR
1657 ac_fn_c_check_header_mongrel ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if eval \${$3+:} false; then :
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664 $as_echo_n "(cached) " >&6
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1670 # Is the header compilable?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1672 $as_echo_n "checking $2 usability... " >&6; }
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 ac_header_compiler=yes
1681 ac_header_compiler=no
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1685 $as_echo "$ac_header_compiler" >&6; }
1687 # Is the header present?
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1689 $as_echo_n "checking $2 presence... " >&6; }
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1694 if ac_fn_c_try_cpp "$LINENO"; then :
1695 ac_header_preproc=yes
1697 ac_header_preproc=no
1699 rm -f conftest.err conftest.i conftest.$ac_ext
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1701 $as_echo "$ac_header_preproc" >&6; }
1703 # So? What about this header?
1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1722 ( $as_echo "## -------------------------------------------------- ##
1723 ## Report this to libarchive-discuss@googlegroups.com ##
1724 ## -------------------------------------------------- ##"
1725 ) | sed "s/^/$as_me: WARNING: /" >&2
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1733 eval "$3=\$ac_header_compiler"
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_mongrel
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1777 ac_retval=$ac_status
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1785 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists and can be compiled using the include files in
1788 # INCLUDES, setting the cache variable VAR accordingly.
1789 ac_fn_c_check_header_compile ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1793 $as_echo_n "checking for $2... " >&6; }
1794 if eval \${$3+:} false; then :
1795 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1802 if ac_fn_c_try_compile "$LINENO"; then :
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_header_compile
1816 # ac_fn_c_try_link LINENO
1817 # -----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded.
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 rm -f conftest.$ac_objext conftest$ac_exeext
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest$ac_exeext && {
1842 test "$cross_compiling" = yes ||
1843 test -x conftest$ac_exeext
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1853 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1854 # interfere with the next link command; also delete a directory that is
1855 # left behind by Apple's compiler. We do this before executing the actions.
1856 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 as_fn_set_status $ac_retval
1860 } # ac_fn_c_try_link
1862 # ac_fn_c_check_func LINENO FUNC VAR
1863 # ----------------------------------
1864 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1865 ac_fn_c_check_func ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if eval \${$3+:} false; then :
1871 $as_echo_n "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (); below.
1881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1882 <limits.h> exists even on freestanding compilers. */
1885 # include <limits.h>
1887 # include <assert.h>
1892 /* Override any GCC internal prototype to avoid an error.
1893 Use char because int might match the return type of a GCC
1894 builtin and then its argument prototype would still apply. */
1899 /* The GNU C library defines this for functions which it implements
1900 to always fail with ENOSYS. Some functions are actually named
1901 something starting with __ and the normal name is an alias. */
1902 #if defined __stub_$2 || defined __stub___$2
1914 if ac_fn_c_try_link "$LINENO"; then :
1919 rm -f core conftest.err conftest.$ac_objext \
1920 conftest$ac_exeext conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_func
1929 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1930 # -------------------------------------------
1931 # Tests whether TYPE exists after having included INCLUDES, setting cache
1932 # variable VAR accordingly.
1933 ac_fn_c_check_type ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1967 if ac_fn_c_try_compile "$LINENO"; then :
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981 } # ac_fn_c_check_type
1983 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1984 # ----------------------------------------------------
1985 # Tries to find if the field MEMBER exists in type AGGR, after including
1986 # INCLUDES, setting cache variable VAR accordingly.
1987 ac_fn_c_check_member ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1991 $as_echo_n "checking for $2.$3... " >&6; }
1992 if eval \${$4+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
2008 if ac_fn_c_try_compile "$LINENO"; then :
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2018 if (sizeof ac_aggr.$3)
2024 if ac_fn_c_try_compile "$LINENO"; then :
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038 } # ac_fn_c_check_member
2040 # ac_fn_c_find_intX_t LINENO BITS VAR
2041 # -----------------------------------
2042 # Finds a signed integer type with width BITS, setting cache variable VAR
2044 ac_fn_c_find_intX_t ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2048 $as_echo_n "checking for int$2_t... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2053 # Order is important - never check a type that is potentially smaller
2054 # than half of the expected target width.
2055 for ac_type in int$2_t 'int' 'long int' \
2056 'long long int' 'short int' 'signed char'; do
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $ac_includes_default
2060 enum { N = $2 / 2 - 1 };
2064 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2066 return test_array [0];
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $ac_includes_default
2076 enum { N = $2 / 2 - 1 };
2080 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2081 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2083 return test_array [0];
2089 if ac_fn_c_try_compile "$LINENO"; then :
2096 eval "$3=\$ac_type" ;;
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 if eval test \"x\$"$3"\" = x"no"; then :
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114 } # ac_fn_c_find_intX_t
2116 # ac_fn_c_find_uintX_t LINENO BITS VAR
2117 # ------------------------------------
2118 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2120 ac_fn_c_find_uintX_t ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2124 $as_echo_n "checking for uint$2_t... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2129 # Order is important - never check a type that is potentially smaller
2130 # than half of the expected target width.
2131 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2132 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $ac_includes_default
2139 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2141 return test_array [0];
2147 if ac_fn_c_try_compile "$LINENO"; then :
2152 eval "$3=\$ac_type" ;;
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 if eval test \"x\$"$3"\" = x"no"; then :
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2168 } # ac_fn_c_find_uintX_t
2170 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2171 # ---------------------------------------------
2172 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174 ac_fn_c_check_decl ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 as_decl_name=`echo $2|sed 's/ *(.*//'`
2178 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2180 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2190 #ifndef $as_decl_name
2192 (void) $as_decl_use;
2194 (void) $as_decl_name;
2202 if ac_fn_c_try_compile "$LINENO"; then :
2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2211 $as_echo "$ac_res" >&6; }
2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2214 } # ac_fn_c_check_decl
2216 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2217 # --------------------------------------------
2218 # Tries to find the compile-time value of EXPR in a program that includes
2219 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2221 ac_fn_c_compute_int ()
2223 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2224 if test "$cross_compiling" = yes; then
2225 # Depending upon the size, compute the lo and hi bounds.
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2232 static int test_array [1 - 2 * !(($2) >= 0)];
2234 return test_array [0];
2240 if ac_fn_c_try_compile "$LINENO"; then :
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"; then :
2258 ac_hi=$ac_mid; break
2260 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2261 if test $ac_lo -le $ac_mid; then
2265 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2276 static int test_array [1 - 2 * !(($2) < 0)];
2278 return test_array [0];
2284 if ac_fn_c_try_compile "$LINENO"; then :
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2293 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2295 return test_array [0];
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302 ac_lo=$ac_mid; break
2304 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2305 if test $ac_mid -le $ac_hi; then
2309 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 # Binary search between lo and hi bounds.
2320 while test "x$ac_lo" != "x$ac_hi"; do
2321 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2328 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2330 return test_array [0];
2336 if ac_fn_c_try_compile "$LINENO"; then :
2339 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2349 /* end confdefs.h. */
2351 static long int longval () { return $2; }
2352 static unsigned long int ulongval () { return $2; }
2359 FILE *f = fopen ("conftest.val", "w");
2364 long int i = longval ();
2367 fprintf (f, "%ld", i);
2371 unsigned long int i = ulongval ();
2374 fprintf (f, "%lu", i);
2376 /* Do not output a trailing newline, as this causes \r\n confusion
2377 on some platforms. */
2378 return ferror (f) || fclose (f) != 0;
2384 if ac_fn_c_try_run "$LINENO"; then :
2385 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2390 conftest.$ac_objext conftest.beam conftest.$ac_ext
2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395 as_fn_set_status $ac_retval
2397 } # ac_fn_c_compute_int
2398 cat >config.log <<_ACEOF
2399 This file contains any messages produced by compilers while
2400 running configure, to aid debugging if configure makes a mistake.
2402 It was created by libarchive $as_me 3.1.2, which was
2403 generated by GNU Autoconf 2.69. Invocation command line was
2415 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2416 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2417 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2418 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2419 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2421 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2422 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2424 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2425 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2426 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2427 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2428 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2429 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2430 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 $as_echo "PATH: $as_dir"
2455 # Keep a trace of the command line.
2456 # Strip out --no-create and --no-recursion so they do not pile up.
2457 # Strip out --silent because we don't want to record it for future runs.
2458 # Also quote any args containing shell meta-characters.
2459 # Make two passes to allow for proper duplicate-argument suppression.
2463 ac_must_keep_next=false
2469 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2470 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2471 | -silent | --silent | --silen | --sile | --sil)
2474 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2477 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2479 as_fn_append ac_configure_args1 " '$ac_arg'"
2480 if test $ac_must_keep_next = true; then
2481 ac_must_keep_next=false # Got value, back to normal.
2484 *=* | --config-cache | -C | -disable-* | --disable-* \
2485 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2486 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2487 | -with-* | --with-* | -without-* | --without-* | --x)
2488 case "$ac_configure_args0 " in
2489 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2492 -* ) ac_must_keep_next=true ;;
2495 as_fn_append ac_configure_args " '$ac_arg'"
2500 { ac_configure_args0=; unset ac_configure_args0;}
2501 { ac_configure_args1=; unset ac_configure_args1;}
2503 # When interrupted or exit'd, cleanup temporary files, and complete
2504 # config.log. We remove comments because anyway the quotes in there
2505 # would cause problems or look ugly.
2506 # WARNING: Use '\'' to represent an apostrophe within the trap.
2507 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2508 trap 'exit_status=$?
2509 # Save into config.log some information that might help in debugging.
2513 $as_echo "## ---------------- ##
2514 ## Cache variables. ##
2515 ## ---------------- ##"
2517 # The following way of writing the cache mishandles newlines in values,
2519 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2520 eval ac_val=\$$ac_var
2524 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2525 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2528 _ | IFS | as_nl) ;; #(
2529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2530 *) { eval $ac_var=; unset $ac_var;} ;;
2535 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2536 *${as_nl}ac_space=\ *)
2538 "s/'\''/'\''\\\\'\'''\''/g;
2539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2542 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2549 $as_echo "## ----------------- ##
2550 ## Output variables. ##
2551 ## ----------------- ##"
2553 for ac_var in $ac_subst_vars
2555 eval ac_val=\$$ac_var
2557 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2559 $as_echo "$ac_var='\''$ac_val'\''"
2563 if test -n "$ac_subst_files"; then
2564 $as_echo "## ------------------- ##
2565 ## File substitutions. ##
2566 ## ------------------- ##"
2568 for ac_var in $ac_subst_files
2570 eval ac_val=\$$ac_var
2572 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574 $as_echo "$ac_var='\''$ac_val'\''"
2579 if test -s confdefs.h; then
2580 $as_echo "## ----------- ##
2587 test "$ac_signal" != 0 &&
2588 $as_echo "$as_me: caught signal $ac_signal"
2589 $as_echo "$as_me: exit $exit_status"
2591 rm -f core *.core core.conftest.* &&
2592 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2595 for ac_signal in 1 2 13 15; do
2596 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2600 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2601 rm -f -r conftest* confdefs.h
2603 $as_echo "/* confdefs.h */" > confdefs.h
2605 # Predefined preprocessor variables.
2607 cat >>confdefs.h <<_ACEOF
2608 #define PACKAGE_NAME "$PACKAGE_NAME"
2611 cat >>confdefs.h <<_ACEOF
2612 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2615 cat >>confdefs.h <<_ACEOF
2616 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2619 cat >>confdefs.h <<_ACEOF
2620 #define PACKAGE_STRING "$PACKAGE_STRING"
2623 cat >>confdefs.h <<_ACEOF
2624 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2627 cat >>confdefs.h <<_ACEOF
2628 #define PACKAGE_URL "$PACKAGE_URL"
2632 # Let the site file select an alternate cache file if it wants to.
2633 # Prefer an explicitly selected file to automatically selected ones.
2636 if test -n "$CONFIG_SITE"; then
2637 # We do not want a PATH search for config.site.
2638 case $CONFIG_SITE in #((
2639 -*) ac_site_file1=./$CONFIG_SITE;;
2640 */*) ac_site_file1=$CONFIG_SITE;;
2641 *) ac_site_file1=./$CONFIG_SITE;;
2643 elif test "x$prefix" != xNONE; then
2644 ac_site_file1=$prefix/share/config.site
2645 ac_site_file2=$prefix/etc/config.site
2647 ac_site_file1=$ac_default_prefix/share/config.site
2648 ac_site_file2=$ac_default_prefix/etc/config.site
2650 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2652 test "x$ac_site_file" = xNONE && continue
2653 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2655 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2656 sed 's/^/| /' "$ac_site_file" >&5
2658 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 as_fn_error $? "failed to load site script $ac_site_file
2661 See \`config.log' for more details" "$LINENO" 5; }
2665 if test -r "$cache_file"; then
2666 # Some versions of bash will fail to source /dev/null (special files
2667 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2668 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2670 $as_echo "$as_me: loading cache $cache_file" >&6;}
2672 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2673 *) . "./$cache_file";;
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2678 $as_echo "$as_me: creating cache $cache_file" >&6;}
2682 # Check that the precious variables saved in the cache have kept the same
2684 ac_cache_corrupted=false
2685 for ac_var in $ac_precious_vars; do
2686 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2687 eval ac_new_set=\$ac_env_${ac_var}_set
2688 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2689 eval ac_new_val=\$ac_env_${ac_var}_value
2690 case $ac_old_set,$ac_new_set in
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2693 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2694 ac_cache_corrupted=: ;;
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2697 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2698 ac_cache_corrupted=: ;;
2701 if test "x$ac_old_val" != "x$ac_new_val"; then
2702 # differences in whitespace do not lead to failure.
2703 ac_old_val_w=`echo x $ac_old_val`
2704 ac_new_val_w=`echo x $ac_new_val`
2705 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2707 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2708 ac_cache_corrupted=:
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2711 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2712 eval $ac_var=\$ac_old_val
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2715 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2717 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2720 # Pass precious variables to config.status.
2721 if test "$ac_new_set" = set; then
2723 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 *) ac_arg=$ac_var=$ac_new_val ;;
2726 case " $ac_configure_args " in
2727 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2728 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2732 if $ac_cache_corrupted; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2736 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2737 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2739 ## -------------------- ##
2740 ## Main body of script. ##
2741 ## -------------------- ##
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750 # Make sure the srcdir contains "libarchive" directory
2752 # Use auxiliary subscripts from this subdirectory (cleans up root)
2754 for ac_dir in build/autoconf "$srcdir"/build/autoconf; do
2755 if test -f "$ac_dir/install-sh"; then
2757 ac_install_sh="$ac_aux_dir/install-sh -c"
2759 elif test -f "$ac_dir/install.sh"; then
2761 ac_install_sh="$ac_aux_dir/install.sh -c"
2763 elif test -f "$ac_dir/shtool"; then
2765 ac_install_sh="$ac_aux_dir/shtool install -c"
2769 if test -z "$ac_aux_dir"; then
2770 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build/autoconf \"$srcdir\"/build/autoconf" "$LINENO" 5
2773 # These three variables are undocumented and unsupported,
2774 # and are intended to be withdrawn in a future Autoconf release.
2775 # They can cause serious problems if a builder's source tree is in a directory
2776 # whose full name contains unusual characters.
2777 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2778 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2779 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2784 # Must follow AC_CONFIG macros above...
2785 am__api_version='1.11'
2787 # Find a good install program. We prefer a C program (faster),
2788 # so one script is as good as another. But avoid the broken or
2789 # incompatible versions:
2790 # SysV /etc/install, /usr/sbin/install
2791 # SunOS /usr/etc/install
2792 # IRIX /sbin/install
2794 # AmigaOS /C/install, which installs bootblocks on floppy discs
2795 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2798 # OS/2's system install, which has a completely different semantic
2799 # ./install, which can be erroneously created by make from ./install.sh.
2800 # Reject install programs that cannot install multiple files.
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2802 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2803 if test -z "$INSTALL"; then
2804 if ${ac_cv_path_install+:} false; then :
2805 $as_echo_n "(cached) " >&6
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 # Account for people who put trailing slashes in PATH elements.
2813 case $as_dir/ in #((
2814 ./ | .// | /[cC]/* | \
2815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2819 # OSF1 and SCO ODT 3.0 have their own names for install.
2820 # Don't use installbsd from OSF since it installs stuff as root
2822 for ac_prog in ginstall scoinst install; do
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2825 if test $ac_prog = install &&
2826 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2827 # AIX install. It has an incompatible calling convention.
2829 elif test $ac_prog = install &&
2830 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831 # program-specific install script used by HP pwplus--don't use.
2834 rm -rf conftest.one conftest.two conftest.dir
2835 echo one > conftest.one
2836 echo two > conftest.two
2838 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2839 test -s conftest.one && test -s conftest.two &&
2840 test -s conftest.dir/conftest.one &&
2841 test -s conftest.dir/conftest.two
2843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2856 rm -rf conftest.one conftest.two conftest.dir
2859 if test "${ac_cv_path_install+set}" = set; then
2860 INSTALL=$ac_cv_path_install
2862 # As a last resort, use the slow shell script. Don't cache a
2863 # value for INSTALL within a source directory, because that will
2864 # break other packages using the cache if that directory is
2865 # removed, or if the value is a relative name.
2866 INSTALL=$ac_install_sh
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2870 $as_echo "$INSTALL" >&6; }
2872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2873 # It thinks the first close brace ends the variable substitution.
2874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2881 $as_echo_n "checking whether build environment is sane... " >&6; }
2884 echo timestamp > conftest.file
2885 # Reject unsafe characters in $srcdir or the absolute working directory
2886 # name. Accept space and tab only in the latter.
2890 *[\\\"\#\$\&\'\`$am_lf]*)
2891 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2894 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2895 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2898 # Do `set' in a subshell so we don't clobber the current shell's
2899 # arguments. Must try -L first in case configure is actually a
2900 # symlink; some systems play weird games with the mod time of symlinks
2901 # (eg FreeBSD returns the mod time of the symlink's containing
2904 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2905 if test "$*" = "X"; then
2907 set X `ls -t "$srcdir/configure" conftest.file`
2910 if test "$*" != "X $srcdir/configure conftest.file" \
2911 && test "$*" != "X conftest.file $srcdir/configure"; then
2913 # If neither matched, then we have a broken ls. This can happen
2914 # if, for instance, CONFIG_SHELL is bash and it inherits a
2915 # broken ls alias from the environment. This has actually
2916 # happened. Such a system could not be considered "sane".
2917 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2918 alias in your environment" "$LINENO" 5
2921 test "$2" = conftest.file
2927 as_fn_error $? "newly created file is older than distributed files!
2928 Check your system clock" "$LINENO" 5
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2932 test "$program_prefix" != NONE &&
2933 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2934 # Use a double $ so make ignores it.
2935 test "$program_suffix" != NONE &&
2936 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2937 # Double any \ or $.
2938 # By default was `s,x,x', remove it if useless.
2939 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2940 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2942 # expand $ac_aux_dir to an absolute path
2943 am_aux_dir=`cd $ac_aux_dir && pwd`
2945 if test x"${MISSING+set}" != xset; then
2948 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2950 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2953 # Use eval to expand $SHELL
2954 if eval "$MISSING --run true"; then
2955 am_missing_run="$MISSING --run "
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2959 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2962 if test x"${install_sh}" != xset; then
2965 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2967 install_sh="\${SHELL} $am_aux_dir/install-sh"
2971 # Installed binaries are usually stripped using `strip' when the user
2972 # run `make install-strip'. However `strip' might not be the right
2973 # tool to use in cross-compilation environments, therefore Automake
2974 # will honor the `STRIP' environment variable to overrule this program.
2975 if test "$cross_compiling" != no; then
2976 if test -n "$ac_tool_prefix"; then
2977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2978 set dummy ${ac_tool_prefix}strip; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2984 if test -n "$STRIP"; then
2985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 STRIP=$ac_cv_prog_STRIP
3005 if test -n "$STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3007 $as_echo "$STRIP" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3015 if test -z "$ac_cv_prog_STRIP"; then
3017 # Extract the first word of "strip", so it can be a program name with args.
3018 set dummy strip; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3022 $as_echo_n "(cached) " >&6
3024 if test -n "$ac_ct_STRIP"; then
3025 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034 ac_cv_prog_ac_ct_STRIP="strip"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3045 if test -n "$ac_ct_STRIP"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3047 $as_echo "$ac_ct_STRIP" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3053 if test "x$ac_ct_STRIP" = x; then
3056 case $cross_compiling:$ac_tool_warned in
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3060 ac_tool_warned=yes ;;
3065 STRIP="$ac_cv_prog_STRIP"
3069 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3072 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3073 if test -z "$MKDIR_P"; then
3074 if ${ac_cv_path_mkdir+:} false; then :
3075 $as_echo_n "(cached) " >&6
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3081 test -z "$as_dir" && as_dir=.
3082 for ac_prog in mkdir gmkdir; do
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3085 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3086 'mkdir (GNU coreutils) '* | \
3087 'mkdir (coreutils) '* | \
3088 'mkdir (fileutils) '4.1*)
3089 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3099 test -d ./--version && rmdir ./--version
3100 if test "${ac_cv_path_mkdir+set}" = set; then
3101 MKDIR_P="$ac_cv_path_mkdir -p"
3103 # As a last resort, use the slow shell script. Don't cache a
3104 # value for MKDIR_P within a source directory, because that will
3105 # break other packages using the cache if that directory is
3106 # removed, or if the value is a relative name.
3107 MKDIR_P="$ac_install_sh -d"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3111 $as_echo "$MKDIR_P" >&6; }
3115 [\\/$]* | ?:[\\/]*) ;;
3116 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3119 for ac_prog in gawk mawk nawk awk
3121 # Extract the first word of "$ac_prog", so it can be a program name with args.
3122 set dummy $ac_prog; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_AWK+:} false; then :
3126 $as_echo_n "(cached) " >&6
3128 if test -n "$AWK"; then
3129 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 test -z "$as_dir" && as_dir=.
3136 for ac_exec_ext in '' $ac_executable_extensions; do
3137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138 ac_cv_prog_AWK="$ac_prog"
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 if test -n "$AWK"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3151 $as_echo "$AWK" >&6; }
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3158 test -n "$AWK" && break
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3162 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3164 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3165 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3166 $as_echo_n "(cached) " >&6
3168 cat >conftest.make <<\_ACEOF
3171 @echo '@@@%%%=$(MAKE)=@@@%%%'
3173 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3174 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3176 eval ac_cv_prog_make_${ac_make}_set=yes;;
3178 eval ac_cv_prog_make_${ac_make}_set=no;;
3182 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3184 $as_echo "yes" >&6; }
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3189 SET_MAKE="MAKE=${MAKE-make}"
3192 rm -rf .tst 2>/dev/null
3193 mkdir .tst 2>/dev/null
3194 if test -d .tst; then
3199 rmdir .tst 2>/dev/null
3201 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3202 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3203 # is not polluted with repeated "-I."
3204 am__isrc=' -I$(srcdir)'
3205 # test to see if srcdir already configured
3206 if test -f $srcdir/config.status; then
3207 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3211 # test whether we have cygpath
3212 if test -z "$CYGPATH_W"; then
3213 if (cygpath --version) >/dev/null 2>/dev/null; then
3214 CYGPATH_W='cygpath -w'
3221 # Define the identity of the package.
3222 PACKAGE='libarchive'
3226 cat >>confdefs.h <<_ACEOF
3227 #define PACKAGE "$PACKAGE"
3231 cat >>confdefs.h <<_ACEOF
3232 #define VERSION "$VERSION"
3235 # Some tools Automake needs.
3237 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3240 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3243 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3246 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3249 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3251 # We need awk for the "check" target. The system "awk" is bad on
3253 # Always define AMTAR for backward compatibility. Yes, it's still used
3254 # in the wild :-( We should find a proper way to deprecate it ...
3257 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3263 # Check whether --enable-silent-rules was given.
3264 if test "${enable_silent_rules+set}" = set; then :
3265 enableval=$enable_silent_rules;
3268 case $enable_silent_rules in
3269 yes) AM_DEFAULT_VERBOSITY=0;;
3270 no) AM_DEFAULT_VERBOSITY=1;;
3271 *) AM_DEFAULT_VERBOSITY=0;;
3273 am_make=${MAKE-make}
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3275 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3276 if ${am_cv_make_support_nested_variables+:} false; then :
3277 $as_echo_n "(cached) " >&6
3279 if $as_echo 'TRUE=$(BAR$(V))
3285 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3286 am_cv_make_support_nested_variables=yes
3288 am_cv_make_support_nested_variables=no
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3292 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3293 if test $am_cv_make_support_nested_variables = yes; then
3295 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3297 AM_V=$AM_DEFAULT_VERBOSITY
3298 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3303 # Libtool's "interface version" can be computed from the libarchive version.
3305 # Libtool interface version bumps on any API change, so increments
3306 # whenever libarchive minor version does.
3307 ARCHIVE_MINOR=$(( (3001002 / 1000) % 1000 ))
3308 # Libarchive 2.7 == libtool interface 9 = 2 + 7
3309 # Libarchive 2.8 == libtool interface 10 = 2 + 8
3310 # Libarchive 2.9 == libtool interface 11 = 2 + 8
3311 # Libarchive 3.0 == libtool interface 12
3312 # Libarchive 3.1 == libtool interface 13
3313 ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`
3314 # Libarchive revision is bumped on any source change === libtool revision
3315 ARCHIVE_REVISION=$(( 3001002 % 1000 ))
3316 # Libarchive minor is bumped on any interface addition === libtool age
3317 ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR
3319 # Stick the version numbers into config.h
3321 $as_echo "#define LIBARCHIVE_VERSION_STRING \"3.1.2\"" >>confdefs.h
3324 cat >>confdefs.h <<_ACEOF
3325 #define LIBARCHIVE_VERSION_NUMBER "3001002"
3329 $as_echo "#define BSDCPIO_VERSION_STRING \"3.1.2\"" >>confdefs.h
3332 $as_echo "#define BSDTAR_VERSION_STRING \"3.1.2\"" >>confdefs.h
3335 # The shell variables here must be the same as the AC_SUBST() variables
3336 # below, but the shell variable names apparently cannot be the same as
3337 # the m4 macro names above. Why? Ask autoconf.
3338 BSDCPIO_VERSION_STRING=3.1.2
3339 BSDTAR_VERSION_STRING=3.1.2
3340 LIBARCHIVE_VERSION_STRING=3.1.2
3341 LIBARCHIVE_VERSION_NUMBER=3001002
3343 # Substitute the above version numbers into the various files below.
3344 # Yes, I believe this is the fourth time we define what are essentially
3345 # the same symbols. Why? Ask autoconf.
3352 ac_config_headers="$ac_config_headers config.h"
3354 ac_config_files="$ac_config_files Makefile"
3356 ac_config_files="$ac_config_files build/pkgconfig/libarchive.pc"
3359 # Check for host type
3360 # Make sure we can run config.sub.
3361 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3362 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3365 $as_echo_n "checking build system type... " >&6; }
3366 if ${ac_cv_build+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 ac_build_alias=$build_alias
3370 test "x$ac_build_alias" = x &&
3371 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3372 test "x$ac_build_alias" = x &&
3373 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3374 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3379 $as_echo "$ac_cv_build" >&6; }
3380 case $ac_cv_build in
3382 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3385 ac_save_IFS=$IFS; IFS='-'
3391 # Remember, the first character of IFS is used to create $*,
3392 # except with old shells:
3395 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3399 $as_echo_n "checking host system type... " >&6; }
3400 if ${ac_cv_host+:} false; then :
3401 $as_echo_n "(cached) " >&6
3403 if test "x$host_alias" = x; then
3404 ac_cv_host=$ac_cv_build
3406 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3407 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3412 $as_echo "$ac_cv_host" >&6; }
3415 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3418 ac_save_IFS=$IFS; IFS='-'
3424 # Remember, the first character of IFS is used to create $*,
3425 # except with old shells:
3428 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3432 inc_windows_files=no
3435 *mingw* ) inc_windows_files=yes ;;
3436 *cygwin*) inc_cygwin_files=yes ;;
3438 if test $inc_windows_files = yes; then
3439 INC_WINDOWS_FILES_TRUE=
3440 INC_WINDOWS_FILES_FALSE='#'
3442 INC_WINDOWS_FILES_TRUE='#'
3443 INC_WINDOWS_FILES_FALSE=
3446 if test $inc_cygwin_files = yes; then
3447 INC_CYGWIN_FILES_TRUE=
3448 INC_CYGWIN_FILES_FALSE='#'
3450 INC_CYGWIN_FILES_TRUE='#'
3451 INC_CYGWIN_FILES_FALSE=
3457 *mingw* ) PLATFORMCPPFLAGS=-D__USE_MINGW_ANSI_STDIO ;;
3461 # Checks for programs.
3463 ac_cpp='$CPP $CPPFLAGS'
3464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3506 if test -z "$ac_cv_prog_CC"; then
3508 # Extract the first word of "gcc", so it can be a program name with args.
3509 set dummy gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$ac_ct_CC"; then
3516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_prog_ac_ct_CC="gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3536 if test -n "$ac_ct_CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3538 $as_echo "$ac_ct_CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3544 if test "x$ac_ct_CC" = x; then
3547 case $cross_compiling:$ac_tool_warned in
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3551 ac_tool_warned=yes ;;
3559 if test -z "$CC"; then
3560 if test -n "$ac_tool_prefix"; then
3561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3562 set dummy ${ac_tool_prefix}cc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_CC+:} false; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_CC="${ac_tool_prefix}cc"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3589 if test -n "$CC"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3591 $as_echo "$CC" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3600 if test -z "$CC"; then
3601 # Extract the first word of "cc", so it can be a program name with args.
3602 set dummy cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if ${ac_cv_prog_CC+:} false; then :
3606 $as_echo_n "(cached) " >&6
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3620 ac_prog_rejected=yes
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 if test $ac_prog_rejected = yes; then
3632 # We found a bogon in the path, so make sure we never use it.
3633 set dummy $ac_cv_prog_CC
3635 if test $# != 0; then
3636 # We chose a different compiler from the bogus one.
3637 # However, it has the same basename, so the bogon will be chosen
3638 # first if we set CC to just the basename; use the full file name.
3640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3656 if test -z "$CC"; then
3657 if test -n "$ac_tool_prefix"; then
3658 for ac_prog in cl.exe
3660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if ${ac_cv_prog_CC+:} false; then :
3665 $as_echo_n "(cached) " >&6
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3688 if test -n "$CC"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690 $as_echo "$CC" >&6; }
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693 $as_echo "no" >&6; }
3697 test -n "$CC" && break
3700 if test -z "$CC"; then
3702 for ac_prog in cl.exe
3704 # Extract the first word of "$ac_prog", so it can be a program name with args.
3705 set dummy $ac_prog; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$ac_ct_CC"; then
3712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_prog_ac_ct_CC="$ac_prog"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732 if test -n "$ac_ct_CC"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734 $as_echo "$ac_ct_CC" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3741 test -n "$ac_ct_CC" && break
3744 if test "x$ac_ct_CC" = x; then
3747 case $cross_compiling:$ac_tool_warned in
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751 ac_tool_warned=yes ;;
3760 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3762 as_fn_error $? "no acceptable C compiler found in \$PATH
3763 See \`config.log' for more details" "$LINENO" 5; }
3765 # Provide some information about the compiler.
3766 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3769 for ac_option in --version -v -V -qversion; do
3770 { { ac_try="$ac_compiler $ac_option >&5"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3779 if test -s conftest.err; then
3781 ... rest of stderr output deleted ...
3782 10q' conftest.err >conftest.er1
3783 cat conftest.er1 >&5
3785 rm -f conftest.er1 conftest.err
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3801 ac_clean_files_save=$ac_clean_files
3802 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3803 # Try to create an executable without -o first, disregard a.out.
3804 # It will help us diagnose broken compilers, and finding out an intuition
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3807 $as_echo_n "checking whether the C compiler works... " >&6; }
3808 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3810 # The possible output files:
3811 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3814 for ac_file in $ac_files
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3818 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3823 if { { ac_try="$ac_link_default"
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_link_default") 2>&5
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; then :
3834 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3835 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3836 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3837 # so that the user can short-circuit this test for compilers unknown to
3839 for ac_file in $ac_files ''
3841 test -f "$ac_file" || continue
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3846 # We found the default executable, but exeext='' is most
3850 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3854 # We set ac_cv_exeext here because the later test for it is not
3855 # safe: cross compilers may not add the suffix if given an `-o'
3856 # argument, so we may need to know it at that point already.
3857 # Even if this section looks crufty: it has the advantage of
3864 test "$ac_cv_exeext" = no && ac_cv_exeext=
3869 if test -z "$ac_file"; then :
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 $as_echo "no" >&6; }
3872 $as_echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error 77 "C compiler cannot create executables
3878 See \`config.log' for more details" "$LINENO" 5; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3881 $as_echo "yes" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3884 $as_echo_n "checking for C compiler default output file name... " >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3886 $as_echo "$ac_file" >&6; }
3887 ac_exeext=$ac_cv_exeext
3889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3890 ac_clean_files=$ac_clean_files_save
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3892 $as_echo_n "checking for suffix of executables... " >&6; }
3893 if { { ac_try="$ac_link"
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link") 2>&5
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3905 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3906 # work properly (i.e., refer to `conftest.exe'), while it won't with
3908 for ac_file in conftest.exe conftest conftest.*; do
3909 test -f "$ac_file" || continue
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3918 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3921 See \`config.log' for more details" "$LINENO" 5; }
3923 rm -f conftest conftest$ac_cv_exeext
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3925 $as_echo "$ac_cv_exeext" >&6; }
3927 rm -f conftest.$ac_ext
3928 EXEEXT=$ac_cv_exeext
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3936 FILE *f = fopen ("conftest.out", "w");
3937 return ferror (f) || fclose (f) != 0;
3943 ac_clean_files="$ac_clean_files conftest.out"
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 if test "$cross_compiling" != yes; then
3949 { { ac_try="$ac_link"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3955 $as_echo "$ac_try_echo"; } >&5
3956 (eval "$ac_link") 2>&5
3958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3959 test $ac_status = 0; }
3960 if { ac_try='./conftest$ac_cv_exeext'
3961 { { case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966 $as_echo "$ac_try_echo"; } >&5
3967 (eval "$ac_try") 2>&5
3969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970 test $ac_status = 0; }; }; then
3973 if test "$cross_compiling" = maybe; then
3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $? "cannot run C compiled programs.
3979 If you meant to cross compile, use \`--host'.
3980 See \`config.log' for more details" "$LINENO" 5; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3985 $as_echo "$cross_compiling" >&6; }
3987 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3988 ac_clean_files=$ac_clean_files_save
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3990 $as_echo_n "checking for suffix of object files... " >&6; }
3991 if ${ac_cv_objext+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 rm -f conftest.o conftest.obj
4006 if { { ac_try="$ac_compile"
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_compile") 2>&5
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4026 $as_echo "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4032 See \`config.log' for more details" "$LINENO" 5; }
4034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4037 $as_echo "$ac_cv_objext" >&6; }
4038 OBJEXT=$ac_cv_objext
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4041 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4042 if ${ac_cv_c_compiler_gnu+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4059 if ac_fn_c_try_compile "$LINENO"; then :
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4069 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4070 if test $ac_compiler_gnu = yes; then
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4079 if ${ac_cv_prog_cc_g+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4112 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_c_werror_flag=$ac_save_c_werror_flag
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4139 $as_echo "$ac_cv_prog_cc_g" >&6; }
4140 if test "$ac_test_CFLAGS" = set; then
4141 CFLAGS=$ac_save_CFLAGS
4142 elif test $ac_cv_prog_cc_g = yes; then
4143 if test "$GCC" = yes; then
4149 if test "$GCC" = yes; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4156 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4157 if ${ac_cv_prog_cc_c89+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_cv_prog_cc_c89=no
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4168 struct buf { int x; };
4169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4170 static char *e (p, i)
4176 static char *f (char * (*g) (char **, int), char **p, ...)
4181 s = g (p, va_arg (v,int));
4186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4187 function prototypes and stuff, but not '\xHH' hex character constants.
4188 These don't provoke an error unfortunately, instead are silently treated
4189 as 'x'. The following induces an error, until -std is added to get
4190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4191 array size at least. It's necessary to write '\x00'==0 to get something
4192 that's true only with -std. */
4193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4196 inside strings and character constants. */
4198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4200 int test (int i, double x);
4201 struct s1 {int (*f) (int a);};
4202 struct s2 {int (*f) (double a);};
4203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4217 CC="$ac_save_CC $ac_arg"
4218 if ac_fn_c_try_compile "$LINENO"; then :
4219 ac_cv_prog_cc_c89=$ac_arg
4221 rm -f core conftest.err conftest.$ac_objext
4222 test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 rm -f conftest.$ac_ext
4229 case "x$ac_cv_prog_cc_c89" in
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4232 $as_echo "none needed" >&6; } ;;
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4235 $as_echo "unsupported" >&6; } ;;
4237 CC="$CC $ac_cv_prog_cc_c89"
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4239 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 if test "x$ac_cv_prog_cc_c89" != xno; then :
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 DEPDIR="${am__leading_dot}deps"
4252 ac_config_commands="$ac_config_commands depfiles"
4255 am_make=${MAKE-make}
4256 cat > confinc << 'END'
4258 @echo this is the am__doit target
4261 # If we don't find an include directive, just comment out the code.
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4263 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4267 # First try GNU make style include.
4268 echo "include confinc" > confmf
4269 # Ignore all kinds of additional output from `make'.
4270 case `$am_make -s -f confmf 2> /dev/null` in #(
4271 *the\ am__doit\ target*)
4277 # Now try BSD make style include.
4278 if test "$am__include" = "#"; then
4279 echo '.include "confinc"' > confmf
4280 case `$am_make -s -f confmf 2> /dev/null` in #(
4281 *the\ am__doit\ target*)
4282 am__include=.include
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4291 $as_echo "$_am_result" >&6; }
4292 rm -f confinc confmf
4294 # Check whether --enable-dependency-tracking was given.
4295 if test "${enable_dependency_tracking+set}" = set; then :
4296 enableval=$enable_dependency_tracking;
4299 if test "x$enable_dependency_tracking" != xno; then
4300 am_depcomp="$ac_aux_dir/depcomp"
4304 if test "x$enable_dependency_tracking" != xno; then
4314 depcc="$CC" am_compiler_list=
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4317 $as_echo_n "checking dependency style of $depcc... " >&6; }
4318 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
4325 # making a dummy file named `D' -- because `-MD' means `put the output
4329 # Copy depcomp to subdir because otherwise we won't find it if we're
4330 # using a relative directory.
4331 cp "$am_depcomp" conftest.dir
4333 # We will build objects and dependencies in a subdirectory because
4334 # it helps to detect inapplicable dependency modes. For instance
4335 # both Tru64's cc and ICC support -MD to output dependencies as a
4336 # side effect of compilation, but ICC will put the dependencies in
4337 # the current directory while Tru64 will put them in the object
4341 am_cv_CC_dependencies_compiler_type=none
4342 if test "$am_compiler_list" = ""; then
4343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4346 case " $depcc " in #(
4347 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4350 for depmode in $am_compiler_list; do
4351 # Setup a source with many dependencies, because some compilers
4352 # like to wrap large dependency lists on column 80 (with \), and
4353 # we should not choose a depcomp mode which is confused by this.
4355 # We need to recreate these files for each test, as the compiler may
4356 # overwrite some of them when testing with obscure command lines.
4357 # This happens at least with the AIX C compiler.
4359 for i in 1 2 3 4 5 6; do
4360 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4361 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4362 # Solaris 8's {/usr,}/bin/sh.
4363 touch sub/conftst$i.h
4365 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4367 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4368 # mode. It turns out that the SunPro C++ compiler does not properly
4369 # handle `-M -o', and we need to detect this. Also, some Intel
4370 # versions had trouble with output in subdirs
4371 am__obj=sub/conftest.${OBJEXT-o}
4372 am__minus_obj="-o $am__obj"
4375 # This depmode causes a compiler race in universal mode.
4376 test "$am__universal" = false || continue
4379 # after this tag, mechanisms are not by side-effect, so they'll
4380 # only be used when explicitly requested
4381 if test "x$enable_dependency_tracking" = xyes; then
4387 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4388 # This compiler won't grok `-c -o', but also, the minuso test has
4389 # not run yet. These depmodes are late enough in the game, and
4390 # so weak that their functioning should not be impacted.
4391 am__obj=conftest.${OBJEXT-o}
4396 if depmode=$depmode \
4397 source=sub/conftest.c object=$am__obj \
4398 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4399 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4400 >/dev/null 2>conftest.err &&
4401 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4403 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4404 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4405 # icc doesn't choke on unknown options, it will just issue warnings
4406 # or remarks (even with -Werror). So we grep stderr for any message
4407 # that says an option was ignored or not supported.
4408 # When given -MP, icc 7.0 and 7.1 complain thusly:
4409 # icc: Command line warning: ignoring option '-M'; no argument required
4410 # The diagnosis changed in icc 8.0:
4411 # icc: Command line remark: option '-MP' not supported
4412 if (grep 'ignoring option' conftest.err ||
4413 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4414 am_cv_CC_dependencies_compiler_type=$depmode
4423 am_cv_CC_dependencies_compiler_type=none
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4428 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4429 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4432 test "x$enable_dependency_tracking" != xno \
4433 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435 am__fastdepCC_FALSE='#'
4437 am__fastdepCC_TRUE='#'
4438 am__fastdepCC_FALSE=
4442 if test "x$CC" != xcc; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4444 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4447 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4449 set dummy $CC; ac_cc=`$as_echo "$2" |
4450 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4451 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4465 # Make sure it works both with $CC and with simple cc.
4466 # We do the test twice because some compilers refuse to overwrite an
4467 # existing .o file with -o, though they will create one.
4468 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4470 if { { case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_try") 2>&5
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; } &&
4480 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485 $as_echo "$ac_try_echo"; } >&5
4486 (eval "$ac_try") 2>&5
4488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; };
4491 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4492 if test "x$CC" != xcc; then
4493 # Test first that cc exists at all.
4494 if { ac_try='cc -c conftest.$ac_ext >&5'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4505 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4507 if { { case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_try") 2>&5
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; } &&
4517 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519 *) ac_try_echo=$ac_try;;
4521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4522 $as_echo "$ac_try_echo"; } >&5
4523 (eval "$ac_try") 2>&5
4525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4526 test $ac_status = 0; };
4531 # cc exists but doesn't like -o.
4532 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4537 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4539 rm -f core conftest*
4542 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4544 $as_echo "yes" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4549 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4553 # FIXME: we rely on the cache variable name because
4554 # there is no other way.
4556 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4557 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4558 if test "$am_t" != yes; then
4559 # Losing compiler, so override with the script.
4560 # FIXME: It is wrong to rewrite CC.
4561 # But if we don't then we get into trouble of one sort or another.
4562 # A longer-term fix would be to have automake use am__CC in this case,
4563 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4564 CC="$am_aux_dir/compile $CC"
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4575 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4576 # On Suns, sometimes $CPP names a directory.
4577 if test -n "$CPP" && test -d "$CPP"; then
4580 if test -z "$CPP"; then
4581 if ${ac_cv_prog_CPP+:} false; then :
4582 $as_echo_n "(cached) " >&6
4584 # Double quotes because CPP needs to be expanded
4585 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4588 for ac_c_preproc_warn_flag in '' yes
4590 # Use a header file that comes with gcc, so configuring glibc
4591 # with a fresh cross-compiler works.
4592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4593 # <limits.h> exists even on freestanding compilers.
4594 # On the NeXT, cc -E runs the code through the compiler's parser,
4595 # not just through cpp. "Syntax error" is here to catch this case.
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4599 # include <limits.h>
4601 # include <assert.h>
4605 if ac_fn_c_try_cpp "$LINENO"; then :
4608 # Broken: fails on valid input.
4611 rm -f conftest.err conftest.i conftest.$ac_ext
4613 # OK, works on sane cases. Now check whether nonexistent headers
4614 # can be detected and how.
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4617 #include <ac_nonexistent.h>
4619 if ac_fn_c_try_cpp "$LINENO"; then :
4620 # Broken: success on invalid input.
4623 # Passes both tests.
4627 rm -f conftest.err conftest.i conftest.$ac_ext
4630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4631 rm -f conftest.i conftest.err conftest.$ac_ext
4632 if $ac_preproc_ok; then :
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4645 $as_echo "$CPP" >&6; }
4647 for ac_c_preproc_warn_flag in '' yes
4649 # Use a header file that comes with gcc, so configuring glibc
4650 # with a fresh cross-compiler works.
4651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4652 # <limits.h> exists even on freestanding compilers.
4653 # On the NeXT, cc -E runs the code through the compiler's parser,
4654 # not just through cpp. "Syntax error" is here to catch this case.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4658 # include <limits.h>
4660 # include <assert.h>
4664 if ac_fn_c_try_cpp "$LINENO"; then :
4667 # Broken: fails on valid input.
4670 rm -f conftest.err conftest.i conftest.$ac_ext
4672 # OK, works on sane cases. Now check whether nonexistent headers
4673 # can be detected and how.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <ac_nonexistent.h>
4678 if ac_fn_c_try_cpp "$LINENO"; then :
4679 # Broken: success on invalid input.
4682 # Passes both tests.
4686 rm -f conftest.err conftest.i conftest.$ac_ext
4689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4690 rm -f conftest.i conftest.err conftest.$ac_ext
4691 if $ac_preproc_ok; then :
4694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4696 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4697 See \`config.log' for more details" "$LINENO" 5; }
4701 ac_cpp='$CPP $CPPFLAGS'
4702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4708 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4709 if ${ac_cv_path_GREP+:} false; then :
4710 $as_echo_n "(cached) " >&6
4712 if test -z "$GREP"; then
4713 ac_path_GREP_found=false
4714 # Loop through the user's path and test for each of PROGNAME-LIST
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4719 test -z "$as_dir" && as_dir=.
4720 for ac_prog in grep ggrep; do
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4723 as_fn_executable_p "$ac_path_GREP" || continue
4724 # Check for GNU ac_path_GREP and select it if it is found.
4725 # Check for GNU $ac_path_GREP
4726 case `"$ac_path_GREP" --version 2>&1` in
4728 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4731 $as_echo_n 0123456789 >"conftest.in"
4734 cat "conftest.in" "conftest.in" >"conftest.tmp"
4735 mv "conftest.tmp" "conftest.in"
4736 cp "conftest.in" "conftest.nl"
4737 $as_echo 'GREP' >> "conftest.nl"
4738 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4740 as_fn_arith $ac_count + 1 && ac_count=$as_val
4741 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4742 # Best one so far, save it but keep looking for a better one
4743 ac_cv_path_GREP="$ac_path_GREP"
4744 ac_path_GREP_max=$ac_count
4746 # 10*(2^10) chars as input seems more than enough
4747 test $ac_count -gt 10 && break
4749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752 $ac_path_GREP_found && break 3
4757 if test -z "$ac_cv_path_GREP"; then
4758 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4761 ac_cv_path_GREP=$GREP
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4766 $as_echo "$ac_cv_path_GREP" >&6; }
4767 GREP="$ac_cv_path_GREP"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4771 $as_echo_n "checking for egrep... " >&6; }
4772 if ${ac_cv_path_EGREP+:} false; then :
4773 $as_echo_n "(cached) " >&6
4775 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4776 then ac_cv_path_EGREP="$GREP -E"
4778 if test -z "$EGREP"; then
4779 ac_path_EGREP_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4785 test -z "$as_dir" && as_dir=.
4786 for ac_prog in egrep; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4789 as_fn_executable_p "$ac_path_EGREP" || continue
4790 # Check for GNU ac_path_EGREP and select it if it is found.
4791 # Check for GNU $ac_path_EGREP
4792 case `"$ac_path_EGREP" --version 2>&1` in
4794 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4797 $as_echo_n 0123456789 >"conftest.in"
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo 'EGREP' >> "conftest.nl"
4804 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
4807 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_EGREP="$ac_path_EGREP"
4810 ac_path_EGREP_max=$ac_count
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818 $ac_path_EGREP_found && break 3
4823 if test -z "$ac_cv_path_EGREP"; then
4824 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4827 ac_cv_path_EGREP=$EGREP
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4833 $as_echo "$ac_cv_path_EGREP" >&6; }
4834 EGREP="$ac_cv_path_EGREP"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4838 $as_echo_n "checking for ANSI C header files... " >&6; }
4839 if ${ac_cv_header_stdc+:} false; then :
4840 $as_echo_n "(cached) " >&6
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_cv_header_stdc=yes
4860 ac_cv_header_stdc=no
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 if test $ac_cv_header_stdc = yes; then
4865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4872 $EGREP "memchr" >/dev/null 2>&1; then :
4875 ac_cv_header_stdc=no
4881 if test $ac_cv_header_stdc = yes; then
4882 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 $EGREP "free" >/dev/null 2>&1; then :
4892 ac_cv_header_stdc=no
4898 if test $ac_cv_header_stdc = yes; then
4899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4900 if test "$cross_compiling" = yes; then :
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4907 #if ((' ' & 0x0FF) == 0x020)
4908 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4909 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4911 # define ISLOWER(c) \
4912 (('a' <= (c) && (c) <= 'i') \
4913 || ('j' <= (c) && (c) <= 'r') \
4914 || ('s' <= (c) && (c) <= 'z'))
4915 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4918 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4923 for (i = 0; i < 256; i++)
4924 if (XOR (islower (i), ISLOWER (i))
4925 || toupper (i) != TOUPPER (i))
4930 if ac_fn_c_try_run "$LINENO"; then :
4933 ac_cv_header_stdc=no
4935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4936 conftest.$ac_objext conftest.beam conftest.$ac_ext
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4942 $as_echo "$ac_cv_header_stdc" >&6; }
4943 if test $ac_cv_header_stdc = yes; then
4945 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4949 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4950 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4951 inttypes.h stdint.h unistd.h
4953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4954 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4956 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4957 cat >>confdefs.h <<_ACEOF
4958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4968 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4975 if test "$MINIX" = yes; then
4977 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4980 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4983 $as_echo "#define _MINIX 1" >>confdefs.h
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4989 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4990 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
4996 # define __EXTENSIONS__ 1
4997 $ac_includes_default
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007 ac_cv_safe_to_define___extensions__=yes
5009 ac_cv_safe_to_define___extensions__=no
5011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5014 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5015 test $ac_cv_safe_to_define___extensions__ = yes &&
5016 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5018 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5020 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5022 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5024 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5027 enable_win32_dll=yes
5030 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5031 if test -n "$ac_tool_prefix"; then
5032 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5033 set dummy ${ac_tool_prefix}as; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if ${ac_cv_prog_AS+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 if test -n "$AS"; then
5040 ac_cv_prog_AS="$AS" # Let the user override the test.
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_prog_AS="${ac_tool_prefix}as"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 if test -n "$AS"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5062 $as_echo "$AS" >&6; }
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5070 if test -z "$ac_cv_prog_AS"; then
5072 # Extract the first word of "as", so it can be a program name with args.
5073 set dummy as; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5077 $as_echo_n "(cached) " >&6
5079 if test -n "$ac_ct_AS"; then
5080 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_ac_ct_AS="as"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5100 if test -n "$ac_ct_AS"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5102 $as_echo "$ac_ct_AS" >&6; }
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5108 if test "x$ac_ct_AS" = x; then
5111 case $cross_compiling:$ac_tool_warned in
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5125 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_prog_DLLTOOL+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 if test -n "$DLLTOOL"; then
5132 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 DLLTOOL=$ac_cv_prog_DLLTOOL
5152 if test -n "$DLLTOOL"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5154 $as_echo "$DLLTOOL" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5162 if test -z "$ac_cv_prog_DLLTOOL"; then
5163 ac_ct_DLLTOOL=$DLLTOOL
5164 # Extract the first word of "dlltool", so it can be a program name with args.
5165 set dummy dlltool; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5169 $as_echo_n "(cached) " >&6
5171 if test -n "$ac_ct_DLLTOOL"; then
5172 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5192 if test -n "$ac_ct_DLLTOOL"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5194 $as_echo "$ac_ct_DLLTOOL" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5200 if test "x$ac_ct_DLLTOOL" = x; then
5203 case $cross_compiling:$ac_tool_warned in
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5207 ac_tool_warned=yes ;;
5209 DLLTOOL=$ac_ct_DLLTOOL
5212 DLLTOOL="$ac_cv_prog_DLLTOOL"
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_prog_OBJDUMP+:} false; then :
5221 $as_echo_n "(cached) " >&6
5223 if test -n "$OBJDUMP"; then
5224 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 OBJDUMP=$ac_cv_prog_OBJDUMP
5244 if test -n "$OBJDUMP"; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5246 $as_echo "$OBJDUMP" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5254 if test -z "$ac_cv_prog_OBJDUMP"; then
5255 ac_ct_OBJDUMP=$OBJDUMP
5256 # Extract the first word of "objdump", so it can be a program name with args.
5257 set dummy objdump; ac_word=$2
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5259 $as_echo_n "checking for $ac_word... " >&6; }
5260 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5261 $as_echo_n "(cached) " >&6
5263 if test -n "$ac_ct_OBJDUMP"; then
5264 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 test -z "$as_dir" && as_dir=.
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5284 if test -n "$ac_ct_OBJDUMP"; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5286 $as_echo "$ac_ct_OBJDUMP" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5292 if test "x$ac_ct_OBJDUMP" = x; then
5295 case $cross_compiling:$ac_tool_warned in
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5301 OBJDUMP=$ac_ct_OBJDUMP
5304 OBJDUMP="$ac_cv_prog_OBJDUMP"
5310 test -z "$AS" && AS=as
5316 test -z "$DLLTOOL" && DLLTOOL=dlltool
5322 test -z "$OBJDUMP" && OBJDUMP=objdump
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5333 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5338 macro_version='2.4.2'
5339 macro_revision='1.3337'
5353 ltmain="$ac_aux_dir/ltmain.sh"
5355 # Backslashify metacharacters that are still active within
5356 # double-quoted strings.
5357 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5359 # Same as above, but do not quote variable references.
5360 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5362 # Sed substitution to delay expansion of an escaped shell variable in a
5363 # double_quote_subst'ed string.
5364 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5366 # Sed substitution to delay expansion of an escaped single quote.
5367 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5369 # Sed substitution to avoid accidental globbing in evaled expressions
5370 no_glob_subst='s/\*/\\\*/g'
5372 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5373 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5374 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5377 $as_echo_n "checking how to print strings... " >&6; }
5378 # Test print first, because it will be a builtin if present.
5379 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5380 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5382 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5385 # Use this function as a fallback that always works.
5386 func_fallback_echo ()
5388 eval 'cat <<_LTECHO_EOF
5392 ECHO='func_fallback_echo'
5395 # func_echo_all arg...
5396 # Invoke $ECHO with all args, space-separated.
5403 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5404 $as_echo "printf" >&6; } ;;
5405 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5406 $as_echo "print -r" >&6; } ;;
5407 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5408 $as_echo "cat" >&6; } ;;
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5425 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5426 if ${ac_cv_path_SED+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5430 for ac_i in 1 2 3 4 5 6 7; do
5431 ac_script="$ac_script$as_nl$ac_script"
5433 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5434 { ac_script=; unset ac_script;}
5435 if test -z "$SED"; then
5436 ac_path_SED_found=false
5437 # Loop through the user's path and test for each of PROGNAME-LIST
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 for ac_prog in sed gsed; do
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5446 as_fn_executable_p "$ac_path_SED" || continue
5447 # Check for GNU ac_path_SED and select it if it is found.
5448 # Check for GNU $ac_path_SED
5449 case `"$ac_path_SED" --version 2>&1` in
5451 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5454 $as_echo_n 0123456789 >"conftest.in"
5457 cat "conftest.in" "conftest.in" >"conftest.tmp"
5458 mv "conftest.tmp" "conftest.in"
5459 cp "conftest.in" "conftest.nl"
5460 $as_echo '' >> "conftest.nl"
5461 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5463 as_fn_arith $ac_count + 1 && ac_count=$as_val
5464 if test $ac_count -gt ${ac_path_SED_max-0}; then
5465 # Best one so far, save it but keep looking for a better one
5466 ac_cv_path_SED="$ac_path_SED"
5467 ac_path_SED_max=$ac_count
5469 # 10*(2^10) chars as input seems more than enough
5470 test $ac_count -gt 10 && break
5472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5475 $ac_path_SED_found && break 3
5480 if test -z "$ac_cv_path_SED"; then
5481 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5489 $as_echo "$ac_cv_path_SED" >&6; }
5490 SED="$ac_cv_path_SED"
5493 test -z "$SED" && SED=sed
5494 Xsed="$SED -e 1s/^X//"
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5507 $as_echo_n "checking for fgrep... " >&6; }
5508 if ${ac_cv_path_FGREP+:} false; then :
5509 $as_echo_n "(cached) " >&6
5511 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5512 then ac_cv_path_FGREP="$GREP -F"
5514 if test -z "$FGREP"; then
5515 ac_path_FGREP_found=false
5516 # Loop through the user's path and test for each of PROGNAME-LIST
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5521 test -z "$as_dir" && as_dir=.
5522 for ac_prog in fgrep; do
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5525 as_fn_executable_p "$ac_path_FGREP" || continue
5526 # Check for GNU ac_path_FGREP and select it if it is found.
5527 # Check for GNU $ac_path_FGREP
5528 case `"$ac_path_FGREP" --version 2>&1` in
5530 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5533 $as_echo_n 0123456789 >"conftest.in"
5536 cat "conftest.in" "conftest.in" >"conftest.tmp"
5537 mv "conftest.tmp" "conftest.in"
5538 cp "conftest.in" "conftest.nl"
5539 $as_echo 'FGREP' >> "conftest.nl"
5540 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5542 as_fn_arith $ac_count + 1 && ac_count=$as_val
5543 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5544 # Best one so far, save it but keep looking for a better one
5545 ac_cv_path_FGREP="$ac_path_FGREP"
5546 ac_path_FGREP_max=$ac_count
5548 # 10*(2^10) chars as input seems more than enough
5549 test $ac_count -gt 10 && break
5551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5554 $ac_path_FGREP_found && break 3
5559 if test -z "$ac_cv_path_FGREP"; then
5560 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5563 ac_cv_path_FGREP=$FGREP
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5569 $as_echo "$ac_cv_path_FGREP" >&6; }
5570 FGREP="$ac_cv_path_FGREP"
5573 test -z "$GREP" && GREP=grep
5593 # Check whether --with-gnu-ld was given.
5594 if test "${with_gnu_ld+set}" = set; then :
5595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5601 if test "$GCC" = yes; then
5602 # Check if gcc -print-prog-name=ld gives a path.
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5604 $as_echo_n "checking for ld used by $CC... " >&6; }
5607 # gcc leaves a trailing carriage return which upsets mingw
5608 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5610 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5613 # Accept absolute paths.
5615 re_direlt='/[^/][^/]*/\.\./'
5616 # Canonicalize the pathname of ld
5617 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5618 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5619 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5621 test -z "$LD" && LD="$ac_prog"
5624 # If it fails, then pretend we aren't using GCC.
5628 # If it is relative, then search for the first ld in PATH.
5632 elif test "$with_gnu_ld" = yes; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5634 $as_echo_n "checking for GNU ld... " >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5637 $as_echo_n "checking for non-GNU ld... " >&6; }
5639 if ${lt_cv_path_LD+:} false; then :
5640 $as_echo_n "(cached) " >&6
5642 if test -z "$LD"; then
5643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5644 for ac_dir in $PATH; do
5646 test -z "$ac_dir" && ac_dir=.
5647 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5648 lt_cv_path_LD="$ac_dir/$ac_prog"
5649 # Check to see if the program is GNU ld. I'd rather use --version,
5650 # but apparently some variants of GNU ld only accept -v.
5651 # Break only if it was the GNU/non-GNU ld that we prefer.
5652 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5653 *GNU* | *'with BFD'*)
5654 test "$with_gnu_ld" != no && break
5657 test "$with_gnu_ld" != yes && break
5664 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5669 if test -n "$LD"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5671 $as_echo "$LD" >&6; }
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5676 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5678 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5679 if ${lt_cv_prog_gnu_ld+:} false; then :
5680 $as_echo_n "(cached) " >&6
5682 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5683 case `$LD -v 2>&1 </dev/null` in
5684 *GNU* | *'with BFD'*)
5685 lt_cv_prog_gnu_ld=yes
5688 lt_cv_prog_gnu_ld=no
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5693 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5694 with_gnu_ld=$lt_cv_prog_gnu_ld
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5705 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5706 if ${lt_cv_path_NM+:} false; then :
5707 $as_echo_n "(cached) " >&6
5709 if test -n "$NM"; then
5710 # Let the user override the test.
5713 lt_nm_to_check="${ac_tool_prefix}nm"
5714 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5715 lt_nm_to_check="$lt_nm_to_check nm"
5717 for lt_tmp_nm in $lt_nm_to_check; do
5718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5719 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5721 test -z "$ac_dir" && ac_dir=.
5722 tmp_nm="$ac_dir/$lt_tmp_nm"
5723 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5724 # Check to see if the nm accepts a BSD-compat flag.
5725 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5726 # nm: unknown option "B" ignored
5727 # Tru64's nm complains that /dev/null is an invalid object file
5728 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5729 */dev/null* | *'Invalid file or object type'*)
5730 lt_cv_path_NM="$tmp_nm -B"
5734 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5736 lt_cv_path_NM="$tmp_nm -p"
5740 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5741 continue # so that we can try to find one that supports BSD flags
5750 : ${lt_cv_path_NM=no}
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5754 $as_echo "$lt_cv_path_NM" >&6; }
5755 if test "$lt_cv_path_NM" != "no"; then
5758 # Didn't find any BSD compatible name lister, look for dumpbin.
5759 if test -n "$DUMPBIN"; then :
5760 # Let the user override the test.
5762 if test -n "$ac_tool_prefix"; then
5763 for ac_prog in dumpbin "link -dump"
5765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if ${ac_cv_prog_DUMPBIN+:} false; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$DUMPBIN"; then
5773 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 DUMPBIN=$ac_cv_prog_DUMPBIN
5793 if test -n "$DUMPBIN"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5795 $as_echo "$DUMPBIN" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5802 test -n "$DUMPBIN" && break
5805 if test -z "$DUMPBIN"; then
5806 ac_ct_DUMPBIN=$DUMPBIN
5807 for ac_prog in dumpbin "link -dump"
5809 # Extract the first word of "$ac_prog", so it can be a program name with args.
5810 set dummy $ac_prog; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5814 $as_echo_n "(cached) " >&6
5816 if test -n "$ac_ct_DUMPBIN"; then
5817 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5826 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5837 if test -n "$ac_ct_DUMPBIN"; then
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5839 $as_echo "$ac_ct_DUMPBIN" >&6; }
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5846 test -n "$ac_ct_DUMPBIN" && break
5849 if test "x$ac_ct_DUMPBIN" = x; then
5852 case $cross_compiling:$ac_tool_warned in
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5856 ac_tool_warned=yes ;;
5858 DUMPBIN=$ac_ct_DUMPBIN
5862 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5864 DUMPBIN="$DUMPBIN -symbols"
5872 if test "$DUMPBIN" != ":"; then
5876 test -z "$NM" && NM=nm
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5884 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5885 if ${lt_cv_nm_interface+:} false; then :
5886 $as_echo_n "(cached) " >&6
5888 lt_cv_nm_interface="BSD nm"
5889 echo "int some_variable = 0;" > conftest.$ac_ext
5890 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5891 (eval "$ac_compile" 2>conftest.err)
5892 cat conftest.err >&5
5893 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5894 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5895 cat conftest.err >&5
5896 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5897 cat conftest.out >&5
5898 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5899 lt_cv_nm_interface="MS dumpbin"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5904 $as_echo "$lt_cv_nm_interface" >&6; }
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5907 $as_echo_n "checking whether ln -s works... " >&6; }
5909 if test "$LN_S" = "ln -s"; then
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5911 $as_echo "yes" >&6; }
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5914 $as_echo "no, using $LN_S" >&6; }
5917 # find the maximum length of command line arguments
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5919 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5920 if ${lt_cv_sys_max_cmd_len+:} false; then :
5921 $as_echo_n "(cached) " >&6
5928 # On DJGPP, this test can blow up pretty badly due to problems in libc
5929 # (any single argument exceeding 2000 bytes causes a buffer overrun
5930 # during glob expansion). Even if it were fixed, the result of this
5931 # check would be larger than it should be.
5932 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5936 # Under GNU Hurd, this test is not required because there is
5937 # no limit to the length of command line arguments.
5938 # Libtool will interpret -1 as no limit whatsoever
5939 lt_cv_sys_max_cmd_len=-1;
5942 cygwin* | mingw* | cegcc*)
5943 # On Win9x/ME, this test blows up -- it succeeds, but takes
5944 # about 5 minutes as the teststring grows exponentially.
5945 # Worse, since 9x/ME are not pre-emptively multitasking,
5946 # you end up with a "frozen" computer, even though with patience
5947 # the test eventually succeeds (with a max line length of 256k).
5948 # Instead, let's just punt: use the minimum linelength reported by
5949 # all of the supported platforms: 8192 (on NT/2K/XP).
5950 lt_cv_sys_max_cmd_len=8192;
5954 # On MiNT this can take a long time and run out of memory.
5955 lt_cv_sys_max_cmd_len=8192;
5959 # On AmigaOS with pdksh, this test takes hours, literally.
5960 # So we just punt and use a minimum line length of 8192.
5961 lt_cv_sys_max_cmd_len=8192;
5964 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5965 # This has been around since 386BSD, at least. Likely further.
5966 if test -x /sbin/sysctl; then
5967 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5968 elif test -x /usr/sbin/sysctl; then
5969 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5971 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5973 # And add a safety zone
5974 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5979 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5980 lt_cv_sys_max_cmd_len=196608
5984 # The test takes a long time on OS/2.
5985 lt_cv_sys_max_cmd_len=8192
5989 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5990 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5991 # nice to cause kernel panics so lets avoid the loop below.
5992 # First set a reasonable default.
5993 lt_cv_sys_max_cmd_len=16384
5995 if test -x /sbin/sysconfig; then
5996 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5997 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6002 lt_cv_sys_max_cmd_len=102400
6004 sysv5* | sco5v6* | sysv4.2uw2*)
6005 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6006 if test -n "$kargmax"; then
6007 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6009 lt_cv_sys_max_cmd_len=32768
6013 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6014 if test -n "$lt_cv_sys_max_cmd_len"; then
6015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6018 # Make teststring a little bigger before we do anything with it.
6019 # a 1K string should be a reasonable start.
6020 for i in 1 2 3 4 5 6 7 8 ; do
6021 teststring=$teststring$teststring
6023 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6024 # If test is not a shell built-in, we'll probably end up computing a
6025 # maximum length that is only half of the actual maximum length, but
6027 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6028 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6029 test $i != 17 # 1/2 MB should be enough
6032 teststring=$teststring$teststring
6034 # Only check the string length outside the loop.
6035 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6037 # Add a significant safety factor because C++ compilers can tack on
6038 # massive amounts of additional arguments before passing them to the
6039 # linker. It appears as though 1/2 is a usable value.
6040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6047 if test -n $lt_cv_sys_max_cmd_len ; then
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6049 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6052 $as_echo "none" >&6; }
6054 max_cmd_len=$lt_cv_sys_max_cmd_len
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6066 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6067 # Try some XSI features
6070 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6072 && eval 'test $(( 1 + 1 )) -eq 2 \
6073 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6076 $as_echo "$xsi_shell" >&6; }
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6080 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6082 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6084 && lt_shell_append=yes
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6086 $as_echo "$lt_shell_append" >&6; }
6089 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6099 # test EBCDIC or ASCII
6100 case `echo X|tr X '\101'` in
6101 A) # ASCII based system
6102 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6103 lt_SP2NL='tr \040 \012'
6104 lt_NL2SP='tr \015\012 \040\040'
6106 *) # EBCDIC based system
6107 lt_SP2NL='tr \100 \n'
6108 lt_NL2SP='tr \r\n \100\100'
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6121 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6122 if ${lt_cv_to_host_file_cmd+:} false; then :
6123 $as_echo_n "(cached) " >&6
6128 *-*-mingw* ) # actually msys
6129 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6132 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6134 * ) # otherwise, assume *nix
6135 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6141 *-*-mingw* ) # actually msys
6142 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6145 lt_cv_to_host_file_cmd=func_convert_file_noop
6147 * ) # otherwise, assume *nix
6148 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6152 * ) # unhandled hosts (and "normal" native builds)
6153 lt_cv_to_host_file_cmd=func_convert_file_noop
6159 to_host_file_cmd=$lt_cv_to_host_file_cmd
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6161 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6168 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6169 if ${lt_cv_to_tool_file_cmd+:} false; then :
6170 $as_echo_n "(cached) " >&6
6172 #assume ordinary cross tools, or native build.
6173 lt_cv_to_tool_file_cmd=func_convert_file_noop
6177 *-*-mingw* ) # actually msys
6178 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6186 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6188 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6195 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6196 if ${lt_cv_ld_reload_flag+:} false; then :
6197 $as_echo_n "(cached) " >&6
6199 lt_cv_ld_reload_flag='-r'
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6202 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6203 reload_flag=$lt_cv_ld_reload_flag
6204 case $reload_flag in
6206 *) reload_flag=" $reload_flag" ;;
6208 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6210 cygwin* | mingw* | pw32* | cegcc*)
6211 if test "$GCC" != yes; then
6216 if test "$GCC" = yes; then
6217 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6219 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6232 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_OBJDUMP+:} false; then :
6238 $as_echo_n "(cached) " >&6
6240 if test -n "$OBJDUMP"; then
6241 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 OBJDUMP=$ac_cv_prog_OBJDUMP
6261 if test -n "$OBJDUMP"; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6263 $as_echo "$OBJDUMP" >&6; }
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6271 if test -z "$ac_cv_prog_OBJDUMP"; then
6272 ac_ct_OBJDUMP=$OBJDUMP
6273 # Extract the first word of "objdump", so it can be a program name with args.
6274 set dummy objdump; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 if test -n "$ac_ct_OBJDUMP"; then
6281 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6301 if test -n "$ac_ct_OBJDUMP"; then
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6303 $as_echo "$ac_ct_OBJDUMP" >&6; }
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6309 if test "x$ac_ct_OBJDUMP" = x; then
6312 case $cross_compiling:$ac_tool_warned in
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6316 ac_tool_warned=yes ;;
6318 OBJDUMP=$ac_ct_OBJDUMP
6321 OBJDUMP="$ac_cv_prog_OBJDUMP"
6324 test -z "$OBJDUMP" && OBJDUMP=objdump
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6332 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6333 if ${lt_cv_deplibs_check_method+:} false; then :
6334 $as_echo_n "(cached) " >&6
6336 lt_cv_file_magic_cmd='$MAGIC_CMD'
6337 lt_cv_file_magic_test_file=
6338 lt_cv_deplibs_check_method='unknown'
6339 # Need to set the preceding variable on all platforms that support
6340 # interlibrary dependencies.
6341 # 'none' -- dependencies not supported.
6342 # `unknown' -- same as none, but documents that we really don't know.
6343 # 'pass_all' -- all dependencies passed with no checks.
6344 # 'test_compile' -- check by making test program.
6345 # 'file_magic [[regex]]' -- check by looking for files in library path
6346 # which responds to the $file_magic_cmd with a given extended regex.
6347 # If you have `file' or equivalent on your system and you're not sure
6348 # whether `pass_all' will *always* work, you probably want this one.
6352 lt_cv_deplibs_check_method=pass_all
6356 lt_cv_deplibs_check_method=pass_all
6360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6361 lt_cv_file_magic_cmd='/usr/bin/file -L'
6362 lt_cv_file_magic_test_file=/shlib/libc.so
6366 # func_win32_libid is a shell function defined in ltmain.sh
6367 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6368 lt_cv_file_magic_cmd='func_win32_libid'
6372 # Base MSYS/MinGW do not provide the 'file' command needed by
6373 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6374 # unless we find 'file', for example because we are cross-compiling.
6375 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6376 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6377 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6378 lt_cv_file_magic_cmd='func_win32_libid'
6380 # Keep this pattern in sync with the one in func_win32_libid.
6381 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6382 lt_cv_file_magic_cmd='$OBJDUMP -f'
6387 # use the weaker test based on 'objdump'. See mingw*.
6388 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6389 lt_cv_file_magic_cmd='$OBJDUMP -f'
6392 darwin* | rhapsody*)
6393 lt_cv_deplibs_check_method=pass_all
6396 freebsd* | dragonfly*)
6397 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6400 # Not sure whether the presence of OpenBSD here was a mistake.
6401 # Let's accept both of them until this is cleared up.
6402 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6403 lt_cv_file_magic_cmd=/usr/bin/file
6404 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6408 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_deplibs_check_method=pass_all
6416 hpux10.20* | hpux11*)
6417 lt_cv_file_magic_cmd=/usr/bin/file
6420 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6421 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6424 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]'
6425 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6428 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6429 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6435 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6439 irix5* | irix6* | nonstopux*)
6441 *-32|*"-32 ") libmagic=32-bit;;
6442 *-n32|*"-n32 ") libmagic=N32;;
6443 *-64|*"-64 ") libmagic=64-bit;;
6444 *) libmagic=never-match;;
6446 lt_cv_deplibs_check_method=pass_all
6449 # This must be glibc/ELF.
6450 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6451 lt_cv_deplibs_check_method=pass_all
6454 netbsd* | netbsdelf*-gnu)
6455 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6458 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6464 lt_cv_file_magic_cmd=/usr/bin/file
6465 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6469 lt_cv_deplibs_check_method=pass_all
6473 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480 osf3* | osf4* | osf5*)
6481 lt_cv_deplibs_check_method=pass_all
6485 lt_cv_deplibs_check_method=pass_all
6489 lt_cv_deplibs_check_method=pass_all
6492 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6493 lt_cv_deplibs_check_method=pass_all
6497 case $host_vendor in
6499 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]'
6500 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6503 lt_cv_deplibs_check_method=pass_all
6506 lt_cv_file_magic_cmd='/bin/file'
6507 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6510 lt_cv_file_magic_cmd='/bin/file'
6511 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6512 lt_cv_file_magic_test_file=/lib/libc.so
6515 lt_cv_deplibs_check_method=pass_all
6518 lt_cv_deplibs_check_method=pass_all
6524 lt_cv_deplibs_check_method=pass_all
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6530 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6534 if test "$build" = "$host"; then
6537 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6540 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6546 file_magic_cmd=$lt_cv_file_magic_cmd
6547 deplibs_check_method=$lt_cv_deplibs_check_method
6548 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6571 if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_DLLTOOL+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 if test -n "$DLLTOOL"; then
6580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 DLLTOOL=$ac_cv_prog_DLLTOOL
6600 if test -n "$DLLTOOL"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6602 $as_echo "$DLLTOOL" >&6; }
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6610 if test -z "$ac_cv_prog_DLLTOOL"; then
6611 ac_ct_DLLTOOL=$DLLTOOL
6612 # Extract the first word of "dlltool", so it can be a program name with args.
6613 set dummy dlltool; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 if test -n "$ac_ct_DLLTOOL"; then
6620 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6640 if test -n "$ac_ct_DLLTOOL"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6642 $as_echo "$ac_ct_DLLTOOL" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6648 if test "x$ac_ct_DLLTOOL" = x; then
6651 case $cross_compiling:$ac_tool_warned in
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6657 DLLTOOL=$ac_ct_DLLTOOL
6660 DLLTOOL="$ac_cv_prog_DLLTOOL"
6663 test -z "$DLLTOOL" && DLLTOOL=dlltool
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6672 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6673 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6674 $as_echo_n "(cached) " >&6
6676 lt_cv_sharedlib_from_linklib_cmd='unknown'
6679 cygwin* | mingw* | pw32* | cegcc*)
6680 # two different shell functions defined in ltmain.sh
6681 # decide which to use based on capabilities of $DLLTOOL
6682 case `$DLLTOOL --help 2>&1` in
6683 *--identify-strict*)
6684 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6687 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6692 # fallback: assume linklib IS sharedlib
6693 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6699 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6700 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6701 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6709 if test -n "$ac_tool_prefix"; then
6712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6715 $as_echo_n "checking for $ac_word... " >&6; }
6716 if ${ac_cv_prog_AR+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test -n "$AR"; then
6720 ac_cv_prog_AR="$AR" # Let the user override the test.
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 test -z "$as_dir" && as_dir=.
6727 for ac_exec_ext in '' $ac_executable_extensions; do
6728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6729 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 if test -n "$AR"; then
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6742 $as_echo "$AR" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6745 $as_echo "no" >&6; }
6749 test -n "$AR" && break
6752 if test -z "$AR"; then
6756 # Extract the first word of "$ac_prog", so it can be a program name with args.
6757 set dummy $ac_prog; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test -n "$ac_ct_AR"; then
6764 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 test -z "$as_dir" && as_dir=.
6771 for ac_exec_ext in '' $ac_executable_extensions; do
6772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773 ac_cv_prog_ac_ct_AR="$ac_prog"
6774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6784 if test -n "$ac_ct_AR"; then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6786 $as_echo "$ac_ct_AR" >&6; }
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789 $as_echo "no" >&6; }
6793 test -n "$ac_ct_AR" && break
6796 if test "x$ac_ct_AR" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6823 $as_echo_n "checking for archiver @FILE support... " >&6; }
6824 if ${lt_cv_ar_at_file+:} false; then :
6825 $as_echo_n "(cached) " >&6
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6839 if ac_fn_c_try_compile "$LINENO"; then :
6840 echo conftest.$ac_objext > conftest.lst
6841 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6843 (eval $lt_ar_try) 2>&5
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }
6847 if test "$ac_status" -eq 0; then
6848 # Ensure the archiver fails upon bogus file names.
6849 rm -f conftest.$ac_objext libconftest.a
6850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6851 (eval $lt_ar_try) 2>&5
6853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6854 test $ac_status = 0; }
6855 if test "$ac_status" -ne 0; then
6859 rm -f conftest.* libconftest.a
6862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6866 $as_echo "$lt_cv_ar_at_file" >&6; }
6868 if test "x$lt_cv_ar_at_file" = xno; then
6871 archiver_list_spec=$lt_cv_ar_at_file
6880 if test -n "$ac_tool_prefix"; then
6881 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882 set dummy ${ac_tool_prefix}strip; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_prog_STRIP+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 if test -n "$STRIP"; then
6889 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 test -z "$as_dir" && as_dir=.
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6898 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 STRIP=$ac_cv_prog_STRIP
6909 if test -n "$STRIP"; then
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6911 $as_echo "$STRIP" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914 $as_echo "no" >&6; }
6919 if test -z "$ac_cv_prog_STRIP"; then
6921 # Extract the first word of "strip", so it can be a program name with args.
6922 set dummy strip; ac_word=$2
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924 $as_echo_n "checking for $ac_word... " >&6; }
6925 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 if test -n "$ac_ct_STRIP"; then
6929 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6938 ac_cv_prog_ac_ct_STRIP="strip"
6939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949 if test -n "$ac_ct_STRIP"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6951 $as_echo "$ac_ct_STRIP" >&6; }
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6957 if test "x$ac_ct_STRIP" = x; then
6960 case $cross_compiling:$ac_tool_warned in
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6969 STRIP="$ac_cv_prog_STRIP"
6972 test -z "$STRIP" && STRIP=:
6979 if test -n "$ac_tool_prefix"; then
6980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_RANLIB+:} false; then :
6985 $as_echo_n "(cached) " >&6
6987 if test -n "$RANLIB"; then
6988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
6996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 RANLIB=$ac_cv_prog_RANLIB
7008 if test -n "$RANLIB"; then
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7010 $as_echo "$RANLIB" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7018 if test -z "$ac_cv_prog_RANLIB"; then
7019 ac_ct_RANLIB=$RANLIB
7020 # Extract the first word of "ranlib", so it can be a program name with args.
7021 set dummy ranlib; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7025 $as_echo_n "(cached) " >&6
7027 if test -n "$ac_ct_RANLIB"; then
7028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037 ac_cv_prog_ac_ct_RANLIB="ranlib"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7048 if test -n "$ac_ct_RANLIB"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7050 $as_echo "$ac_ct_RANLIB" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7056 if test "x$ac_ct_RANLIB" = x; then
7059 case $cross_compiling:$ac_tool_warned in
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7063 ac_tool_warned=yes ;;
7065 RANLIB=$ac_ct_RANLIB
7068 RANLIB="$ac_cv_prog_RANLIB"
7071 test -z "$RANLIB" && RANLIB=:
7078 # Determine commands to create old-style static archives.
7079 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7080 old_postinstall_cmds='chmod 644 $oldlib'
7081 old_postuninstall_cmds=
7083 if test -n "$RANLIB"; then
7086 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7089 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7092 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7097 lock_old_archive_extraction=yes ;;
7099 lock_old_archive_extraction=no ;;
7140 # If no C compiler was specified, use CC.
7143 # If no C compiler flags were specified, use CFLAGS.
7144 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7146 # Allow CC to be a program name with arguments.
7150 # Check for command to grab the raw symbol name followed by C symbol from nm.
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7152 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7153 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7154 $as_echo_n "(cached) " >&6
7157 # These are sane defaults that work on at least a few old systems.
7158 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7160 # Character class describing NM global symbol codes.
7161 symcode='[BCDEGRST]'
7163 # Regexp to match symbols that can be accessed directly from C.
7164 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7166 # Define system-specific variables.
7171 cygwin* | mingw* | pw32* | cegcc*)
7172 symcode='[ABCDGISTW]'
7175 if test "$host_cpu" = ia64; then
7176 symcode='[ABCDEGRST]'
7180 symcode='[BCDEGRST]'
7183 symcode='[BCDEGQRST]'
7194 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7202 # If we're using GNU nm, then use its standard symbol codes.
7203 case `$NM -V 2>&1` in
7204 *GNU* | *'with BFD'*)
7205 symcode='[ABCDGIRSTW]' ;;
7208 # Transform an extracted symbol line into a proper C declaration.
7209 # Some systems (esp. on ia64) link data and code symbols differently,
7210 # so use this general approach.
7211 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7213 # Transform an extracted symbol line into symbol name and symbol address
7214 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7215 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'"
7217 # Handle CRLF in mingw tool chain
7221 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7225 # Try without a prefix underscore, then with it.
7226 for ac_symprfx in "" "_"; do
7228 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7229 symxfrm="\\1 $ac_symprfx\\2 \\2"
7231 # Write the raw and C identifiers.
7232 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7233 # Fake it for dumpbin and say T for any non-static function
7234 # and D for any global variable.
7235 # Also find C++ and __fastcall symbols from MSVC++,
7236 # which start with @ or ?.
7237 lt_cv_sys_global_symbol_pipe="$AWK '"\
7238 " {last_section=section; section=\$ 3};"\
7239 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7240 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7241 " \$ 0!~/External *\|/{next};"\
7242 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7243 " {if(hide[section]) next};"\
7244 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7245 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7246 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7247 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7248 " ' prfx=^$ac_symprfx"
7250 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7252 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7254 # Check to see that the pipe works correctly.
7258 cat > conftest.$ac_ext <<_LT_EOF
7263 void nm_test_func(void);
7264 void nm_test_func(void){}
7268 int main(){nm_test_var='a';nm_test_func();return(0);}
7271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7272 (eval $ac_compile) 2>&5
7274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7275 test $ac_status = 0; }; then
7276 # Now try to grab the symbols.
7278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7279 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7282 test $ac_status = 0; } && test -s "$nlist"; then
7283 # Try sorting and uniquifying the output.
7284 if sort "$nlist" | uniq > "$nlist"T; then
7285 mv -f "$nlist"T "$nlist"
7290 # Make sure that we snagged all the symbols we need.
7291 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7292 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7293 cat <<_LT_EOF > conftest.$ac_ext
7294 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7295 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7296 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7297 relocations are performed -- see ld's documentation on pseudo-relocs. */
7298 # define LT_DLSYM_CONST
7299 #elif defined(__osf__)
7300 /* This system does not cope well with relocations in const data. */
7301 # define LT_DLSYM_CONST
7303 # define LT_DLSYM_CONST const
7311 # Now generate the symbol file.
7312 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7314 cat <<_LT_EOF >> conftest.$ac_ext
7316 /* The mapping between symbol names and symbols. */
7317 LT_DLSYM_CONST struct {
7321 lt__PROGRAM__LTX_preloaded_symbols[] =
7323 { "@PROGRAM@", (void *) 0 },
7325 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7326 cat <<\_LT_EOF >> conftest.$ac_ext
7330 /* This works around a problem in FreeBSD linker */
7331 #ifdef FREEBSD_WORKAROUND
7332 static const void *lt_preloaded_setup() {
7333 return lt__PROGRAM__LTX_preloaded_symbols;
7341 # Now try linking the two files.
7342 mv conftest.$ac_objext conftstm.$ac_objext
7343 lt_globsym_save_LIBS=$LIBS
7344 lt_globsym_save_CFLAGS=$CFLAGS
7345 LIBS="conftstm.$ac_objext"
7346 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7347 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7348 (eval $ac_link) 2>&5
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7354 LIBS=$lt_globsym_save_LIBS
7355 CFLAGS=$lt_globsym_save_CFLAGS
7357 echo "cannot find nm_test_func in $nlist" >&5
7360 echo "cannot find nm_test_var in $nlist" >&5
7363 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7366 echo "$progname: failed program was:" >&5
7367 cat conftest.$ac_ext >&5
7369 rm -rf conftest* conftst*
7371 # Do not use the global_symbol_pipe unless it works.
7372 if test "$pipe_works" = yes; then
7375 lt_cv_sys_global_symbol_pipe=
7381 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7382 lt_cv_sys_global_symbol_to_cdecl=
7384 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7386 $as_echo "failed" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7389 $as_echo "ok" >&6; }
7392 # Response file support.
7393 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7394 nm_file_list_spec='@'
7395 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7396 nm_file_list_spec='@'
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7426 $as_echo_n "checking for sysroot... " >&6; }
7428 # Check whether --with-sysroot was given.
7429 if test "${with_sysroot+set}" = set; then :
7430 withval=$with_sysroot;
7437 case ${with_sysroot} in #(
7439 if test "$GCC" = yes; then
7440 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7444 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7450 $as_echo "${with_sysroot}" >&6; }
7451 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7456 $as_echo "${lt_sysroot:-no}" >&6; }
7462 # Check whether --enable-libtool-lock was given.
7463 if test "${enable_libtool_lock+set}" = set; then :
7464 enableval=$enable_libtool_lock;
7467 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7469 # Some flags need to be propagated to the compiler or linker for good
7473 # Find out which ABI we are using.
7474 echo 'int i;' > conftest.$ac_ext
7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476 (eval $ac_compile) 2>&5
7478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; then
7480 case `/usr/bin/file conftest.$ac_objext` in
7492 # Find out which ABI we are using.
7493 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7495 (eval $ac_compile) 2>&5
7497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7498 test $ac_status = 0; }; then
7499 if test "$lt_cv_prog_gnu_ld" = yes; then
7500 case `/usr/bin/file conftest.$ac_objext` in
7502 LD="${LD-ld} -melf32bsmip"
7505 LD="${LD-ld} -melf32bmipn32"
7508 LD="${LD-ld} -melf64bmip"
7512 case `/usr/bin/file conftest.$ac_objext` in
7528 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7529 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7530 # Find out which ABI we are using.
7531 echo 'int i;' > conftest.$ac_ext
7532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7533 (eval $ac_compile) 2>&5
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; }; then
7537 case `/usr/bin/file conftest.o` in
7540 x86_64-*kfreebsd*-gnu)
7541 LD="${LD-ld} -m elf_i386_fbsd"
7544 LD="${LD-ld} -m elf_i386"
7546 ppc64-*linux*|powerpc64-*linux*)
7547 LD="${LD-ld} -m elf32ppclinux"
7550 LD="${LD-ld} -m elf_s390"
7553 LD="${LD-ld} -m elf32_sparc"
7559 x86_64-*kfreebsd*-gnu)
7560 LD="${LD-ld} -m elf_x86_64_fbsd"
7563 LD="${LD-ld} -m elf_x86_64"
7565 ppc*-*linux*|powerpc*-*linux*)
7566 LD="${LD-ld} -m elf64ppc"
7568 s390*-*linux*|s390*-*tpf*)
7569 LD="${LD-ld} -m elf64_s390"
7572 LD="${LD-ld} -m elf64_sparc"
7582 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7583 SAVE_CFLAGS="$CFLAGS"
7584 CFLAGS="$CFLAGS -belf"
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7586 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7587 if ${lt_cv_cc_needs_belf+:} false; then :
7588 $as_echo_n "(cached) " >&6
7591 ac_cpp='$CPP $CPPFLAGS'
7592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7607 if ac_fn_c_try_link "$LINENO"; then :
7608 lt_cv_cc_needs_belf=yes
7610 lt_cv_cc_needs_belf=no
7612 rm -f core conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
7615 ac_cpp='$CPP $CPPFLAGS'
7616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7622 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7623 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7624 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7625 CFLAGS="$SAVE_CFLAGS"
7629 # Find out which ABI we are using.
7630 echo 'int i;' > conftest.$ac_ext
7631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7632 (eval $ac_compile) 2>&5
7634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7635 test $ac_status = 0; }; then
7636 case `/usr/bin/file conftest.o` in
7638 case $lt_cv_prog_gnu_ld in
7642 LD="${LD-ld} -m elf_x86_64"
7645 LD="${LD-ld} -m elf64_sparc"
7648 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7649 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7654 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7666 need_locks="$enable_libtool_lock"
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}mt; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$MANIFEST_TOOL"; then
7677 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7697 if test -n "$MANIFEST_TOOL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7699 $as_echo "$MANIFEST_TOOL" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7707 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7708 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7709 # Extract the first word of "mt", so it can be a program name with args.
7710 set dummy mt; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$ac_ct_MANIFEST_TOOL"; then
7717 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7737 if test -n "$ac_ct_MANIFEST_TOOL"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7739 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7745 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7748 case $cross_compiling:$ac_tool_warned in
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned=yes ;;
7754 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7757 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7760 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7762 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7763 if ${lt_cv_path_mainfest_tool+:} false; then :
7764 $as_echo_n "(cached) " >&6
7766 lt_cv_path_mainfest_tool=no
7767 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7768 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7769 cat conftest.err >&5
7770 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7771 lt_cv_path_mainfest_tool=yes
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7776 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7777 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7787 rhapsody* | darwin*)
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 if test -n "$DSYMUTIL"; then
7797 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7817 if test -n "$DSYMUTIL"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7819 $as_echo "$DSYMUTIL" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7827 if test -z "$ac_cv_prog_DSYMUTIL"; then
7828 ac_ct_DSYMUTIL=$DSYMUTIL
7829 # Extract the first word of "dsymutil", so it can be a program name with args.
7830 set dummy dsymutil; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 if test -n "$ac_ct_DSYMUTIL"; then
7837 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7857 if test -n "$ac_ct_DSYMUTIL"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7859 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 if test "x$ac_ct_DSYMUTIL" = x; then
7868 case $cross_compiling:$ac_tool_warned in
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7874 DSYMUTIL=$ac_ct_DSYMUTIL
7877 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7882 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884 $as_echo_n "checking for $ac_word... " >&6; }
7885 if ${ac_cv_prog_NMEDIT+:} false; then :
7886 $as_echo_n "(cached) " >&6
7888 if test -n "$NMEDIT"; then
7889 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 NMEDIT=$ac_cv_prog_NMEDIT
7909 if test -n "$NMEDIT"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7911 $as_echo "$NMEDIT" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914 $as_echo "no" >&6; }
7919 if test -z "$ac_cv_prog_NMEDIT"; then
7920 ac_ct_NMEDIT=$NMEDIT
7921 # Extract the first word of "nmedit", so it can be a program name with args.
7922 set dummy nmedit; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7926 $as_echo_n "(cached) " >&6
7928 if test -n "$ac_ct_NMEDIT"; then
7929 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7949 if test -n "$ac_ct_NMEDIT"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7951 $as_echo "$ac_ct_NMEDIT" >&6; }
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7957 if test "x$ac_ct_NMEDIT" = x; then
7960 case $cross_compiling:$ac_tool_warned in
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964 ac_tool_warned=yes ;;
7966 NMEDIT=$ac_ct_NMEDIT
7969 NMEDIT="$ac_cv_prog_NMEDIT"
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7974 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976 $as_echo_n "checking for $ac_word... " >&6; }
7977 if ${ac_cv_prog_LIPO+:} false; then :
7978 $as_echo_n "(cached) " >&6
7980 if test -n "$LIPO"; then
7981 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 LIPO=$ac_cv_prog_LIPO
8001 if test -n "$LIPO"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8003 $as_echo "$LIPO" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006 $as_echo "no" >&6; }
8011 if test -z "$ac_cv_prog_LIPO"; then
8013 # Extract the first word of "lipo", so it can be a program name with args.
8014 set dummy lipo; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 if test -n "$ac_ct_LIPO"; then
8021 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_LIPO="lipo"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8040 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8041 if test -n "$ac_ct_LIPO"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8043 $as_echo "$ac_ct_LIPO" >&6; }
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }
8049 if test "x$ac_ct_LIPO" = x; then
8052 case $cross_compiling:$ac_tool_warned in
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8061 LIPO="$ac_cv_prog_LIPO"
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}otool; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if ${ac_cv_prog_OTOOL+:} false; then :
8070 $as_echo_n "(cached) " >&6
8072 if test -n "$OTOOL"; then
8073 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092 OTOOL=$ac_cv_prog_OTOOL
8093 if test -n "$OTOOL"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8095 $as_echo "$OTOOL" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8103 if test -z "$ac_cv_prog_OTOOL"; then
8105 # Extract the first word of "otool", so it can be a program name with args.
8106 set dummy otool; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8110 $as_echo_n "(cached) " >&6
8112 if test -n "$ac_ct_OTOOL"; then
8113 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_OTOOL="otool"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8133 if test -n "$ac_ct_OTOOL"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8135 $as_echo "$ac_ct_OTOOL" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8141 if test "x$ac_ct_OTOOL" = x; then
8144 case $cross_compiling:$ac_tool_warned in
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8153 OTOOL="$ac_cv_prog_OTOOL"
8156 if test -n "$ac_tool_prefix"; then
8157 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8158 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8160 $as_echo_n "checking for $ac_word... " >&6; }
8161 if ${ac_cv_prog_OTOOL64+:} false; then :
8162 $as_echo_n "(cached) " >&6
8164 if test -n "$OTOOL64"; then
8165 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8174 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 OTOOL64=$ac_cv_prog_OTOOL64
8185 if test -n "$OTOOL64"; then
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8187 $as_echo "$OTOOL64" >&6; }
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8190 $as_echo "no" >&6; }
8195 if test -z "$ac_cv_prog_OTOOL64"; then
8196 ac_ct_OTOOL64=$OTOOL64
8197 # Extract the first word of "otool64", so it can be a program name with args.
8198 set dummy otool64; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8202 $as_echo_n "(cached) " >&6
8204 if test -n "$ac_ct_OTOOL64"; then
8205 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
8213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8214 ac_cv_prog_ac_ct_OTOOL64="otool64"
8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8225 if test -n "$ac_ct_OTOOL64"; then
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8227 $as_echo "$ac_ct_OTOOL64" >&6; }
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8230 $as_echo "no" >&6; }
8233 if test "x$ac_ct_OTOOL64" = x; then
8236 case $cross_compiling:$ac_tool_warned in
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8240 ac_tool_warned=yes ;;
8242 OTOOL64=$ac_ct_OTOOL64
8245 OTOOL64="$ac_cv_prog_OTOOL64"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8275 $as_echo_n "checking for -single_module linker flag... " >&6; }
8276 if ${lt_cv_apple_cc_single_mod+:} false; then :
8277 $as_echo_n "(cached) " >&6
8279 lt_cv_apple_cc_single_mod=no
8280 if test -z "${LT_MULTI_MODULE}"; then
8281 # By default we will add the -single_module flag. You can override
8282 # by either setting the environment variable LT_MULTI_MODULE
8283 # non-empty at configure time, or by adding -multi_module to the
8285 rm -rf libconftest.dylib*
8286 echo "int foo(void){return 1;}" > conftest.c
8287 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8288 -dynamiclib -Wl,-single_module conftest.c" >&5
8289 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8290 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8292 # If there is a non-empty error log, and "single_module"
8293 # appears in it, assume the flag caused a linker warning
8294 if test -s conftest.err && $GREP single_module conftest.err; then
8295 cat conftest.err >&5
8296 # Otherwise, if the output was created with a 0 exit code from
8297 # the compiler, it worked.
8298 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8299 lt_cv_apple_cc_single_mod=yes
8301 cat conftest.err >&5
8303 rm -rf libconftest.dylib*
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8308 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8311 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8312 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 lt_cv_ld_exported_symbols_list=no
8316 save_LDFLAGS=$LDFLAGS
8317 echo "_main" > conftest.sym
8318 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8330 if ac_fn_c_try_link "$LINENO"; then :
8331 lt_cv_ld_exported_symbols_list=yes
8333 lt_cv_ld_exported_symbols_list=no
8335 rm -f core conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8337 LDFLAGS="$save_LDFLAGS"
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8341 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8344 $as_echo_n "checking for -force_load linker flag... " >&6; }
8345 if ${lt_cv_ld_force_load+:} false; then :
8346 $as_echo_n "(cached) " >&6
8348 lt_cv_ld_force_load=no
8349 cat > conftest.c << _LT_EOF
8350 int forced_loaded() { return 2;}
8352 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8353 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8354 echo "$AR cru libconftest.a conftest.o" >&5
8355 $AR cru libconftest.a conftest.o 2>&5
8356 echo "$RANLIB libconftest.a" >&5
8357 $RANLIB libconftest.a 2>&5
8358 cat > conftest.c << _LT_EOF
8359 int main() { return 0;}
8361 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8362 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8364 if test -s conftest.err && $GREP force_load conftest.err; then
8365 cat conftest.err >&5
8366 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8367 lt_cv_ld_force_load=yes
8369 cat conftest.err >&5
8371 rm -f conftest.err libconftest.a conftest conftest.c
8372 rm -rf conftest.dSYM
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8376 $as_echo "$lt_cv_ld_force_load" >&6; }
8378 rhapsody* | darwin1.[012])
8379 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8381 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8382 darwin*) # darwin 5.x on
8383 # if running on 10.5 or later, the deployment target defaults
8384 # to the OS version, if on x86, and 10.4, the deployment
8385 # target defaults to 10.4. Don't you love it?
8386 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8387 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8388 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8390 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8392 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8396 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8397 _lt_dar_single_mod='$single_module'
8399 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8400 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8402 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8404 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8405 _lt_dsymutil='~$DSYMUTIL $lib || :'
8412 for ac_header in dlfcn.h
8414 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8416 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8417 cat >>confdefs.h <<_ACEOF
8418 #define HAVE_DLFCN_H 1
8437 # Check whether --enable-shared was given.
8438 if test "${enable_shared+set}" = set; then :
8439 enableval=$enable_shared; p=${PACKAGE-default}
8441 yes) enable_shared=yes ;;
8442 no) enable_shared=no ;;
8445 # Look at the argument we got. We use all the common list separators.
8446 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8447 for pkg in $enableval; do
8449 if test "X$pkg" = "X$p"; then
8468 # Check whether --enable-static was given.
8469 if test "${enable_static+set}" = set; then :
8470 enableval=$enable_static; p=${PACKAGE-default}
8472 yes) enable_static=yes ;;
8473 no) enable_static=no ;;
8476 # Look at the argument we got. We use all the common list separators.
8477 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8478 for pkg in $enableval; do
8480 if test "X$pkg" = "X$p"; then
8500 # Check whether --with-pic was given.
8501 if test "${with_pic+set}" = set; then :
8502 withval=$with_pic; lt_p=${PACKAGE-default}
8504 yes|no) pic_mode=$withval ;;
8507 # Look at the argument we got. We use all the common list separators.
8508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8509 for lt_pkg in $withval; do
8511 if test "X$lt_pkg" = "X$lt_p"; then
8523 test -z "$pic_mode" && pic_mode=default
8531 # Check whether --enable-fast-install was given.
8532 if test "${enable_fast_install+set}" = set; then :
8533 enableval=$enable_fast_install; p=${PACKAGE-default}
8535 yes) enable_fast_install=yes ;;
8536 no) enable_fast_install=no ;;
8538 enable_fast_install=no
8539 # Look at the argument we got. We use all the common list separators.
8540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8541 for pkg in $enableval; do
8543 if test "X$pkg" = "X$p"; then
8544 enable_fast_install=yes
8551 enable_fast_install=yes
8564 # This can be used to rebuild libtool when needed
8565 LIBTOOL_DEPS="$ltmain"
8567 # Always use our own libtool.
8568 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8599 test -z "$LN_S" && LN_S="ln -s"
8614 if test -n "${ZSH_VERSION+set}" ; then
8615 setopt NO_GLOB_SUBST
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8619 $as_echo_n "checking for objdir... " >&6; }
8620 if ${lt_cv_objdir+:} false; then :
8621 $as_echo_n "(cached) " >&6
8623 rm -f .libs 2>/dev/null
8624 mkdir .libs 2>/dev/null
8625 if test -d .libs; then
8628 # MS-DOS does not allow filenames that begin with a dot.
8631 rmdir .libs 2>/dev/null
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8634 $as_echo "$lt_cv_objdir" >&6; }
8635 objdir=$lt_cv_objdir
8641 cat >>confdefs.h <<_ACEOF
8642 #define LT_OBJDIR "$lt_cv_objdir/"
8650 # AIX sometimes has problems with the GCC collect2 program. For some
8651 # reason, if we set the COLLECT_NAMES environment variable, the problems
8652 # vanish in a puff of smoke.
8653 if test "X${COLLECT_NAMES+set}" != Xset; then
8655 export COLLECT_NAMES
8662 can_build_shared=yes
8664 # All known linkers require a `.a' archive for static linking (except MSVC,
8665 # which needs '.lib').
8668 with_gnu_ld="$lt_cv_prog_gnu_ld"
8671 old_CFLAGS="$CFLAGS"
8673 # Set sane defaults for various variables
8674 test -z "$CC" && CC=cc
8675 test -z "$LTCC" && LTCC=$CC
8676 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8677 test -z "$LD" && LD=ld
8678 test -z "$ac_objext" && ac_objext=o
8680 for cc_temp in $compiler""; do
8682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8691 # Only perform the check for file, if the check method requires it
8692 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8693 case $deplibs_check_method in
8695 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8697 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8698 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8699 $as_echo_n "(cached) " >&6
8703 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8706 lt_save_MAGIC_CMD="$MAGIC_CMD"
8707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8708 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8709 for ac_dir in $ac_dummy; do
8711 test -z "$ac_dir" && ac_dir=.
8712 if test -f $ac_dir/${ac_tool_prefix}file; then
8713 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8714 if test -n "$file_magic_test_file"; then
8715 case $deplibs_check_method in
8717 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8718 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8719 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8720 $EGREP "$file_magic_regex" > /dev/null; then
8725 *** Warning: the command libtool uses to detect shared libraries,
8726 *** $file_magic_cmd, produces output that libtool cannot recognize.
8727 *** The result is that libtool may fail to recognize shared libraries
8728 *** as such. This will affect the creation of libtool libraries that
8729 *** depend on shared libraries, but programs linked with such libtool
8730 *** libraries will work regardless of this problem. Nevertheless, you
8731 *** may want to report the problem to your system manager and/or to
8732 *** bug-libtool@gnu.org
8742 MAGIC_CMD="$lt_save_MAGIC_CMD"
8747 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8748 if test -n "$MAGIC_CMD"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8750 $as_echo "$MAGIC_CMD" >&6; }
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8760 if test -z "$lt_cv_path_MAGIC_CMD"; then
8761 if test -n "$ac_tool_prefix"; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8763 $as_echo_n "checking for file... " >&6; }
8764 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8765 $as_echo_n "(cached) " >&6
8769 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8772 lt_save_MAGIC_CMD="$MAGIC_CMD"
8773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8774 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8775 for ac_dir in $ac_dummy; do
8777 test -z "$ac_dir" && ac_dir=.
8778 if test -f $ac_dir/file; then
8779 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8780 if test -n "$file_magic_test_file"; then
8781 case $deplibs_check_method in
8783 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8784 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8785 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8786 $EGREP "$file_magic_regex" > /dev/null; then
8791 *** Warning: the command libtool uses to detect shared libraries,
8792 *** $file_magic_cmd, produces output that libtool cannot recognize.
8793 *** The result is that libtool may fail to recognize shared libraries
8794 *** as such. This will affect the creation of libtool libraries that
8795 *** depend on shared libraries, but programs linked with such libtool
8796 *** libraries will work regardless of this problem. Nevertheless, you
8797 *** may want to report the problem to your system manager and/or to
8798 *** bug-libtool@gnu.org
8808 MAGIC_CMD="$lt_save_MAGIC_CMD"
8813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8814 if test -n "$MAGIC_CMD"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8816 $as_echo "$MAGIC_CMD" >&6; }
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8832 # Use C for the default configuration in the libtool script
8836 ac_cpp='$CPP $CPPFLAGS'
8837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8842 # Source file extension for C test sources.
8845 # Object file extension for compiled C test sources.
8849 # Code to be used in simple compile tests
8850 lt_simple_compile_test_code="int some_variable = 0;"
8852 # Code to be used in simple link tests
8853 lt_simple_link_test_code='int main(){return(0);}'
8861 # If no C compiler was specified, use CC.
8864 # If no C compiler flags were specified, use CFLAGS.
8865 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8867 # Allow CC to be a program name with arguments.
8870 # Save the default compiler, since it gets overwritten when the other
8871 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8872 compiler_DEFAULT=$CC
8874 # save warnings/boilerplate of simple test code
8875 ac_outfile=conftest.$ac_objext
8876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8878 _lt_compiler_boilerplate=`cat conftest.err`
8881 ac_outfile=conftest.$ac_objext
8882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8884 _lt_linker_boilerplate=`cat conftest.err`
8888 if test -n "$compiler"; then
8890 lt_prog_compiler_no_builtin_flag=
8892 if test "$GCC" = yes; then
8893 case $cc_basename in
8895 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8897 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8901 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8902 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8903 $as_echo_n "(cached) " >&6
8905 lt_cv_prog_compiler_rtti_exceptions=no
8906 ac_outfile=conftest.$ac_objext
8907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908 lt_compiler_flag="-fno-rtti -fno-exceptions"
8909 # Insert the option either (1) after the last *FLAGS variable, or
8910 # (2) before a word containing "conftest.", or (3) at the end.
8911 # Note that $ac_compile itself does not contain backslashes and begins
8912 # with a dollar sign (not a hyphen), so the echo should work correctly.
8913 # The option is referenced via a variable to avoid confusing sed.
8914 lt_compile=`echo "$ac_compile" | $SED \
8915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917 -e 's:$: $lt_compiler_flag:'`
8918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919 (eval "$lt_compile" 2>conftest.err)
8921 cat conftest.err >&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 if (exit $ac_status) && test -s "$ac_outfile"; then
8924 # The compiler can only warn and ignore the option if not recognized
8925 # So say no if there are warnings other than the usual output.
8926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8927 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8928 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8929 lt_cv_prog_compiler_rtti_exceptions=yes
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8936 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8938 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8939 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8951 lt_prog_compiler_wl=
8952 lt_prog_compiler_pic=
8953 lt_prog_compiler_static=
8956 if test "$GCC" = yes; then
8957 lt_prog_compiler_wl='-Wl,'
8958 lt_prog_compiler_static='-static'
8962 # All AIX code is PIC.
8963 if test "$host_cpu" = ia64; then
8964 # AIX 5 now supports IA64 processor
8965 lt_prog_compiler_static='-Bstatic'
8972 # see comment about AmigaOS4 .so support
8973 lt_prog_compiler_pic='-fPIC'
8976 # FIXME: we need at least 68020 code to build shared libraries, but
8977 # adding the `-m68020' flag to GCC prevents building anything better,
8979 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8984 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8985 # PIC is the default for these OSes.
8988 mingw* | cygwin* | pw32* | os2* | cegcc*)
8989 # This hack is so that the source file can tell whether it is being
8990 # built for inclusion in a dll (and should export symbols for example).
8991 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8992 # (--disable-auto-import) libraries
8993 lt_prog_compiler_pic='-DDLL_EXPORT'
8996 darwin* | rhapsody*)
8997 # PIC is the default on this platform
8998 # Common symbols not allowed in MH_DYLIB files
8999 lt_prog_compiler_pic='-fno-common'
9003 # PIC is the default for Haiku.
9004 # The "-static" flag exists, but is broken.
9005 lt_prog_compiler_static=
9009 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9010 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9011 # sets the default TLS model and affects inlining.
9017 lt_prog_compiler_pic='-fPIC'
9023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9024 # Instead, we relocate shared libraries at runtime.
9028 # Just because we use GCC doesn't mean we suddenly get shared libraries
9029 # on systems that don't support them.
9030 lt_prog_compiler_can_build_shared=no
9035 # QNX uses GNU C++, but need to define -shared option too, otherwise
9037 lt_prog_compiler_pic='-fPIC -shared'
9041 if test -d /usr/nec; then
9042 lt_prog_compiler_pic=-Kconform_pic
9047 lt_prog_compiler_pic='-fPIC'
9051 case $cc_basename in
9052 nvcc*) # Cuda Compiler Driver 2.2
9053 lt_prog_compiler_wl='-Xlinker '
9054 if test -n "$lt_prog_compiler_pic"; then
9055 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9060 # PORTME Check for flag to pass linker flags through the system compiler.
9063 lt_prog_compiler_wl='-Wl,'
9064 if test "$host_cpu" = ia64; then
9065 # AIX 5 now supports IA64 processor
9066 lt_prog_compiler_static='-Bstatic'
9068 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9072 mingw* | cygwin* | pw32* | os2* | cegcc*)
9073 # This hack is so that the source file can tell whether it is being
9074 # built for inclusion in a dll (and should export symbols for example).
9075 lt_prog_compiler_pic='-DDLL_EXPORT'
9078 hpux9* | hpux10* | hpux11*)
9079 lt_prog_compiler_wl='-Wl,'
9080 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9087 lt_prog_compiler_pic='+Z'
9090 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9091 lt_prog_compiler_static='${wl}-a ${wl}archive'
9094 irix5* | irix6* | nonstopux*)
9095 lt_prog_compiler_wl='-Wl,'
9096 # PIC (with -KPIC) is the default.
9097 lt_prog_compiler_static='-non_shared'
9100 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9101 case $cc_basename in
9102 # old Intel for x86_64 which still supported -KPIC.
9104 lt_prog_compiler_wl='-Wl,'
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-static'
9108 # icc used to be incompatible with GCC.
9109 # ICC 10 doesn't accept -KPIC any more.
9111 lt_prog_compiler_wl='-Wl,'
9112 lt_prog_compiler_pic='-fPIC'
9113 lt_prog_compiler_static='-static'
9115 # Lahey Fortran 8.1.
9117 lt_prog_compiler_wl='-Wl,'
9118 lt_prog_compiler_pic='--shared'
9119 lt_prog_compiler_static='--static'
9122 # NAG Fortran compiler
9123 lt_prog_compiler_wl='-Wl,-Wl,,'
9124 lt_prog_compiler_pic='-PIC'
9125 lt_prog_compiler_static='-Bstatic'
9127 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9128 # Portland Group compilers (*not* the Pentium gcc compiler,
9129 # which looks to be a dead project)
9130 lt_prog_compiler_wl='-Wl,'
9131 lt_prog_compiler_pic='-fpic'
9132 lt_prog_compiler_static='-Bstatic'
9135 lt_prog_compiler_wl='-Wl,'
9136 # All Alpha code is PIC.
9137 lt_prog_compiler_static='-non_shared'
9139 xl* | bgxl* | bgf* | mpixl*)
9140 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9141 lt_prog_compiler_wl='-Wl,'
9142 lt_prog_compiler_pic='-qpic'
9143 lt_prog_compiler_static='-qstaticlink'
9146 case `$CC -V 2>&1 | sed 5q` in
9147 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9148 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9151 lt_prog_compiler_wl=''
9153 *Sun\ F* | *Sun*Fortran*)
9154 lt_prog_compiler_pic='-KPIC'
9155 lt_prog_compiler_static='-Bstatic'
9156 lt_prog_compiler_wl='-Qoption ld '
9160 lt_prog_compiler_pic='-KPIC'
9161 lt_prog_compiler_static='-Bstatic'
9162 lt_prog_compiler_wl='-Wl,'
9164 *Intel*\ [CF]*Compiler*)
9165 lt_prog_compiler_wl='-Wl,'
9166 lt_prog_compiler_pic='-fPIC'
9167 lt_prog_compiler_static='-static'
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='-fpic'
9172 lt_prog_compiler_static='-Bstatic'
9180 lt_prog_compiler_pic='-KPIC'
9181 lt_prog_compiler_static='-Bstatic'
9185 # QNX uses GNU C++, but need to define -shared option too, otherwise
9187 lt_prog_compiler_pic='-fPIC -shared'
9190 osf3* | osf4* | osf5*)
9191 lt_prog_compiler_wl='-Wl,'
9192 # All OSF/1 code is PIC.
9193 lt_prog_compiler_static='-non_shared'
9197 lt_prog_compiler_static='-non_shared'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9203 case $cc_basename in
9204 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9205 lt_prog_compiler_wl='-Qoption ld ';;
9207 lt_prog_compiler_wl='-Wl,';;
9212 lt_prog_compiler_wl='-Qoption ld '
9213 lt_prog_compiler_pic='-PIC'
9214 lt_prog_compiler_static='-Bstatic'
9217 sysv4 | sysv4.2uw2* | sysv4.3*)
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_pic='-KPIC'
9220 lt_prog_compiler_static='-Bstatic'
9224 if test -d /usr/nec ;then
9225 lt_prog_compiler_pic='-Kconform_pic'
9226 lt_prog_compiler_static='-Bstatic'
9230 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-KPIC'
9233 lt_prog_compiler_static='-Bstatic'
9237 lt_prog_compiler_wl='-Wl,'
9238 lt_prog_compiler_can_build_shared=no
9242 lt_prog_compiler_pic='-pic'
9243 lt_prog_compiler_static='-Bstatic'
9247 lt_prog_compiler_can_build_shared=no
9253 # For platforms which do not support PIC, -DPIC is meaningless:
9255 lt_prog_compiler_pic=
9258 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9263 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9264 if ${lt_cv_prog_compiler_pic+:} false; then :
9265 $as_echo_n "(cached) " >&6
9267 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9270 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9271 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9274 # Check to make sure the PIC flag actually works.
9276 if test -n "$lt_prog_compiler_pic"; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9278 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9279 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9280 $as_echo_n "(cached) " >&6
9282 lt_cv_prog_compiler_pic_works=no
9283 ac_outfile=conftest.$ac_objext
9284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9286 # Insert the option either (1) after the last *FLAGS variable, or
9287 # (2) before a word containing "conftest.", or (3) at the end.
9288 # Note that $ac_compile itself does not contain backslashes and begins
9289 # with a dollar sign (not a hyphen), so the echo should work correctly.
9290 # The option is referenced via a variable to avoid confusing sed.
9291 lt_compile=`echo "$ac_compile" | $SED \
9292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294 -e 's:$: $lt_compiler_flag:'`
9295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9296 (eval "$lt_compile" 2>conftest.err)
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 if (exit $ac_status) && test -s "$ac_outfile"; then
9301 # The compiler can only warn and ignore the option if not recognized
9302 # So say no if there are warnings other than the usual output.
9303 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9306 lt_cv_prog_compiler_pic_works=yes
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9313 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9315 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9316 case $lt_prog_compiler_pic in
9318 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9321 lt_prog_compiler_pic=
9322 lt_prog_compiler_can_build_shared=no
9338 # Check to make sure the static flag actually works.
9340 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9342 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9343 if ${lt_cv_prog_compiler_static_works+:} false; then :
9344 $as_echo_n "(cached) " >&6
9346 lt_cv_prog_compiler_static_works=no
9347 save_LDFLAGS="$LDFLAGS"
9348 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9349 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9351 # The linker can only warn and ignore the option if not recognized
9352 # So say no if there are warnings
9353 if test -s conftest.err; then
9354 # Append any errors to the config.log.
9355 cat conftest.err 1>&5
9356 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9358 if diff conftest.exp conftest.er2 >/dev/null; then
9359 lt_cv_prog_compiler_static_works=yes
9362 lt_cv_prog_compiler_static_works=yes
9366 LDFLAGS="$save_LDFLAGS"
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9370 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9372 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9375 lt_prog_compiler_static=
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9385 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9386 if ${lt_cv_prog_compiler_c_o+:} false; then :
9387 $as_echo_n "(cached) " >&6
9389 lt_cv_prog_compiler_c_o=no
9390 $RM -r conftest 2>/dev/null
9394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9396 lt_compiler_flag="-o out/conftest2.$ac_objext"
9397 # Insert the option either (1) after the last *FLAGS variable, or
9398 # (2) before a word containing "conftest.", or (3) at the end.
9399 # Note that $ac_compile itself does not contain backslashes and begins
9400 # with a dollar sign (not a hyphen), so the echo should work correctly.
9401 lt_compile=`echo "$ac_compile" | $SED \
9402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9404 -e 's:$: $lt_compiler_flag:'`
9405 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9406 (eval "$lt_compile" 2>out/conftest.err)
9408 cat out/conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9412 # The compiler can only warn and ignore the option if not recognized
9413 # So say no if there are warnings
9414 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9417 lt_cv_prog_compiler_c_o=yes
9422 # SGI C++ compiler will create directory out/ii_files/ for
9423 # template instantiation
9424 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9425 $RM out/* && rmdir out
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9432 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9440 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9441 if ${lt_cv_prog_compiler_c_o+:} false; then :
9442 $as_echo_n "(cached) " >&6
9444 lt_cv_prog_compiler_c_o=no
9445 $RM -r conftest 2>/dev/null
9449 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9451 lt_compiler_flag="-o out/conftest2.$ac_objext"
9452 # Insert the option either (1) after the last *FLAGS variable, or
9453 # (2) before a word containing "conftest.", or (3) at the end.
9454 # Note that $ac_compile itself does not contain backslashes and begins
9455 # with a dollar sign (not a hyphen), so the echo should work correctly.
9456 lt_compile=`echo "$ac_compile" | $SED \
9457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9459 -e 's:$: $lt_compiler_flag:'`
9460 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9461 (eval "$lt_compile" 2>out/conftest.err)
9463 cat out/conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9467 # The compiler can only warn and ignore the option if not recognized
9468 # So say no if there are warnings
9469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9470 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9471 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9472 lt_cv_prog_compiler_c_o=yes
9477 # SGI C++ compiler will create directory out/ii_files/ for
9478 # template instantiation
9479 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9480 $RM out/* && rmdir out
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9487 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9492 hard_links="nottested"
9493 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9494 # do not overwrite the value of need_locks provided by the user
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9496 $as_echo_n "checking if we can lock with hard links... " >&6; }
9499 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9501 ln conftest.a conftest.b 2>&5 || hard_links=no
9502 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9504 $as_echo "$hard_links" >&6; }
9505 if test "$hard_links" = no; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9507 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9520 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9523 allow_undefined_flag=
9524 always_export_symbols=no
9526 archive_expsym_cmds=
9527 compiler_needs_object=no
9528 enable_shared_with_static_runtimes=no
9529 export_dynamic_flag_spec=
9530 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9531 hardcode_automatic=no
9533 hardcode_direct_absolute=no
9534 hardcode_libdir_flag_spec=
9535 hardcode_libdir_separator=
9537 hardcode_shlibpath_var=unsupported
9539 link_all_deplibs=unknown
9542 old_archive_from_new_cmds=
9543 old_archive_from_expsyms_cmds=
9544 thread_safe_flag_spec=
9545 whole_archive_flag_spec=
9546 # include_expsyms should be a list of space-separated symbols to be *always*
9547 # included in the symbol list
9549 # exclude_expsyms can be an extended regexp of symbols to exclude
9550 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9551 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9552 # as well as any symbol that contains `d'.
9553 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9554 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9555 # platforms (ab)use it in PIC code, but their linkers get confused if
9556 # the symbol is explicitly referenced. Since portable code cannot
9557 # rely on this symbol name, it's probably fine to never include it in
9558 # preloaded symbol tables.
9559 # Exclude shared library initialization/finalization symbols.
9560 extract_expsyms_cmds=
9563 cygwin* | mingw* | pw32* | cegcc*)
9564 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9565 # When not using gcc, we currently assume that we are using
9566 # Microsoft Visual C++.
9567 if test "$GCC" != yes; then
9572 # we just hope/assume this is gcc and not c89 (= MSVC++)
9578 linux* | k*bsd*-gnu | gnu*)
9585 # On some targets, GNU ld is compatible enough with the native linker
9586 # that we're better off using the native interface for both.
9587 lt_use_gnu_ld_interface=no
9588 if test "$with_gnu_ld" = yes; then
9591 # The AIX port of GNU ld has always aspired to compatibility
9592 # with the native linker. However, as the warning in the GNU ld
9593 # block says, versions before 2.19.5* couldn't really create working
9594 # shared libraries, regardless of the interface used.
9595 case `$LD -v 2>&1` in
9596 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9597 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9598 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9600 lt_use_gnu_ld_interface=yes
9605 lt_use_gnu_ld_interface=yes
9610 if test "$lt_use_gnu_ld_interface" = yes; then
9611 # If archive_cmds runs LD, not CC, wlarc should be empty
9614 # Set some defaults for GNU ld with shared library support. These
9615 # are reset later if shared libraries are not supported. Putting them
9616 # here allows them to be overridden if necessary.
9617 runpath_var=LD_RUN_PATH
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 export_dynamic_flag_spec='${wl}--export-dynamic'
9620 # ancient GNU ld didn't support --whole-archive et. al.
9621 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9622 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9624 whole_archive_flag_spec=
9626 supports_anon_versioning=no
9627 case `$LD -v 2>&1` in
9628 *GNU\ gold*) supports_anon_versioning=yes ;;
9629 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9630 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9631 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9632 *\ 2.11.*) ;; # other 2.11 versions
9633 *) supports_anon_versioning=yes ;;
9636 # See if GNU ld supports shared libraries.
9639 # On AIX/PPC, the GNU linker is very broken
9640 if test "$host_cpu" != ia64; then
9644 *** Warning: the GNU linker, at least up to release 2.19, is reported
9645 *** to be unable to reliably create shared libraries on AIX.
9646 *** Therefore, libtool is disabling shared libraries support. If you
9647 *** really care for shared libraries, you may want to install binutils
9648 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9649 *** You will then need to restart the configuration process.
9658 # see comment about AmigaOS4 .so support
9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660 archive_expsym_cmds=''
9663 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)'
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_minus_L=yes
9671 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9672 allow_undefined_flag=unsupported
9673 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9674 # support --undefined. This deserves some investigation. FIXME
9675 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9681 cygwin* | mingw* | pw32* | cegcc*)
9682 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9683 # as there is no search path for DLLs.
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 export_dynamic_flag_spec='${wl}--export-all-symbols'
9686 allow_undefined_flag=unsupported
9687 always_export_symbols=no
9688 enable_shared_with_static_runtimes=yes
9689 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'
9690 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9692 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9694 # If the export-symbols file already is a .def file (1st line
9695 # is EXPORTS), use it as is; otherwise, prepend...
9696 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9697 cp $export_symbols $output_objdir/$soname.def;
9699 echo EXPORTS > $output_objdir/$soname.def;
9700 cat $export_symbols >> $output_objdir/$soname.def;
9702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710 link_all_deplibs=yes
9715 hardcode_shlibpath_var=no
9716 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9717 export_dynamic_flag_spec='${wl}-E'
9718 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9719 # Instead, shared libraries are loaded at an image base (0x10000000 by
9720 # default) and relocated if they conflict, which is a slow very memory
9721 # consuming and fragmenting process. To avoid this, we pick a random,
9722 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9723 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9724 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9725 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'
9728 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9730 if test "$host_os" = linux-dietlibc; then
9731 case $cc_basename in
9732 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9735 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9736 && test "$tmp_diet" = no
9738 tmp_addflag=' $pic_flag'
9739 tmp_sharedflag='-shared'
9740 case $cc_basename,$host_cpu in
9741 pgcc*) # Portland Group C compiler
9742 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'
9743 tmp_addflag=' $pic_flag'
9745 pgf77* | pgf90* | pgf95* | pgfortran*)
9746 # Portland Group f77 and f90 compilers
9747 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'
9748 tmp_addflag=' $pic_flag -Mnomain' ;;
9749 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9750 tmp_addflag=' -i_dynamic' ;;
9751 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9752 tmp_addflag=' -i_dynamic -nofor_main' ;;
9753 ifc* | ifort*) # Intel Fortran compiler
9754 tmp_addflag=' -nofor_main' ;;
9755 lf95*) # Lahey Fortran 8.1
9756 whole_archive_flag_spec=
9757 tmp_sharedflag='--shared' ;;
9758 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9759 tmp_sharedflag='-qmkshrobj'
9761 nvcc*) # Cuda Compiler Driver 2.2
9762 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'
9763 compiler_needs_object=yes
9766 case `$CC -V 2>&1 | sed 5q` in
9767 *Sun\ C*) # Sun C 5.9
9768 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'
9769 compiler_needs_object=yes
9770 tmp_sharedflag='-G' ;;
9771 *Sun\ F*) # Sun Fortran 8.3
9772 tmp_sharedflag='-G' ;;
9774 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9776 if test "x$supports_anon_versioning" = xyes; then
9777 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9778 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9779 echo "local: *; };" >> $output_objdir/$libname.ver~
9780 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9783 case $cc_basename in
9784 xlf* | bgf* | bgxlf* | mpixlf*)
9785 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9786 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9788 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9789 if test "x$supports_anon_versioning" = xyes; then
9790 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9791 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9792 echo "local: *; };" >> $output_objdir/$libname.ver~
9793 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9802 netbsd* | netbsdelf*-gnu)
9803 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9804 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9807 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9813 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9817 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9818 *** create shared libraries on Solaris systems. Therefore, libtool
9819 *** is disabling shared libraries support. We urge you to upgrade GNU
9820 *** binutils to release 2.9.1 or newer. Another option is to modify
9821 *** your PATH or compiler configuration so that the native linker is
9822 *** used, and then restart.
9825 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9833 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9834 case `$LD -v 2>&1` in
9835 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9839 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9840 *** reliably create shared libraries on SCO systems. Therefore, libtool
9841 *** is disabling shared libraries support. We urge you to upgrade GNU
9842 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9843 *** your PATH or compiler configuration so that the native linker is
9844 *** used, and then restart.
9849 # For security reasons, it is highly recommended that you always
9850 # use absolute paths for naming shared libraries, and exclude the
9851 # DT_RUNPATH tag from executables and libraries. But doing so
9852 # requires that you compile everything twice, which is a pain.
9853 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9865 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_shlibpath_var=no
9872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9873 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9881 if test "$ld_shlibs" = no; then
9883 hardcode_libdir_flag_spec=
9884 export_dynamic_flag_spec=
9885 whole_archive_flag_spec=
9888 # PORTME fill in a description of your system's linker (not GNU ld)
9891 allow_undefined_flag=unsupported
9892 always_export_symbols=yes
9893 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'
9894 # Note: this linker hardcodes the directories in LIBPATH if there
9895 # are no directories specified by -L.
9896 hardcode_minus_L=yes
9897 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9898 # Neither direct hardcoding nor static linking is supported with a
9900 hardcode_direct=unsupported
9905 if test "$host_cpu" = ia64; then
9906 # On IA64, the linker does run time linking by default, so we don't
9907 # have to do anything special.
9908 aix_use_runtimelinking=no
9909 exp_sym_flag='-Bexport'
9912 # If we're using GNU nm, then we don't want the "-C" option.
9913 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9914 # Also, AIX nm treats weak defined symbols like other global
9915 # defined symbols, whereas GNU nm marks them as "W".
9916 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9917 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'
9919 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'
9921 aix_use_runtimelinking=no
9923 # Test if we are trying to use run time linking or normal
9924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9925 # need to do runtime linking.
9926 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9927 for ld_flag in $LDFLAGS; do
9928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9929 aix_use_runtimelinking=yes
9936 exp_sym_flag='-bexport'
9937 no_entry_flag='-bnoentry'
9940 # When large executables or shared objects are built, AIX ld can
9941 # have problems creating the table of contents. If linking a library
9942 # or program results in "error TOC overflow" add -mminimal-toc to
9943 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9944 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9948 hardcode_direct_absolute=yes
9949 hardcode_libdir_separator=':'
9950 link_all_deplibs=yes
9951 file_list_spec='${wl}-f,'
9953 if test "$GCC" = yes; then
9954 case $host_os in aix4.[012]|aix4.[012].*)
9955 # We only want to do this on AIX 4.2 and lower, the check
9956 # below for broken collect2 doesn't work under 4.3+
9957 collect2name=`${CC} -print-prog-name=collect2`
9958 if test -f "$collect2name" &&
9959 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9961 # We have reworked collect2
9964 # We have old collect2
9965 hardcode_direct=unsupported
9966 # It fails to find uninstalled libraries when the uninstalled
9967 # path is not listed in the libpath. Setting hardcode_minus_L
9968 # to unsupported forces relinking
9969 hardcode_minus_L=yes
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_libdir_separator=
9975 shared_flag='-shared'
9976 if test "$aix_use_runtimelinking" = yes; then
9977 shared_flag="$shared_flag "'${wl}-G'
9982 if test "$host_cpu" = ia64; then
9983 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9984 # chokes on -Wl,-G. The following line is correct:
9987 if test "$aix_use_runtimelinking" = yes; then
9988 shared_flag='${wl}-G'
9990 shared_flag='${wl}-bM:SRE'
9995 export_dynamic_flag_spec='${wl}-bexpall'
9996 # It seems that -bexpall does not export symbols beginning with
9997 # underscore (_), so it is better to generate a list of symbols to export.
9998 always_export_symbols=yes
9999 if test "$aix_use_runtimelinking" = yes; then
10000 # Warning - without using the other runtime loading flags (-brtl),
10001 # -berok will link without error, but may produce a broken library.
10002 allow_undefined_flag='-berok'
10003 # Determine the default libpath from the value encoded in an
10004 # empty executable.
10005 if test "${lt_cv_aix_libpath+set}" = set; then
10006 aix_libpath=$lt_cv_aix_libpath
10008 if ${lt_cv_aix_libpath_+:} false; then :
10009 $as_echo_n "(cached) " >&6
10011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10012 /* end confdefs.h. */
10022 if ac_fn_c_try_link "$LINENO"; then :
10024 lt_aix_libpath_sed='
10025 /Import File Strings/,/^$/ {
10027 s/^0 *\([^ ]*\) *$/\1/
10031 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032 # Check for a 64-bit object if we didn't find anything.
10033 if test -z "$lt_cv_aix_libpath_"; then
10034 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039 if test -z "$lt_cv_aix_libpath_"; then
10040 lt_cv_aix_libpath_="/usr/lib:/lib"
10045 aix_libpath=$lt_cv_aix_libpath_
10048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10049 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"
10051 if test "$host_cpu" = ia64; then
10052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10053 allow_undefined_flag="-z nodefs"
10054 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"
10056 # Determine the default libpath from the value encoded in an
10057 # empty executable.
10058 if test "${lt_cv_aix_libpath+set}" = set; then
10059 aix_libpath=$lt_cv_aix_libpath
10061 if ${lt_cv_aix_libpath_+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10075 if ac_fn_c_try_link "$LINENO"; then :
10077 lt_aix_libpath_sed='
10078 /Import File Strings/,/^$/ {
10080 s/^0 *\([^ ]*\) *$/\1/
10084 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10085 # Check for a 64-bit object if we didn't find anything.
10086 if test -z "$lt_cv_aix_libpath_"; then
10087 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 if test -z "$lt_cv_aix_libpath_"; then
10093 lt_cv_aix_libpath_="/usr/lib:/lib"
10098 aix_libpath=$lt_cv_aix_libpath_
10101 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10102 # Warning - without using the other run time loading flags,
10103 # -berok will link without error, but may produce a broken library.
10104 no_undefined_flag=' ${wl}-bernotok'
10105 allow_undefined_flag=' ${wl}-berok'
10106 if test "$with_gnu_ld" = yes; then
10107 # We only use this code for GNU lds that support --whole-archive.
10108 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10110 # Exported symbols can be pulled into shared objects from archives
10111 whole_archive_flag_spec='$convenience'
10113 archive_cmds_need_lc=yes
10114 # This is similar to how AIX traditionally builds its shared libraries.
10115 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'
10123 # see comment about AmigaOS4 .so support
10124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10125 archive_expsym_cmds=''
10128 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)'
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 hardcode_minus_L=yes
10136 export_dynamic_flag_spec=-rdynamic
10139 cygwin* | mingw* | pw32* | cegcc*)
10140 # When not using gcc, we currently assume that we are using
10141 # Microsoft Visual C++.
10142 # hardcode_libdir_flag_spec is actually meaningless, as there is
10143 # no search path for DLLs.
10144 case $cc_basename in
10147 hardcode_libdir_flag_spec=' '
10148 allow_undefined_flag=unsupported
10149 always_export_symbols=yes
10151 # Tell ltmain to make .lib files, not .a files.
10153 # Tell ltmain to make .dll files, not .so files.
10155 # FIXME: Setting linknames here is a bad hack.
10156 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10157 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10158 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10160 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10162 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10164 # The linker will not automatically build a static lib if we build a DLL.
10165 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10166 enable_shared_with_static_runtimes=yes
10167 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10168 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10170 old_postinstall_cmds='chmod 644 $oldlib'
10171 postlink_cmds='lt_outputfile="@OUTPUT@"~
10172 lt_tool_outputfile="@TOOL_OUTPUT@"~
10173 case $lt_outputfile in
10176 lt_outputfile="$lt_outputfile.exe"
10177 lt_tool_outputfile="$lt_tool_outputfile.exe"
10180 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10181 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10182 $RM "$lt_outputfile.manifest";
10186 # Assume MSVC wrapper
10187 hardcode_libdir_flag_spec=' '
10188 allow_undefined_flag=unsupported
10189 # Tell ltmain to make .lib files, not .a files.
10191 # Tell ltmain to make .dll files, not .so files.
10193 # FIXME: Setting linknames here is a bad hack.
10194 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10195 # The linker will automatically build a .lib file if we build a DLL.
10196 old_archive_from_new_cmds='true'
10197 # FIXME: Should let the user specify the lib program.
10198 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10199 enable_shared_with_static_runtimes=yes
10204 darwin* | rhapsody*)
10207 archive_cmds_need_lc=no
10209 hardcode_automatic=yes
10210 hardcode_shlibpath_var=unsupported
10211 if test "$lt_cv_ld_force_load" = "yes"; then
10212 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\"`'
10215 whole_archive_flag_spec=''
10217 link_all_deplibs=yes
10218 allow_undefined_flag="$_lt_dar_allow_undefined"
10219 case $cc_basename in
10220 ifort*) _lt_dar_can_shared=yes ;;
10221 *) _lt_dar_can_shared=$GCC ;;
10223 if test "$_lt_dar_can_shared" = "yes"; then
10224 output_verbose_link_cmd=func_echo_all
10225 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10226 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10227 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}"
10228 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}"
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_libdir_flag_spec='-L$libdir'
10239 hardcode_shlibpath_var=no
10242 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10243 # support. Future versions do this automatically, but an explicit c++rt0.o
10244 # does not break anything, and helps significantly (at the cost of a little
10247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10248 hardcode_libdir_flag_spec='-R$libdir'
10249 hardcode_direct=yes
10250 hardcode_shlibpath_var=no
10253 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10256 hardcode_direct=yes
10257 hardcode_minus_L=yes
10258 hardcode_shlibpath_var=no
10261 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10262 freebsd* | dragonfly*)
10263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10264 hardcode_libdir_flag_spec='-R$libdir'
10265 hardcode_direct=yes
10266 hardcode_shlibpath_var=no
10270 if test "$GCC" = yes; then
10271 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'
10273 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'
10275 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10276 hardcode_libdir_separator=:
10277 hardcode_direct=yes
10279 # hardcode_minus_L: Not really in the search PATH,
10280 # but as the default location of the library.
10281 hardcode_minus_L=yes
10282 export_dynamic_flag_spec='${wl}-E'
10286 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10287 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10291 if test "$with_gnu_ld" = no; then
10292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10293 hardcode_libdir_separator=:
10294 hardcode_direct=yes
10295 hardcode_direct_absolute=yes
10296 export_dynamic_flag_spec='${wl}-E'
10297 # hardcode_minus_L: Not really in the search PATH,
10298 # but as the default location of the library.
10299 hardcode_minus_L=yes
10304 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10307 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10326 # Older versions of the 11.00 compiler do not understand -b yet
10327 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10329 $as_echo_n "checking if $CC understands -b... " >&6; }
10330 if ${lt_cv_prog_compiler__b+:} false; then :
10331 $as_echo_n "(cached) " >&6
10333 lt_cv_prog_compiler__b=no
10334 save_LDFLAGS="$LDFLAGS"
10335 LDFLAGS="$LDFLAGS -b"
10336 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10337 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10338 # The linker can only warn and ignore the option if not recognized
10339 # So say no if there are warnings
10340 if test -s conftest.err; then
10341 # Append any errors to the config.log.
10342 cat conftest.err 1>&5
10343 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10344 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10345 if diff conftest.exp conftest.er2 >/dev/null; then
10346 lt_cv_prog_compiler__b=yes
10349 lt_cv_prog_compiler__b=yes
10353 LDFLAGS="$save_LDFLAGS"
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10357 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10359 if test x"$lt_cv_prog_compiler__b" = xyes; then
10360 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10368 if test "$with_gnu_ld" = no; then
10369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10370 hardcode_libdir_separator=:
10375 hardcode_shlibpath_var=no
10378 hardcode_direct=yes
10379 hardcode_direct_absolute=yes
10380 export_dynamic_flag_spec='${wl}-E'
10382 # hardcode_minus_L: Not really in the search PATH,
10383 # but as the default location of the library.
10384 hardcode_minus_L=yes
10390 irix5* | irix6* | nonstopux*)
10391 if test "$GCC" = yes; then
10392 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'
10393 # Try to use the -exported_symbol ld option, if it does not
10394 # work, assume that -exports_file does not work either and
10395 # implicitly export all symbols.
10396 # This should be the same for all languages, so no per-tag cache variable.
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10398 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10399 if ${lt_cv_irix_exported_symbol+:} false; then :
10400 $as_echo_n "(cached) " >&6
10402 save_LDFLAGS="$LDFLAGS"
10403 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 int foo (void) { return 0; }
10408 if ac_fn_c_try_link "$LINENO"; then :
10409 lt_cv_irix_exported_symbol=yes
10411 lt_cv_irix_exported_symbol=no
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LDFLAGS="$save_LDFLAGS"
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10418 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10419 if test "$lt_cv_irix_exported_symbol" = yes; then
10420 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'
10423 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'
10424 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'
10426 archive_cmds_need_lc='no'
10427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428 hardcode_libdir_separator=:
10430 link_all_deplibs=yes
10433 netbsd* | netbsdelf*-gnu)
10434 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10435 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10437 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10439 hardcode_libdir_flag_spec='-R$libdir'
10440 hardcode_direct=yes
10441 hardcode_shlibpath_var=no
10445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446 hardcode_direct=yes
10447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448 hardcode_libdir_separator=:
10449 hardcode_shlibpath_var=no
10456 if test -f /usr/libexec/ld.so; then
10457 hardcode_direct=yes
10458 hardcode_shlibpath_var=no
10459 hardcode_direct_absolute=yes
10460 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10463 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464 export_dynamic_flag_spec='${wl}-E'
10467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_libdir_flag_spec='-R$libdir'
10472 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10483 hardcode_libdir_flag_spec='-L$libdir'
10484 hardcode_minus_L=yes
10485 allow_undefined_flag=unsupported
10486 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'
10487 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10491 if test "$GCC" = yes; then
10492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10493 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'
10495 allow_undefined_flag=' -expect_unresolved \*'
10496 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'
10498 archive_cmds_need_lc='no'
10499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500 hardcode_libdir_separator=:
10503 osf4* | osf5*) # as osf3* with the addition of -msym flag
10504 if test "$GCC" = yes; then
10505 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506 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'
10507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10509 allow_undefined_flag=' -expect_unresolved \*'
10510 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'
10511 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~
10512 $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'
10514 # Both c and cxx compiler support -rpath directly
10515 hardcode_libdir_flag_spec='-rpath $libdir'
10517 archive_cmds_need_lc='no'
10518 hardcode_libdir_separator=:
10522 no_undefined_flag=' -z defs'
10523 if test "$GCC" = yes; then
10525 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527 $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'
10529 case `$CC -V 2>&1` in
10532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10538 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10539 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10544 hardcode_libdir_flag_spec='-R$libdir'
10545 hardcode_shlibpath_var=no
10547 solaris2.[0-5] | solaris2.[0-5].*) ;;
10549 # The compiler driver will combine and reorder linker options,
10550 # but understands `-z linker_flag'. GCC discards it without `$wl',
10551 # but is careful enough not to reorder.
10552 # Supported since Solaris 2.6 (maybe 2.5.1?)
10553 if test "$GCC" = yes; then
10554 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10556 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10560 link_all_deplibs=yes
10564 if test "x$host_vendor" = xsequent; then
10565 # Use $CC to link under sequent, because it throws in some extra .o
10566 # files that make .init and .fini sections work.
10567 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10571 hardcode_libdir_flag_spec='-L$libdir'
10572 hardcode_direct=yes
10573 hardcode_minus_L=yes
10574 hardcode_shlibpath_var=no
10578 case $host_vendor in
10580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581 hardcode_direct=yes # is this really true???
10584 ## LD is ld it makes a PLAMLIB
10585 ## CC just makes a GrossModule.
10586 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10587 reload_cmds='$CC -r -o $output$reload_objs'
10591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10595 runpath_var='LD_RUN_PATH'
10596 hardcode_shlibpath_var=no
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_shlibpath_var=no
10602 export_dynamic_flag_spec='-Bexport'
10606 if test -d /usr/nec; then
10607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608 hardcode_shlibpath_var=no
10609 runpath_var=LD_RUN_PATH
10610 hardcode_runpath_var=yes
10615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10616 no_undefined_flag='${wl}-z,text'
10617 archive_cmds_need_lc=no
10618 hardcode_shlibpath_var=no
10619 runpath_var='LD_RUN_PATH'
10621 if test "$GCC" = yes; then
10622 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10625 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630 sysv5* | sco3.2v5* | sco5v6*)
10631 # Note: We can NOT use -z defs as we might desire, because we do not
10632 # link with -lc, and that would cause any symbols used from libc to
10633 # always be unresolved, which means just about no library would
10634 # ever link correctly. If we're not using GNU ld we use -z text
10635 # though, which does catch some bad symbols but isn't as heavy-handed
10637 no_undefined_flag='${wl}-z,text'
10638 allow_undefined_flag='${wl}-z,nodefs'
10639 archive_cmds_need_lc=no
10640 hardcode_shlibpath_var=no
10641 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10642 hardcode_libdir_separator=':'
10643 link_all_deplibs=yes
10644 export_dynamic_flag_spec='${wl}-Bexport'
10645 runpath_var='LD_RUN_PATH'
10647 if test "$GCC" = yes; then
10648 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10651 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658 hardcode_libdir_flag_spec='-L$libdir'
10659 hardcode_shlibpath_var=no
10667 if test x$host_vendor = xsni; then
10669 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10670 export_dynamic_flag_spec='${wl}-Blargedynsym'
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10677 $as_echo "$ld_shlibs" >&6; }
10678 test "$ld_shlibs" = no && can_build_shared=no
10680 with_gnu_ld=$with_gnu_ld
10697 # Do we need to explicitly link libc?
10699 case "x$archive_cmds_need_lc" in
10701 # Assume -lc should be added
10702 archive_cmds_need_lc=yes
10704 if test "$enable_shared" = yes && test "$GCC" = yes; then
10705 case $archive_cmds in
10707 # FIXME: we may have to deal with multi-command sequences.
10710 # Test whether the compiler implicitly links with -lc since on some
10711 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10712 # to ld, don't add -lc before -lgcc.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10714 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10715 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10716 $as_echo_n "(cached) " >&6
10719 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10721 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10722 (eval $ac_compile) 2>&5
10724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725 test $ac_status = 0; } 2>conftest.err; then
10728 libobjs=conftest.$ac_objext
10730 wl=$lt_prog_compiler_wl
10731 pic_flag=$lt_prog_compiler_pic
10737 lt_save_allow_undefined_flag=$allow_undefined_flag
10738 allow_undefined_flag=
10739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10740 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743 test $ac_status = 0; }
10745 lt_cv_archive_cmds_need_lc=no
10747 lt_cv_archive_cmds_need_lc=yes
10749 allow_undefined_flag=$lt_save_allow_undefined_flag
10751 cat conftest.err 1>&5
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10757 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10758 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10917 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10919 if test "$GCC" = yes; then
10921 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10922 *) lt_awk_arg="/^libraries:/" ;;
10925 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10926 *) lt_sed_strip_eq="s,=/,/,g" ;;
10928 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10929 case $lt_search_path_spec in
10931 # if the path contains ";" then we assume it to be the separator
10932 # otherwise default to the standard path separator (i.e. ":") - it is
10933 # assumed that no part of a normal pathname contains ";" but that should
10934 # okay in the real world where ";" in dirpaths is itself problematic.
10935 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10938 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10941 # Ok, now we have the path, separated by spaces, we can step through it
10942 # and add multilib dir if necessary.
10943 lt_tmp_lt_search_path_spec=
10944 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10945 for lt_sys_path in $lt_search_path_spec; do
10946 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10947 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10949 test -d "$lt_sys_path" && \
10950 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10953 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10954 BEGIN {RS=" "; FS="/|\n";} {
10957 for (lt_i = NF; lt_i > 0; lt_i--) {
10958 if ($lt_i != "" && $lt_i != ".") {
10959 if ($lt_i == "..") {
10962 if (lt_count == 0) {
10963 lt_foo="/" $lt_i lt_foo;
10970 if (lt_foo != "") { lt_freq[lt_foo]++; }
10971 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10973 # AWK program above erroneously prepends '/' to C:/dos/paths
10976 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10977 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10979 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10983 library_names_spec=
10984 libname_spec='lib$name'
10988 postuninstall_cmds=
10992 shlibpath_overrides_runpath=unknown
10994 dynamic_linker="$host_os ld.so"
10995 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10996 need_lib_prefix=unknown
10997 hardcode_into_libs=no
10999 # when you set need_version to no, make sure it does not cause -set_version
11000 # flags to be left without arguments
11001 need_version=unknown
11005 version_type=linux # correct to gnu/linux during the next big refactor
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11007 shlibpath_var=LIBPATH
11009 # AIX 3 has no versioning support, so we append a major version to the name.
11010 soname_spec='${libname}${release}${shared_ext}$major'
11014 version_type=linux # correct to gnu/linux during the next big refactor
11017 hardcode_into_libs=yes
11018 if test "$host_cpu" = ia64; then
11019 # AIX 5 supports IA64
11020 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11021 shlibpath_var=LD_LIBRARY_PATH
11023 # With GCC up to 2.95.x, collect2 would create an import file
11024 # for dependence libraries. The import file would start with
11025 # the line `#! .'. This would cause the generated library to
11026 # depend on `.', always an invalid library. This was fixed in
11027 # development snapshots of GCC prior to 3.0.
11029 aix4 | aix4.[01] | aix4.[01].*)
11030 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11032 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11035 can_build_shared=no
11039 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11040 # soname into executable. Probably we can add versioning support to
11041 # collect2, so additional links can be useful in future.
11042 if test "$aix_use_runtimelinking" = yes; then
11043 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11044 # instead of lib<name>.a to let people know that these are not
11045 # typical AIX shared libraries.
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 # We preserve .a as extension for shared libraries through AIX4.2
11049 # and later when we are not doing run time linking.
11050 library_names_spec='${libname}${release}.a $libname.a'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LIBPATH
11060 # Since July 2007 AmigaOS4 officially supports .so libraries.
11061 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 library_names_spec='$libname.ixlibrary $libname.a'
11066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11067 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'
11073 library_names_spec='${libname}${shared_ext}'
11074 dynamic_linker="$host_os ld.so"
11075 shlibpath_var=LIBRARY_PATH
11079 version_type=linux # correct to gnu/linux during the next big refactor
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11084 shlibpath_var=LD_LIBRARY_PATH
11085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11087 # the default ld.so.conf also contains /usr/contrib/lib and
11088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11089 # libtool to hard-code these into programs
11092 cygwin* | mingw* | pw32* | cegcc*)
11093 version_type=windows
11098 case $GCC,$cc_basename in
11101 library_names_spec='$libname.dll.a'
11102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11103 postinstall_cmds='base_file=`basename \${file}`~
11104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11105 dldir=$destdir/`dirname \$dlpath`~
11106 test -d \$dldir || mkdir -p \$dldir~
11107 $install_prog $dir/$dlname \$dldir/$dlname~
11108 chmod a+x \$dldir/$dlname~
11109 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11110 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11113 dlpath=$dir/\$dldll~
11115 shlibpath_overrides_runpath=yes
11119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11120 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11125 # MinGW DLLs use traditional 'lib' prefix
11126 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11129 # pw32 DLLs use 'pw' prefix rather than 'lib'
11130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11133 dynamic_linker='Win32 ld.exe'
11138 libname_spec='$name'
11139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11140 library_names_spec='${libname}.dll.lib'
11144 sys_lib_search_path_spec=
11147 for lt_path in $LIB
11150 # Let DOS variable expansion print the short 8.3 style file name.
11151 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11152 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11155 # Convert to MSYS style.
11156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11159 # Convert to unix form, then to dos form, then back to unix form
11160 # but this time dos style (no spaces!) so that the unix form looks
11161 # like /cygdrive/c/PROGRA~1:/cygdr...
11162 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11163 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11164 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11167 sys_lib_search_path_spec="$LIB"
11168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11169 # It is most probably a Windows format PATH.
11170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11174 # FIXME: find the short name or the path components, as spaces are
11175 # common. (e.g. "Program Files" -> "PROGRA~1")
11179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11180 postinstall_cmds='base_file=`basename \${file}`~
11181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11182 dldir=$destdir/`dirname \$dlpath`~
11183 test -d \$dldir || mkdir -p \$dldir~
11184 $install_prog $dir/$dlname \$dldir/$dlname'
11185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11186 dlpath=$dir/\$dldll~
11188 shlibpath_overrides_runpath=yes
11189 dynamic_linker='Win32 link.exe'
11193 # Assume MSVC wrapper
11194 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11195 dynamic_linker='Win32 ld.exe'
11198 # FIXME: first we should search . and the directory the executable is in
11202 darwin* | rhapsody*)
11203 dynamic_linker="$host_os dyld"
11204 version_type=darwin
11207 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11208 soname_spec='${libname}${release}${major}$shared_ext'
11209 shlibpath_overrides_runpath=yes
11210 shlibpath_var=DYLD_LIBRARY_PATH
11211 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11213 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11214 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11218 version_type=linux # correct to gnu/linux during the next big refactor
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11222 soname_spec='${libname}${release}${shared_ext}$major'
11223 shlibpath_var=LD_LIBRARY_PATH
11226 freebsd* | dragonfly*)
11227 # DragonFly does not have aout. When/if they implement a new
11228 # versioning mechanism, adjust this.
11229 if test -x /usr/bin/objformat; then
11230 objformat=`/usr/bin/objformat`
11233 freebsd[23].*) objformat=aout ;;
11234 *) objformat=elf ;;
11237 version_type=freebsd-$objformat
11238 case $version_type in
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11249 shlibpath_var=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath=yes
11254 freebsd3.[01]* | freebsdelf3.[01]*)
11255 shlibpath_overrides_runpath=yes
11256 hardcode_into_libs=yes
11258 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11259 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11260 shlibpath_overrides_runpath=no
11261 hardcode_into_libs=yes
11263 *) # from 4.6 on, and DragonFly
11264 shlibpath_overrides_runpath=yes
11265 hardcode_into_libs=yes
11271 version_type=linux # correct to gnu/linux during the next big refactor
11274 dynamic_linker="$host_os runtime_loader"
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LIBRARY_PATH
11278 shlibpath_overrides_runpath=yes
11279 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11280 hardcode_into_libs=yes
11283 hpux9* | hpux10* | hpux11*)
11284 # Give a soname corresponding to the major version so that dld.sl refuses to
11285 # link against other versions.
11292 hardcode_into_libs=yes
11293 dynamic_linker="$host_os dld.so"
11294 shlibpath_var=LD_LIBRARY_PATH
11295 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 if test "X$HPUX_IA64_MODE" = X32; then
11299 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11301 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11303 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11307 hardcode_into_libs=yes
11308 dynamic_linker="$host_os dld.sl"
11309 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11312 soname_spec='${libname}${release}${shared_ext}$major'
11313 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11314 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11318 dynamic_linker="$host_os dld.sl"
11319 shlibpath_var=SHLIB_PATH
11320 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322 soname_spec='${libname}${release}${shared_ext}$major'
11325 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11326 postinstall_cmds='chmod 555 $lib'
11327 # or fails outright, so override atomically:
11328 install_override_mode=555
11332 version_type=linux # correct to gnu/linux during the next big refactor
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=no
11340 hardcode_into_libs=yes
11343 irix5* | irix6* | nonstopux*)
11345 nonstopux*) version_type=nonstopux ;;
11347 if test "$lt_cv_prog_gnu_ld" = yes; then
11348 version_type=linux # correct to gnu/linux during the next big refactor
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11358 irix5* | nonstopux*)
11359 libsuff= shlibsuff=
11362 case $LD in # libtool.m4 will add one of these switches to LD
11363 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11364 libsuff= shlibsuff= libmagic=32-bit;;
11365 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11366 libsuff=32 shlibsuff=N32 libmagic=N32;;
11367 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11368 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11369 *) libsuff= shlibsuff= libmagic=never-match;;
11373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11374 shlibpath_overrides_runpath=no
11375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11377 hardcode_into_libs=yes
11380 # No shared lib support for Linux oldld, aout, or coff.
11381 linux*oldld* | linux*aout* | linux*coff*)
11385 # This must be glibc/ELF.
11386 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11387 version_type=linux # correct to gnu/linux during the next big refactor
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 shlibpath_overrides_runpath=no
11396 # Some binutils ld are patched to set DT_RUNPATH
11397 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11398 $as_echo_n "(cached) " >&6
11400 lt_cv_shlibpath_overrides_runpath=no
11401 save_LDFLAGS=$LDFLAGS
11402 save_libdir=$libdir
11403 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11404 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11416 if ac_fn_c_try_link "$LINENO"; then :
11417 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11418 lt_cv_shlibpath_overrides_runpath=yes
11421 rm -f core conftest.err conftest.$ac_objext \
11422 conftest$ac_exeext conftest.$ac_ext
11423 LDFLAGS=$save_LDFLAGS
11424 libdir=$save_libdir
11428 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11430 # This implies no fast_install, which is unacceptable.
11431 # Some rework will be needed to allow for fast_install
11432 # before this can be enabled.
11433 hardcode_into_libs=yes
11435 # Append ld.so.conf contents to the search path
11436 if test -f /etc/ld.so.conf; then
11437 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' ' '`
11438 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11441 # We used to test for /lib/ld.so.1 and disable shared libraries on
11442 # powerpc, because MkLinux only supported shared libraries with the
11443 # GNU dynamic linker. Since this was broken with cross compilers,
11444 # most powerpc-linux boxes support dynamic linking these days and
11445 # people can always --disable-shared, the test was removed, and we
11446 # assume the GNU/Linux dynamic linker is in use.
11447 dynamic_linker='GNU/Linux ld.so'
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458 hardcode_into_libs=yes
11459 dynamic_linker='NetBSD ld.elf_so'
11466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11469 dynamic_linker='NetBSD (a.out) ld.so'
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11472 soname_spec='${libname}${release}${shared_ext}$major'
11473 dynamic_linker='NetBSD ld.elf_so'
11475 shlibpath_var=LD_LIBRARY_PATH
11476 shlibpath_overrides_runpath=yes
11477 hardcode_into_libs=yes
11481 version_type=linux # correct to gnu/linux during the next big refactor
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11483 shlibpath_var=LD_LIBRARY_PATH
11484 shlibpath_overrides_runpath=yes
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 soname_spec='${libname}${release}${shared_ext}$major'
11493 shlibpath_var=LD_LIBRARY_PATH
11494 shlibpath_overrides_runpath=no
11495 hardcode_into_libs=yes
11496 dynamic_linker='ldqnx.so'
11501 sys_lib_dlsearch_path_spec="/usr/lib"
11503 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11505 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11506 *) need_version=no ;;
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11513 openbsd2.[89] | openbsd2.[89].*)
11514 shlibpath_overrides_runpath=no
11517 shlibpath_overrides_runpath=yes
11521 shlibpath_overrides_runpath=yes
11526 libname_spec='$name'
11529 library_names_spec='$libname${shared_ext} $libname.a'
11530 dynamic_linker='OS/2 ld.exe'
11531 shlibpath_var=LIBPATH
11534 osf3* | osf4* | osf5*)
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11540 shlibpath_var=LD_LIBRARY_PATH
11541 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11542 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11550 version_type=linux # correct to gnu/linux during the next big refactor
11553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11554 soname_spec='${libname}${release}${shared_ext}$major'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 shlibpath_overrides_runpath=yes
11557 hardcode_into_libs=yes
11558 # ldd complains unless libraries are executable
11559 postinstall_cmds='chmod +x $lib'
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11566 shlibpath_var=LD_LIBRARY_PATH
11567 shlibpath_overrides_runpath=yes
11568 if test "$with_gnu_ld" = yes; then
11575 version_type=linux # correct to gnu/linux during the next big refactor
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 shlibpath_var=LD_LIBRARY_PATH
11579 case $host_vendor in
11581 shlibpath_overrides_runpath=no
11583 runpath_var=LD_RUN_PATH
11591 shlibpath_overrides_runpath=no
11592 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11598 if test -d /usr/nec ;then
11599 version_type=linux # correct to gnu/linux during the next big refactor
11600 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11601 soname_spec='$libname${shared_ext}.$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11606 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11607 version_type=freebsd-elf
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 shlibpath_overrides_runpath=yes
11614 hardcode_into_libs=yes
11615 if test "$with_gnu_ld" = yes; then
11616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11618 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11621 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11625 sys_lib_dlsearch_path_spec='/usr/lib'
11629 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11630 version_type=linux # correct to gnu/linux during the next big refactor
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11640 version_type=linux # correct to gnu/linux during the next big refactor
11641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11642 soname_spec='${libname}${release}${shared_ext}$major'
11643 shlibpath_var=LD_LIBRARY_PATH
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11651 $as_echo "$dynamic_linker" >&6; }
11652 test "$dynamic_linker" = no && can_build_shared=no
11654 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11655 if test "$GCC" = yes; then
11656 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11659 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11660 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11662 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11663 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11758 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11760 if test -n "$hardcode_libdir_flag_spec" ||
11761 test -n "$runpath_var" ||
11762 test "X$hardcode_automatic" = "Xyes" ; then
11764 # We can hardcode non-existent directories.
11765 if test "$hardcode_direct" != no &&
11766 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11767 # have to relink, otherwise we might link with an installed library
11768 # when we should be linking with a yet-to-be-installed one
11769 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11770 test "$hardcode_minus_L" != no; then
11771 # Linking always hardcodes the temporary library directory.
11772 hardcode_action=relink
11774 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11775 hardcode_action=immediate
11778 # We cannot hardcode anything, or else we can only hardcode existing
11780 hardcode_action=unsupported
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11783 $as_echo "$hardcode_action" >&6; }
11785 if test "$hardcode_action" = relink ||
11786 test "$inherit_rpath" = yes; then
11787 # Fast installation is not supported
11788 enable_fast_install=no
11789 elif test "$shlibpath_overrides_runpath" = yes ||
11790 test "$enable_shared" = no; then
11791 # Fast installation is not necessary
11792 enable_fast_install=needless
11800 if test "x$enable_dlopen" != xyes; then
11801 enable_dlopen=unknown
11802 enable_dlopen_self=unknown
11803 enable_dlopen_self_static=unknown
11810 lt_cv_dlopen="load_add_on"
11812 lt_cv_dlopen_self=yes
11815 mingw* | pw32* | cegcc*)
11816 lt_cv_dlopen="LoadLibrary"
11821 lt_cv_dlopen="dlopen"
11826 # if libdl is installed we need to link against it
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11828 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11829 if ${ac_cv_lib_dl_dlopen+:} false; then :
11830 $as_echo_n "(cached) " >&6
11832 ac_check_lib_save_LIBS=$LIBS
11834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11852 if ac_fn_c_try_link "$LINENO"; then :
11853 ac_cv_lib_dl_dlopen=yes
11855 ac_cv_lib_dl_dlopen=no
11857 rm -f core conftest.err conftest.$ac_objext \
11858 conftest$ac_exeext conftest.$ac_ext
11859 LIBS=$ac_check_lib_save_LIBS
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11862 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11863 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11867 lt_cv_dlopen="dyld"
11869 lt_cv_dlopen_self=yes
11876 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11877 if test "x$ac_cv_func_shl_load" = xyes; then :
11878 lt_cv_dlopen="shl_load"
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11881 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11882 if ${ac_cv_lib_dld_shl_load+:} false; then :
11883 $as_echo_n "(cached) " >&6
11885 ac_check_lib_save_LIBS=$LIBS
11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888 /* end confdefs.h. */
11890 /* Override any GCC internal prototype to avoid an error.
11891 Use char because int might match the return type of a GCC
11892 builtin and then its argument prototype would still apply. */
11900 return shl_load ();
11905 if ac_fn_c_try_link "$LINENO"; then :
11906 ac_cv_lib_dld_shl_load=yes
11908 ac_cv_lib_dld_shl_load=no
11910 rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 LIBS=$ac_check_lib_save_LIBS
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11915 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11916 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11919 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11920 if test "x$ac_cv_func_dlopen" = xyes; then :
11921 lt_cv_dlopen="dlopen"
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11924 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11925 if ${ac_cv_lib_dl_dlopen+:} false; then :
11926 $as_echo_n "(cached) " >&6
11928 ac_check_lib_save_LIBS=$LIBS
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11933 /* Override any GCC internal prototype to avoid an error.
11934 Use char because int might match the return type of a GCC
11935 builtin and then its argument prototype would still apply. */
11948 if ac_fn_c_try_link "$LINENO"; then :
11949 ac_cv_lib_dl_dlopen=yes
11951 ac_cv_lib_dl_dlopen=no
11953 rm -f core conftest.err conftest.$ac_objext \
11954 conftest$ac_exeext conftest.$ac_ext
11955 LIBS=$ac_check_lib_save_LIBS
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11958 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11959 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11963 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11964 if ${ac_cv_lib_svld_dlopen+:} false; then :
11965 $as_echo_n "(cached) " >&6
11967 ac_check_lib_save_LIBS=$LIBS
11968 LIBS="-lsvld $LIBS"
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11972 /* Override any GCC internal prototype to avoid an error.
11973 Use char because int might match the return type of a GCC
11974 builtin and then its argument prototype would still apply. */
11987 if ac_fn_c_try_link "$LINENO"; then :
11988 ac_cv_lib_svld_dlopen=yes
11990 ac_cv_lib_svld_dlopen=no
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11994 LIBS=$ac_check_lib_save_LIBS
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11998 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12003 if ${ac_cv_lib_dld_dld_link+:} false; then :
12004 $as_echo_n "(cached) " >&6
12006 ac_check_lib_save_LIBS=$LIBS
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12021 return dld_link ();
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_lib_dld_dld_link=yes
12029 ac_cv_lib_dld_dld_link=no
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12036 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12037 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12038 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12059 if test "x$lt_cv_dlopen" != xno; then
12065 case $lt_cv_dlopen in
12067 save_CPPFLAGS="$CPPFLAGS"
12068 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12070 save_LDFLAGS="$LDFLAGS"
12071 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12074 LIBS="$lt_cv_dlopen_libs $LIBS"
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12077 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12078 if ${lt_cv_dlopen_self+:} false; then :
12079 $as_echo_n "(cached) " >&6
12081 if test "$cross_compiling" = yes; then :
12082 lt_cv_dlopen_self=cross
12084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12085 lt_status=$lt_dlunknown
12086 cat > conftest.$ac_ext <<_LT_EOF
12087 #line $LINENO "configure"
12088 #include "confdefs.h"
12097 # define LT_DLGLOBAL RTLD_GLOBAL
12100 # define LT_DLGLOBAL DL_GLOBAL
12102 # define LT_DLGLOBAL 0
12106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12107 find out it does not work in some platform. */
12108 #ifndef LT_DLLAZY_OR_NOW
12110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12113 # define LT_DLLAZY_OR_NOW DL_LAZY
12116 # define LT_DLLAZY_OR_NOW RTLD_NOW
12119 # define LT_DLLAZY_OR_NOW DL_NOW
12121 # define LT_DLLAZY_OR_NOW 0
12128 /* When -fvisbility=hidden is used, assume the code has been annotated
12129 correspondingly for the symbols needed. */
12130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12131 int fnord () __attribute__((visibility("default")));
12134 int fnord () { return 42; }
12137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12138 int status = $lt_dlunknown;
12142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12146 else puts (dlerror ());
12148 /* dlclose (self); */
12156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12157 (eval $ac_link) 2>&5
12159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12161 (./conftest; exit; ) >&5 2>/dev/null
12163 case x$lt_status in
12164 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12165 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12166 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12169 # compilation failed
12170 lt_cv_dlopen_self=no
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12178 $as_echo "$lt_cv_dlopen_self" >&6; }
12180 if test "x$lt_cv_dlopen_self" = xyes; then
12181 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12183 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12184 if ${lt_cv_dlopen_self_static+:} false; then :
12185 $as_echo_n "(cached) " >&6
12187 if test "$cross_compiling" = yes; then :
12188 lt_cv_dlopen_self_static=cross
12190 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12191 lt_status=$lt_dlunknown
12192 cat > conftest.$ac_ext <<_LT_EOF
12193 #line $LINENO "configure"
12194 #include "confdefs.h"
12203 # define LT_DLGLOBAL RTLD_GLOBAL
12206 # define LT_DLGLOBAL DL_GLOBAL
12208 # define LT_DLGLOBAL 0
12212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12213 find out it does not work in some platform. */
12214 #ifndef LT_DLLAZY_OR_NOW
12216 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12219 # define LT_DLLAZY_OR_NOW DL_LAZY
12222 # define LT_DLLAZY_OR_NOW RTLD_NOW
12225 # define LT_DLLAZY_OR_NOW DL_NOW
12227 # define LT_DLLAZY_OR_NOW 0
12234 /* When -fvisbility=hidden is used, assume the code has been annotated
12235 correspondingly for the symbols needed. */
12236 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12237 int fnord () __attribute__((visibility("default")));
12240 int fnord () { return 42; }
12243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12244 int status = $lt_dlunknown;
12248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12251 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252 else puts (dlerror ());
12254 /* dlclose (self); */
12262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12263 (eval $ac_link) 2>&5
12265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12266 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12267 (./conftest; exit; ) >&5 2>/dev/null
12269 case x$lt_status in
12270 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12271 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12272 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12275 # compilation failed
12276 lt_cv_dlopen_self_static=no
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12284 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12287 CPPFLAGS="$save_CPPFLAGS"
12288 LDFLAGS="$save_LDFLAGS"
12293 case $lt_cv_dlopen_self in
12294 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12295 *) enable_dlopen_self=unknown ;;
12298 case $lt_cv_dlopen_self_static in
12299 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12300 *) enable_dlopen_self_static=unknown ;;
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12323 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12324 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12325 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12326 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12328 $as_echo "yes" >&6; }
12330 # FIXME - insert some real tests, host_os isn't really good enough
12333 if test -n "$STRIP" ; then
12334 striplib="$STRIP -x"
12335 old_striplib="$STRIP -S"
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12337 $as_echo "yes" >&6; }
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345 $as_echo "no" >&6; }
12361 # Report which library types will actually be built
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12363 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12365 $as_echo "$can_build_shared" >&6; }
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12368 $as_echo_n "checking whether to build shared libraries... " >&6; }
12369 test "$can_build_shared" = "no" && enable_shared=no
12371 # On AIX, shared libraries and static libraries use the same namespace, and
12372 # are all built from PIC.
12375 test "$enable_shared" = yes && enable_static=no
12376 if test -n "$RANLIB"; then
12377 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12378 postinstall_cmds='$RANLIB $lib'
12383 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12384 test "$enable_shared" = yes && enable_static=no
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12389 $as_echo "$enable_shared" >&6; }
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12392 $as_echo_n "checking whether to build static libraries... " >&6; }
12393 # Make sure either enable_shared or enable_static is yes.
12394 test "$enable_shared" = yes || enable_static=yes
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12396 $as_echo "$enable_static" >&6; }
12403 ac_cpp='$CPP $CPPFLAGS'
12404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424 ac_config_commands="$ac_config_commands libtool"
12429 # Only expand once:
12432 if test -n "$ac_tool_prefix"; then
12433 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12434 set dummy ${ac_tool_prefix}strip; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12436 $as_echo_n "checking for $ac_word... " >&6; }
12437 if ${ac_cv_prog_STRIP+:} false; then :
12438 $as_echo_n "(cached) " >&6
12440 if test -n "$STRIP"; then
12441 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12460 STRIP=$ac_cv_prog_STRIP
12461 if test -n "$STRIP"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12463 $as_echo "$STRIP" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12466 $as_echo "no" >&6; }
12471 if test -z "$ac_cv_prog_STRIP"; then
12473 # Extract the first word of "strip", so it can be a program name with args.
12474 set dummy strip; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12478 $as_echo_n "(cached) " >&6
12480 if test -n "$ac_ct_STRIP"; then
12481 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_ac_ct_STRIP="strip"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12501 if test -n "$ac_ct_STRIP"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12503 $as_echo "$ac_ct_STRIP" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12509 if test "x$ac_ct_STRIP" = x; then
12512 case $cross_compiling:$ac_tool_warned in
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12516 ac_tool_warned=yes ;;
12521 STRIP="$ac_cv_prog_STRIP"
12526 # Options for building bsdtar.
12528 # Default is to build bsdtar, but allow people to override that.
12530 # Check whether --enable-bsdtar was given.
12531 if test "${enable_bsdtar+set}" = set; then :
12532 enableval=$enable_bsdtar;
12538 case "$enable_bsdtar" in
12540 if test "$enable_static" = "no"; then
12548 if test "$enable_shared" = "no"; then
12549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12551 as_fn_error $? "Shared linking of bsdtar requires shared libarchive
12552 See \`config.log' for more details" "$LINENO" 5; }
12566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12568 as_fn_error $? "Unsupported value for --enable-bsdtar
12569 See \`config.log' for more details" "$LINENO" 5; }
12573 if test "$build_bsdtar" = yes ; then
12575 BUILD_BSDTAR_FALSE='#'
12577 BUILD_BSDTAR_TRUE='#'
12578 BUILD_BSDTAR_FALSE=
12581 if test "$static_bsdtar" = yes ; then
12582 STATIC_BSDTAR_TRUE=
12583 STATIC_BSDTAR_FALSE='#'
12585 STATIC_BSDTAR_TRUE='#'
12586 STATIC_BSDTAR_FALSE=
12591 # Options for building bsdcpio.
12593 # Default is not to build bsdcpio, but that can be overridden.
12595 # Check whether --enable-bsdcpio was given.
12596 if test "${enable_bsdcpio+set}" = set; then :
12597 enableval=$enable_bsdcpio;
12603 case "$enable_bsdcpio" in
12605 if test "$enable_static" = "no"; then
12613 if test "$enabled_shared" = "no"; then
12614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12616 as_fn_error $? "Shared linking of bsdcpio requires shared libarchive
12617 See \`config.log' for more details" "$LINENO" 5; }
12630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12632 as_fn_error $? "Unsupported value for --enable-bsdcpio
12633 See \`config.log' for more details" "$LINENO" 5; }
12637 if test "$build_bsdcpio" = yes ; then
12638 BUILD_BSDCPIO_TRUE=
12639 BUILD_BSDCPIO_FALSE='#'
12641 BUILD_BSDCPIO_TRUE='#'
12642 BUILD_BSDCPIO_FALSE=
12645 if test "$static_bsdcpio" = yes ; then
12646 STATIC_BSDCPIO_TRUE=
12647 STATIC_BSDCPIO_FALSE='#'
12649 STATIC_BSDCPIO_TRUE='#'
12650 STATIC_BSDCPIO_FALSE=
12654 # Set up defines needed before including any headers
12656 *mingw* | *cygwin* )
12658 $as_echo "#define _WIN32_WINNT 0x0500" >>confdefs.h
12661 $as_echo "#define WINVER 0x0500" >>confdefs.h
12666 # Checks for header files.
12667 ac_header_dirent=no
12668 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12669 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12671 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12672 if eval \${$as_ac_Header+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #include <sys/types.h>
12689 if ac_fn_c_try_compile "$LINENO"; then :
12690 eval "$as_ac_Header=yes"
12692 eval "$as_ac_Header=no"
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 eval ac_res=\$$as_ac_Header
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12698 $as_echo "$ac_res" >&6; }
12699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12700 cat >>confdefs.h <<_ACEOF
12701 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12704 ac_header_dirent=$ac_hdr; break
12708 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12709 if test $ac_header_dirent = dirent.h; then
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12711 $as_echo_n "checking for library containing opendir... " >&6; }
12712 if ${ac_cv_search_opendir+:} false; then :
12713 $as_echo_n "(cached) " >&6
12715 ac_func_search_save_LIBS=$LIBS
12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12717 /* end confdefs.h. */
12719 /* Override any GCC internal prototype to avoid an error.
12720 Use char because int might match the return type of a GCC
12721 builtin and then its argument prototype would still apply. */
12734 for ac_lib in '' dir; do
12735 if test -z "$ac_lib"; then
12736 ac_res="none required"
12739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12741 if ac_fn_c_try_link "$LINENO"; then :
12742 ac_cv_search_opendir=$ac_res
12744 rm -f core conftest.err conftest.$ac_objext \
12746 if ${ac_cv_search_opendir+:} false; then :
12750 if ${ac_cv_search_opendir+:} false; then :
12753 ac_cv_search_opendir=no
12755 rm conftest.$ac_ext
12756 LIBS=$ac_func_search_save_LIBS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12759 $as_echo "$ac_cv_search_opendir" >&6; }
12760 ac_res=$ac_cv_search_opendir
12761 if test "$ac_res" != no; then :
12762 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12768 $as_echo_n "checking for library containing opendir... " >&6; }
12769 if ${ac_cv_search_opendir+:} false; then :
12770 $as_echo_n "(cached) " >&6
12772 ac_func_search_save_LIBS=$LIBS
12773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12791 for ac_lib in '' x; do
12792 if test -z "$ac_lib"; then
12793 ac_res="none required"
12796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12798 if ac_fn_c_try_link "$LINENO"; then :
12799 ac_cv_search_opendir=$ac_res
12801 rm -f core conftest.err conftest.$ac_objext \
12803 if ${ac_cv_search_opendir+:} false; then :
12807 if ${ac_cv_search_opendir+:} false; then :
12810 ac_cv_search_opendir=no
12812 rm conftest.$ac_ext
12813 LIBS=$ac_func_search_save_LIBS
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12816 $as_echo "$ac_cv_search_opendir" >&6; }
12817 ac_res=$ac_cv_search_opendir
12818 if test "$ac_res" != no; then :
12819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
12826 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
12827 if ${ac_cv_header_sys_wait_h+:} false; then :
12828 $as_echo_n "(cached) " >&6
12830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12831 /* end confdefs.h. */
12832 #include <sys/types.h>
12833 #include <sys/wait.h>
12834 #ifndef WEXITSTATUS
12835 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
12838 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12846 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12851 if ac_fn_c_try_compile "$LINENO"; then :
12852 ac_cv_header_sys_wait_h=yes
12854 ac_cv_header_sys_wait_h=no
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
12859 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
12860 if test $ac_cv_header_sys_wait_h = yes; then
12862 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12866 for ac_header in acl/libacl.h attr/xattr.h copyfile.h ctype.h
12868 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12869 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12870 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12871 cat >>confdefs.h <<_ACEOF
12872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12879 for ac_header in errno.h ext2fs/ext2_fs.h fcntl.h grp.h
12881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12882 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12884 cat >>confdefs.h <<_ACEOF
12885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5
12894 $as_echo_n "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }
12895 if ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+:} false; then :
12896 $as_echo_n "(cached) " >&6
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12900 #include <sys/ioctl.h>
12901 #include <ext2fs/ext2_fs.h>
12905 int x = EXT2_IOC_GETFLAGS
12910 if ac_fn_c_try_compile "$LINENO"; then :
12911 ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes
12913 ac_cv_have_decl_EXT2_IOC_GETFLAGS=no
12915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5
12918 $as_echo "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }
12920 if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes; then :
12922 cat >>confdefs.h <<_ACEOF
12923 #define HAVE_WORKING_EXT2_IOC_GETFLAGS 1
12928 for ac_header in inttypes.h io.h langinfo.h limits.h
12930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12931 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12932 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12933 cat >>confdefs.h <<_ACEOF
12934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12941 for ac_header in linux/fiemap.h linux/fs.h linux/magic.h linux/types.h
12943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12944 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12945 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12946 cat >>confdefs.h <<_ACEOF
12947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12954 for ac_header in locale.h paths.h poll.h pwd.h signal.h spawn.h
12956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12957 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12958 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12959 cat >>confdefs.h <<_ACEOF
12960 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12967 for ac_header in stdarg.h stdint.h stdlib.h string.h
12969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12972 cat >>confdefs.h <<_ACEOF
12973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12980 for ac_header in sys/acl.h sys/cdefs.h sys/extattr.h
12982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12985 cat >>confdefs.h <<_ACEOF
12986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12993 for ac_header in sys/ioctl.h sys/mkdev.h sys/mount.h
12995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12996 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12997 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12998 cat >>confdefs.h <<_ACEOF
12999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13006 for ac_header in sys/param.h sys/poll.h sys/select.h sys/statfs.h sys/statvfs.h
13008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13009 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13010 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13011 cat >>confdefs.h <<_ACEOF
13012 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019 for ac_header in sys/time.h sys/utime.h sys/utsname.h sys/vfs.h
13021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13022 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13024 cat >>confdefs.h <<_ACEOF
13025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13032 for ac_header in time.h unistd.h utime.h wchar.h wctype.h
13034 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13035 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13036 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13037 cat >>confdefs.h <<_ACEOF
13038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13045 for ac_header in windows.h
13047 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
13048 if test "x$ac_cv_header_windows_h" = xyes; then :
13049 cat >>confdefs.h <<_ACEOF
13050 #define HAVE_WINDOWS_H 1
13057 # check windows.h first; the other headers require it.
13058 for ac_header in wincrypt.h winioctl.h
13060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_WINDOWS_H
13062 # include <windows.h>
13066 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13067 cat >>confdefs.h <<_ACEOF
13068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13076 # Checks for libraries.
13078 # Check whether --with-zlib was given.
13079 if test "${with_zlib+set}" = set; then :
13080 withval=$with_zlib;
13084 if test "x$with_zlib" != "xno"; then
13085 for ac_header in zlib.h
13087 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13088 if test "x$ac_cv_header_zlib_h" = xyes; then :
13089 cat >>confdefs.h <<_ACEOF
13090 #define HAVE_ZLIB_H 1
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
13098 $as_echo_n "checking for inflate in -lz... " >&6; }
13099 if ${ac_cv_lib_z_inflate+:} false; then :
13100 $as_echo_n "(cached) " >&6
13102 ac_check_lib_save_LIBS=$LIBS
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13107 /* Override any GCC internal prototype to avoid an error.
13108 Use char because int might match the return type of a GCC
13109 builtin and then its argument prototype would still apply. */
13122 if ac_fn_c_try_link "$LINENO"; then :
13123 ac_cv_lib_z_inflate=yes
13125 ac_cv_lib_z_inflate=no
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
13132 $as_echo "$ac_cv_lib_z_inflate" >&6; }
13133 if test "x$ac_cv_lib_z_inflate" = xyes; then :
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBZ 1
13145 # Check whether --with-bz2lib was given.
13146 if test "${with_bz2lib+set}" = set; then :
13147 withval=$with_bz2lib;
13151 if test "x$with_bz2lib" != "xno"; then
13152 for ac_header in bzlib.h
13154 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13155 if test "x$ac_cv_header_bzlib_h" = xyes; then :
13156 cat >>confdefs.h <<_ACEOF
13157 #define HAVE_BZLIB_H 1
13165 *mingw* | *cygwin*)
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
13167 $as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13173 int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }
13175 if ac_fn_c_try_link "$LINENO"; then :
13176 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
13178 ac_cv_lib_bz2_BZ2_bzDecompressInit=no
13180 rm -f core conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
13184 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
13185 if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then
13187 $as_echo "#define HAVE_LIBBZ2 1" >>confdefs.h
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
13194 $as_echo_n "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
13195 if ${ac_cv_lib_bz2_BZ2_bzDecompressInit+:} false; then :
13196 $as_echo_n "(cached) " >&6
13198 ac_check_lib_save_LIBS=$LIBS
13200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201 /* end confdefs.h. */
13203 /* Override any GCC internal prototype to avoid an error.
13204 Use char because int might match the return type of a GCC
13205 builtin and then its argument prototype would still apply. */
13209 char BZ2_bzDecompressInit ();
13213 return BZ2_bzDecompressInit ();
13218 if ac_fn_c_try_link "$LINENO"; then :
13219 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
13221 ac_cv_lib_bz2_BZ2_bzDecompressInit=no
13223 rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
13228 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
13229 if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then :
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_LIBBZ2 1
13243 # Check whether --with-lzmadec was given.
13244 if test "${with_lzmadec+set}" = set; then :
13245 withval=$with_lzmadec;
13249 if test "x$with_lzmadec" != "xno"; then
13250 for ac_header in lzmadec.h
13252 ac_fn_c_check_header_mongrel "$LINENO" "lzmadec.h" "ac_cv_header_lzmadec_h" "$ac_includes_default"
13253 if test "x$ac_cv_header_lzmadec_h" = xyes; then :
13254 cat >>confdefs.h <<_ACEOF
13255 #define HAVE_LZMADEC_H 1
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzmadec_decode in -llzmadec" >&5
13263 $as_echo_n "checking for lzmadec_decode in -llzmadec... " >&6; }
13264 if ${ac_cv_lib_lzmadec_lzmadec_decode+:} false; then :
13265 $as_echo_n "(cached) " >&6
13267 ac_check_lib_save_LIBS=$LIBS
13268 LIBS="-llzmadec $LIBS"
13269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h. */
13272 /* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
13278 char lzmadec_decode ();
13282 return lzmadec_decode ();
13287 if ac_fn_c_try_link "$LINENO"; then :
13288 ac_cv_lib_lzmadec_lzmadec_decode=yes
13290 ac_cv_lib_lzmadec_lzmadec_decode=no
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzmadec_lzmadec_decode" >&5
13297 $as_echo "$ac_cv_lib_lzmadec_lzmadec_decode" >&6; }
13298 if test "x$ac_cv_lib_lzmadec_lzmadec_decode" = xyes; then :
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_LIBLZMADEC 1
13303 LIBS="-llzmadec $LIBS"
13310 # Check whether --with-iconv was given.
13311 if test "${with_iconv+set}" = set; then :
13312 withval=$with_iconv;
13316 if test "x$with_iconv" != "xno"; then
13318 if test "X$prefix" = "XNONE"; then
13319 acl_final_prefix="$ac_default_prefix"
13321 acl_final_prefix="$prefix"
13323 if test "X$exec_prefix" = "XNONE"; then
13324 acl_final_exec_prefix='${prefix}'
13326 acl_final_exec_prefix="$exec_prefix"
13328 acl_save_prefix="$prefix"
13329 prefix="$acl_final_prefix"
13330 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
13331 prefix="$acl_save_prefix"
13334 # Check whether --with-gnu-ld was given.
13335 if test "${with_gnu_ld+set}" = set; then :
13336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13341 # Prepare PATH_SEPARATOR.
13342 # The user is always right.
13343 if test "${PATH_SEPARATOR+set}" != set; then
13344 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
13345 # contains only /bin. Note that ksh looks also at the FPATH variable,
13346 # so we have to set that as well for the test.
13348 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13349 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
13350 || PATH_SEPARATOR=';'
13354 if test "$GCC" = yes; then
13355 # Check if gcc -print-prog-name=ld gives a path.
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
13357 $as_echo_n "checking for ld used by GCC... " >&6; }
13360 # gcc leaves a trailing carriage return which upsets mingw
13361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13366 # Accept absolute paths.
13367 [\\/]* | [A-Za-z]:[\\/]*)
13368 re_direlt='/[^/][^/]*/\.\./'
13369 # Canonicalize the path of ld
13370 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
13371 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13372 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
13374 test -z "$LD" && LD="$ac_prog"
13377 # If it fails, then pretend we aren't using GCC.
13381 # If it is relative, then search for the first ld in PATH.
13382 with_gnu_ld=unknown
13385 elif test "$with_gnu_ld" = yes; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13387 $as_echo_n "checking for GNU ld... " >&6; }
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13390 $as_echo_n "checking for non-GNU ld... " >&6; }
13392 if ${acl_cv_path_LD+:} false; then :
13393 $as_echo_n "(cached) " >&6
13395 if test -z "$LD"; then
13396 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
13397 for ac_dir in $PATH; do
13398 test -z "$ac_dir" && ac_dir=.
13399 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13400 acl_cv_path_LD="$ac_dir/$ac_prog"
13401 # Check to see if the program is GNU ld. I'd rather use --version,
13402 # but apparently some GNU ld's only accept -v.
13403 # Break only if it was the GNU/non-GNU ld that we prefer.
13404 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
13405 *GNU* | *'with BFD'*)
13406 test "$with_gnu_ld" != no && break ;;
13408 test "$with_gnu_ld" != yes && break ;;
13414 acl_cv_path_LD="$LD" # Let the user override the test with a path.
13418 LD="$acl_cv_path_LD"
13419 if test -n "$LD"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13421 $as_echo "$LD" >&6; }
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13426 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13428 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13429 if ${acl_cv_prog_gnu_ld+:} false; then :
13430 $as_echo_n "(cached) " >&6
13432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13433 case `$LD -v 2>&1 </dev/null` in
13434 *GNU* | *'with BFD'*)
13435 acl_cv_prog_gnu_ld=yes ;;
13437 acl_cv_prog_gnu_ld=no ;;
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
13441 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
13442 with_gnu_ld=$acl_cv_prog_gnu_ld
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
13448 $as_echo_n "checking for shared library run path origin... " >&6; }
13449 if ${acl_cv_rpath+:} false; then :
13450 $as_echo_n "(cached) " >&6
13453 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
13454 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
13456 rm -f ./conftest.sh
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13461 $as_echo "$acl_cv_rpath" >&6; }
13463 acl_libext="$acl_cv_libext"
13464 acl_shlibext="$acl_cv_shlibext"
13465 acl_libname_spec="$acl_cv_libname_spec"
13466 acl_library_names_spec="$acl_cv_library_names_spec"
13467 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13468 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13469 acl_hardcode_direct="$acl_cv_hardcode_direct"
13470 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13471 # Check whether --enable-rpath was given.
13472 if test "${enable_rpath+set}" = set; then :
13473 enableval=$enable_rpath; :
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
13486 $as_echo_n "checking for 64-bit host... " >&6; }
13487 if ${gl_cv_solaris_64bit+:} false; then :
13488 $as_echo_n "(cached) " >&6
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13499 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
13500 gl_cv_solaris_64bit=yes
13502 gl_cv_solaris_64bit=no
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
13509 $as_echo "$gl_cv_solaris_64bit" >&6; }
13510 if test $gl_cv_solaris_64bit = yes; then
13511 acl_libdirstem=lib/64
13512 case "$host_cpu" in
13513 sparc*) acl_libdirstem2=lib/sparcv9 ;;
13514 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
13519 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13520 if test -n "$searchpath"; then
13521 acl_save_IFS="${IFS= }"; IFS=":"
13522 for searchdir in $searchpath; do
13523 if test -d "$searchdir"; then
13524 case "$searchdir" in
13525 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13527 # Better ignore directories of this form. They are misleading.
13529 *) searchdir=`cd "$searchdir" && pwd`
13530 case "$searchdir" in
13531 */lib64 ) acl_libdirstem=lib64 ;;
13536 IFS="$acl_save_IFS"
13540 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13555 acl_save_prefix="$prefix"
13556 prefix="$acl_final_prefix"
13557 acl_save_exec_prefix="$exec_prefix"
13558 exec_prefix="$acl_final_exec_prefix"
13560 eval additional_includedir=\"$includedir\"
13561 eval additional_libdir=\"$libdir\"
13563 exec_prefix="$acl_save_exec_prefix"
13564 prefix="$acl_save_prefix"
13567 # Check whether --with-libiconv-prefix was given.
13568 if test "${with_libiconv_prefix+set}" = set; then :
13569 withval=$with_libiconv_prefix;
13570 if test "X$withval" = "Xno"; then
13573 if test "X$withval" = "X"; then
13575 acl_save_prefix="$prefix"
13576 prefix="$acl_final_prefix"
13577 acl_save_exec_prefix="$exec_prefix"
13578 exec_prefix="$acl_final_exec_prefix"
13580 eval additional_includedir=\"$includedir\"
13581 eval additional_libdir=\"$libdir\"
13583 exec_prefix="$acl_save_exec_prefix"
13584 prefix="$acl_save_prefix"
13587 additional_includedir="$withval/include"
13588 additional_libdir="$withval/$acl_libdirstem"
13589 if test "$acl_libdirstem2" != "$acl_libdirstem" \
13590 && ! test -d "$withval/$acl_libdirstem"; then
13591 additional_libdir="$withval/$acl_libdirstem2"
13605 names_already_handled=
13606 names_next_round='iconv '
13607 while test -n "$names_next_round"; do
13608 names_this_round="$names_next_round"
13610 for name in $names_this_round; do
13612 for n in $names_already_handled; do
13613 if test "$n" = "$name"; then
13614 already_handled=yes
13618 if test -z "$already_handled"; then
13619 names_already_handled="$names_already_handled $name"
13620 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
13621 eval value=\"\$HAVE_LIB$uppername\"
13622 if test -n "$value"; then
13623 if test "$value" = yes; then
13624 eval value=\"\$LIB$uppername\"
13625 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13626 eval value=\"\$LTLIB$uppername\"
13627 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13636 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13637 if test -n "$acl_shlibext"; then
13638 shrext=".$acl_shlibext" # typically: shrext=.so
13642 if test $use_additional = yes; then
13643 dir="$additional_libdir"
13644 if test -n "$acl_shlibext"; then
13645 if test -f "$dir/$libname$shrext"; then
13647 found_so="$dir/$libname$shrext"
13649 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13650 ver=`(cd "$dir" && \
13651 for f in "$libname$shrext".*; do echo "$f"; done \
13652 | sed -e "s,^$libname$shrext\\\\.,," \
13653 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13654 | sed 1q ) 2>/dev/null`
13655 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13657 found_so="$dir/$libname$shrext.$ver"
13660 eval library_names=\"$acl_library_names_spec\"
13661 for f in $library_names; do
13662 if test -f "$dir/$f"; then
13671 if test "X$found_dir" = "X"; then
13672 if test -f "$dir/$libname.$acl_libext"; then
13674 found_a="$dir/$libname.$acl_libext"
13677 if test "X$found_dir" != "X"; then
13678 if test -f "$dir/$libname.la"; then
13679 found_la="$dir/$libname.la"
13683 if test "X$found_dir" = "X"; then
13684 for x in $LDFLAGS $LTLIBICONV; do
13686 acl_save_prefix="$prefix"
13687 prefix="$acl_final_prefix"
13688 acl_save_exec_prefix="$exec_prefix"
13689 exec_prefix="$acl_final_exec_prefix"
13691 exec_prefix="$acl_save_exec_prefix"
13692 prefix="$acl_save_prefix"
13696 dir=`echo "X$x" | sed -e 's/^X-L//'`
13697 if test -n "$acl_shlibext"; then
13698 if test -f "$dir/$libname$shrext"; then
13700 found_so="$dir/$libname$shrext"
13702 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13703 ver=`(cd "$dir" && \
13704 for f in "$libname$shrext".*; do echo "$f"; done \
13705 | sed -e "s,^$libname$shrext\\\\.,," \
13706 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13707 | sed 1q ) 2>/dev/null`
13708 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13710 found_so="$dir/$libname$shrext.$ver"
13713 eval library_names=\"$acl_library_names_spec\"
13714 for f in $library_names; do
13715 if test -f "$dir/$f"; then
13724 if test "X$found_dir" = "X"; then
13725 if test -f "$dir/$libname.$acl_libext"; then
13727 found_a="$dir/$libname.$acl_libext"
13730 if test "X$found_dir" != "X"; then
13731 if test -f "$dir/$libname.la"; then
13732 found_la="$dir/$libname.la"
13737 if test "X$found_dir" != "X"; then
13742 if test "X$found_dir" != "X"; then
13743 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13744 if test "X$found_so" != "X"; then
13745 if test "$enable_rpath" = no \
13746 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13747 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13748 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13751 for x in $ltrpathdirs; do
13752 if test "X$x" = "X$found_dir"; then
13757 if test -z "$haveit"; then
13758 ltrpathdirs="$ltrpathdirs $found_dir"
13760 if test "$acl_hardcode_direct" = yes; then
13761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13763 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13764 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13766 for x in $rpathdirs; do
13767 if test "X$x" = "X$found_dir"; then
13772 if test -z "$haveit"; then
13773 rpathdirs="$rpathdirs $found_dir"
13777 for x in $LDFLAGS $LIBICONV; do
13779 acl_save_prefix="$prefix"
13780 prefix="$acl_final_prefix"
13781 acl_save_exec_prefix="$exec_prefix"
13782 exec_prefix="$acl_final_exec_prefix"
13784 exec_prefix="$acl_save_exec_prefix"
13785 prefix="$acl_save_prefix"
13787 if test "X$x" = "X-L$found_dir"; then
13792 if test -z "$haveit"; then
13793 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13795 if test "$acl_hardcode_minus_L" != no; then
13796 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13798 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13804 if test "X$found_a" != "X"; then
13805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13807 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13810 additional_includedir=
13811 case "$found_dir" in
13812 */$acl_libdirstem | */$acl_libdirstem/)
13813 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13814 if test "$name" = 'iconv'; then
13815 LIBICONV_PREFIX="$basedir"
13817 additional_includedir="$basedir/include"
13819 */$acl_libdirstem2 | */$acl_libdirstem2/)
13820 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13821 if test "$name" = 'iconv'; then
13822 LIBICONV_PREFIX="$basedir"
13824 additional_includedir="$basedir/include"
13827 if test "X$additional_includedir" != "X"; then
13828 if test "X$additional_includedir" != "X/usr/include"; then
13830 if test "X$additional_includedir" = "X/usr/local/include"; then
13831 if test -n "$GCC"; then
13833 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13837 if test -z "$haveit"; then
13838 for x in $CPPFLAGS $INCICONV; do
13840 acl_save_prefix="$prefix"
13841 prefix="$acl_final_prefix"
13842 acl_save_exec_prefix="$exec_prefix"
13843 exec_prefix="$acl_final_exec_prefix"
13845 exec_prefix="$acl_save_exec_prefix"
13846 prefix="$acl_save_prefix"
13848 if test "X$x" = "X-I$additional_includedir"; then
13853 if test -z "$haveit"; then
13854 if test -d "$additional_includedir"; then
13855 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13861 if test -n "$found_la"; then
13862 save_libdir="$libdir"
13863 case "$found_la" in
13864 */* | *\\*) . "$found_la" ;;
13865 *) . "./$found_la" ;;
13867 libdir="$save_libdir"
13868 for dep in $dependency_libs; do
13871 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13872 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13873 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13875 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13876 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13877 if test -n "$GCC"; then
13879 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13883 if test -z "$haveit"; then
13885 for x in $LDFLAGS $LIBICONV; do
13887 acl_save_prefix="$prefix"
13888 prefix="$acl_final_prefix"
13889 acl_save_exec_prefix="$exec_prefix"
13890 exec_prefix="$acl_final_exec_prefix"
13892 exec_prefix="$acl_save_exec_prefix"
13893 prefix="$acl_save_prefix"
13895 if test "X$x" = "X-L$additional_libdir"; then
13900 if test -z "$haveit"; then
13901 if test -d "$additional_libdir"; then
13902 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13906 for x in $LDFLAGS $LTLIBICONV; do
13908 acl_save_prefix="$prefix"
13909 prefix="$acl_final_prefix"
13910 acl_save_exec_prefix="$exec_prefix"
13911 exec_prefix="$acl_final_exec_prefix"
13913 exec_prefix="$acl_save_exec_prefix"
13914 prefix="$acl_save_prefix"
13916 if test "X$x" = "X-L$additional_libdir"; then
13921 if test -z "$haveit"; then
13922 if test -d "$additional_libdir"; then
13923 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13930 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13931 if test "$enable_rpath" != no; then
13933 for x in $rpathdirs; do
13934 if test "X$x" = "X$dir"; then
13939 if test -z "$haveit"; then
13940 rpathdirs="$rpathdirs $dir"
13943 for x in $ltrpathdirs; do
13944 if test "X$x" = "X$dir"; then
13949 if test -z "$haveit"; then
13950 ltrpathdirs="$ltrpathdirs $dir"
13955 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13958 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13961 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13968 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13969 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13975 if test "X$rpathdirs" != "X"; then
13976 if test -n "$acl_hardcode_libdir_separator"; then
13978 for found_dir in $rpathdirs; do
13979 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13981 acl_save_libdir="$libdir"
13983 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13984 libdir="$acl_save_libdir"
13985 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13987 for found_dir in $rpathdirs; do
13988 acl_save_libdir="$libdir"
13989 libdir="$found_dir"
13990 eval flag=\"$acl_hardcode_libdir_flag_spec\"
13991 libdir="$acl_save_libdir"
13992 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13996 if test "X$ltrpathdirs" != "X"; then
13997 for found_dir in $ltrpathdirs; do
13998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14013 am_save_CPPFLAGS="$CPPFLAGS"
14015 for element in $INCICONV; do
14017 for x in $CPPFLAGS; do
14019 acl_save_prefix="$prefix"
14020 prefix="$acl_final_prefix"
14021 acl_save_exec_prefix="$exec_prefix"
14022 exec_prefix="$acl_final_exec_prefix"
14024 exec_prefix="$acl_save_exec_prefix"
14025 prefix="$acl_save_prefix"
14027 if test "X$x" = "X$element"; then
14032 if test -z "$haveit"; then
14033 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
14039 $as_echo_n "checking for iconv... " >&6; }
14040 if ${am_cv_func_iconv+:} false; then :
14041 $as_echo_n "(cached) " >&6
14044 am_cv_func_iconv="no, consider installing GNU libiconv"
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14049 #include <stdlib.h>
14055 iconv_t cd = iconv_open("","");
14056 iconv(cd,NULL,NULL,NULL,NULL);
14062 if ac_fn_c_try_link "$LINENO"; then :
14063 am_cv_func_iconv=yes
14065 rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14067 if test "$am_cv_func_iconv" != yes; then
14068 am_save_LIBS="$LIBS"
14069 LIBS="$LIBS $LIBICONV"
14070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14071 /* end confdefs.h. */
14073 #include <stdlib.h>
14079 iconv_t cd = iconv_open("","");
14080 iconv(cd,NULL,NULL,NULL,NULL);
14086 if ac_fn_c_try_link "$LINENO"; then :
14087 am_cv_lib_iconv=yes
14088 am_cv_func_iconv=yes
14090 rm -f core conftest.err conftest.$ac_objext \
14091 conftest$ac_exeext conftest.$ac_ext
14092 LIBS="$am_save_LIBS"
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
14097 $as_echo "$am_cv_func_iconv" >&6; }
14098 if test "$am_cv_func_iconv" = yes; then
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
14100 $as_echo_n "checking for working iconv... " >&6; }
14101 if ${am_cv_func_iconv_works+:} false; then :
14102 $as_echo_n "(cached) " >&6
14105 am_save_LIBS="$LIBS"
14106 if test $am_cv_lib_iconv = yes; then
14107 LIBS="$LIBS $LIBICONV"
14109 if test "$cross_compiling" = yes; then :
14112 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
14113 *) am_cv_func_iconv_works="guessing yes" ;;
14117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h. */
14121 #include <string.h>
14125 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
14128 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
14129 if (cd_utf8_to_88591 != (iconv_t)(-1))
14131 static const char input[] = "\342\202\254"; /* EURO SIGN */
14133 const char *inptr = input;
14134 size_t inbytesleft = strlen (input);
14135 char *outptr = buf;
14136 size_t outbytesleft = sizeof (buf);
14137 size_t res = iconv (cd_utf8_to_88591,
14138 (char **) &inptr, &inbytesleft,
14139 &outptr, &outbytesleft);
14142 iconv_close (cd_utf8_to_88591);
14145 /* Test against Solaris 10 bug: Failures are not distinguishable from
14146 successful returns. */
14148 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
14149 if (cd_ascii_to_88591 != (iconv_t)(-1))
14151 static const char input[] = "\263";
14153 const char *inptr = input;
14154 size_t inbytesleft = strlen (input);
14155 char *outptr = buf;
14156 size_t outbytesleft = sizeof (buf);
14157 size_t res = iconv (cd_ascii_to_88591,
14158 (char **) &inptr, &inbytesleft,
14159 &outptr, &outbytesleft);
14162 iconv_close (cd_ascii_to_88591);
14165 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
14167 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
14168 if (cd_88591_to_utf8 != (iconv_t)(-1))
14170 static const char input[] = "\304";
14171 static char buf[2] = { (char)0xDE, (char)0xAD };
14172 const char *inptr = input;
14173 size_t inbytesleft = 1;
14174 char *outptr = buf;
14175 size_t outbytesleft = 1;
14176 size_t res = iconv (cd_88591_to_utf8,
14177 (char **) &inptr, &inbytesleft,
14178 &outptr, &outbytesleft);
14179 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
14181 iconv_close (cd_88591_to_utf8);
14184 #if 0 /* This bug could be worked around by the caller. */
14185 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
14187 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
14188 if (cd_88591_to_utf8 != (iconv_t)(-1))
14190 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
14192 const char *inptr = input;
14193 size_t inbytesleft = strlen (input);
14194 char *outptr = buf;
14195 size_t outbytesleft = sizeof (buf);
14196 size_t res = iconv (cd_88591_to_utf8,
14197 (char **) &inptr, &inbytesleft,
14198 &outptr, &outbytesleft);
14201 iconv_close (cd_88591_to_utf8);
14205 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
14207 if (/* Try standardized names. */
14208 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
14209 /* Try IRIX, OSF/1 names. */
14210 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
14211 /* Try AIX names. */
14212 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
14213 /* Try HP-UX names. */
14214 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
14219 if ac_fn_c_try_run "$LINENO"; then :
14220 am_cv_func_iconv_works=yes
14222 am_cv_func_iconv_works=no
14224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14225 conftest.$ac_objext conftest.beam conftest.$ac_ext
14228 LIBS="$am_save_LIBS"
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
14232 $as_echo "$am_cv_func_iconv_works" >&6; }
14233 case "$am_cv_func_iconv_works" in
14234 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
14235 *) am_func_iconv=yes ;;
14238 am_func_iconv=no am_cv_lib_iconv=no
14240 if test "$am_func_iconv" = yes; then
14242 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
14245 if test "$am_cv_lib_iconv" = yes; then
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
14247 $as_echo_n "checking how to link with libiconv... " >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
14249 $as_echo "$LIBICONV" >&6; }
14251 CPPFLAGS="$am_save_CPPFLAGS"
14258 if test "$am_cv_func_iconv" = yes; then
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
14260 $as_echo_n "checking for iconv declaration... " >&6; }
14261 if ${am_cv_proto_iconv+:} false; then :
14262 $as_echo_n "(cached) " >&6
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266 /* end confdefs.h. */
14268 #include <stdlib.h>
14274 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
14275 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14288 if ac_fn_c_try_compile "$LINENO"; then :
14289 am_cv_proto_iconv_arg1=""
14291 am_cv_proto_iconv_arg1="const"
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14297 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
14299 $am_cv_proto_iconv" >&5
14301 $am_cv_proto_iconv" >&6; }
14303 cat >>confdefs.h <<_ACEOF
14304 #define ICONV_CONST $am_cv_proto_iconv_arg1
14310 for ac_header in iconv.h
14312 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>
14314 if test "x$ac_cv_header_iconv_h" = xyes; then :
14315 cat >>confdefs.h <<_ACEOF
14316 #define HAVE_ICONV_H 1
14323 if test "x$am_cv_func_iconv" = "xyes"; then
14324 for ac_header in localcharset.h
14326 ac_fn_c_check_header_mongrel "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"
14327 if test "x$ac_cv_header_localcharset_h" = xyes; then :
14328 cat >>confdefs.h <<_ACEOF
14329 #define HAVE_LOCALCHARSET_H 1
14336 am_save_LIBS="$LIBS"
14337 LIBS="${LIBS} ${LIBICONV}"
14338 for ac_func in locale_charset
14340 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
14341 if test "x$ac_cv_func_locale_charset" = xyes; then :
14342 cat >>confdefs.h <<_ACEOF
14343 #define HAVE_LOCALE_CHARSET 1
14349 LIBS="${am_save_LIBS}"
14350 if test "x$ac_cv_func_locale_charset" != "xyes"; then
14351 # If locale_charset() is not in libiconv, we have to find libcharset.
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
14353 $as_echo_n "checking for locale_charset in -lcharset... " >&6; }
14354 if ${ac_cv_lib_charset_locale_charset+:} false; then :
14355 $as_echo_n "(cached) " >&6
14357 ac_check_lib_save_LIBS=$LIBS
14358 LIBS="-lcharset $LIBS"
14359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360 /* end confdefs.h. */
14362 /* Override any GCC internal prototype to avoid an error.
14363 Use char because int might match the return type of a GCC
14364 builtin and then its argument prototype would still apply. */
14368 char locale_charset ();
14372 return locale_charset ();
14377 if ac_fn_c_try_link "$LINENO"; then :
14378 ac_cv_lib_charset_locale_charset=yes
14380 ac_cv_lib_charset_locale_charset=no
14382 rm -f core conftest.err conftest.$ac_objext \
14383 conftest$ac_exeext conftest.$ac_ext
14384 LIBS=$ac_check_lib_save_LIBS
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
14387 $as_echo "$ac_cv_lib_charset_locale_charset" >&6; }
14388 if test "x$ac_cv_lib_charset_locale_charset" = xyes; then :
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_LIBCHARSET 1
14393 LIBS="-lcharset $LIBS"
14402 # Check whether --with-lzma was given.
14403 if test "${with_lzma+set}" = set; then :
14404 withval=$with_lzma;
14408 if test "x$with_lzma" != "xno"; then
14409 for ac_header in lzma.h
14411 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
14412 if test "x$ac_cv_header_lzma_h" = xyes; then :
14413 cat >>confdefs.h <<_ACEOF
14414 #define HAVE_LZMA_H 1
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
14422 $as_echo_n "checking for lzma_stream_decoder in -llzma... " >&6; }
14423 if ${ac_cv_lib_lzma_lzma_stream_decoder+:} false; then :
14424 $as_echo_n "(cached) " >&6
14426 ac_check_lib_save_LIBS=$LIBS
14427 LIBS="-llzma $LIBS"
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14437 char lzma_stream_decoder ();
14441 return lzma_stream_decoder ();
14446 if ac_fn_c_try_link "$LINENO"; then :
14447 ac_cv_lib_lzma_lzma_stream_decoder=yes
14449 ac_cv_lib_lzma_lzma_stream_decoder=no
14451 rm -f core conftest.err conftest.$ac_objext \
14452 conftest$ac_exeext conftest.$ac_ext
14453 LIBS=$ac_check_lib_save_LIBS
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
14456 $as_echo "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
14457 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes; then :
14458 cat >>confdefs.h <<_ACEOF
14459 #define HAVE_LIBLZMA 1
14462 LIBS="-llzma $LIBS"
14469 # Check whether --with-lzo2 was given.
14470 if test "${with_lzo2+set}" = set; then :
14471 withval=$with_lzo2;
14475 if test "x$with_lzo2" != "xno"; then
14476 for ac_header in lzo/lzoconf.h lzo/lzo1x.h
14478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14479 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14480 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14481 cat >>confdefs.h <<_ACEOF
14482 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
14490 $as_echo_n "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
14491 if ${ac_cv_lib_lzo2_lzo1x_decompress_safe+:} false; then :
14492 $as_echo_n "(cached) " >&6
14494 ac_check_lib_save_LIBS=$LIBS
14495 LIBS="-llzo2 $LIBS"
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14499 /* Override any GCC internal prototype to avoid an error.
14500 Use char because int might match the return type of a GCC
14501 builtin and then its argument prototype would still apply. */
14505 char lzo1x_decompress_safe ();
14509 return lzo1x_decompress_safe ();
14514 if ac_fn_c_try_link "$LINENO"; then :
14515 ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
14517 ac_cv_lib_lzo2_lzo1x_decompress_safe=no
14519 rm -f core conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14521 LIBS=$ac_check_lib_save_LIBS
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
14524 $as_echo "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
14525 if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes; then :
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_LIBLZO2 1
14530 LIBS="-llzo2 $LIBS"
14537 # Check whether --with-nettle was given.
14538 if test "${with_nettle+set}" = set; then :
14539 withval=$with_nettle;
14543 # Check whether --with-openssl was given.
14544 if test "${with_openssl+set}" = set; then :
14545 withval=$with_openssl;
14549 *darwin* ) with_openssl=no ;;
14553 # Check whether --with-xml2 was given.
14554 if test "${with_xml2+set}" = set; then :
14555 withval=$with_xml2;
14559 # Check whether --with-expat was given.
14560 if test "${with_expat+set}" = set; then :
14561 withval=$with_expat;
14565 if test "x$with_xml2" != "xno"; then
14566 # Extract the first word of "xml2-config", so it can be a program name with args.
14567 set dummy xml2-config; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14569 $as_echo_n "checking for $ac_word... " >&6; }
14570 if ${ac_cv_path_XML2_CONFIG+:} false; then :
14571 $as_echo_n "(cached) " >&6
14573 case $XML2_CONFIG in
14575 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
14578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14579 for as_dir in ${PATH}
14582 test -z "$as_dir" && as_dir=.
14583 for ac_exec_ext in '' $ac_executable_extensions; do
14584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14585 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14596 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
14597 if test -n "$XML2_CONFIG"; then
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
14599 $as_echo "$XML2_CONFIG" >&6; }
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 $as_echo "no" >&6; }
14606 if test "x$XML2_CONFIG" != "x"; then
14607 CPPFLAGS="${CPPFLAGS} `${XML2_CONFIG} --cflags`"
14608 LIBS="${LIBS} `${XML2_CONFIG} --libs`"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
14610 $as_echo_n "checking for xmlInitParser in -lxml2... " >&6; }
14611 if ${ac_cv_lib_xml2_xmlInitParser+:} false; then :
14612 $as_echo_n "(cached) " >&6
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lxml2 $LIBS"
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14625 char xmlInitParser ();
14629 return xmlInitParser ();
14634 if ac_fn_c_try_link "$LINENO"; then :
14635 ac_cv_lib_xml2_xmlInitParser=yes
14637 ac_cv_lib_xml2_xmlInitParser=no
14639 rm -f core conftest.err conftest.$ac_objext \
14640 conftest$ac_exeext conftest.$ac_ext
14641 LIBS=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
14644 $as_echo "$ac_cv_lib_xml2_xmlInitParser" >&6; }
14645 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes; then :
14648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14650 as_fn_error $? "Missing xml2 library
14651 See \`config.log' for more details" "$LINENO" 5; }
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
14656 $as_echo_n "checking for xmlInitParser in -lxml2... " >&6; }
14657 if ${ac_cv_lib_xml2_xmlInitParser+:} false; then :
14658 $as_echo_n "(cached) " >&6
14660 ac_check_lib_save_LIBS=$LIBS
14661 LIBS="-lxml2 $LIBS"
14662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14663 /* end confdefs.h. */
14665 /* Override any GCC internal prototype to avoid an error.
14666 Use char because int might match the return type of a GCC
14667 builtin and then its argument prototype would still apply. */
14671 char xmlInitParser ();
14675 return xmlInitParser ();
14680 if ac_fn_c_try_link "$LINENO"; then :
14681 ac_cv_lib_xml2_xmlInitParser=yes
14683 ac_cv_lib_xml2_xmlInitParser=no
14685 rm -f core conftest.err conftest.$ac_objext \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
14690 $as_echo "$ac_cv_lib_xml2_xmlInitParser" >&6; }
14691 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes; then :
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBXML2 1
14696 LIBS="-lxml2 $LIBS"
14701 for ac_header in libxml/xmlreader.h libxml/xmlwriter.h
14703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14704 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14706 cat >>confdefs.h <<_ACEOF
14707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14715 if test "x$ac_cv_header_libxml_xmlreader_h" != "xyes"; then
14716 if test "x$with_expat" != "xno"; then
14717 for ac_header in expat.h
14719 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14720 if test "x$ac_cv_header_expat_h" = xyes; then :
14721 cat >>confdefs.h <<_ACEOF
14722 #define HAVE_EXPAT_H 1
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
14730 $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
14731 if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then :
14732 $as_echo_n "(cached) " >&6
14734 ac_check_lib_save_LIBS=$LIBS
14735 LIBS="-lexpat $LIBS"
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14739 /* Override any GCC internal prototype to avoid an error.
14740 Use char because int might match the return type of a GCC
14741 builtin and then its argument prototype would still apply. */
14745 char XML_ParserCreate ();
14749 return XML_ParserCreate ();
14754 if ac_fn_c_try_link "$LINENO"; then :
14755 ac_cv_lib_expat_XML_ParserCreate=yes
14757 ac_cv_lib_expat_XML_ParserCreate=no
14759 rm -f core conftest.err conftest.$ac_objext \
14760 conftest$ac_exeext conftest.$ac_ext
14761 LIBS=$ac_check_lib_save_LIBS
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
14764 $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
14765 if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then :
14766 cat >>confdefs.h <<_ACEOF
14767 #define HAVE_LIBEXPAT 1
14770 LIBS="-lexpat $LIBS"
14777 # Check whether --enable-posix-regex-lib was given.
14778 if test "${enable_posix_regex_lib+set}" = set; then :
14779 enableval=$enable_posix_regex_lib;
14781 enable_posix_regex_lib=auto
14785 posix_regex_lib_found=
14786 if test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libc" || test "$enable_posix_regex_lib" = "libregex"; then
14787 for ac_header in regex.h
14789 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
14790 if test "x$ac_cv_header_regex_h" = xyes; then :
14791 cat >>confdefs.h <<_ACEOF
14792 #define HAVE_REGEX_H 1
14799 if test "x$ac_cv_header_regex_h" != "xno"; then
14800 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
14801 if test "x$ac_cv_func_regcomp" = xyes; then :
14805 if test "x$ac_cv_func_regcomp" = xyes; then
14806 posix_regex_lib_found=1
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
14809 $as_echo_n "checking for regcomp in -lregex... " >&6; }
14810 if ${ac_cv_lib_regex_regcomp+:} false; then :
14811 $as_echo_n "(cached) " >&6
14813 ac_check_lib_save_LIBS=$LIBS
14814 LIBS="-lregex $LIBS"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14833 if ac_fn_c_try_link "$LINENO"; then :
14834 ac_cv_lib_regex_regcomp=yes
14836 ac_cv_lib_regex_regcomp=no
14838 rm -f core conftest.err conftest.$ac_objext \
14839 conftest$ac_exeext conftest.$ac_ext
14840 LIBS=$ac_check_lib_save_LIBS
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
14843 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
14844 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
14845 cat >>confdefs.h <<_ACEOF
14846 #define HAVE_LIBREGEX 1
14849 LIBS="-lregex $LIBS"
14853 if test "x$ac_cv_lib_regex_regcomp" = xyes; then
14854 posix_regex_lib_found=1
14859 if test -z $posix_regex_lib_found && (test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libpcreposix"); then
14860 for ac_header in pcreposix.h
14862 ac_fn_c_check_header_mongrel "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
14863 if test "x$ac_cv_header_pcreposix_h" = xyes; then :
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_PCREPOSIX_H 1
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
14873 $as_echo_n "checking for regcomp in -lpcreposix... " >&6; }
14874 if ${ac_cv_lib_pcreposix_regcomp+:} false; then :
14875 $as_echo_n "(cached) " >&6
14877 ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lpcreposix $LIBS"
14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14880 /* end confdefs.h. */
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14897 if ac_fn_c_try_link "$LINENO"; then :
14898 ac_cv_lib_pcreposix_regcomp=yes
14900 ac_cv_lib_pcreposix_regcomp=no
14902 rm -f core conftest.err conftest.$ac_objext \
14903 conftest$ac_exeext conftest.$ac_ext
14904 LIBS=$ac_check_lib_save_LIBS
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
14907 $as_echo "$ac_cv_lib_pcreposix_regcomp" >&6; }
14908 if test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then :
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_LIBPCREPOSIX 1
14913 LIBS="-lpcreposix $LIBS"
14917 if test "x$ac_cv_lib_pcreposix_regcomp" != xyes; then
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: trying libpcreposix check again with libpcre" >&5
14919 $as_echo "$as_me: trying libpcreposix check again with libpcre" >&6;}
14920 unset ac_cv_lib_pcreposix_regcomp
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
14922 $as_echo_n "checking for pcre_exec in -lpcre... " >&6; }
14923 if ${ac_cv_lib_pcre_pcre_exec+:} false; then :
14924 $as_echo_n "(cached) " >&6
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-lpcre $LIBS"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14941 return pcre_exec ();
14946 if ac_fn_c_try_link "$LINENO"; then :
14947 ac_cv_lib_pcre_pcre_exec=yes
14949 ac_cv_lib_pcre_pcre_exec=no
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_check_lib_save_LIBS
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
14956 $as_echo "$ac_cv_lib_pcre_pcre_exec" >&6; }
14957 if test "x$ac_cv_lib_pcre_pcre_exec" = xyes; then :
14958 cat >>confdefs.h <<_ACEOF
14959 #define HAVE_LIBPCRE 1
14962 LIBS="-lpcre $LIBS"
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
14967 $as_echo_n "checking for regcomp in -lpcreposix... " >&6; }
14968 if ${ac_cv_lib_pcreposix_regcomp+:} false; then :
14969 $as_echo_n "(cached) " >&6
14971 ac_check_lib_save_LIBS=$LIBS
14972 LIBS="-lpcreposix $LIBS"
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14976 /* Override any GCC internal prototype to avoid an error.
14977 Use char because int might match the return type of a GCC
14978 builtin and then its argument prototype would still apply. */
14991 if ac_fn_c_try_link "$LINENO"; then :
14992 ac_cv_lib_pcreposix_regcomp=yes
14994 ac_cv_lib_pcreposix_regcomp=no
14996 rm -f core conftest.err conftest.$ac_objext \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_check_lib_save_LIBS
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
15001 $as_echo "$ac_cv_lib_pcreposix_regcomp" >&6; }
15002 if test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then :
15003 cat >>confdefs.h <<_ACEOF
15004 #define HAVE_LIBPCREPOSIX 1
15007 LIBS="-lpcreposix $LIBS"
15011 if test "x$ac_cv_lib_pcre_pcre_exec" = xyes && test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCRE_STATIC needs to be defined" >&5
15013 $as_echo_n "checking if PCRE_STATIC needs to be defined... " >&6; }
15014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15015 /* end confdefs.h. */
15016 #include <pcreposix.h>
15017 int main() { return regcomp(NULL, NULL, 0); }
15019 if ac_fn_c_try_link "$LINENO"; then :
15020 without_pcre_static=yes
15022 without_pcre_static=no
15024 rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext conftest.$ac_ext
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #define PCRE_STATIC
15029 #include <pcreposix.h>
15030 int main() { return regcomp(NULL, NULL, 0); }
15032 if ac_fn_c_try_link "$LINENO"; then :
15033 with_pcre_static=yes
15035 with_pcre_static=no
15037 rm -f core conftest.err conftest.$ac_objext \
15038 conftest$ac_exeext conftest.$ac_ext
15039 if test "x$without_pcre_static" != xyes && test "x$with_pcre_static" = xyes; then
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15041 $as_echo "yes" >&6; }
15043 $as_echo "#define PCRE_STATIC 1" >>confdefs.h
15045 elif test "x$without_pcre_static" = xyes || test "x$with_pcre_static" = xyes; then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047 $as_echo "no" >&6; }
15049 posix_regex_lib_found=1
15052 posix_regex_lib_found=1
15056 # TODO: Give the user the option of using a pre-existing system
15057 # libarchive. This will define HAVE_LIBARCHIVE which will cause
15058 # bsdtar_platform.h to use #include <...> for the libarchive headers.
15059 # Need to include Makefile.am magic to link against system
15060 # -larchive in that case.
15061 #AC_CHECK_LIB(archive,archive_version)
15063 # Checks for typedefs, structures, and compiler characteristics.
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15065 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15066 if ${ac_cv_c_const+:} false; then :
15067 $as_echo_n "(cached) " >&6
15069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15070 /* end confdefs.h. */
15076 #ifndef __cplusplus
15077 /* Ultrix mips cc rejects this sort of thing. */
15078 typedef int charset[2];
15079 const charset cs = { 0, 0 };
15080 /* SunOS 4.1.1 cc rejects this. */
15081 char const *const *pcpcc;
15083 /* NEC SVR4.0.2 mips cc rejects this. */
15084 struct point {int x, y;};
15085 static struct point const zero = {0,0};
15086 /* AIX XL C 1.02.0.0 rejects this.
15087 It does not let you subtract one const X* pointer from another in
15088 an arm of an if-expression whose if-part is not a constant
15090 const char *g = "string";
15091 pcpcc = &g + (g ? g-g : 0);
15092 /* HPUX 7.0 cc rejects these. */
15094 ppc = (char**) pcpcc;
15095 pcpcc = (char const *const *) ppc;
15096 { /* SCO 3.2v4 cc rejects this sort of thing. */
15099 char const *s = 0 ? (char *) 0 : (char const *) 0;
15104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15105 int x[] = {25, 17};
15106 const int *foo = &x[0];
15109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15110 typedef const int *iptr;
15114 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
15115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15116 struct s { int j; const int *ap[3]; } bx;
15117 struct s *b = &bx; b->j = 5;
15119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15120 const int foo = 10;
15121 if (!foo) return 0;
15123 return !cs[0] && !zero.x;
15130 if ac_fn_c_try_compile "$LINENO"; then :
15135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15138 $as_echo "$ac_cv_c_const" >&6; }
15139 if test $ac_cv_c_const = no; then
15141 $as_echo "#define const /**/" >>confdefs.h
15145 # AC_TYPE_UID_T defaults to "int", which is incorrect for MinGW
15146 # and MSVC. Use a customized version.
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
15148 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
15149 if ${la_cv_type_uid_t+:} false; then :
15150 $as_echo_n "(cached) " >&6
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 #include <sys/types.h>
15157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15158 $EGREP "uid_t" >/dev/null 2>&1; then :
15159 la_cv_type_uid_t=yes
15161 la_cv_type_uid_t=no
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5
15167 $as_echo "$la_cv_type_uid_t" >&6; }
15168 if test $la_cv_type_uid_t = no; then
15170 *mingw*) def_uid_t=short ;;
15171 *) def_uid_t=int ;;
15174 cat >>confdefs.h <<_ACEOF
15175 #define uid_t $def_uid_t
15179 cat >>confdefs.h <<_ACEOF
15180 #define gid_t $def_uid_t
15185 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
15186 if test "x$ac_cv_type_mode_t" = xyes; then :
15190 cat >>confdefs.h <<_ACEOF
15196 # AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
15197 # most systems... default to "long long" instead.
15198 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15199 if test "x$ac_cv_type_off_t" = xyes; then :
15203 cat >>confdefs.h <<_ACEOF
15204 #define off_t long long
15209 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15210 if test "x$ac_cv_type_size_t" = xyes; then :
15214 cat >>confdefs.h <<_ACEOF
15215 #define size_t unsigned int
15220 ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
15221 if test "x$ac_cv_type_id_t" = xyes; then :
15225 cat >>confdefs.h <<_ACEOF
15226 #define id_t unsigned long
15231 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15232 if test "x$ac_cv_type_uintptr_t" = xyes; then :
15236 cat >>confdefs.h <<_ACEOF
15237 #define uintptr_t unsigned int
15243 # Check for tm_gmtoff in struct tm
15244 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
15248 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_STRUCT_TM_TM_GMTOFF 1
15256 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
15260 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
15262 cat >>confdefs.h <<_ACEOF
15263 #define HAVE_STRUCT_TM___TM_GMTOFF 1
15270 # Check for f_namemax in struct statfs
15271 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "
15272 #include <sys/param.h>
15273 #include <sys/mount.h>
15276 if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
15278 cat >>confdefs.h <<_ACEOF
15279 #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
15286 # Check for f_iosize in struct statvfs
15287 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "
15288 #include <sys/statvfs.h>
15291 if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes; then :
15293 cat >>confdefs.h <<_ACEOF
15294 #define HAVE_STRUCT_STATVFS_F_IOSIZE 1
15301 # Check for birthtime in struct stat
15302 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
15303 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then :
15305 cat >>confdefs.h <<_ACEOF
15306 #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1
15313 # Check for high-resolution timestamps in struct stat
15314 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"
15315 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes; then :
15317 cat >>confdefs.h <<_ACEOF
15318 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
15324 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
15325 if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes; then :
15327 cat >>confdefs.h <<_ACEOF
15328 #define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
15334 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
15335 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
15337 cat >>confdefs.h <<_ACEOF
15338 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
15344 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"
15345 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes; then :
15347 cat >>confdefs.h <<_ACEOF
15348 #define HAVE_STRUCT_STAT_ST_MTIME_N 1
15354 ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"
15355 if test "x$ac_cv_member_struct_stat_st_umtime" = xyes; then :
15357 cat >>confdefs.h <<_ACEOF
15358 #define HAVE_STRUCT_STAT_ST_UMTIME 1
15364 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"
15365 if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes; then :
15367 cat >>confdefs.h <<_ACEOF
15368 #define HAVE_STRUCT_STAT_ST_MTIME_USEC 1
15374 # Check for block size support in struct stat
15375 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
15376 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
15378 cat >>confdefs.h <<_ACEOF
15379 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15385 # Check for st_flags in struct stat (BSD fflags)
15386 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
15387 if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then :
15389 cat >>confdefs.h <<_ACEOF
15390 #define HAVE_STRUCT_STAT_ST_FLAGS 1
15397 # If you have uintmax_t, we assume printf supports %ju
15398 # If you have unsigned long long, we assume printf supports %llu
15399 # TODO: Check for %ju and %llu support directly.
15400 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
15401 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15403 cat >>confdefs.h <<_ACEOF
15404 #define HAVE_UINTMAX_T 1
15409 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
15410 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
15412 cat >>confdefs.h <<_ACEOF
15413 #define HAVE_UNSIGNED_LONG_LONG 1
15420 # We use C99-style integer types
15421 # Declare them if the local platform doesn't already do so.
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
15424 $as_echo_n "checking for unsigned long long int... " >&6; }
15425 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
15426 $as_echo_n "(cached) " >&6
15428 ac_cv_type_unsigned_long_long_int=yes
15429 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15433 /* For now, do not test the preprocessor; as of 2007 there are too many
15434 implementations with broken preprocessors. Perhaps this can
15435 be revisited in 2012. In the meantime, code should not expect
15436 #if to work with literals wider than 32 bits. */
15437 /* Test literals. */
15438 long long int ll = 9223372036854775807ll;
15439 long long int nll = -9223372036854775807LL;
15440 unsigned long long int ull = 18446744073709551615ULL;
15441 /* Test constant expressions. */
15442 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15444 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15450 /* Test availability of runtime routines for shift and division. */
15451 long long int llmax = 9223372036854775807ll;
15452 unsigned long long int ullmax = 18446744073709551615ull;
15453 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15454 | (llmax / ll) | (llmax % ll)
15455 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15456 | (ullmax / ull) | (ullmax % ull));
15462 if ac_fn_c_try_link "$LINENO"; then :
15465 ac_cv_type_unsigned_long_long_int=no
15467 rm -f core conftest.err conftest.$ac_objext \
15468 conftest$ac_exeext conftest.$ac_ext
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
15472 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
15473 if test $ac_cv_type_unsigned_long_long_int = yes; then
15475 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
15482 $as_echo_n "checking for long long int... " >&6; }
15483 if ${ac_cv_type_long_long_int+:} false; then :
15484 $as_echo_n "(cached) " >&6
15486 ac_cv_type_long_long_int=yes
15487 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
15488 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
15489 if test $ac_cv_type_long_long_int = yes; then
15490 if test "$cross_compiling" = yes; then :
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495 #include <limits.h>
15498 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
15499 # define LLONG_MAX (HALF - 1 + HALF)
15504 long long int n = 1;
15508 long long int m = n << i;
15511 if (LLONG_MAX / 2 < m)
15519 if ac_fn_c_try_run "$LINENO"; then :
15522 ac_cv_type_long_long_int=no
15524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15525 conftest.$ac_objext conftest.beam conftest.$ac_ext
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
15532 $as_echo "$ac_cv_type_long_long_int" >&6; }
15533 if test $ac_cv_type_long_long_int = yes; then
15535 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
15541 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
15542 if test "x$ac_cv_type_intmax_t" = xyes; then :
15544 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
15547 test $ac_cv_type_long_long_int = yes \
15548 && ac_type='long long int' \
15549 || ac_type='long int'
15551 cat >>confdefs.h <<_ACEOF
15552 #define intmax_t $ac_type
15560 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
15561 if test "x$ac_cv_type_uintmax_t" = xyes; then :
15563 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
15566 test $ac_cv_type_unsigned_long_long_int = yes \
15567 && ac_type='unsigned long long int' \
15568 || ac_type='unsigned long int'
15570 cat >>confdefs.h <<_ACEOF
15571 #define uintmax_t $ac_type
15577 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
15578 case $ac_cv_c_int64_t in #(
15582 cat >>confdefs.h <<_ACEOF
15583 #define int64_t $ac_cv_c_int64_t
15588 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
15589 case $ac_cv_c_uint64_t in #(
15593 $as_echo "#define _UINT64_T 1" >>confdefs.h
15596 cat >>confdefs.h <<_ACEOF
15597 #define uint64_t $ac_cv_c_uint64_t
15602 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
15603 case $ac_cv_c_int32_t in #(
15607 cat >>confdefs.h <<_ACEOF
15608 #define int32_t $ac_cv_c_int32_t
15613 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
15614 case $ac_cv_c_uint32_t in #(
15618 $as_echo "#define _UINT32_T 1" >>confdefs.h
15621 cat >>confdefs.h <<_ACEOF
15622 #define uint32_t $ac_cv_c_uint32_t
15627 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
15628 case $ac_cv_c_int16_t in #(
15632 cat >>confdefs.h <<_ACEOF
15633 #define int16_t $ac_cv_c_int16_t
15638 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
15639 case $ac_cv_c_uint16_t in #(
15644 cat >>confdefs.h <<_ACEOF
15645 #define uint16_t $ac_cv_c_uint16_t
15650 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
15651 case $ac_cv_c_uint8_t in #(
15655 $as_echo "#define _UINT8_T 1" >>confdefs.h
15658 cat >>confdefs.h <<_ACEOF
15659 #define uint8_t $ac_cv_c_uint8_t
15665 ac_fn_c_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default"
15666 if test "x$ac_cv_have_decl_SIZE_MAX" = xyes; then :
15672 cat >>confdefs.h <<_ACEOF
15673 #define HAVE_DECL_SIZE_MAX $ac_have_decl
15675 ac_fn_c_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default"
15676 if test "x$ac_cv_have_decl_INT64_MAX" = xyes; then :
15682 cat >>confdefs.h <<_ACEOF
15683 #define HAVE_DECL_INT64_MAX $ac_have_decl
15685 ac_fn_c_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default"
15686 if test "x$ac_cv_have_decl_INT64_MIN" = xyes; then :
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_DECL_INT64_MIN $ac_have_decl
15695 ac_fn_c_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default"
15696 if test "x$ac_cv_have_decl_UINT64_MAX" = xyes; then :
15702 cat >>confdefs.h <<_ACEOF
15703 #define HAVE_DECL_UINT64_MAX $ac_have_decl
15705 ac_fn_c_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default"
15706 if test "x$ac_cv_have_decl_UINT32_MAX" = xyes; then :
15712 cat >>confdefs.h <<_ACEOF
15713 #define HAVE_DECL_UINT32_MAX $ac_have_decl
15717 ac_fn_c_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>
15719 if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes; then :
15721 $as_echo "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h
15726 ac_fn_c_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>
15728 if test "x$ac_cv_have_decl_EFTYPE" = xyes; then :
15730 $as_echo "#define HAVE_EFTYPE 1" >>confdefs.h
15734 ac_fn_c_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>
15736 if test "x$ac_cv_have_decl_EILSEQ" = xyes; then :
15738 $as_echo "#define HAVE_EILSEQ 1" >>confdefs.h
15742 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
15743 if test "x$ac_cv_type_wchar_t" = xyes; then :
15745 cat >>confdefs.h <<_ACEOF
15746 #define HAVE_WCHAR_T 1
15748 # The cast to long int works around a bug in the HP C Compiler
15749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15751 # This bug is HP SR number 8606223364.
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
15753 $as_echo_n "checking size of wchar_t... " >&6; }
15754 if ${ac_cv_sizeof_wchar_t+:} false; then :
15755 $as_echo_n "(cached) " >&6
15757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
15760 if test "$ac_cv_type_wchar_t" = yes; then
15761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15763 as_fn_error 77 "cannot compute sizeof (wchar_t)
15764 See \`config.log' for more details" "$LINENO" 5; }
15766 ac_cv_sizeof_wchar_t=0
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
15772 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
15776 cat >>confdefs.h <<_ACEOF
15777 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15785 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15786 if ${ac_cv_header_time+:} false; then :
15787 $as_echo_n "(cached) " >&6
15789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15790 /* end confdefs.h. */
15791 #include <sys/types.h>
15792 #include <sys/time.h>
15798 if ((struct tm *) 0)
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805 ac_cv_header_time=yes
15807 ac_cv_header_time=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15812 $as_echo "$ac_cv_header_time" >&6; }
15813 if test $ac_cv_header_time = yes; then
15815 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15820 # Checks for library functions.
15821 if test $ac_cv_c_compiler_gnu = yes; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
15823 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
15824 if ${ac_cv_prog_gcc_traditional+:} false; then :
15825 $as_echo_n "(cached) " >&6
15827 ac_pattern="Autoconf.*'x'"
15828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15834 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15835 ac_cv_prog_gcc_traditional=yes
15837 ac_cv_prog_gcc_traditional=no
15842 if test $ac_cv_prog_gcc_traditional = no; then
15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15844 /* end confdefs.h. */
15845 #include <termio.h>
15848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15849 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
15850 ac_cv_prog_gcc_traditional=yes
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
15857 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
15858 if test $ac_cv_prog_gcc_traditional = yes; then
15859 CC="$CC -traditional"
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15864 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15865 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15866 $as_echo_n "(cached) " >&6
15868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15869 /* end confdefs.h. */
15870 #include <sys/types.h>
15874 return makedev(0, 0);
15879 if ac_fn_c_try_link "$LINENO"; then :
15880 ac_cv_header_sys_types_h_makedev=yes
15882 ac_cv_header_sys_types_h_makedev=no
15884 rm -f core conftest.err conftest.$ac_objext \
15885 conftest$ac_exeext conftest.$ac_ext
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15889 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15891 if test $ac_cv_header_sys_types_h_makedev = no; then
15892 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15893 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15895 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15901 if test $ac_cv_header_sys_mkdev_h = no; then
15902 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15903 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15905 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
15914 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
15915 if ${ac_cv_sys_largefile_source+:} false; then :
15916 $as_echo_n "(cached) " >&6
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921 #include <sys/types.h> /* for off_t */
15926 int (*fp) (FILE *, off_t, int) = fseeko;
15927 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15932 if ac_fn_c_try_link "$LINENO"; then :
15933 ac_cv_sys_largefile_source=no; break
15935 rm -f core conftest.err conftest.$ac_objext \
15936 conftest$ac_exeext conftest.$ac_ext
15937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15938 /* end confdefs.h. */
15939 #define _LARGEFILE_SOURCE 1
15940 #include <sys/types.h> /* for off_t */
15945 int (*fp) (FILE *, off_t, int) = fseeko;
15946 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
15951 if ac_fn_c_try_link "$LINENO"; then :
15952 ac_cv_sys_largefile_source=1; break
15954 rm -f core conftest.err conftest.$ac_objext \
15955 conftest$ac_exeext conftest.$ac_ext
15956 ac_cv_sys_largefile_source=unknown
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
15961 $as_echo "$ac_cv_sys_largefile_source" >&6; }
15962 case $ac_cv_sys_largefile_source in #(
15965 cat >>confdefs.h <<_ACEOF
15966 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
15972 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
15973 # in glibc 2.1.3, but that breaks too many other things.
15974 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
15975 if test $ac_cv_sys_largefile_source != unknown; then
15977 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
15982 $as_echo_n "checking for working memcmp... " >&6; }
15983 if ${ac_cv_func_memcmp_working+:} false; then :
15984 $as_echo_n "(cached) " >&6
15986 if test "$cross_compiling" = yes; then :
15987 ac_cv_func_memcmp_working=no
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h. */
15991 $ac_includes_default
15996 /* Some versions of memcmp are not 8-bit clean. */
15997 char c0 = '\100', c1 = '\200', c2 = '\201';
15998 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
16001 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
16002 or more and with at least one buffer not starting on a 4-byte boundary.
16003 William Lewis provided this test program. */
16008 for (i = 0; i < 4; i++)
16012 strcpy (a, "--------01111111");
16013 strcpy (b, "--------10000000");
16014 if (memcmp (a, b, 16) >= 0)
16024 if ac_fn_c_try_run "$LINENO"; then :
16025 ac_cv_func_memcmp_working=yes
16027 ac_cv_func_memcmp_working=no
16029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16030 conftest.$ac_objext conftest.beam conftest.$ac_ext
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
16035 $as_echo "$ac_cv_func_memcmp_working" >&6; }
16036 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
16037 *" memcmp.$ac_objext "* ) ;;
16038 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
16044 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
16045 if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
16046 $as_echo_n "(cached) " >&6
16048 rm -f conftest.sym conftest.file
16049 echo >conftest.file
16050 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
16051 if test "$cross_compiling" = yes; then :
16052 ac_cv_func_lstat_dereferences_slashed_symlink=no
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056 $ac_includes_default
16061 /* Linux will dereference the symlink and fail, as required by POSIX.
16062 That is better in the sense that it means we will not
16063 have to compile and use the lstat wrapper. */
16064 return lstat ("conftest.sym/", &sbuf) == 0;
16069 if ac_fn_c_try_run "$LINENO"; then :
16070 ac_cv_func_lstat_dereferences_slashed_symlink=yes
16072 ac_cv_func_lstat_dereferences_slashed_symlink=no
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16075 conftest.$ac_objext conftest.beam conftest.$ac_ext
16079 # If the `ln -s' command failed, then we probably don't even
16080 # have an lstat function.
16081 ac_cv_func_lstat_dereferences_slashed_symlink=no
16083 rm -f conftest.sym conftest.file
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
16087 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
16089 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
16091 cat >>confdefs.h <<_ACEOF
16092 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
16096 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
16097 case " $LIBOBJS " in
16098 *" lstat.$ac_objext "* ) ;;
16099 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
16106 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
16107 if ${ac_cv_func_lstat_empty_string_bug+:} false; then :
16108 $as_echo_n "(cached) " >&6
16110 if test "$cross_compiling" = yes; then :
16111 ac_cv_func_lstat_empty_string_bug=yes
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 $ac_includes_default
16120 return lstat ("", &sbuf) == 0;
16125 if ac_fn_c_try_run "$LINENO"; then :
16126 ac_cv_func_lstat_empty_string_bug=no
16128 ac_cv_func_lstat_empty_string_bug=yes
16130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16131 conftest.$ac_objext conftest.beam conftest.$ac_ext
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
16136 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
16137 if test $ac_cv_func_lstat_empty_string_bug = yes; then
16138 case " $LIBOBJS " in
16139 *" lstat.$ac_objext "* ) ;;
16140 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
16152 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
16153 if ${ac_cv_func_stat_empty_string_bug+:} false; then :
16154 $as_echo_n "(cached) " >&6
16156 if test "$cross_compiling" = yes; then :
16157 ac_cv_func_stat_empty_string_bug=yes
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161 $ac_includes_default
16166 return stat ("", &sbuf) == 0;
16171 if ac_fn_c_try_run "$LINENO"; then :
16172 ac_cv_func_stat_empty_string_bug=no
16174 ac_cv_func_stat_empty_string_bug=yes
16176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16177 conftest.$ac_objext conftest.beam conftest.$ac_ext
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
16182 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
16183 if test $ac_cv_func_stat_empty_string_bug = yes; then
16184 case " $LIBOBJS " in
16185 *" stat.$ac_objext "* ) ;;
16186 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
16191 cat >>confdefs.h <<_ACEOF
16192 #define HAVE_STAT_EMPTY_STRING_BUG 1
16197 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
16198 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
16204 cat >>confdefs.h <<_ACEOF
16205 #define HAVE_DECL_STRERROR_R $ac_have_decl
16208 for ac_func in strerror_r
16210 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
16211 if test "x$ac_cv_func_strerror_r" = xyes; then :
16212 cat >>confdefs.h <<_ACEOF
16213 #define HAVE_STRERROR_R 1
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16220 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
16221 if ${ac_cv_func_strerror_r_char_p+:} false; then :
16222 $as_echo_n "(cached) " >&6
16225 ac_cv_func_strerror_r_char_p=no
16226 if test $ac_cv_have_decl_strerror_r = yes; then
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 $ac_includes_default
16235 char x = *strerror_r (0, buf, sizeof buf);
16236 char *p = strerror_r (0, buf, sizeof buf);
16243 if ac_fn_c_try_compile "$LINENO"; then :
16244 ac_cv_func_strerror_r_char_p=yes
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16248 # strerror_r is not declared. Choose between
16249 # systems that have relatively inaccessible declarations for the
16250 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
16251 # former has a strerror_r that returns char*, while the latter
16252 # has a strerror_r that returns `int'.
16253 # This test should segfault on the DEC system.
16254 if test "$cross_compiling" = yes; then :
16257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 extern char *strerror_r ();
16265 char x = *strerror_r (0, buf, sizeof buf);
16266 return ! isalpha (x);
16271 if ac_fn_c_try_run "$LINENO"; then :
16272 ac_cv_func_strerror_r_char_p=yes
16274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16275 conftest.$ac_objext conftest.beam conftest.$ac_ext
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16282 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
16283 if test $ac_cv_func_strerror_r_char_p = yes; then
16285 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16289 for ac_func in strftime
16291 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
16292 if test "x$ac_cv_func_strftime" = xyes; then :
16293 cat >>confdefs.h <<_ACEOF
16294 #define HAVE_STRFTIME 1
16298 # strftime is in -lintl on SCO UNIX.
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
16300 $as_echo_n "checking for strftime in -lintl... " >&6; }
16301 if ${ac_cv_lib_intl_strftime+:} false; then :
16302 $as_echo_n "(cached) " >&6
16304 ac_check_lib_save_LIBS=$LIBS
16305 LIBS="-lintl $LIBS"
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16309 /* Override any GCC internal prototype to avoid an error.
16310 Use char because int might match the return type of a GCC
16311 builtin and then its argument prototype would still apply. */
16319 return strftime ();
16324 if ac_fn_c_try_link "$LINENO"; then :
16325 ac_cv_lib_intl_strftime=yes
16327 ac_cv_lib_intl_strftime=no
16329 rm -f core conftest.err conftest.$ac_objext \
16330 conftest$ac_exeext conftest.$ac_ext
16331 LIBS=$ac_check_lib_save_LIBS
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
16334 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
16335 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
16336 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
16338 LIBS="-lintl $LIBS"
16344 for ac_func in vprintf
16346 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16347 if test "x$ac_cv_func_vprintf" = xyes; then :
16348 cat >>confdefs.h <<_ACEOF
16349 #define HAVE_VPRINTF 1
16352 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16353 if test "x$ac_cv_func__doprnt" = xyes; then :
16355 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16364 # CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)
16365 # To avoid necessity for including windows.h or special forward declaration
16366 # workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5
16368 $as_echo_n "checking for CreateHardLinkA... " >&6; }
16369 if ${ac_cv_func_CreateHardLinkA+:} false; then :
16370 $as_echo_n "(cached) " >&6
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 /* System header to define __stub macros and hopefully few prototypes,
16375 which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */
16376 #include <assert.h>
16377 /* Override any gcc2 internal prototype to avoid an error. */
16381 /* We use char because int might match the return type of a gcc2
16382 builtin and then its argument prototype would still apply. */
16383 char __stdcall CreateHardLinkA ( const char *, const char *, void * );
16384 char (*f) ( const char *, const char *, void * );
16389 /* The GNU C library defines this for functions which it implements
16390 to always fail with ENOSYS. Some functions are actually named
16391 something starting with __ and the normal name is an alias. */
16392 #if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)
16395 f = CreateHardLinkA;
16402 if ac_fn_c_try_link "$LINENO"; then :
16403 ac_cv_func_CreateHardLinkA=yes
16405 ac_cv_func_CreateHardLinkA=no
16407 rm -f core conftest.err conftest.$ac_objext \
16408 conftest$ac_exeext conftest.$ac_ext
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5
16411 $as_echo "$ac_cv_func_CreateHardLinkA" >&6; }
16412 if test $ac_cv_func_CreateHardLinkA = yes; then :
16415 for ac_func in chflags chown chroot ctime_r dirfd
16417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16419 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16420 cat >>confdefs.h <<_ACEOF
16421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427 for ac_func in fchdir fchflags fchmod fchown fcntl fdopendir fork
16429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16432 cat >>confdefs.h <<_ACEOF
16433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16439 for ac_func in fstat fstatat fstatfs fstatvfs ftruncate
16441 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16442 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16443 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16444 cat >>confdefs.h <<_ACEOF
16445 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16451 for ac_func in futimens futimes futimesat
16453 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16454 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16455 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16456 cat >>confdefs.h <<_ACEOF
16457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 for ac_func in geteuid getpid getgrgid_r getgrnam_r
16465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16467 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16468 cat >>confdefs.h <<_ACEOF
16469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16475 for ac_func in getpwnam_r getpwuid_r getvfsbyname gmtime_r
16477 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16478 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16479 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16480 cat >>confdefs.h <<_ACEOF
16481 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16487 for ac_func in lchflags lchmod lchown link localtime_r lstat lutimes
16489 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16492 cat >>confdefs.h <<_ACEOF
16493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16499 for ac_func in mbrtowc memmove memset
16501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16504 cat >>confdefs.h <<_ACEOF
16505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16511 for ac_func in mkdir mkfifo mknod mkstemp
16513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16516 cat >>confdefs.h <<_ACEOF
16517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 for ac_func in nl_langinfo openat pipe poll posix_spawnp readlink readlinkat
16525 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16526 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16527 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16528 cat >>confdefs.h <<_ACEOF
16529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535 for ac_func in select setenv setlocale sigaction statfs statvfs
16537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16540 cat >>confdefs.h <<_ACEOF
16541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16547 for ac_func in strchr strdup strerror strncpy_s strrchr symlink timegm
16549 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16550 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16551 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16552 cat >>confdefs.h <<_ACEOF
16553 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16559 for ac_func in tzset unsetenv utime utimensat utimes vfork
16561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16562 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16563 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16564 cat >>confdefs.h <<_ACEOF
16565 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16571 for ac_func in wcrtomb wcscmp wcscpy wcslen wctomb wmemcmp wmemcpy
16573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16574 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16575 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16576 cat >>confdefs.h <<_ACEOF
16577 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16583 for ac_func in _ctime64_s _fseeki64
16585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16587 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16588 cat >>confdefs.h <<_ACEOF
16589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16595 for ac_func in _get_timezone _localtime64_s _mkgmtime64
16597 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16598 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16599 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16600 cat >>confdefs.h <<_ACEOF
16601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16607 # detects cygwin-1.7, as opposed to older versions
16608 for ac_func in cygwin_conv_path
16610 ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"
16611 if test "x$ac_cv_func_cygwin_conv_path" = xyes; then :
16612 cat >>confdefs.h <<_ACEOF
16613 #define HAVE_CYGWIN_CONV_PATH 1
16620 # There are several variants of readdir_r around; we only
16621 # accept the POSIX-compliant version.
16622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623 /* end confdefs.h. */
16624 #include <dirent.h>
16628 DIR *dir; struct dirent e, *r;
16629 return(readdir_r(dir, &e, &r));
16634 if ac_fn_c_try_compile "$LINENO"; then :
16636 $as_echo "#define HAVE_READDIR_R 1" >>confdefs.h
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16642 # FreeBSD's nl_langinfo supports an option to specify whether the
16643 # current locale uses month/day or day/month ordering. It makes the
16644 # output a little prettier...
16645 ac_fn_c_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H
16646 #include <langinfo.h>
16650 if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes; then :
16652 $as_echo "#define HAVE_D_MD_ORDER 1" >>confdefs.h
16657 # Check for dirent.d_namlen field explicitly
16658 # (This is a bit more straightforward than, if not quite as portable as,
16659 # the recipe given by the autoconf maintainers.)
16660 ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
16661 #include <dirent.h>
16665 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes; then :
16670 # Check for Extended Attributes support
16671 # Check whether --enable-xattr was given.
16672 if test "${enable_xattr+set}" = set; then :
16673 enableval=$enable_xattr;
16677 if test "x$enable_xattr" != "xno"; then
16678 for ac_header in attr/xattr.h
16680 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
16681 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
16682 cat >>confdefs.h <<_ACEOF
16683 #define HAVE_ATTR_XATTR_H 1
16690 for ac_header in sys/xattr.h sys/ea.h
16692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16693 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16694 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16695 cat >>confdefs.h <<_ACEOF
16696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5
16704 $as_echo_n "checking for setxattr in -lattr... " >&6; }
16705 if ${ac_cv_lib_attr_setxattr+:} false; then :
16706 $as_echo_n "(cached) " >&6
16708 ac_check_lib_save_LIBS=$LIBS
16709 LIBS="-lattr $LIBS"
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16713 /* Override any GCC internal prototype to avoid an error.
16714 Use char because int might match the return type of a GCC
16715 builtin and then its argument prototype would still apply. */
16723 return setxattr ();
16728 if ac_fn_c_try_link "$LINENO"; then :
16729 ac_cv_lib_attr_setxattr=yes
16731 ac_cv_lib_attr_setxattr=no
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 LIBS=$ac_check_lib_save_LIBS
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5
16738 $as_echo "$ac_cv_lib_attr_setxattr" >&6; }
16739 if test "x$ac_cv_lib_attr_setxattr" = xyes; then :
16740 cat >>confdefs.h <<_ACEOF
16741 #define HAVE_LIBATTR 1
16744 LIBS="-lattr $LIBS"
16748 for ac_func in extattr_get_file extattr_list_file
16750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16752 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16753 cat >>confdefs.h <<_ACEOF
16754 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16760 for ac_func in extattr_set_fd extattr_set_file
16762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16763 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16764 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16765 cat >>confdefs.h <<_ACEOF
16766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16772 for ac_func in fgetxattr flistxattr fsetxattr getxattr
16774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16775 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16776 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16777 cat >>confdefs.h <<_ACEOF
16778 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16784 for ac_func in lgetxattr listxattr llistxattr lsetxattr
16786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16788 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16789 cat >>confdefs.h <<_ACEOF
16790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16796 for ac_func in fgetea flistea fsetea getea
16798 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16799 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16800 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16801 cat >>confdefs.h <<_ACEOF
16802 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16808 for ac_func in lgetea listea llistea lsetea
16810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16812 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16813 cat >>confdefs.h <<_ACEOF
16814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16820 ac_fn_c_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>
16821 #include <sys/extattr.h>
16824 if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes; then :
16830 cat >>confdefs.h <<_ACEOF
16831 #define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl
16836 # Check for ACL support
16838 # The ACL support in libarchive is written against the POSIX1e draft,
16839 # which was never officially approved and varies quite a bit across
16840 # platforms. Worse, some systems have completely non-POSIX acl functions,
16841 # which makes the following checks rather more complex than I would like.
16843 # Check whether --enable-acl was given.
16844 if test "${enable_acl+set}" = set; then :
16845 enableval=$enable_acl;
16849 if test "x$enable_acl" != "xno"; then
16850 for ac_header in sys/acl.h
16852 ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
16853 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_SYS_ACL_H 1
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
16863 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
16864 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
16865 $as_echo_n "(cached) " >&6
16867 ac_check_lib_save_LIBS=$LIBS
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16872 /* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16878 char acl_get_file ();
16882 return acl_get_file ();
16887 if ac_fn_c_try_link "$LINENO"; then :
16888 ac_cv_lib_acl_acl_get_file=yes
16890 ac_cv_lib_acl_acl_get_file=no
16892 rm -f core conftest.err conftest.$ac_objext \
16893 conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
16897 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
16898 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_LIBACL 1
16907 for ac_func in acl_create_entry acl_init acl_set_fd acl_set_fd_np acl_set_file
16909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16911 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16912 cat >>confdefs.h <<_ACEOF
16913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16920 ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "#if HAVE_SYS_TYPES_H
16921 #include <sys/types.h>
16924 #include <sys/acl.h>
16928 if test "x$ac_cv_type_acl_permset_t" = xyes; then :
16930 cat >>confdefs.h <<_ACEOF
16931 #define HAVE_ACL_PERMSET_T 1
16938 # The "acl_get_perm()" function was omitted from the POSIX draft.
16939 # (It's a pretty obvious oversight; otherwise, there's no way to
16940 # test for specific permissions in a permset.) Linux uses the obvious
16941 # name, FreeBSD adds _np to mark it as "non-Posix extension."
16942 # Test for both as a double-check that we really have POSIX-style ACL support.
16943 for ac_func in acl_get_perm_np acl_get_perm acl_get_link acl_get_link_np
16945 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16946 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16947 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16948 cat >>confdefs.h <<_ACEOF
16949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16956 # MacOS has an acl.h that isn't POSIX. It can be detected by
16957 # checking for ACL_USER
16958 ac_fn_c_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/acl.h>
16960 if test "x$ac_cv_have_decl_ACL_USER" = xyes; then :
16962 $as_echo "#define HAVE_ACL_USER 1" >>confdefs.h
16968 # Additional requirements
16969 # Check whether --enable-largefile was given.
16970 if test "${enable_largefile+set}" = set; then :
16971 enableval=$enable_largefile;
16974 if test "$enable_largefile" != no; then
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16977 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16978 if ${ac_cv_sys_largefile_CC+:} false; then :
16979 $as_echo_n "(cached) " >&6
16981 ac_cv_sys_largefile_CC=no
16982 if test "$GCC" != yes; then
16985 # IRIX 6.2 and later do not support large files by default,
16986 # so use the C compiler's -n32 option if that helps.
16987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988 /* end confdefs.h. */
16989 #include <sys/types.h>
16990 /* Check that off_t can represent 2**63 - 1 correctly.
16991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16992 since some C++ compilers masquerading as C compilers
16993 incorrectly reject 9223372036854775807. */
16994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16996 && LARGE_OFF_T % 2147483647 == 1)
17006 if ac_fn_c_try_compile "$LINENO"; then :
17009 rm -f core conftest.err conftest.$ac_objext
17011 if ac_fn_c_try_compile "$LINENO"; then :
17012 ac_cv_sys_largefile_CC=' -n32'; break
17014 rm -f core conftest.err conftest.$ac_objext
17018 rm -f conftest.$ac_ext
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17022 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17023 if test "$ac_cv_sys_largefile_CC" != no; then
17024 CC=$CC$ac_cv_sys_largefile_CC
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17028 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17029 if ${ac_cv_sys_file_offset_bits+:} false; then :
17030 $as_echo_n "(cached) " >&6
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17035 #include <sys/types.h>
17036 /* Check that off_t can represent 2**63 - 1 correctly.
17037 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17038 since some C++ compilers masquerading as C compilers
17039 incorrectly reject 9223372036854775807. */
17040 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17041 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17042 && LARGE_OFF_T % 2147483647 == 1)
17052 if ac_fn_c_try_compile "$LINENO"; then :
17053 ac_cv_sys_file_offset_bits=no; break
17055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17057 /* end confdefs.h. */
17058 #define _FILE_OFFSET_BITS 64
17059 #include <sys/types.h>
17060 /* Check that off_t can represent 2**63 - 1 correctly.
17061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17062 since some C++ compilers masquerading as C compilers
17063 incorrectly reject 9223372036854775807. */
17064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17066 && LARGE_OFF_T % 2147483647 == 1)
17076 if ac_fn_c_try_compile "$LINENO"; then :
17077 ac_cv_sys_file_offset_bits=64; break
17079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 ac_cv_sys_file_offset_bits=unknown
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17085 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17086 case $ac_cv_sys_file_offset_bits in #(
17089 cat >>confdefs.h <<_ACEOF
17090 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17095 if test $ac_cv_sys_file_offset_bits = unknown; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17097 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17098 if ${ac_cv_sys_large_files+:} false; then :
17099 $as_echo_n "(cached) " >&6
17102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17103 /* end confdefs.h. */
17104 #include <sys/types.h>
17105 /* Check that off_t can represent 2**63 - 1 correctly.
17106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17107 since some C++ compilers masquerading as C compilers
17108 incorrectly reject 9223372036854775807. */
17109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17111 && LARGE_OFF_T % 2147483647 == 1)
17121 if ac_fn_c_try_compile "$LINENO"; then :
17122 ac_cv_sys_large_files=no; break
17124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17126 /* end confdefs.h. */
17127 #define _LARGE_FILES 1
17128 #include <sys/types.h>
17129 /* Check that off_t can represent 2**63 - 1 correctly.
17130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17131 since some C++ compilers masquerading as C compilers
17132 incorrectly reject 9223372036854775807. */
17133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17135 && LARGE_OFF_T % 2147483647 == 1)
17145 if ac_fn_c_try_compile "$LINENO"; then :
17146 ac_cv_sys_large_files=1; break
17148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17149 ac_cv_sys_large_files=unknown
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17154 $as_echo "$ac_cv_sys_large_files" >&6; }
17155 case $ac_cv_sys_large_files in #(
17158 cat >>confdefs.h <<_ACEOF
17159 #define _LARGE_FILES $ac_cv_sys_large_files
17175 *mingw* | *cygwin*)
17179 if test "$found_MD5" != yes; then
17180 saved_CPPFLAGS="$CPPFLAGS"
17181 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17182 touch "check_crypto_md.h"
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBC" >&5
17184 $as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_LIBC... " >&6; }
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17188 #define ARCHIVE_MD5_COMPILE_TEST
17189 #define ARCHIVE_CRYPTO_MD5_LIBC
17190 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17192 $(cat "$srcdir/libarchive/archive_crypto.c")
17195 main(int argc, char **argv)
17197 archive_md5_ctx ctx;
17198 archive_md5_init(&ctx);
17199 archive_md5_update(&ctx, *argv, argc);
17200 archive_md5_final(&ctx, NULL);
17205 if ac_fn_c_try_link "$LINENO"; then :
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17207 $as_echo "yes" >&6; }
17211 $as_echo "#define ARCHIVE_CRYPTO_MD5_LIBC 1" >>confdefs.h
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17216 $as_echo "no" >&6; }
17218 rm -f core conftest.err conftest.$ac_objext \
17219 conftest$ac_exeext conftest.$ac_ext
17220 CPPFLAGS="$saved_CPPFLAGS"
17221 rm "check_crypto_md.h"
17225 if test "$found_MD5" != yes; then
17226 saved_CPPFLAGS="$CPPFLAGS"
17227 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17228 touch "check_crypto_md.h"
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM" >&5
17230 $as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM... " >&6; }
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17234 #define ARCHIVE_MD5_COMPILE_TEST
17235 #define ARCHIVE_CRYPTO_MD5_LIBSYSTEM
17236 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17238 $(cat "$srcdir/libarchive/archive_crypto.c")
17241 main(int argc, char **argv)
17243 archive_md5_ctx ctx;
17244 archive_md5_init(&ctx);
17245 archive_md5_update(&ctx, *argv, argc);
17246 archive_md5_final(&ctx, NULL);
17251 if ac_fn_c_try_link "$LINENO"; then :
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17253 $as_echo "yes" >&6; }
17255 found_LIBSYSTEM=yes
17257 $as_echo "#define ARCHIVE_CRYPTO_MD5_LIBSYSTEM 1" >>confdefs.h
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17264 rm -f core conftest.err conftest.$ac_objext \
17265 conftest$ac_exeext conftest.$ac_ext
17266 CPPFLAGS="$saved_CPPFLAGS"
17267 rm "check_crypto_md.h"
17271 if test "$found_RMD160" != yes; then
17272 saved_CPPFLAGS="$CPPFLAGS"
17273 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17274 touch "check_crypto_md.h"
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBC" >&5
17276 $as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_LIBC... " >&6; }
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17280 #define ARCHIVE_RMD160_COMPILE_TEST
17281 #define ARCHIVE_CRYPTO_RMD160_LIBC
17282 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17284 $(cat "$srcdir/libarchive/archive_crypto.c")
17287 main(int argc, char **argv)
17289 archive_rmd160_ctx ctx;
17290 archive_rmd160_init(&ctx);
17291 archive_rmd160_update(&ctx, *argv, argc);
17292 archive_rmd160_final(&ctx, NULL);
17297 if ac_fn_c_try_link "$LINENO"; then :
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17299 $as_echo "yes" >&6; }
17303 $as_echo "#define ARCHIVE_CRYPTO_RMD160_LIBC 1" >>confdefs.h
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17312 CPPFLAGS="$saved_CPPFLAGS"
17313 rm "check_crypto_md.h"
17317 if test "$found_SHA1" != yes; then
17318 saved_CPPFLAGS="$CPPFLAGS"
17319 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17320 touch "check_crypto_md.h"
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBC" >&5
17322 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_LIBC... " >&6; }
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17326 #define ARCHIVE_SHA1_COMPILE_TEST
17327 #define ARCHIVE_CRYPTO_SHA1_LIBC
17328 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17330 $(cat "$srcdir/libarchive/archive_crypto.c")
17333 main(int argc, char **argv)
17335 archive_sha1_ctx ctx;
17336 archive_sha1_init(&ctx);
17337 archive_sha1_update(&ctx, *argv, argc);
17338 archive_sha1_final(&ctx, NULL);
17343 if ac_fn_c_try_link "$LINENO"; then :
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17345 $as_echo "yes" >&6; }
17349 $as_echo "#define ARCHIVE_CRYPTO_SHA1_LIBC 1" >>confdefs.h
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17354 $as_echo "no" >&6; }
17356 rm -f core conftest.err conftest.$ac_objext \
17357 conftest$ac_exeext conftest.$ac_ext
17358 CPPFLAGS="$saved_CPPFLAGS"
17359 rm "check_crypto_md.h"
17363 if test "$found_SHA1" != yes; then
17364 saved_CPPFLAGS="$CPPFLAGS"
17365 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17366 touch "check_crypto_md.h"
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM" >&5
17368 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM... " >&6; }
17369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370 /* end confdefs.h. */
17372 #define ARCHIVE_SHA1_COMPILE_TEST
17373 #define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
17374 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17376 $(cat "$srcdir/libarchive/archive_crypto.c")
17379 main(int argc, char **argv)
17381 archive_sha1_ctx ctx;
17382 archive_sha1_init(&ctx);
17383 archive_sha1_update(&ctx, *argv, argc);
17384 archive_sha1_final(&ctx, NULL);
17389 if ac_fn_c_try_link "$LINENO"; then :
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17391 $as_echo "yes" >&6; }
17393 found_LIBSYSTEM=yes
17395 $as_echo "#define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM 1" >>confdefs.h
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17400 $as_echo "no" >&6; }
17402 rm -f core conftest.err conftest.$ac_objext \
17403 conftest$ac_exeext conftest.$ac_ext
17404 CPPFLAGS="$saved_CPPFLAGS"
17405 rm "check_crypto_md.h"
17409 if test "$found_SHA256" != yes; then
17410 saved_CPPFLAGS="$CPPFLAGS"
17411 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17412 touch "check_crypto_md.h"
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC" >&5
17414 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBC... " >&6; }
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17418 #define ARCHIVE_SHA256_COMPILE_TEST
17419 #define ARCHIVE_CRYPTO_SHA256_LIBC
17420 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17422 $(cat "$srcdir/libarchive/archive_crypto.c")
17425 main(int argc, char **argv)
17427 archive_sha256_ctx ctx;
17428 archive_sha256_init(&ctx);
17429 archive_sha256_update(&ctx, *argv, argc);
17430 archive_sha256_final(&ctx, NULL);
17435 if ac_fn_c_try_link "$LINENO"; then :
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17437 $as_echo "yes" >&6; }
17441 $as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBC 1" >>confdefs.h
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17446 $as_echo "no" >&6; }
17448 rm -f core conftest.err conftest.$ac_objext \
17449 conftest$ac_exeext conftest.$ac_ext
17450 CPPFLAGS="$saved_CPPFLAGS"
17451 rm "check_crypto_md.h"
17455 if test "$found_SHA256" != yes; then
17456 saved_CPPFLAGS="$CPPFLAGS"
17457 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17458 touch "check_crypto_md.h"
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2" >&5
17460 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBC2... " >&6; }
17461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462 /* end confdefs.h. */
17464 #define ARCHIVE_SHA256_COMPILE_TEST
17465 #define ARCHIVE_CRYPTO_SHA256_LIBC2
17466 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17468 $(cat "$srcdir/libarchive/archive_crypto.c")
17471 main(int argc, char **argv)
17473 archive_sha256_ctx ctx;
17474 archive_sha256_init(&ctx);
17475 archive_sha256_update(&ctx, *argv, argc);
17476 archive_sha256_final(&ctx, NULL);
17481 if ac_fn_c_try_link "$LINENO"; then :
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17483 $as_echo "yes" >&6; }
17487 $as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBC2 1" >>confdefs.h
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17492 $as_echo "no" >&6; }
17494 rm -f core conftest.err conftest.$ac_objext \
17495 conftest$ac_exeext conftest.$ac_ext
17496 CPPFLAGS="$saved_CPPFLAGS"
17497 rm "check_crypto_md.h"
17501 if test "$found_SHA256" != yes; then
17502 saved_CPPFLAGS="$CPPFLAGS"
17503 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17504 touch "check_crypto_md.h"
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3" >&5
17506 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBC3... " >&6; }
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17510 #define ARCHIVE_SHA256_COMPILE_TEST
17511 #define ARCHIVE_CRYPTO_SHA256_LIBC3
17512 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17514 $(cat "$srcdir/libarchive/archive_crypto.c")
17517 main(int argc, char **argv)
17519 archive_sha256_ctx ctx;
17520 archive_sha256_init(&ctx);
17521 archive_sha256_update(&ctx, *argv, argc);
17522 archive_sha256_final(&ctx, NULL);
17527 if ac_fn_c_try_link "$LINENO"; then :
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17529 $as_echo "yes" >&6; }
17533 $as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBC3 1" >>confdefs.h
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538 $as_echo "no" >&6; }
17540 rm -f core conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17542 CPPFLAGS="$saved_CPPFLAGS"
17543 rm "check_crypto_md.h"
17547 if test "$found_SHA256" != yes; then
17548 saved_CPPFLAGS="$CPPFLAGS"
17549 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17550 touch "check_crypto_md.h"
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM" >&5
17552 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM... " >&6; }
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17556 #define ARCHIVE_SHA256_COMPILE_TEST
17557 #define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
17558 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17560 $(cat "$srcdir/libarchive/archive_crypto.c")
17563 main(int argc, char **argv)
17565 archive_sha256_ctx ctx;
17566 archive_sha256_init(&ctx);
17567 archive_sha256_update(&ctx, *argv, argc);
17568 archive_sha256_final(&ctx, NULL);
17573 if ac_fn_c_try_link "$LINENO"; then :
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17577 found_LIBSYSTEM=yes
17579 $as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM 1" >>confdefs.h
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17584 $as_echo "no" >&6; }
17586 rm -f core conftest.err conftest.$ac_objext \
17587 conftest$ac_exeext conftest.$ac_ext
17588 CPPFLAGS="$saved_CPPFLAGS"
17589 rm "check_crypto_md.h"
17593 if test "$found_SHA384" != yes; then
17594 saved_CPPFLAGS="$CPPFLAGS"
17595 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17596 touch "check_crypto_md.h"
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC" >&5
17598 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBC... " >&6; }
17599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h. */
17602 #define ARCHIVE_SHA384_COMPILE_TEST
17603 #define ARCHIVE_CRYPTO_SHA384_LIBC
17604 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17606 $(cat "$srcdir/libarchive/archive_crypto.c")
17609 main(int argc, char **argv)
17611 archive_sha384_ctx ctx;
17612 archive_sha384_init(&ctx);
17613 archive_sha384_update(&ctx, *argv, argc);
17614 archive_sha384_final(&ctx, NULL);
17619 if ac_fn_c_try_link "$LINENO"; then :
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17621 $as_echo "yes" >&6; }
17625 $as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBC 1" >>confdefs.h
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17630 $as_echo "no" >&6; }
17632 rm -f core conftest.err conftest.$ac_objext \
17633 conftest$ac_exeext conftest.$ac_ext
17634 CPPFLAGS="$saved_CPPFLAGS"
17635 rm "check_crypto_md.h"
17639 if test "$found_SHA384" != yes; then
17640 saved_CPPFLAGS="$CPPFLAGS"
17641 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17642 touch "check_crypto_md.h"
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2" >&5
17644 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBC2... " >&6; }
17645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17648 #define ARCHIVE_SHA384_COMPILE_TEST
17649 #define ARCHIVE_CRYPTO_SHA384_LIBC2
17650 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17652 $(cat "$srcdir/libarchive/archive_crypto.c")
17655 main(int argc, char **argv)
17657 archive_sha384_ctx ctx;
17658 archive_sha384_init(&ctx);
17659 archive_sha384_update(&ctx, *argv, argc);
17660 archive_sha384_final(&ctx, NULL);
17665 if ac_fn_c_try_link "$LINENO"; then :
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17667 $as_echo "yes" >&6; }
17671 $as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBC2 1" >>confdefs.h
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17676 $as_echo "no" >&6; }
17678 rm -f core conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17680 CPPFLAGS="$saved_CPPFLAGS"
17681 rm "check_crypto_md.h"
17685 if test "$found_SHA384" != yes; then
17686 saved_CPPFLAGS="$CPPFLAGS"
17687 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17688 touch "check_crypto_md.h"
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3" >&5
17690 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBC3... " >&6; }
17691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17692 /* end confdefs.h. */
17694 #define ARCHIVE_SHA384_COMPILE_TEST
17695 #define ARCHIVE_CRYPTO_SHA384_LIBC3
17696 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17698 $(cat "$srcdir/libarchive/archive_crypto.c")
17701 main(int argc, char **argv)
17703 archive_sha384_ctx ctx;
17704 archive_sha384_init(&ctx);
17705 archive_sha384_update(&ctx, *argv, argc);
17706 archive_sha384_final(&ctx, NULL);
17711 if ac_fn_c_try_link "$LINENO"; then :
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713 $as_echo "yes" >&6; }
17717 $as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBC3 1" >>confdefs.h
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17722 $as_echo "no" >&6; }
17724 rm -f core conftest.err conftest.$ac_objext \
17725 conftest$ac_exeext conftest.$ac_ext
17726 CPPFLAGS="$saved_CPPFLAGS"
17727 rm "check_crypto_md.h"
17731 if test "$found_SHA384" != yes; then
17732 saved_CPPFLAGS="$CPPFLAGS"
17733 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17734 touch "check_crypto_md.h"
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM" >&5
17736 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM... " >&6; }
17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17740 #define ARCHIVE_SHA384_COMPILE_TEST
17741 #define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
17742 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17744 $(cat "$srcdir/libarchive/archive_crypto.c")
17747 main(int argc, char **argv)
17749 archive_sha384_ctx ctx;
17750 archive_sha384_init(&ctx);
17751 archive_sha384_update(&ctx, *argv, argc);
17752 archive_sha384_final(&ctx, NULL);
17757 if ac_fn_c_try_link "$LINENO"; then :
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17759 $as_echo "yes" >&6; }
17761 found_LIBSYSTEM=yes
17763 $as_echo "#define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM 1" >>confdefs.h
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17768 $as_echo "no" >&6; }
17770 rm -f core conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772 CPPFLAGS="$saved_CPPFLAGS"
17773 rm "check_crypto_md.h"
17777 if test "$found_SHA512" != yes; then
17778 saved_CPPFLAGS="$CPPFLAGS"
17779 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17780 touch "check_crypto_md.h"
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC" >&5
17782 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBC... " >&6; }
17783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17784 /* end confdefs.h. */
17786 #define ARCHIVE_SHA512_COMPILE_TEST
17787 #define ARCHIVE_CRYPTO_SHA512_LIBC
17788 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17790 $(cat "$srcdir/libarchive/archive_crypto.c")
17793 main(int argc, char **argv)
17795 archive_sha512_ctx ctx;
17796 archive_sha512_init(&ctx);
17797 archive_sha512_update(&ctx, *argv, argc);
17798 archive_sha512_final(&ctx, NULL);
17803 if ac_fn_c_try_link "$LINENO"; then :
17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17805 $as_echo "yes" >&6; }
17809 $as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBC 1" >>confdefs.h
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814 $as_echo "no" >&6; }
17816 rm -f core conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 CPPFLAGS="$saved_CPPFLAGS"
17819 rm "check_crypto_md.h"
17823 if test "$found_SHA512" != yes; then
17824 saved_CPPFLAGS="$CPPFLAGS"
17825 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17826 touch "check_crypto_md.h"
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2" >&5
17828 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBC2... " >&6; }
17829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17830 /* end confdefs.h. */
17832 #define ARCHIVE_SHA512_COMPILE_TEST
17833 #define ARCHIVE_CRYPTO_SHA512_LIBC2
17834 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17836 $(cat "$srcdir/libarchive/archive_crypto.c")
17839 main(int argc, char **argv)
17841 archive_sha512_ctx ctx;
17842 archive_sha512_init(&ctx);
17843 archive_sha512_update(&ctx, *argv, argc);
17844 archive_sha512_final(&ctx, NULL);
17849 if ac_fn_c_try_link "$LINENO"; then :
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17851 $as_echo "yes" >&6; }
17855 $as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBC2 1" >>confdefs.h
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17860 $as_echo "no" >&6; }
17862 rm -f core conftest.err conftest.$ac_objext \
17863 conftest$ac_exeext conftest.$ac_ext
17864 CPPFLAGS="$saved_CPPFLAGS"
17865 rm "check_crypto_md.h"
17869 if test "$found_SHA512" != yes; then
17870 saved_CPPFLAGS="$CPPFLAGS"
17871 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17872 touch "check_crypto_md.h"
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3" >&5
17874 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBC3... " >&6; }
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17878 #define ARCHIVE_SHA512_COMPILE_TEST
17879 #define ARCHIVE_CRYPTO_SHA512_LIBC3
17880 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17882 $(cat "$srcdir/libarchive/archive_crypto.c")
17885 main(int argc, char **argv)
17887 archive_sha512_ctx ctx;
17888 archive_sha512_init(&ctx);
17889 archive_sha512_update(&ctx, *argv, argc);
17890 archive_sha512_final(&ctx, NULL);
17895 if ac_fn_c_try_link "$LINENO"; then :
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17897 $as_echo "yes" >&6; }
17901 $as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBC3 1" >>confdefs.h
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906 $as_echo "no" >&6; }
17908 rm -f core conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910 CPPFLAGS="$saved_CPPFLAGS"
17911 rm "check_crypto_md.h"
17915 if test "$found_SHA512" != yes; then
17916 saved_CPPFLAGS="$CPPFLAGS"
17917 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
17918 touch "check_crypto_md.h"
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM" >&5
17920 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM... " >&6; }
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17924 #define ARCHIVE_SHA512_COMPILE_TEST
17925 #define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
17926 #define PLATFORM_CONFIG_H "check_crypto_md.h"
17928 $(cat "$srcdir/libarchive/archive_crypto.c")
17931 main(int argc, char **argv)
17933 archive_sha512_ctx ctx;
17934 archive_sha512_init(&ctx);
17935 archive_sha512_update(&ctx, *argv, argc);
17936 archive_sha512_final(&ctx, NULL);
17941 if ac_fn_c_try_link "$LINENO"; then :
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17943 $as_echo "yes" >&6; }
17945 found_LIBSYSTEM=yes
17947 $as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM 1" >>confdefs.h
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17954 rm -f core conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
17956 CPPFLAGS="$saved_CPPFLAGS"
17957 rm "check_crypto_md.h"
17963 if test "x$with_nettle" != "xno"; then
17964 for ac_header in nettle/md5.h nettle/ripemd160.h nettle/sha.h
17966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17969 cat >>confdefs.h <<_ACEOF
17970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnettle" >&5
17979 $as_echo_n "checking for main in -lnettle... " >&6; }
17980 if ${ac_cv_lib_nettle_main+:} false; then :
17981 $as_echo_n "(cached) " >&6
17983 ac_check_lib_save_LIBS=$LIBS
17984 LIBS="-lnettle $LIBS"
17985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17986 /* end confdefs.h. */
17997 if ac_fn_c_try_link "$LINENO"; then :
17998 ac_cv_lib_nettle_main=yes
18000 ac_cv_lib_nettle_main=no
18002 rm -f core conftest.err conftest.$ac_objext \
18003 conftest$ac_exeext conftest.$ac_ext
18004 LIBS=$ac_check_lib_save_LIBS
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_main" >&5
18007 $as_echo "$ac_cv_lib_nettle_main" >&6; }
18008 if test "x$ac_cv_lib_nettle_main" = xyes; then :
18009 cat >>confdefs.h <<_ACEOF
18010 #define HAVE_LIBNETTLE 1
18013 LIBS="-lnettle $LIBS"
18018 if test "$found_MD5" != yes; then
18019 saved_CPPFLAGS="$CPPFLAGS"
18020 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18021 touch "check_crypto_md.h"
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_NETTLE" >&5
18023 $as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_NETTLE... " >&6; }
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18027 #define ARCHIVE_MD5_COMPILE_TEST
18028 #define ARCHIVE_CRYPTO_MD5_NETTLE
18029 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18031 $(cat "$srcdir/libarchive/archive_crypto.c")
18034 main(int argc, char **argv)
18036 archive_md5_ctx ctx;
18037 archive_md5_init(&ctx);
18038 archive_md5_update(&ctx, *argv, argc);
18039 archive_md5_final(&ctx, NULL);
18044 if ac_fn_c_try_link "$LINENO"; then :
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18046 $as_echo "yes" >&6; }
18050 $as_echo "#define ARCHIVE_CRYPTO_MD5_NETTLE 1" >>confdefs.h
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18055 $as_echo "no" >&6; }
18057 rm -f core conftest.err conftest.$ac_objext \
18058 conftest$ac_exeext conftest.$ac_ext
18059 CPPFLAGS="$saved_CPPFLAGS"
18060 rm "check_crypto_md.h"
18064 if test "$found_RMD160" != yes; then
18065 saved_CPPFLAGS="$CPPFLAGS"
18066 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18067 touch "check_crypto_md.h"
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_NETTLE" >&5
18069 $as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_NETTLE... " >&6; }
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18073 #define ARCHIVE_RMD160_COMPILE_TEST
18074 #define ARCHIVE_CRYPTO_RMD160_NETTLE
18075 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18077 $(cat "$srcdir/libarchive/archive_crypto.c")
18080 main(int argc, char **argv)
18082 archive_rmd160_ctx ctx;
18083 archive_rmd160_init(&ctx);
18084 archive_rmd160_update(&ctx, *argv, argc);
18085 archive_rmd160_final(&ctx, NULL);
18090 if ac_fn_c_try_link "$LINENO"; then :
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18092 $as_echo "yes" >&6; }
18096 $as_echo "#define ARCHIVE_CRYPTO_RMD160_NETTLE 1" >>confdefs.h
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18101 $as_echo "no" >&6; }
18103 rm -f core conftest.err conftest.$ac_objext \
18104 conftest$ac_exeext conftest.$ac_ext
18105 CPPFLAGS="$saved_CPPFLAGS"
18106 rm "check_crypto_md.h"
18110 if test "$found_SHA1" != yes; then
18111 saved_CPPFLAGS="$CPPFLAGS"
18112 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18113 touch "check_crypto_md.h"
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_NETTLE" >&5
18115 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_NETTLE... " >&6; }
18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117 /* end confdefs.h. */
18119 #define ARCHIVE_SHA1_COMPILE_TEST
18120 #define ARCHIVE_CRYPTO_SHA1_NETTLE
18121 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18123 $(cat "$srcdir/libarchive/archive_crypto.c")
18126 main(int argc, char **argv)
18128 archive_sha1_ctx ctx;
18129 archive_sha1_init(&ctx);
18130 archive_sha1_update(&ctx, *argv, argc);
18131 archive_sha1_final(&ctx, NULL);
18136 if ac_fn_c_try_link "$LINENO"; then :
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18138 $as_echo "yes" >&6; }
18142 $as_echo "#define ARCHIVE_CRYPTO_SHA1_NETTLE 1" >>confdefs.h
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18149 rm -f core conftest.err conftest.$ac_objext \
18150 conftest$ac_exeext conftest.$ac_ext
18151 CPPFLAGS="$saved_CPPFLAGS"
18152 rm "check_crypto_md.h"
18156 if test "$found_SHA256" != yes; then
18157 saved_CPPFLAGS="$CPPFLAGS"
18158 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18159 touch "check_crypto_md.h"
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_NETTLE" >&5
18161 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_NETTLE... " >&6; }
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18165 #define ARCHIVE_SHA256_COMPILE_TEST
18166 #define ARCHIVE_CRYPTO_SHA256_NETTLE
18167 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18169 $(cat "$srcdir/libarchive/archive_crypto.c")
18172 main(int argc, char **argv)
18174 archive_sha256_ctx ctx;
18175 archive_sha256_init(&ctx);
18176 archive_sha256_update(&ctx, *argv, argc);
18177 archive_sha256_final(&ctx, NULL);
18182 if ac_fn_c_try_link "$LINENO"; then :
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18184 $as_echo "yes" >&6; }
18188 $as_echo "#define ARCHIVE_CRYPTO_SHA256_NETTLE 1" >>confdefs.h
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18195 rm -f core conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197 CPPFLAGS="$saved_CPPFLAGS"
18198 rm "check_crypto_md.h"
18202 if test "$found_SHA384" != yes; then
18203 saved_CPPFLAGS="$CPPFLAGS"
18204 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18205 touch "check_crypto_md.h"
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_NETTLE" >&5
18207 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_NETTLE... " >&6; }
18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h. */
18211 #define ARCHIVE_SHA384_COMPILE_TEST
18212 #define ARCHIVE_CRYPTO_SHA384_NETTLE
18213 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18215 $(cat "$srcdir/libarchive/archive_crypto.c")
18218 main(int argc, char **argv)
18220 archive_sha384_ctx ctx;
18221 archive_sha384_init(&ctx);
18222 archive_sha384_update(&ctx, *argv, argc);
18223 archive_sha384_final(&ctx, NULL);
18228 if ac_fn_c_try_link "$LINENO"; then :
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18230 $as_echo "yes" >&6; }
18234 $as_echo "#define ARCHIVE_CRYPTO_SHA384_NETTLE 1" >>confdefs.h
18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18239 $as_echo "no" >&6; }
18241 rm -f core conftest.err conftest.$ac_objext \
18242 conftest$ac_exeext conftest.$ac_ext
18243 CPPFLAGS="$saved_CPPFLAGS"
18244 rm "check_crypto_md.h"
18248 if test "$found_SHA512" != yes; then
18249 saved_CPPFLAGS="$CPPFLAGS"
18250 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18251 touch "check_crypto_md.h"
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_NETTLE" >&5
18253 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_NETTLE... " >&6; }
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18257 #define ARCHIVE_SHA512_COMPILE_TEST
18258 #define ARCHIVE_CRYPTO_SHA512_NETTLE
18259 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18261 $(cat "$srcdir/libarchive/archive_crypto.c")
18264 main(int argc, char **argv)
18266 archive_sha512_ctx ctx;
18267 archive_sha512_init(&ctx);
18268 archive_sha512_update(&ctx, *argv, argc);
18269 archive_sha512_final(&ctx, NULL);
18274 if ac_fn_c_try_link "$LINENO"; then :
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276 $as_echo "yes" >&6; }
18280 $as_echo "#define ARCHIVE_CRYPTO_SHA512_NETTLE 1" >>confdefs.h
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18287 rm -f core conftest.err conftest.$ac_objext \
18288 conftest$ac_exeext conftest.$ac_ext
18289 CPPFLAGS="$saved_CPPFLAGS"
18290 rm "check_crypto_md.h"
18293 if test "x$found_NETTLE" != "xyes"; then
18297 if test "x$with_openssl" != "xno"; then
18298 for ac_header in openssl/evp.h
18300 ac_fn_c_check_header_mongrel "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
18301 if test "x$ac_cv_header_openssl_evp_h" = xyes; then :
18302 cat >>confdefs.h <<_ACEOF
18303 #define HAVE_OPENSSL_EVP_H 1
18312 *mingw* | *cygwin*)
18313 case "$host_cpu" in
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -leay64" >&5
18316 $as_echo_n "checking for main in -leay64... " >&6; }
18317 if ${ac_cv_lib_eay64_main+:} false; then :
18318 $as_echo_n "(cached) " >&6
18320 ac_check_lib_save_LIBS=$LIBS
18321 LIBS="-leay64 $LIBS"
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18334 if ac_fn_c_try_link "$LINENO"; then :
18335 ac_cv_lib_eay64_main=yes
18337 ac_cv_lib_eay64_main=no
18339 rm -f core conftest.err conftest.$ac_objext \
18340 conftest$ac_exeext conftest.$ac_ext
18341 LIBS=$ac_check_lib_save_LIBS
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay64_main" >&5
18344 $as_echo "$ac_cv_lib_eay64_main" >&6; }
18345 if test "x$ac_cv_lib_eay64_main" = xyes; then :
18346 cat >>confdefs.h <<_ACEOF
18347 #define HAVE_LIBEAY64 1
18350 LIBS="-leay64 $LIBS"
18354 if test "x$ac_cv_lib_eay64_main" != "xyes"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -leay32" >&5
18356 $as_echo_n "checking for main in -leay32... " >&6; }
18357 if ${ac_cv_lib_eay32_main+:} false; then :
18358 $as_echo_n "(cached) " >&6
18360 ac_check_lib_save_LIBS=$LIBS
18361 LIBS="-leay32 $LIBS"
18362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18363 /* end confdefs.h. */
18374 if ac_fn_c_try_link "$LINENO"; then :
18375 ac_cv_lib_eay32_main=yes
18377 ac_cv_lib_eay32_main=no
18379 rm -f core conftest.err conftest.$ac_objext \
18380 conftest$ac_exeext conftest.$ac_ext
18381 LIBS=$ac_check_lib_save_LIBS
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay32_main" >&5
18384 $as_echo "$ac_cv_lib_eay32_main" >&6; }
18385 if test "x$ac_cv_lib_eay32_main" = xyes; then :
18386 cat >>confdefs.h <<_ACEOF
18387 #define HAVE_LIBEAY32 1
18390 LIBS="-leay32 $LIBS"
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -leay32" >&5
18398 $as_echo_n "checking for main in -leay32... " >&6; }
18399 if ${ac_cv_lib_eay32_main+:} false; then :
18400 $as_echo_n "(cached) " >&6
18402 ac_check_lib_save_LIBS=$LIBS
18403 LIBS="-leay32 $LIBS"
18404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18405 /* end confdefs.h. */
18416 if ac_fn_c_try_link "$LINENO"; then :
18417 ac_cv_lib_eay32_main=yes
18419 ac_cv_lib_eay32_main=no
18421 rm -f core conftest.err conftest.$ac_objext \
18422 conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_eay32_main" >&5
18426 $as_echo "$ac_cv_lib_eay32_main" >&6; }
18427 if test "x$ac_cv_lib_eay32_main" = xyes; then :
18428 cat >>confdefs.h <<_ACEOF
18429 #define HAVE_LIBEAY32 1
18432 LIBS="-leay32 $LIBS"
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
18441 $as_echo_n "checking for main in -lcrypto... " >&6; }
18442 if ${ac_cv_lib_crypto_main+:} false; then :
18443 $as_echo_n "(cached) " >&6
18445 ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-lcrypto $LIBS"
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18459 if ac_fn_c_try_link "$LINENO"; then :
18460 ac_cv_lib_crypto_main=yes
18462 ac_cv_lib_crypto_main=no
18464 rm -f core conftest.err conftest.$ac_objext \
18465 conftest$ac_exeext conftest.$ac_ext
18466 LIBS=$ac_check_lib_save_LIBS
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
18469 $as_echo "$ac_cv_lib_crypto_main" >&6; }
18470 if test "x$ac_cv_lib_crypto_main" = xyes; then :
18471 cat >>confdefs.h <<_ACEOF
18472 #define HAVE_LIBCRYPTO 1
18475 LIBS="-lcrypto $LIBS"
18482 if test "$found_MD5" != yes; then
18483 saved_CPPFLAGS="$CPPFLAGS"
18484 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18485 touch "check_crypto_md.h"
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_OPENSSL" >&5
18487 $as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_OPENSSL... " >&6; }
18488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18491 #define ARCHIVE_MD5_COMPILE_TEST
18492 #define ARCHIVE_CRYPTO_MD5_OPENSSL
18493 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18495 $(cat "$srcdir/libarchive/archive_crypto.c")
18498 main(int argc, char **argv)
18500 archive_md5_ctx ctx;
18501 archive_md5_init(&ctx);
18502 archive_md5_update(&ctx, *argv, argc);
18503 archive_md5_final(&ctx, NULL);
18508 if ac_fn_c_try_link "$LINENO"; then :
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18510 $as_echo "yes" >&6; }
18514 $as_echo "#define ARCHIVE_CRYPTO_MD5_OPENSSL 1" >>confdefs.h
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18519 $as_echo "no" >&6; }
18521 rm -f core conftest.err conftest.$ac_objext \
18522 conftest$ac_exeext conftest.$ac_ext
18523 CPPFLAGS="$saved_CPPFLAGS"
18524 rm "check_crypto_md.h"
18528 if test "$found_RMD160" != yes; then
18529 saved_CPPFLAGS="$CPPFLAGS"
18530 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18531 touch "check_crypto_md.h"
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL" >&5
18533 $as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL... " >&6; }
18534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18535 /* end confdefs.h. */
18537 #define ARCHIVE_RMD160_COMPILE_TEST
18538 #define ARCHIVE_CRYPTO_RMD160_OPENSSL
18539 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18541 $(cat "$srcdir/libarchive/archive_crypto.c")
18544 main(int argc, char **argv)
18546 archive_rmd160_ctx ctx;
18547 archive_rmd160_init(&ctx);
18548 archive_rmd160_update(&ctx, *argv, argc);
18549 archive_rmd160_final(&ctx, NULL);
18554 if ac_fn_c_try_link "$LINENO"; then :
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18556 $as_echo "yes" >&6; }
18560 $as_echo "#define ARCHIVE_CRYPTO_RMD160_OPENSSL 1" >>confdefs.h
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18567 rm -f core conftest.err conftest.$ac_objext \
18568 conftest$ac_exeext conftest.$ac_ext
18569 CPPFLAGS="$saved_CPPFLAGS"
18570 rm "check_crypto_md.h"
18574 if test "$found_SHA1" != yes; then
18575 saved_CPPFLAGS="$CPPFLAGS"
18576 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18577 touch "check_crypto_md.h"
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL" >&5
18579 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL... " >&6; }
18580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18581 /* end confdefs.h. */
18583 #define ARCHIVE_SHA1_COMPILE_TEST
18584 #define ARCHIVE_CRYPTO_SHA1_OPENSSL
18585 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18587 $(cat "$srcdir/libarchive/archive_crypto.c")
18590 main(int argc, char **argv)
18592 archive_sha1_ctx ctx;
18593 archive_sha1_init(&ctx);
18594 archive_sha1_update(&ctx, *argv, argc);
18595 archive_sha1_final(&ctx, NULL);
18600 if ac_fn_c_try_link "$LINENO"; then :
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18602 $as_echo "yes" >&6; }
18606 $as_echo "#define ARCHIVE_CRYPTO_SHA1_OPENSSL 1" >>confdefs.h
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611 $as_echo "no" >&6; }
18613 rm -f core conftest.err conftest.$ac_objext \
18614 conftest$ac_exeext conftest.$ac_ext
18615 CPPFLAGS="$saved_CPPFLAGS"
18616 rm "check_crypto_md.h"
18620 if test "$found_SHA256" != yes; then
18621 saved_CPPFLAGS="$CPPFLAGS"
18622 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18623 touch "check_crypto_md.h"
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL" >&5
18625 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL... " >&6; }
18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18629 #define ARCHIVE_SHA256_COMPILE_TEST
18630 #define ARCHIVE_CRYPTO_SHA256_OPENSSL
18631 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18633 $(cat "$srcdir/libarchive/archive_crypto.c")
18636 main(int argc, char **argv)
18638 archive_sha256_ctx ctx;
18639 archive_sha256_init(&ctx);
18640 archive_sha256_update(&ctx, *argv, argc);
18641 archive_sha256_final(&ctx, NULL);
18646 if ac_fn_c_try_link "$LINENO"; then :
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 $as_echo "yes" >&6; }
18652 $as_echo "#define ARCHIVE_CRYPTO_SHA256_OPENSSL 1" >>confdefs.h
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18657 $as_echo "no" >&6; }
18659 rm -f core conftest.err conftest.$ac_objext \
18660 conftest$ac_exeext conftest.$ac_ext
18661 CPPFLAGS="$saved_CPPFLAGS"
18662 rm "check_crypto_md.h"
18666 if test "$found_SHA384" != yes; then
18667 saved_CPPFLAGS="$CPPFLAGS"
18668 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18669 touch "check_crypto_md.h"
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL" >&5
18671 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL... " >&6; }
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673 /* end confdefs.h. */
18675 #define ARCHIVE_SHA384_COMPILE_TEST
18676 #define ARCHIVE_CRYPTO_SHA384_OPENSSL
18677 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18679 $(cat "$srcdir/libarchive/archive_crypto.c")
18682 main(int argc, char **argv)
18684 archive_sha384_ctx ctx;
18685 archive_sha384_init(&ctx);
18686 archive_sha384_update(&ctx, *argv, argc);
18687 archive_sha384_final(&ctx, NULL);
18692 if ac_fn_c_try_link "$LINENO"; then :
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18694 $as_echo "yes" >&6; }
18698 $as_echo "#define ARCHIVE_CRYPTO_SHA384_OPENSSL 1" >>confdefs.h
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 CPPFLAGS="$saved_CPPFLAGS"
18708 rm "check_crypto_md.h"
18712 if test "$found_SHA512" != yes; then
18713 saved_CPPFLAGS="$CPPFLAGS"
18714 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18715 touch "check_crypto_md.h"
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL" >&5
18717 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL... " >&6; }
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18721 #define ARCHIVE_SHA512_COMPILE_TEST
18722 #define ARCHIVE_CRYPTO_SHA512_OPENSSL
18723 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18725 $(cat "$srcdir/libarchive/archive_crypto.c")
18728 main(int argc, char **argv)
18730 archive_sha512_ctx ctx;
18731 archive_sha512_init(&ctx);
18732 archive_sha512_update(&ctx, *argv, argc);
18733 archive_sha512_final(&ctx, NULL);
18738 if ac_fn_c_try_link "$LINENO"; then :
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18740 $as_echo "yes" >&6; }
18744 $as_echo "#define ARCHIVE_CRYPTO_SHA512_OPENSSL 1" >>confdefs.h
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18749 $as_echo "no" >&6; }
18751 rm -f core conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18753 CPPFLAGS="$saved_CPPFLAGS"
18754 rm "check_crypto_md.h"
18757 if test "x$found_OPENSSL" != "xyes"; then
18762 # Probe libmd AFTER OpenSSL/libcrypto.
18763 # The two are incompatible and OpenSSL is more complete.
18764 for ac_header in md5.h ripemd.h sha.h sha256.h sha512.h
18766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18767 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18769 cat >>confdefs.h <<_ACEOF
18770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmd" >&5
18779 $as_echo_n "checking for main in -lmd... " >&6; }
18780 if ${ac_cv_lib_md_main+:} false; then :
18781 $as_echo_n "(cached) " >&6
18783 ac_check_lib_save_LIBS=$LIBS
18785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786 /* end confdefs.h. */
18797 if ac_fn_c_try_link "$LINENO"; then :
18798 ac_cv_lib_md_main=yes
18800 ac_cv_lib_md_main=no
18802 rm -f core conftest.err conftest.$ac_objext \
18803 conftest$ac_exeext conftest.$ac_ext
18804 LIBS=$ac_check_lib_save_LIBS
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_main" >&5
18807 $as_echo "$ac_cv_lib_md_main" >&6; }
18808 if test "x$ac_cv_lib_md_main" = xyes; then :
18809 cat >>confdefs.h <<_ACEOF
18810 #define HAVE_LIBMD 1
18818 if test "$found_MD5" != yes; then
18819 saved_CPPFLAGS="$CPPFLAGS"
18820 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18821 touch "check_crypto_md.h"
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBMD" >&5
18823 $as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_LIBMD... " >&6; }
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825 /* end confdefs.h. */
18827 #define ARCHIVE_MD5_COMPILE_TEST
18828 #define ARCHIVE_CRYPTO_MD5_LIBMD
18829 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18831 $(cat "$srcdir/libarchive/archive_crypto.c")
18834 main(int argc, char **argv)
18836 archive_md5_ctx ctx;
18837 archive_md5_init(&ctx);
18838 archive_md5_update(&ctx, *argv, argc);
18839 archive_md5_final(&ctx, NULL);
18844 if ac_fn_c_try_link "$LINENO"; then :
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18846 $as_echo "yes" >&6; }
18850 $as_echo "#define ARCHIVE_CRYPTO_MD5_LIBMD 1" >>confdefs.h
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18855 $as_echo "no" >&6; }
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18859 CPPFLAGS="$saved_CPPFLAGS"
18860 rm "check_crypto_md.h"
18864 if test "$found_RMD160" != yes; then
18865 saved_CPPFLAGS="$CPPFLAGS"
18866 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18867 touch "check_crypto_md.h"
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD" >&5
18869 $as_echo_n "checking support for ARCHIVE_CRYPTO_RMD160_LIBMD... " >&6; }
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18873 #define ARCHIVE_RMD160_COMPILE_TEST
18874 #define ARCHIVE_CRYPTO_RMD160_LIBMD
18875 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18877 $(cat "$srcdir/libarchive/archive_crypto.c")
18880 main(int argc, char **argv)
18882 archive_rmd160_ctx ctx;
18883 archive_rmd160_init(&ctx);
18884 archive_rmd160_update(&ctx, *argv, argc);
18885 archive_rmd160_final(&ctx, NULL);
18890 if ac_fn_c_try_link "$LINENO"; then :
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18892 $as_echo "yes" >&6; }
18896 $as_echo "#define ARCHIVE_CRYPTO_RMD160_LIBMD 1" >>confdefs.h
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18901 $as_echo "no" >&6; }
18903 rm -f core conftest.err conftest.$ac_objext \
18904 conftest$ac_exeext conftest.$ac_ext
18905 CPPFLAGS="$saved_CPPFLAGS"
18906 rm "check_crypto_md.h"
18910 if test "$found_SHA1" != yes; then
18911 saved_CPPFLAGS="$CPPFLAGS"
18912 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18913 touch "check_crypto_md.h"
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD" >&5
18915 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_LIBMD... " >&6; }
18916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18917 /* end confdefs.h. */
18919 #define ARCHIVE_SHA1_COMPILE_TEST
18920 #define ARCHIVE_CRYPTO_SHA1_LIBMD
18921 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18923 $(cat "$srcdir/libarchive/archive_crypto.c")
18926 main(int argc, char **argv)
18928 archive_sha1_ctx ctx;
18929 archive_sha1_init(&ctx);
18930 archive_sha1_update(&ctx, *argv, argc);
18931 archive_sha1_final(&ctx, NULL);
18936 if ac_fn_c_try_link "$LINENO"; then :
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18938 $as_echo "yes" >&6; }
18942 $as_echo "#define ARCHIVE_CRYPTO_SHA1_LIBMD 1" >>confdefs.h
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 $as_echo "no" >&6; }
18949 rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951 CPPFLAGS="$saved_CPPFLAGS"
18952 rm "check_crypto_md.h"
18956 if test "$found_SHA256" != yes; then
18957 saved_CPPFLAGS="$CPPFLAGS"
18958 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
18959 touch "check_crypto_md.h"
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD" >&5
18961 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_LIBMD... " >&6; }
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963 /* end confdefs.h. */
18965 #define ARCHIVE_SHA256_COMPILE_TEST
18966 #define ARCHIVE_CRYPTO_SHA256_LIBMD
18967 #define PLATFORM_CONFIG_H "check_crypto_md.h"
18969 $(cat "$srcdir/libarchive/archive_crypto.c")
18972 main(int argc, char **argv)
18974 archive_sha256_ctx ctx;
18975 archive_sha256_init(&ctx);
18976 archive_sha256_update(&ctx, *argv, argc);
18977 archive_sha256_final(&ctx, NULL);
18982 if ac_fn_c_try_link "$LINENO"; then :
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18984 $as_echo "yes" >&6; }
18988 $as_echo "#define ARCHIVE_CRYPTO_SHA256_LIBMD 1" >>confdefs.h
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18993 $as_echo "no" >&6; }
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997 CPPFLAGS="$saved_CPPFLAGS"
18998 rm "check_crypto_md.h"
19002 if test "$found_SHA512" != yes; then
19003 saved_CPPFLAGS="$CPPFLAGS"
19004 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
19005 touch "check_crypto_md.h"
19006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD" >&5
19007 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_LIBMD... " >&6; }
19008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19009 /* end confdefs.h. */
19011 #define ARCHIVE_SHA512_COMPILE_TEST
19012 #define ARCHIVE_CRYPTO_SHA512_LIBMD
19013 #define PLATFORM_CONFIG_H "check_crypto_md.h"
19015 $(cat "$srcdir/libarchive/archive_crypto.c")
19018 main(int argc, char **argv)
19020 archive_sha512_ctx ctx;
19021 archive_sha512_init(&ctx);
19022 archive_sha512_update(&ctx, *argv, argc);
19023 archive_sha512_final(&ctx, NULL);
19028 if ac_fn_c_try_link "$LINENO"; then :
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19030 $as_echo "yes" >&6; }
19034 $as_echo "#define ARCHIVE_CRYPTO_SHA512_LIBMD 1" >>confdefs.h
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19039 $as_echo "no" >&6; }
19041 rm -f core conftest.err conftest.$ac_objext \
19042 conftest$ac_exeext conftest.$ac_ext
19043 CPPFLAGS="$saved_CPPFLAGS"
19044 rm "check_crypto_md.h"
19047 if test "x$found_LIBMD" != "xyes"; then
19052 *mingw* | *cygwin*)
19054 if test "$found_MD5" != yes; then
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_WIN" >&5
19056 $as_echo_n "checking support for ARCHIVE_CRYPTO_MD5_WIN... " >&6; }
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058 /* end confdefs.h. */
19060 #define ARCHIVE_MD5_COMPILE_TEST
19061 #include <windows.h>
19062 #include <wincrypt.h>
19065 main(int argc, char **argv)
19074 if ac_fn_c_try_link "$LINENO"; then :
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19076 $as_echo "yes" >&6; }
19080 $as_echo "#define ARCHIVE_CRYPTO_MD5_WIN 1" >>confdefs.h
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19085 $as_echo "no" >&6; }
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19092 if test "$found_SHA1" != yes; then
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_WIN" >&5
19094 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA1_WIN... " >&6; }
19095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19098 #define ARCHIVE_SHA1_COMPILE_TEST
19099 #include <windows.h>
19100 #include <wincrypt.h>
19103 main(int argc, char **argv)
19108 return (CALG_SHA1);
19112 if ac_fn_c_try_link "$LINENO"; then :
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19114 $as_echo "yes" >&6; }
19118 $as_echo "#define ARCHIVE_CRYPTO_SHA1_WIN 1" >>confdefs.h
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19123 $as_echo "no" >&6; }
19125 rm -f core conftest.err conftest.$ac_objext \
19126 conftest$ac_exeext conftest.$ac_ext
19130 if test "$found_SHA256" != yes; then
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_WIN" >&5
19132 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA256_WIN... " >&6; }
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19136 #define ARCHIVE_SHA256_COMPILE_TEST
19137 #include <windows.h>
19138 #include <wincrypt.h>
19141 main(int argc, char **argv)
19146 return (CALG_SHA_256);
19150 if ac_fn_c_try_link "$LINENO"; then :
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19152 $as_echo "yes" >&6; }
19156 $as_echo "#define ARCHIVE_CRYPTO_SHA256_WIN 1" >>confdefs.h
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161 $as_echo "no" >&6; }
19163 rm -f core conftest.err conftest.$ac_objext \
19164 conftest$ac_exeext conftest.$ac_ext
19168 if test "$found_SHA384" != yes; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_WIN" >&5
19170 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA384_WIN... " >&6; }
19171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19172 /* end confdefs.h. */
19174 #define ARCHIVE_SHA384_COMPILE_TEST
19175 #include <windows.h>
19176 #include <wincrypt.h>
19179 main(int argc, char **argv)
19184 return (CALG_SHA_384);
19188 if ac_fn_c_try_link "$LINENO"; then :
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19194 $as_echo "#define ARCHIVE_CRYPTO_SHA384_WIN 1" >>confdefs.h
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19201 rm -f core conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext conftest.$ac_ext
19206 if test "$found_SHA512" != yes; then
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_WIN" >&5
19208 $as_echo_n "checking support for ARCHIVE_CRYPTO_SHA512_WIN... " >&6; }
19209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19210 /* end confdefs.h. */
19212 #define ARCHIVE_SHA512_COMPILE_TEST
19213 #include <windows.h>
19214 #include <wincrypt.h>
19217 main(int argc, char **argv)
19222 return (CALG_SHA_512);
19226 if ac_fn_c_try_link "$LINENO"; then :
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19228 $as_echo "yes" >&6; }
19232 $as_echo "#define ARCHIVE_CRYPTO_SHA512_WIN 1" >>confdefs.h
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19237 $as_echo "no" >&6; }
19239 rm -f core conftest.err conftest.$ac_objext \
19240 conftest$ac_exeext conftest.$ac_ext
19246 cat >confcache <<\_ACEOF
19247 # This file is a shell script that caches the results of configure
19248 # tests run on this system so they can be shared between configure
19249 # scripts and configure runs, see configure's option --config-cache.
19250 # It is not useful on other systems. If it contains results you don't
19251 # want to keep, you may remove or edit it.
19253 # config.status only pays attention to the cache file if you give it
19254 # the --recheck option to rerun configure.
19256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19258 # following values.
19262 # The following way of writing the cache mishandles newlines in values,
19263 # but we know of no workaround that is simple, portable, and efficient.
19264 # So, we kill variables containing newlines.
19265 # Ultrix sh set writes to stderr and can't be redirected directly,
19266 # and sets the high bit in the cache file unless we assign to the vars.
19268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19269 eval ac_val=\$$ac_var
19273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19277 _ | IFS | as_nl) ;; #(
19278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19279 *) { eval $ac_var=; unset $ac_var;} ;;
19285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19286 *${as_nl}ac_space=\ *)
19287 # `set' does not quote correctly, so add quotes: double-quote
19288 # substitution turns \\\\ into \\, and sed turns \\ into \.
19291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19294 # `set' quotes correctly as required by POSIX, so do not add quotes.
19295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19309 if test -w "$cache_file"; then
19310 if test "x$cache_file" != "x/dev/null"; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19312 $as_echo "$as_me: updating cache $cache_file" >&6;}
19313 if test ! -f "$cache_file" || test -h "$cache_file"; then
19314 cat confcache >"$cache_file"
19316 case $cache_file in #(
19318 mv -f confcache "$cache_file"$$ &&
19319 mv -f "$cache_file"$$ "$cache_file" ;; #(
19321 mv -f confcache "$cache_file" ;;
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19327 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19333 # Let make expand exec_prefix.
19334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19336 DEFS=-DHAVE_CONFIG_H
19341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19342 # 1. Remove the extension, and $U if already installed.
19343 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19344 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19345 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19346 # will be set to the directory where LIBOBJS objects are built.
19347 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19348 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19350 LIBOBJS=$ac_libobjs
19352 LTLIBOBJS=$ac_ltlibobjs
19355 if test -n "$EXEEXT"; then
19357 am__EXEEXT_FALSE='#'
19359 am__EXEEXT_TRUE='#'
19363 if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then
19364 as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.
19365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19367 if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then
19368 as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.
19369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19372 as_fn_error $? "conditional \"AMDEP\" was never defined.
19373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19375 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19376 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19379 if test -z "${BUILD_BSDTAR_TRUE}" && test -z "${BUILD_BSDTAR_FALSE}"; then
19380 as_fn_error $? "conditional \"BUILD_BSDTAR\" was never defined.
19381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19383 if test -z "${STATIC_BSDTAR_TRUE}" && test -z "${STATIC_BSDTAR_FALSE}"; then
19384 as_fn_error $? "conditional \"STATIC_BSDTAR\" was never defined.
19385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19387 if test -z "${BUILD_BSDCPIO_TRUE}" && test -z "${BUILD_BSDCPIO_FALSE}"; then
19388 as_fn_error $? "conditional \"BUILD_BSDCPIO\" was never defined.
19389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19391 if test -z "${STATIC_BSDCPIO_TRUE}" && test -z "${STATIC_BSDCPIO_FALSE}"; then
19392 as_fn_error $? "conditional \"STATIC_BSDCPIO\" was never defined.
19393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19396 : "${CONFIG_STATUS=./config.status}"
19398 ac_clean_files_save=$ac_clean_files
19399 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19401 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19403 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19405 # Generated by $as_me.
19406 # Run this file to recreate the current configuration.
19407 # Compiler output produced by configure, useful for debugging
19408 # configure, is in config.log if it exists.
19411 ac_cs_recheck=false
19414 SHELL=\${CONFIG_SHELL-$SHELL}
19417 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19418 ## -------------------- ##
19419 ## M4sh Initialization. ##
19420 ## -------------------- ##
19422 # Be more Bourne compatible
19423 DUALCASE=1; export DUALCASE # for MKS sh
19424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19427 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19428 # is contrary to our usage. Disable this feature.
19429 alias -g '${1+"$@"}'='"$@"'
19430 setopt NO_GLOB_SUBST
19432 case `(set -o) 2>/dev/null` in #(
19444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19445 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19448 # Prefer a ksh shell builtin over an external printf program on Solaris,
19449 # but without wasting forks for bash or zsh.
19450 if test -z "$BASH_VERSION$ZSH_VERSION" \
19451 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19452 as_echo='print -r --'
19453 as_echo_n='print -rn --'
19454 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19455 as_echo='printf %s\n'
19456 as_echo_n='printf %s'
19458 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19459 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19460 as_echo_n='/usr/ucb/echo -n'
19462 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19463 as_echo_n_body='eval
19467 expr "X$arg" : "X\\(.*\\)$as_nl";
19468 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19470 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19472 export as_echo_n_body
19473 as_echo_n='sh -c $as_echo_n_body as_echo'
19475 export as_echo_body
19476 as_echo='sh -c $as_echo_body as_echo'
19479 # The user is always right.
19480 if test "${PATH_SEPARATOR+set}" != set; then
19482 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19483 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19490 # We need space, tab and new line, in precisely that order. Quoting is
19491 # there to prevent editors from complaining about space-tab.
19492 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19493 # splitting by setting IFS to empty value.)
19496 # Find who we are. Look in the path if we contain no directory separator.
19499 *[\\/]* ) as_myself=$0 ;;
19500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501 for as_dir in $PATH
19504 test -z "$as_dir" && as_dir=.
19505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19511 # We did not find ourselves, most probably we were run as `sh COMMAND'
19512 # in which case we are not to be found in the path.
19513 if test "x$as_myself" = x; then
19516 if test ! -f "$as_myself"; then
19517 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19521 # Unset variables that we do not need and which cause bugs (e.g. in
19522 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19523 # suppresses any "Segmentation fault" message there. '((' could
19524 # trigger a bug in pdksh 5.2.14.
19525 for as_var in BASH_ENV ENV MAIL MAILPATH
19526 do eval test x\${$as_var+set} = xset \
19527 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19540 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19543 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19544 # ----------------------------------------
19545 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19546 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19547 # script with STATUS, using 1 if that was 0.
19550 as_status=$1; test $as_status -eq 0 && as_status=1
19552 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19553 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19555 $as_echo "$as_me: error: $2" >&2
19556 as_fn_exit $as_status
19560 # as_fn_set_status STATUS
19561 # -----------------------
19562 # Set $? to STATUS, without forking.
19563 as_fn_set_status ()
19566 } # as_fn_set_status
19568 # as_fn_exit STATUS
19569 # -----------------
19570 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19574 as_fn_set_status $1
19580 # Portably unset VAR.
19583 { eval $1=; unset $1;}
19585 as_unset=as_fn_unset
19586 # as_fn_append VAR VALUE
19587 # ----------------------
19588 # Append the text in VALUE to the end of the definition contained in VAR. Take
19589 # advantage of any shell optimizations that allow amortized linear growth over
19590 # repeated appends, instead of the typical quadratic growth present in naive
19592 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19593 eval 'as_fn_append ()
19604 # as_fn_arith ARG...
19605 # ------------------
19606 # Perform arithmetic evaluation on the ARGs, and store the result in the
19607 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19608 # must be portable across $(()) and expr.
19609 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19610 eval 'as_fn_arith ()
19617 as_val=`expr "$@" || test $? -eq 1`
19622 if expr a : '\(a\)' >/dev/null 2>&1 &&
19623 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19629 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19630 as_basename=basename
19635 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19641 as_me=`$as_basename -- "$0" ||
19642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19643 X"$0" : 'X\(//\)$' \| \
19644 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19646 sed '/^.*\/\([^/][^/]*\)\/*$/{
19660 # Avoid depending upon Character Ranges.
19661 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19662 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19663 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19664 as_cr_digits='0123456789'
19665 as_cr_alnum=$as_cr_Letters$as_cr_digits
19667 ECHO_C= ECHO_N= ECHO_T=
19668 case `echo -n x` in #(((((
19670 case `echo 'xy\c'` in
19671 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19673 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19680 rm -f conf$$ conf$$.exe conf$$.file
19681 if test -d conf$$.dir; then
19682 rm -f conf$$.dir/conf$$.file
19685 mkdir conf$$.dir 2>/dev/null
19687 if (echo >conf$$.file) 2>/dev/null; then
19688 if ln -s conf$$.file conf$$ 2>/dev/null; then
19690 # ... but there are two gotchas:
19691 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19692 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19693 # In both cases, we have to default to `cp -pR'.
19694 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19696 elif ln conf$$.file conf$$ 2>/dev/null; then
19704 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19705 rmdir conf$$.dir 2>/dev/null
19710 # Create "$as_dir" as a directory, including parents if necessary.
19715 -*) as_dir=./$as_dir;;
19717 test -d "$as_dir" || eval $as_mkdir_p || {
19721 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19722 *) as_qdir=$as_dir;;
19724 as_dirs="'$as_qdir' $as_dirs"
19725 as_dir=`$as_dirname -- "$as_dir" ||
19726 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19727 X"$as_dir" : 'X\(//\)[^/]' \| \
19728 X"$as_dir" : 'X\(//\)$' \| \
19729 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19730 $as_echo X"$as_dir" |
19731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19735 /^X\(\/\/\)[^/].*/{
19748 test -d "$as_dir" && break
19750 test -z "$as_dirs" || eval "mkdir $as_dirs"
19751 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19755 if mkdir -p . 2>/dev/null; then
19756 as_mkdir_p='mkdir -p "$as_dir"'
19758 test -d ./-p && rmdir ./-p
19763 # as_fn_executable_p FILE
19764 # -----------------------
19765 # Test if FILE is an executable regular file.
19766 as_fn_executable_p ()
19768 test -f "$1" && test -x "$1"
19769 } # as_fn_executable_p
19770 as_test_x='test -x'
19771 as_executable_p=as_fn_executable_p
19773 # Sed expression to map a string onto a valid CPP name.
19774 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19776 # Sed expression to map a string onto a valid variable name.
19777 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19781 ## ----------------------------------- ##
19782 ## Main body of $CONFIG_STATUS script. ##
19783 ## ----------------------------------- ##
19785 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19788 # Save the log message, to keep $0 and so on meaningful, and to
19789 # report actual input values of CONFIG_FILES etc. instead of their
19790 # values after options handling.
19792 This file was extended by libarchive $as_me 3.1.2, which was
19793 generated by GNU Autoconf 2.69. Invocation command line was
19795 CONFIG_FILES = $CONFIG_FILES
19796 CONFIG_HEADERS = $CONFIG_HEADERS
19797 CONFIG_LINKS = $CONFIG_LINKS
19798 CONFIG_COMMANDS = $CONFIG_COMMANDS
19801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19806 case $ac_config_files in *"
19807 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19810 case $ac_config_headers in *"
19811 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19816 # Files that config.status was made for.
19817 config_files="$ac_config_files"
19818 config_headers="$ac_config_headers"
19819 config_commands="$ac_config_commands"
19823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19825 \`$as_me' instantiates files and other configuration actions
19826 from templates according to the current configuration. Unless the files
19827 and actions are specified as TAGs, all are instantiated by default.
19829 Usage: $0 [OPTION]... [TAG]...
19831 -h, --help print this help, then exit
19832 -V, --version print version number and configuration settings, then exit
19833 --config print configuration, then exit
19834 -q, --quiet, --silent
19835 do not print progress messages
19836 -d, --debug don't remove temporary files
19837 --recheck update $as_me by reconfiguring in the same conditions
19838 --file=FILE[:TEMPLATE]
19839 instantiate the configuration file FILE
19840 --header=FILE[:TEMPLATE]
19841 instantiate the configuration header FILE
19843 Configuration files:
19846 Configuration headers:
19849 Configuration commands:
19852 Report bugs to <libarchive-discuss@googlegroups.com>."
19855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19856 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19858 libarchive config.status 3.1.2
19859 configured by $0, generated by GNU Autoconf 2.69,
19860 with options \\"\$ac_cs_config\\"
19862 Copyright (C) 2012 Free Software Foundation, Inc.
19863 This config.status script is free software; the Free Software Foundation
19864 gives unlimited permission to copy, distribute and modify it."
19871 test -n "\$AWK" || AWK=awk
19874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19875 # The default lists apply if the user does not specify any file.
19881 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19882 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19898 # Handling of the options.
19899 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19901 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19902 $as_echo "$ac_cs_version"; exit ;;
19903 --config | --confi | --conf | --con | --co | --c )
19904 $as_echo "$ac_cs_config"; exit ;;
19905 --debug | --debu | --deb | --de | --d | -d )
19907 --file | --fil | --fi | --f )
19910 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19911 '') as_fn_error $? "missing file argument" ;;
19913 as_fn_append CONFIG_FILES " '$ac_optarg'"
19914 ac_need_defaults=false;;
19915 --header | --heade | --head | --hea )
19918 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19920 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19921 ac_need_defaults=false;;
19923 # Conflict between --help and --header
19924 as_fn_error $? "ambiguous option: \`$1'
19925 Try \`$0 --help' for more information.";;
19926 --help | --hel | -h )
19927 $as_echo "$ac_cs_usage"; exit ;;
19928 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19929 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19932 # This is an error.
19933 -*) as_fn_error $? "unrecognized option: \`$1'
19934 Try \`$0 --help' for more information." ;;
19936 *) as_fn_append ac_config_targets " $1"
19937 ac_need_defaults=false ;;
19943 ac_configure_extra_args=
19945 if $ac_cs_silent; then
19947 ac_configure_extra_args="$ac_configure_extra_args --silent"
19951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19952 if \$ac_cs_recheck; then
19953 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19955 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19956 CONFIG_SHELL='$SHELL'
19957 export CONFIG_SHELL
19962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19966 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19967 ## Running $as_me. ##
19973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19977 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19980 # The HP-UX ksh and POSIX shell print the target directory to stdout
19981 # if CDPATH is set.
19982 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19984 sed_quote_subst='$sed_quote_subst'
19985 double_quote_subst='$double_quote_subst'
19986 delay_variable_subst='$delay_variable_subst'
19987 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19988 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19989 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19990 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19991 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19992 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19993 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19994 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19995 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19996 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19997 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19998 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19999 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20000 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20001 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20002 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20003 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20004 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20005 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20006 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20007 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20008 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20009 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20010 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20011 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20012 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20013 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20014 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20015 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20016 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20017 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20018 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20019 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20020 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20021 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20022 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20023 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20024 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20025 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20026 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20027 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20028 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20029 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20030 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20031 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20032 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20033 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20034 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20035 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20036 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20037 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20038 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20039 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20040 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20041 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20042 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20043 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20044 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"`'
20045 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20046 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20047 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20048 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20049 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20050 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20051 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20052 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20053 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20054 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20055 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20056 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20057 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20058 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20059 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20060 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20061 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20062 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20063 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20064 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20065 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20066 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20067 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20068 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20069 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20070 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20071 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20072 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20073 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20074 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20075 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20076 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20077 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20078 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20079 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20080 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20081 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20082 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20083 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20084 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20085 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20086 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20087 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20088 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20089 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20090 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20091 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20092 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20093 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20094 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20095 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20096 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20097 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20098 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20099 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20100 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20101 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20102 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20103 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20104 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20105 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20106 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20107 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20108 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20109 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20110 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20111 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20112 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20113 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20114 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20115 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20116 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20117 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20120 LTCFLAGS='$LTCFLAGS'
20121 compiler='$compiler_DEFAULT'
20123 # A function that is used when there is no print builtin or printf.
20124 func_fallback_echo ()
20126 eval 'cat <<_LTECHO_EOF
20131 # Quote evaled strings.
20148 deplibs_check_method \
20152 sharedlib_from_linklib_cmd \
20155 archiver_list_spec \
20161 lt_cv_sys_global_symbol_pipe \
20162 lt_cv_sys_global_symbol_to_cdecl \
20163 lt_cv_sys_global_symbol_to_c_name_address \
20164 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20165 nm_file_list_spec \
20166 lt_prog_compiler_no_builtin_flag \
20167 lt_prog_compiler_pic \
20168 lt_prog_compiler_wl \
20169 lt_prog_compiler_static \
20170 lt_cv_prog_compiler_c_o \
20179 export_dynamic_flag_spec \
20180 whole_archive_flag_spec \
20181 compiler_needs_object \
20183 allow_undefined_flag \
20184 no_undefined_flag \
20185 hardcode_libdir_flag_spec \
20186 hardcode_libdir_separator \
20190 variables_saved_for_relink \
20192 library_names_spec \
20194 install_override_mode \
20198 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20199 *[\\\\\\\`\\"\\\$]*)
20200 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20203 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20208 # Double-quote double-evaled strings.
20209 for var in reload_cmds \
20210 old_postinstall_cmds \
20211 old_postuninstall_cmds \
20213 extract_expsyms_cmds \
20214 old_archive_from_new_cmds \
20215 old_archive_from_expsyms_cmds \
20217 archive_expsym_cmds \
20219 module_expsym_cmds \
20220 export_symbols_cmds \
20224 postuninstall_cmds \
20226 sys_lib_search_path_spec \
20227 sys_lib_dlsearch_path_spec; do
20228 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20229 *[\\\\\\\`\\"\\\$]*)
20230 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20233 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20238 ac_aux_dir='$ac_aux_dir'
20239 xsi_shell='$xsi_shell'
20240 lt_shell_append='$lt_shell_append'
20242 # See if we are running on zsh, and set the options which allow our
20243 # commands through without removal of \ escapes INIT.
20244 if test -n "\${ZSH_VERSION+set}" ; then
20245 setopt NO_GLOB_SUBST
20251 TIMESTAMP='$TIMESTAMP'
20260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20262 # Handling of arguments.
20263 for ac_config_target in $ac_config_targets
20265 case $ac_config_target in
20266 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20267 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20268 "build/pkgconfig/libarchive.pc") CONFIG_FILES="$CONFIG_FILES build/pkgconfig/libarchive.pc" ;;
20269 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20270 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20272 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20277 # If the user did not use the arguments to specify the items to instantiate,
20278 # then the envvar interface is used. Set only those that are not.
20279 # We use the long form for the default assignment because of an extremely
20280 # bizarre bug on SunOS 4.1.3.
20281 if $ac_need_defaults; then
20282 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20283 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20284 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20287 # Have a temporary directory for convenience. Make it in the build tree
20288 # simply because there is no reason against having it here, and in addition,
20289 # creating and moving files from /tmp can sometimes cause problems.
20290 # Hook for its removal unless debugging.
20291 # Note that there is a small window in which the directory will not be cleaned:
20292 # after its creation but before its name has been assigned to `$tmp'.
20296 trap 'exit_status=$?
20297 : "${ac_tmp:=$tmp}"
20298 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20300 trap 'as_fn_exit 1' 1 2 13 15
20302 # Create a (secure) tmp directory for tmp files.
20305 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20309 tmp=./conf$$-$RANDOM
20310 (umask 077 && mkdir "$tmp")
20311 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20314 # Set up the scripts for CONFIG_FILES section.
20315 # No need to generate them if there are no CONFIG_FILES.
20316 # This happens for instance with `./config.status config.h'.
20317 if test -n "$CONFIG_FILES"; then
20320 ac_cr=`echo X | tr X '\015'`
20321 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20322 # But we know of no other shell where ac_cr would be empty at this
20323 # point, so we can use a bashism as a fallback.
20324 if test "x$ac_cr" = x; then
20325 eval ac_cr=\$\'\\r\'
20327 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20331 ac_cs_awk_cr=$ac_cr
20334 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20339 echo "cat >conf$$subs.awk <<_ACEOF" &&
20340 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20342 } >conf$$subs.sh ||
20343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20344 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20346 for ac_last_try in false false false false false :; do
20347 . ./conf$$subs.sh ||
20348 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20350 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20351 if test $ac_delim_n = $ac_delim_num; then
20353 elif $ac_last_try; then
20354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20356 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20359 rm -f conf$$subs.sh
20361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20362 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20366 s/^/S["/; s/!.*/"]=/
20376 s/\(.\{148\}\)..*/\1/
20378 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20383 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20390 s/\(.\{148\}\)..*/\1/
20392 s/["\\]/\\&/g; s/^/"/; s/$/"/
20396 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20401 ' <conf$$subs.awk | sed '
20406 ' >>$CONFIG_STATUS || ac_write_fail=1
20407 rm -f conf$$subs.awk
20408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20410 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20411 for (key in S) S_is_set[key] = 1
20417 nfields = split(line, field, "@")
20419 len = length(field[1])
20420 for (i = 2; i < nfields; i++) {
20422 keylen = length(key)
20423 if (S_is_set[key]) {
20425 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20426 len += length(value) + length(field[++i])
20437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20438 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20439 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20442 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20443 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20446 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20447 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20448 # trailing colons and then remove the whole line if VPATH becomes empty
20449 # (actually we leave an empty line to preserve line numbers).
20450 if test "x$srcdir" = x.; then
20451 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20470 fi # test -n "$CONFIG_FILES"
20472 # Set up the scripts for CONFIG_HEADERS section.
20473 # No need to generate them if there are no CONFIG_HEADERS.
20474 # This happens for instance with `./config.status Makefile'.
20475 if test -n "$CONFIG_HEADERS"; then
20476 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20480 # Transform confdefs.h into an awk script `defines.awk', embedded as
20481 # here-document in config.status, that substitutes the proper values into
20482 # config.h.in to produce config.h.
20484 # Create a delimiter string that does not exist in confdefs.h, to ease
20485 # handling of long lines.
20487 for ac_last_try in false false :; do
20488 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20489 if test -z "$ac_tt"; then
20491 elif $ac_last_try; then
20492 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20498 # For the awk script, D is an array of macro values keyed by name,
20499 # likewise P contains macro parameters if any. Preserve backslash
20500 # newline sequences.
20502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20504 s/.\{148\}/&'"$ac_delim"'/g
20507 s/^[ ]*#[ ]*define[ ][ ]*/ /
20514 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20516 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20521 D["\1"]=" \3\\\\\\n"\\/p
20523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20528 s/.\{148\}/&'"$ac_delim"'/g
20533 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20536 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20538 ' <confdefs.h | sed '
20539 s/'"$ac_delim"'/"\\\
20540 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20543 for (key in D) D_is_set[key] = 1
20546 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20548 split(line, arg, " ")
20549 if (arg[1] == "#") {
20553 defundef = substr(arg[1], 2)
20556 split(mac1, mac2, "(") #)
20558 prefix = substr(line, 1, index(line, defundef) - 1)
20559 if (D_is_set[macro]) {
20560 # Preserve the white space surrounding the "#".
20561 print prefix "define", macro P[macro] D[macro]
20564 # Replace #undef with comments. This is necessary, for example,
20565 # in the case of _POSIX_SOURCE, which is predefined and required
20566 # on some systems where configure will not decide to define it.
20567 if (defundef == "undef") {
20568 print "/*", prefix defundef, macro, "*/"
20576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20577 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20578 fi # test -n "$CONFIG_HEADERS"
20581 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20586 :[FHLC]) ac_mode=$ac_tag; continue;;
20588 case $ac_mode$ac_tag in
20590 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20591 :[FH]-) ac_tag=-:-;;
20592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20609 -) ac_f="$ac_tmp/stdin";;
20610 *) # Look for the file first in the build tree, then in the source tree
20611 # (if the path is not absolute). The absolute path cannot be DOS-style,
20612 # because $ac_f cannot contain `:'.
20616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20618 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20620 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20621 as_fn_append ac_file_inputs " '$ac_f'"
20624 # Let's still pretend it is `configure' which instantiates (i.e., don't
20625 # use $as_me), people would be surprised to read:
20626 # /* config.h. Generated by config.status. */
20627 configure_input='Generated from '`
20628 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20630 if test x"$ac_file" != x-; then
20631 configure_input="$ac_file. $configure_input"
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20633 $as_echo "$as_me: creating $ac_file" >&6;}
20635 # Neutralize special characters interpreted by sed in replacement strings.
20636 case $configure_input in #(
20637 *\&* | *\|* | *\\* )
20638 ac_sed_conf_input=`$as_echo "$configure_input" |
20639 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20640 *) ac_sed_conf_input=$configure_input;;
20644 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20650 ac_dir=`$as_dirname -- "$ac_file" ||
20651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20652 X"$ac_file" : 'X\(//\)[^/]' \| \
20653 X"$ac_file" : 'X\(//\)$' \| \
20654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20655 $as_echo X"$ac_file" |
20656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20660 /^X\(\/\/\)[^/].*/{
20673 as_dir="$ac_dir"; as_fn_mkdir_p
20677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20680 # A ".." for each directory in $ac_dir_suffix.
20681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20682 case $ac_top_builddir_sub in
20683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20687 ac_abs_top_builddir=$ac_pwd
20688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20689 # for backward compatibility:
20690 ac_top_builddir=$ac_top_build_prefix
20693 .) # We are building in place.
20695 ac_top_srcdir=$ac_top_builddir_sub
20696 ac_abs_top_srcdir=$ac_pwd ;;
20697 [\\/]* | ?:[\\/]* ) # Absolute name.
20698 ac_srcdir=$srcdir$ac_dir_suffix;
20699 ac_top_srcdir=$srcdir
20700 ac_abs_top_srcdir=$srcdir ;;
20701 *) # Relative name.
20702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20703 ac_top_srcdir=$ac_top_build_prefix$srcdir
20704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20716 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20717 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20719 ac_MKDIR_P=$MKDIR_P
20721 [\\/$]* | ?:[\\/]* ) ;;
20722 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20727 # If the template does not know about datarootdir, expand it.
20728 # FIXME: This hack should be removed a few years after 2.60.
20729 ac_datarootdir_hack=; ac_datarootdir_seen=
20740 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20741 *datarootdir*) ac_datarootdir_seen=yes;;
20742 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20744 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20747 ac_datarootdir_hack='
20748 s&@datadir@&$datadir&g
20749 s&@docdir@&$docdir&g
20750 s&@infodir@&$infodir&g
20751 s&@localedir@&$localedir&g
20752 s&@mandir@&$mandir&g
20753 s&\\\${datarootdir}&$datarootdir&g' ;;
20757 # Neutralize VPATH when `$srcdir' = `.'.
20758 # Shell code in configure.ac might set extrasub.
20759 # FIXME: do we really want to maintain this feature?
20760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20761 ac_sed_extra="$ac_vpsub
20764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20767 s|@configure_input@|$ac_sed_conf_input|;t t
20768 s&@top_builddir@&$ac_top_builddir_sub&;t t
20769 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20770 s&@srcdir@&$ac_srcdir&;t t
20771 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20772 s&@top_srcdir@&$ac_top_srcdir&;t t
20773 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20774 s&@builddir@&$ac_builddir&;t t
20775 s&@abs_builddir@&$ac_abs_builddir&;t t
20776 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20777 s&@INSTALL@&$ac_INSTALL&;t t
20778 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20779 $ac_datarootdir_hack
20781 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20782 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20784 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20785 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20787 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20789 which seems to be undefined. Please make sure it is defined" >&5
20790 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20791 which seems to be undefined. Please make sure it is defined" >&2;}
20793 rm -f "$ac_tmp/stdin"
20795 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20796 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20798 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20804 if test x"$ac_file" != x-; then
20806 $as_echo "/* $configure_input */" \
20807 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20808 } >"$ac_tmp/config.h" \
20809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20810 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20812 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20815 mv "$ac_tmp/config.h" "$ac_file" \
20816 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20819 $as_echo "/* $configure_input */" \
20820 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20821 || as_fn_error $? "could not create -" "$LINENO" 5
20823 # Compute "$ac_file"'s index in $config_headers.
20826 for _am_header in $config_headers :; do
20827 case $_am_header in
20828 $_am_arg | $_am_arg:* )
20831 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20834 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20835 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20836 X"$_am_arg" : 'X\(//\)[^/]' \| \
20837 X"$_am_arg" : 'X\(//\)$' \| \
20838 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20839 $as_echo X"$_am_arg" |
20840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20844 /^X\(\/\/\)[^/].*/{
20856 s/.*/./; q'`/stamp-h$_am_stamp_count
20859 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20860 $as_echo "$as_me: executing $ac_file commands" >&6;}
20865 case $ac_file$ac_mode in
20866 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20867 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20868 # are listed without --file. Let's play safe and only enable the eval
20869 # if we detect the quoting.
20870 case $CONFIG_FILES in
20871 *\'*) eval set x "$CONFIG_FILES" ;;
20872 *) set x $CONFIG_FILES ;;
20877 # Strip MF so we end up with the name of the file.
20878 mf=`echo "$mf" | sed -e 's/:.*$//'`
20879 # Check whether this is an Automake generated Makefile or not.
20880 # We used to match only the files named `Makefile.in', but
20881 # some people rename them; so instead we look at the file content.
20882 # Grep'ing the first line is not enough: some people post-process
20883 # each Makefile.in and add a new line on top of each file to say so.
20884 # Grep'ing the whole file is not good either: AIX grep has a line
20885 # limit of 2048, but all sed's we know have understand at least 4000.
20886 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20887 dirpart=`$as_dirname -- "$mf" ||
20888 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20889 X"$mf" : 'X\(//\)[^/]' \| \
20890 X"$mf" : 'X\(//\)$' \| \
20891 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20897 /^X\(\/\/\)[^/].*/{
20913 # Extract the definition of DEPDIR, am__include, and am__quote
20914 # from the Makefile without running `make'.
20915 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20916 test -z "$DEPDIR" && continue
20917 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20918 test -z "am__include" && continue
20919 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20920 # When using ansi2knr, U may be empty or an underscore; expand it
20921 U=`sed -n 's/^U = //p' < "$mf"`
20922 # Find all dependency output files, they are included files with
20923 # $(DEPDIR) in their names. We invoke sed twice because it is the
20924 # simplest approach to changing $(DEPDIR) to its actual value in the
20926 for file in `sed -n "
20927 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20928 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20929 # Make sure the directory exists.
20930 test -f "$dirpart/$file" && continue
20931 fdir=`$as_dirname -- "$file" ||
20932 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20933 X"$file" : 'X\(//\)[^/]' \| \
20934 X"$file" : 'X\(//\)$' \| \
20935 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20936 $as_echo X"$file" |
20937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20941 /^X\(\/\/\)[^/].*/{
20954 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20955 # echo "creating $dirpart/$file"
20956 echo '# dummy' > "$dirpart/$file"
20963 # See if we are running on zsh, and set the options which allow our
20964 # commands through without removal of \ escapes.
20965 if test -n "${ZSH_VERSION+set}" ; then
20966 setopt NO_GLOB_SUBST
20969 cfgfile="${ofile}T"
20970 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20973 cat <<_LT_EOF >> "$cfgfile"
20976 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20977 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20978 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20979 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20981 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20982 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20984 # Written by Gordon Matzigkeit, 1996
20986 # This file is part of GNU Libtool.
20988 # GNU Libtool is free software; you can redistribute it and/or
20989 # modify it under the terms of the GNU General Public License as
20990 # published by the Free Software Foundation; either version 2 of
20991 # the License, or (at your option) any later version.
20993 # As a special exception to the GNU General Public License,
20994 # if you distribute this file as part of a program or library that
20995 # is built using GNU Libtool, you may include this file under the
20996 # same distribution terms that you use for the rest of that program.
20998 # GNU Libtool is distributed in the hope that it will be useful,
20999 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21000 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21001 # GNU General Public License for more details.
21003 # You should have received a copy of the GNU General Public License
21004 # along with GNU Libtool; see the file COPYING. If not, a copy
21005 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21006 # obtained by writing to the Free Software Foundation, Inc.,
21007 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21010 # The names of the tagged configurations supported by this script.
21013 # ### BEGIN LIBTOOL CONFIG
21015 # Assembler program.
21018 # DLL creation program.
21019 DLLTOOL=$lt_DLLTOOL
21021 # Object dumper program.
21022 OBJDUMP=$lt_OBJDUMP
21024 # Which release of libtool.m4 was used?
21025 macro_version=$macro_version
21026 macro_revision=$macro_revision
21028 # Whether or not to build shared libraries.
21029 build_libtool_libs=$enable_shared
21031 # Whether or not to build static libraries.
21032 build_old_libs=$enable_static
21034 # What type of objects to build.
21037 # Whether or not to optimize for fast installation.
21038 fast_install=$enable_fast_install
21040 # Shell to use when invoking shell scripts.
21043 # An echo program that protects backslashes.
21046 # The PATH separator for the build system.
21047 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21050 host_alias=$host_alias
21054 # The build system.
21055 build_alias=$build_alias
21059 # A sed program that does not truncate output.
21062 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21063 Xsed="\$SED -e 1s/^X//"
21065 # A grep program that handles long lines.
21071 # A literal string matcher.
21074 # A BSD- or MS-compatible name lister.
21077 # Whether we need soft or hard links.
21080 # What is the maximum length of a command?
21081 max_cmd_len=$max_cmd_len
21083 # Object file suffix (normally "o").
21086 # Executable file suffix (normally "").
21089 # whether the shell understands "unset".
21092 # turn spaces into newlines.
21095 # turn newlines into spaces.
21098 # convert \$build file names to \$host format.
21099 to_host_file_cmd=$lt_cv_to_host_file_cmd
21101 # convert \$build files to toolchain format.
21102 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21104 # Method to check whether dependent libraries are shared objects.
21105 deplibs_check_method=$lt_deplibs_check_method
21107 # Command to use when deplibs_check_method = "file_magic".
21108 file_magic_cmd=$lt_file_magic_cmd
21110 # How to find potential files when deplibs_check_method = "file_magic".
21111 file_magic_glob=$lt_file_magic_glob
21113 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21114 want_nocaseglob=$lt_want_nocaseglob
21116 # Command to associate shared and link libraries.
21117 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21122 # Flags to create an archive.
21123 AR_FLAGS=$lt_AR_FLAGS
21125 # How to feed a file listing to the archiver.
21126 archiver_list_spec=$lt_archiver_list_spec
21128 # A symbol stripping program.
21131 # Commands used to install an old-style archive.
21133 old_postinstall_cmds=$lt_old_postinstall_cmds
21134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21136 # Whether to use a lock for old archive extraction.
21137 lock_old_archive_extraction=$lock_old_archive_extraction
21142 # LTCC compiler flags.
21143 LTCFLAGS=$lt_CFLAGS
21145 # Take the output of nm and produce a listing of raw symbols and C names.
21146 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21148 # Transform the output of nm in a proper C declaration.
21149 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21151 # Transform the output of nm in a C name address pair.
21152 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21154 # Transform the output of nm in a C name address pair when lib prefix is needed.
21155 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21157 # Specify filename containing input files for \$NM.
21158 nm_file_list_spec=$lt_nm_file_list_spec
21160 # The root where to search for dependent libraries,and in which our libraries should be installed.
21161 lt_sysroot=$lt_sysroot
21163 # The name of the directory that contains temporary libtool files.
21166 # Used to examine libraries when file_magic_cmd begins with "file".
21167 MAGIC_CMD=$MAGIC_CMD
21169 # Must we lock files when doing compilation?
21170 need_locks=$lt_need_locks
21173 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21175 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21176 DSYMUTIL=$lt_DSYMUTIL
21178 # Tool to change global to local symbols on Mac OS X.
21181 # Tool to manipulate fat objects and archives on Mac OS X.
21184 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21187 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21188 OTOOL64=$lt_OTOOL64
21190 # Old archive suffix (normally "a").
21193 # Shared library suffix (normally ".so").
21194 shrext_cmds=$lt_shrext_cmds
21196 # The commands to extract the exported symbol list from a shared archive.
21197 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21199 # Variables whose values should be saved in libtool wrapper scripts and
21200 # restored at link time.
21201 variables_saved_for_relink=$lt_variables_saved_for_relink
21203 # Do we need the "lib" prefix for modules?
21204 need_lib_prefix=$need_lib_prefix
21206 # Do we need a version for libraries?
21207 need_version=$need_version
21209 # Library versioning type.
21210 version_type=$version_type
21212 # Shared library runtime path variable.
21213 runpath_var=$runpath_var
21215 # Shared library path variable.
21216 shlibpath_var=$shlibpath_var
21218 # Is shlibpath searched before the hard-coded library search path?
21219 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21221 # Format of library name prefix.
21222 libname_spec=$lt_libname_spec
21224 # List of archive names. First name is the real one, the rest are links.
21225 # The last name is the one that the linker finds with -lNAME
21226 library_names_spec=$lt_library_names_spec
21228 # The coded name of the library, if different from the real name.
21229 soname_spec=$lt_soname_spec
21231 # Permission mode override for installation of shared libraries.
21232 install_override_mode=$lt_install_override_mode
21234 # Command to use after installation of a shared archive.
21235 postinstall_cmds=$lt_postinstall_cmds
21237 # Command to use after uninstallation of a shared archive.
21238 postuninstall_cmds=$lt_postuninstall_cmds
21240 # Commands used to finish a libtool library installation in a directory.
21241 finish_cmds=$lt_finish_cmds
21243 # As "finish_cmds", except a single script fragment to be evaled but
21245 finish_eval=$lt_finish_eval
21247 # Whether we should hardcode library paths into libraries.
21248 hardcode_into_libs=$hardcode_into_libs
21250 # Compile-time system search path for libraries.
21251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21253 # Run-time system search path for libraries.
21254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21256 # Whether dlopen is supported.
21257 dlopen_support=$enable_dlopen
21259 # Whether dlopen of programs is supported.
21260 dlopen_self=$enable_dlopen_self
21262 # Whether dlopen of statically linked programs is supported.
21263 dlopen_self_static=$enable_dlopen_self_static
21265 # Commands to strip libraries.
21266 old_striplib=$lt_old_striplib
21267 striplib=$lt_striplib
21270 # The linker used to build libraries.
21273 # How to create reloadable object files.
21274 reload_flag=$lt_reload_flag
21275 reload_cmds=$lt_reload_cmds
21277 # Commands used to build an old-style archive.
21278 old_archive_cmds=$lt_old_archive_cmds
21280 # A language specific compiler.
21283 # Is the compiler the GNU compiler?
21286 # Compiler flag to turn off builtin functions.
21287 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21289 # Additional compiler flags for building library objects.
21290 pic_flag=$lt_lt_prog_compiler_pic
21292 # How to pass a linker flag through the compiler.
21293 wl=$lt_lt_prog_compiler_wl
21295 # Compiler flag to prevent dynamic linking.
21296 link_static_flag=$lt_lt_prog_compiler_static
21298 # Does compiler simultaneously support -c and -o options?
21299 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21301 # Whether or not to add -lc for building shared libraries.
21302 build_libtool_need_lc=$archive_cmds_need_lc
21304 # Whether or not to disallow shared libs when runtime libs are static.
21305 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21307 # Compiler flag to allow reflexive dlopens.
21308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21310 # Compiler flag to generate shared objects directly from archives.
21311 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21313 # Whether the compiler copes with passing no objects directly.
21314 compiler_needs_object=$lt_compiler_needs_object
21316 # Create an old-style archive from a shared archive.
21317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21319 # Create a temporary old-style archive to link instead of a shared archive.
21320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21322 # Commands used to build a shared archive.
21323 archive_cmds=$lt_archive_cmds
21324 archive_expsym_cmds=$lt_archive_expsym_cmds
21326 # Commands used to build a loadable module if different from building
21327 # a shared archive.
21328 module_cmds=$lt_module_cmds
21329 module_expsym_cmds=$lt_module_expsym_cmds
21331 # Whether we are building with GNU ld or not.
21332 with_gnu_ld=$lt_with_gnu_ld
21334 # Flag that allows shared libraries with undefined symbols to be built.
21335 allow_undefined_flag=$lt_allow_undefined_flag
21337 # Flag that enforces no undefined symbols.
21338 no_undefined_flag=$lt_no_undefined_flag
21340 # Flag to hardcode \$libdir into a binary during linking.
21341 # This must work even if \$libdir does not exist
21342 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21344 # Whether we need a single "-rpath" flag with a separated argument.
21345 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21347 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21348 # DIR into the resulting binary.
21349 hardcode_direct=$hardcode_direct
21351 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21352 # DIR into the resulting binary and the resulting library dependency is
21353 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21354 # library is relocated.
21355 hardcode_direct_absolute=$hardcode_direct_absolute
21357 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21358 # into the resulting binary.
21359 hardcode_minus_L=$hardcode_minus_L
21361 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21362 # into the resulting binary.
21363 hardcode_shlibpath_var=$hardcode_shlibpath_var
21365 # Set to "yes" if building a shared library automatically hardcodes DIR
21366 # into the library and all subsequent libraries and executables linked
21368 hardcode_automatic=$hardcode_automatic
21370 # Set to yes if linker adds runtime paths of dependent libraries
21371 # to runtime path list.
21372 inherit_rpath=$inherit_rpath
21374 # Whether libtool must link a program against all its dependency libraries.
21375 link_all_deplibs=$link_all_deplibs
21377 # Set to "yes" if exported symbols are required.
21378 always_export_symbols=$always_export_symbols
21380 # The commands to list exported symbols.
21381 export_symbols_cmds=$lt_export_symbols_cmds
21383 # Symbols that should not be listed in the preloaded symbols.
21384 exclude_expsyms=$lt_exclude_expsyms
21386 # Symbols that must always be exported.
21387 include_expsyms=$lt_include_expsyms
21389 # Commands necessary for linking programs (against libraries) with templates.
21390 prelink_cmds=$lt_prelink_cmds
21392 # Commands necessary for finishing linking programs.
21393 postlink_cmds=$lt_postlink_cmds
21395 # Specify filename containing input files.
21396 file_list_spec=$lt_file_list_spec
21398 # How to hardcode a shared library path into an executable.
21399 hardcode_action=$hardcode_action
21401 # ### END LIBTOOL CONFIG
21407 cat <<\_LT_EOF >> "$cfgfile"
21408 # AIX sometimes has problems with the GCC collect2 program. For some
21409 # reason, if we set the COLLECT_NAMES environment variable, the problems
21410 # vanish in a puff of smoke.
21411 if test "X${COLLECT_NAMES+set}" != Xset; then
21413 export COLLECT_NAMES
21420 ltmain="$ac_aux_dir/ltmain.sh"
21423 # We use sed instead of cat because bash on DJGPP gets confused if
21424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21425 # text mode, it properly converts lines to CR/LF. This bash problem
21426 # is reportedly fixed, but why not run on old versions too?
21427 sed '$q' "$ltmain" >> "$cfgfile" \
21428 || (rm -f "$cfgfile"; exit 1)
21430 if test x"$xsi_shell" = xyes; then
21431 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21435 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21436 \ * ) func_dirname_result="${3}" ;;\
21438 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21439 && mv -f "$cfgfile.tmp" "$cfgfile" \
21440 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21441 test 0 -eq $? || _lt_function_replace_fail=:
21444 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21447 \ func_basename_result="${1##*/}"\
21448 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21449 && mv -f "$cfgfile.tmp" "$cfgfile" \
21450 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21451 test 0 -eq $? || _lt_function_replace_fail=:
21454 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21455 func_dirname_and_basename ()\
21458 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21459 \ * ) func_dirname_result="${3}" ;;\
21461 \ func_basename_result="${1##*/}"\
21462 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21463 && mv -f "$cfgfile.tmp" "$cfgfile" \
21464 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21465 test 0 -eq $? || _lt_function_replace_fail=:
21468 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21471 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21472 \ # positional parameters, so assign one to ordinary parameter first.\
21473 \ func_stripname_result=${3}\
21474 \ func_stripname_result=${func_stripname_result#"${1}"}\
21475 \ func_stripname_result=${func_stripname_result%"${2}"}\
21476 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21477 && mv -f "$cfgfile.tmp" "$cfgfile" \
21478 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21479 test 0 -eq $? || _lt_function_replace_fail=:
21482 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21483 func_split_long_opt ()\
21485 \ func_split_long_opt_name=${1%%=*}\
21486 \ func_split_long_opt_arg=${1#*=}\
21487 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21488 && mv -f "$cfgfile.tmp" "$cfgfile" \
21489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21490 test 0 -eq $? || _lt_function_replace_fail=:
21493 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21494 func_split_short_opt ()\
21496 \ func_split_short_opt_arg=${1#??}\
21497 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21498 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21499 && mv -f "$cfgfile.tmp" "$cfgfile" \
21500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21501 test 0 -eq $? || _lt_function_replace_fail=:
21504 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21508 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21509 \ *) func_lo2o_result=${1} ;;\
21511 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21512 && mv -f "$cfgfile.tmp" "$cfgfile" \
21513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21514 test 0 -eq $? || _lt_function_replace_fail=:
21517 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21520 func_xform_result=${1%.*}.lo\
21521 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21522 && mv -f "$cfgfile.tmp" "$cfgfile" \
21523 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21524 test 0 -eq $? || _lt_function_replace_fail=:
21527 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21530 func_arith_result=$(( $* ))\
21531 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21532 && mv -f "$cfgfile.tmp" "$cfgfile" \
21533 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21534 test 0 -eq $? || _lt_function_replace_fail=:
21537 sed -e '/^func_len ()$/,/^} # func_len /c\
21540 func_len_result=${#1}\
21541 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21542 && mv -f "$cfgfile.tmp" "$cfgfile" \
21543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21544 test 0 -eq $? || _lt_function_replace_fail=:
21548 if test x"$lt_shell_append" = xyes; then
21549 sed -e '/^func_append ()$/,/^} # func_append /c\
21552 eval "${1}+=\\${2}"\
21553 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21554 && mv -f "$cfgfile.tmp" "$cfgfile" \
21555 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21556 test 0 -eq $? || _lt_function_replace_fail=:
21559 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21560 func_append_quoted ()\
21562 \ func_quote_for_eval "${2}"\
21563 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21564 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21565 && mv -f "$cfgfile.tmp" "$cfgfile" \
21566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21567 test 0 -eq $? || _lt_function_replace_fail=:
21570 # Save a `func_append' function call where possible by direct use of '+='
21571 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21572 && mv -f "$cfgfile.tmp" "$cfgfile" \
21573 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21574 test 0 -eq $? || _lt_function_replace_fail=:
21576 # Save a `func_append' function call even when '+=' is not available
21577 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21578 && mv -f "$cfgfile.tmp" "$cfgfile" \
21579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21580 test 0 -eq $? || _lt_function_replace_fail=:
21583 if test x"$_lt_function_replace_fail" = x":"; then
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21585 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21589 mv -f "$cfgfile" "$ofile" ||
21590 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21601 ac_clean_files=$ac_clean_files_save
21603 test $ac_write_fail = 0 ||
21604 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21607 # configure is writing to config.log, and then calls config.status.
21608 # config.status does its own redirection, appending to config.log.
21609 # Unfortunately, on DOS this fails, as config.log is still kept open
21610 # by configure, so config.status won't be able to write to it; its
21611 # output is simply discarded. So we exec the FD to /dev/null,
21612 # effectively closing config.log, so it can be properly (re)opened and
21613 # appended to by config.status. When coming back to configure, we
21614 # need to make the FD available again.
21615 if test "$no_create" != yes; then
21617 ac_config_status_args=
21618 test "$silent" = yes &&
21619 ac_config_status_args="$ac_config_status_args --quiet"
21621 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21623 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21624 # would make configure fail if this is the last instruction.
21625 $ac_cs_success || as_fn_exit 1
21627 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21629 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}