2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libarchive 3.6.2.
5 # Report bugs to <libarchive-discuss@googlegroups.com>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: libarchive-discuss@googlegroups.com about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='libarchive'
623 PACKAGE_TARNAME='libarchive'
624 PACKAGE_VERSION='3.6.2'
625 PACKAGE_STRING='libarchive 3.6.2'
626 PACKAGE_BUGREPORT='libarchive-discuss@googlegroups.com'
629 ac_unique_file="libarchive"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
663 ac_subst_vars='am__EXEEXT_FALSE
667 INC_FREEBSD_ACL_FALSE
739 INC_CYGWIN_FILES_FALSE
740 INC_CYGWIN_FILES_TRUE
741 INC_WINDOWS_FILES_FALSE
742 INC_WINDOWS_FILES_TRUE
751 LIBARCHIVE_VERSION_NUMBER
752 LIBARCHIVE_VERSION_STRING
753 BSDCAT_VERSION_STRING
754 BSDTAR_VERSION_STRING
755 BSDCPIO_VERSION_STRING
756 ARCHIVE_LIBTOOL_VERSION
758 MAINTAINER_MODE_FALSE
775 INSTALL_STRIP_PROGRAM
818 program_transform_name
832 enable_option_checking
834 enable_maintainer_mode
835 enable_dependency_tracking
863 enable_posix_regex_lib
868 ac_precious_vars='build_alias
885 # Initialize some variables set by options.
887 ac_init_version=false
888 ac_unrecognized_opts=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
899 program_transform_name=s,x,x,
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 runstatedir='${localstatedir}/run'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
938 # If the previous option needs an argument, assign it.
939 if test -n "$ac_prev"; then
940 eval $ac_prev=\$ac_option
946 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 case $ac_dashdash$ac_option in
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 -build | --build | --buil | --bui | --bu)
961 ac_prev=build_alias ;;
962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963 build_alias=$ac_optarg ;;
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970 cache_file=$ac_optarg ;;
973 cache_file=config.cache ;;
975 -datadir | --datadir | --datadi | --datad)
977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
978 datadir=$ac_optarg ;;
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
987 -disable-* | --disable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: \`$ac_useropt'"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1001 eval enable_$ac_useropt=no ;;
1003 -docdir | --docdir | --docdi | --doc | --do)
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
1013 -enable-* | --enable-*)
1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_$ac_useropt"
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1027 eval enable_$ac_useropt=\$ac_optarg ;;
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
1036 exec_prefix=$ac_optarg ;;
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
1049 -host | --host | --hos | --ho)
1050 ac_prev=host_alias ;;
1051 -host=* | --host=* | --hos=* | --ho=*)
1052 host_alias=$ac_optarg ;;
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058 htmldir=$ac_optarg ;;
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
1065 includedir=$ac_optarg ;;
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1070 infodir=$ac_optarg ;;
1072 -libdir | --libdir | --libdi | --libd)
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1075 libdir=$ac_optarg ;;
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
1082 libexecdir=$ac_optarg ;;
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
1090 | --localstate | --localstat | --localsta | --localst | --locals)
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1094 localstatedir=$ac_optarg ;;
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1099 mandir=$ac_optarg ;;
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1106 | --no-cr | --no-c | -n)
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1120 oldincludedir=$ac_optarg ;;
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1125 prefix=$ac_optarg ;;
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1132 program_prefix=$ac_optarg ;;
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1139 program_suffix=$ac_optarg ;;
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
1156 program_transform_name=$ac_optarg ;;
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1163 -psdir | --psdir | --psdi | --psd | --ps)
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1172 -runstatedir | --runstatedir | --runstatedi | --runstated \
1173 | --runstate | --runstat | --runsta | --runst | --runs \
1174 | --run | --ru | --r)
1175 ac_prev=runstatedir ;;
1176 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1177 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1178 | --run=* | --ru=* | --r=*)
1179 runstatedir=$ac_optarg ;;
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 sbindir=$ac_optarg ;;
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 sharedstatedir=$ac_optarg ;;
1198 -site | --site | --sit)
1200 -site=* | --site=* | --sit=*)
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: \`$ac_useropt'"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1240 eval with_$ac_useropt=\$ac_optarg ;;
1242 -without-* | --without-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: \`$ac_useropt'"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1256 eval with_$ac_useropt=no ;;
1259 # Obsolete; use --with-x.
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1276 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1277 Try \`$0 --help' for more information"
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 case $ac_envvar in #(
1284 '' | [0-9]* | *[!_$as_cr_alnum]* )
1285 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1291 # FIXME: should be removed in autoconf 3.0.
1292 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 as_fn_error $? "missing argument to $ac_option"
1306 if test -n "$ac_unrecognized_opts"; then
1307 case $enable_option_checking in
1309 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1310 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 # Check all directory arguments for consistency.
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir runstatedir
1320 eval ac_val=\$$ac_var
1321 # Remove trailing slashes.
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1327 # Be sure to have absolute directory names.
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1340 target=$target_alias
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
1346 elif test "x$build_alias" != "x$host_alias"; then
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1354 test "$silent" = yes && exec 6>/dev/null
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di=`ls -di .` &&
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360 as_fn_error $? "working directory cannot be determined"
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 as_fn_error $? "pwd does not report name of working directory"
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374 printf "%s\n" X"$as_myself" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1397 ac_srcdir_defaulted=no
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1407 # When building in place, set srcdir=.
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 # Remove unnecessary trailing slashes from srcdir.
1412 # Double slashes in file names in object file debugging info
1413 # mess up M-x gdb in Emacs.
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1425 # Report the --help message.
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1431 \`configure' configures libarchive 3.6.2 to adapt to many kinds of systems.
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1438 Defaults for the options are specified in brackets.
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1462 For better control, use the options below.
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1472 --libdir=DIR object code libraries [EPREFIX/lib]
1473 --includedir=DIR C header files [PREFIX/include]
1474 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1475 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1476 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1477 --infodir=DIR info documentation [DATAROOTDIR/info]
1478 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1479 --mandir=DIR man documentation [DATAROOTDIR/man]
1480 --docdir=DIR documentation root [DATAROOTDIR/doc/libarchive]
1481 --htmldir=DIR html documentation [DOCDIR]
1482 --dvidir=DIR dvi documentation [DOCDIR]
1483 --pdfdir=DIR pdf documentation [DOCDIR]
1484 --psdir=DIR ps documentation [DOCDIR]
1490 --program-prefix=PREFIX prepend PREFIX to installed program names
1491 --program-suffix=SUFFIX append SUFFIX to installed program names
1492 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495 --build=BUILD configure for building on BUILD [guessed]
1496 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1500 if test -n "$ac_init_help"; then
1501 case $ac_init_help in
1502 short | recursive ) echo "Configuration of libarchive 3.6.2:";;
1507 --disable-option-checking ignore unrecognized --enable/--with options
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510 --enable-silent-rules less verbose build output (undo: "make V=1")
1511 --disable-silent-rules verbose build output (undo: "make V=0")
1512 --disable-maintainer-mode
1513 disable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-dependency-tracking
1516 do not reject slow dependency extractors
1517 --disable-dependency-tracking
1518 speeds up one-time build
1519 --enable-shared[=PKGS] build shared libraries [default=yes]
1520 --enable-static[=PKGS] build static libraries [default=yes]
1521 --enable-fast-install[=PKGS]
1522 optimize for fast installation [default=yes]
1523 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --enable-bsdtar enable build of bsdtar (default)
1525 --enable-bsdtar=static force static build of bsdtar
1526 --enable-bsdtar=shared force dynamic build of bsdtar
1527 --disable-bsdtar disable build of bsdtar
1528 --enable-bsdcat enable build of bsdcat (default)
1529 --enable-bsdcat=static force static build of bsdcat
1530 --enable-bsdcat=shared force dynamic build of bsdcat
1531 --disable-bsdcat disable build of bsdcat
1532 --enable-bsdcpio enable build of bsdcpio (default)
1533 --enable-bsdcpio=static static build of bsdcpio
1534 --enable-bsdcpio=shared dynamic build of bsdcpio
1535 --disable-bsdcpio disable build of bsdcpio
1536 --disable-rpath do not hardcode runtime library paths
1537 --enable-posix-regex-lib
1538 choose what library to use for POSIX regular
1539 expression support (default: auto)
1540 --enable-posix-regex-lib=libc
1541 use libc POSIX regular expression support
1542 --enable-posix-regex-lib=libregex
1543 use libregex POSIX regular expression support
1544 --enable-posix-regex-lib=libpcreposix
1545 use libpcreposix POSIX regular expression support
1546 --disable-posix-regex-lib
1547 don't enable POSIX regular expression support
1548 --disable-xattr Disable Extended Attributes support (default: check)
1549 --disable-acl Disable ACL support (default: check)
1550 --disable-largefile omit support for large files
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1555 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1557 --with-aix-soname=aix|svr4|both
1558 shared library versioning (aka "SONAME") variant to
1559 provide on AIX, [default=aix].
1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1562 compiler's sysroot if not specified).
1563 --without-zlib Don't build support for gzip through zlib
1564 --without-bz2lib Don't build support for bzip2 through bz2lib
1565 --without-libb2 Don't build support for BLAKE2 through libb2
1566 --without-iconv Don't try to link against iconv
1567 --with-gnu-ld assume the C compiler uses GNU ld default=no
1568 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1569 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1570 --without-lz4 Don't build support for lz4 through liblz4
1571 --without-zstd Don't build support for zstd through libzstd
1572 --without-lzma Don't build support for xz through lzma
1573 --with-lzo2 Build with LZO support from liblzo2
1574 --without-cng Don't build support of CNG(Crypto Next Generation)
1575 --with-mbedtls Build with crypto support from mbed TLS
1576 --with-nettle Build with crypto support from Nettle
1577 --without-openssl Don't build support for mtree and xar hashes through
1579 --without-xml2 Don't build support for xar through libxml2
1580 --without-expat Don't build support for xar through expat
1582 Some influential environment variables:
1583 CC C compiler command
1584 CFLAGS C compiler flags
1585 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1586 nonstandard directory <lib dir>
1587 LIBS libraries to pass to the linker, e.g. -l<library>
1588 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1589 you have headers in a nonstandard directory <include dir>
1592 User-defined run-time library search path.
1593 PKG_CONFIG path to pkg-config utility
1595 directories to add to pkg-config's search path
1597 path overriding pkg-config's built-in search path
1599 C compiler flags for LIBXML2_PC, overriding pkg-config
1601 linker flags for LIBXML2_PC, overriding pkg-config
1603 Use these variables to override the choices made by `configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1606 Report bugs to <libarchive-discuss@googlegroups.com>.
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1636 .) # We are building in place.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for configure.gnu first; this name is used for a wrapper for
1653 # Metaconfig's "Configure" on case-insensitive file systems.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1670 libarchive configure 3.6.2
1671 generated by GNU Autoconf 2.71
1673 Copyright (C) 2021 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam
1691 if { { ac_try="$ac_compile"
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext
1713 printf "%s\n" "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_cpp LINENO
1724 # ----------------------
1725 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 printf "%s\n" "$ac_try_echo"; } >&5
1736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } > conftest.i && {
1745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1751 printf "%s\n" "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 printf %s "checking for $2... " >&6; }
1770 if eval test \${$3+y}
1772 printf %s "(cached) " >&6
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"
1785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 printf "%s\n" "$ac_res" >&6; }
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792 } # ac_fn_c_check_header_compile
1794 # ac_fn_c_try_link LINENO
1795 # -----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded.
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1801 if { { ac_try="$ac_link"
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 printf "%s\n" "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>conftest.err
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest$ac_exeext && {
1820 test "$cross_compiling" = yes ||
1821 test -x conftest$ac_exeext
1826 printf "%s\n" "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_c_try_link
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 printf %s "checking for $2... " >&6; }
1849 if eval test \${$3+y}
1851 printf %s "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1857 #define $2 innocuous_$2
1859 /* System header to define __stub macros and hopefully few prototypes,
1860 which can conflict with char $2 (); below. */
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1887 if ac_fn_c_try_link "$LINENO"
1893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1894 conftest$ac_exeext conftest.$ac_ext
1897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 printf "%s\n" "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 } # ac_fn_c_check_func
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1906 # executables *can* be run.
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { { ac_try="$ac_link"
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 printf "%s\n" "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>&5
1919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921 { { case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 printf "%s\n" "$ac_try_echo"; } >&5
1927 (eval "$ac_try") 2>&5
1929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; }; }
1934 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1935 printf "%s\n" "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1938 ac_retval=$ac_status
1940 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 as_fn_set_status $ac_retval
1946 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1947 # -------------------------------------------
1948 # Tests whether TYPE exists after having included INCLUDES, setting cache
1949 # variable VAR accordingly.
1950 ac_fn_c_check_type ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 printf %s "checking for $2... " >&6; }
1955 if eval test \${$3+y}
1957 printf %s "(cached) " >&6
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1972 if ac_fn_c_try_compile "$LINENO"
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"
1992 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 printf "%s\n" "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001 } # ac_fn_c_check_type
2003 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2004 # ----------------------------------------------------
2005 # Tries to find if the field MEMBER exists in type AGGR, after including
2006 # INCLUDES, setting cache variable VAR accordingly.
2007 ac_fn_c_check_member ()
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2011 printf %s "checking for $2.$3... " >&6; }
2012 if eval test \${$4+y}
2014 printf %s "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2029 if ac_fn_c_try_compile "$LINENO"
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2040 if (sizeof ac_aggr.$3)
2046 if ac_fn_c_try_compile "$LINENO"
2052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 printf "%s\n" "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_member
2063 # ac_fn_c_find_intX_t LINENO BITS VAR
2064 # -----------------------------------
2065 # Finds a signed integer type with width BITS, setting cache variable VAR
2067 ac_fn_c_find_intX_t ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2071 printf %s "checking for int$2_t... " >&6; }
2072 if eval test \${$3+y}
2074 printf %s "(cached) " >&6
2077 # Order is important - never check a type that is potentially smaller
2078 # than half of the expected target width.
2079 for ac_type in int$2_t 'int' 'long int' \
2080 'long long int' 'short int' 'signed char'; do
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $ac_includes_default
2084 enum { N = $2 / 2 - 1 };
2088 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2090 return test_array [0];
2096 if ac_fn_c_try_compile "$LINENO"
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $ac_includes_default
2101 enum { N = $2 / 2 - 1 };
2105 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2106 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2108 return test_array [0];
2114 if ac_fn_c_try_compile "$LINENO"
2122 eval "$3=\$ac_type" ;;
2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 if eval test \"x\$"$3"\" = x"no"
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 printf "%s\n" "$ac_res" >&6; }
2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141 } # ac_fn_c_find_intX_t
2143 # ac_fn_c_find_uintX_t LINENO BITS VAR
2144 # ------------------------------------
2145 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2147 ac_fn_c_find_uintX_t ()
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2151 printf %s "checking for uint$2_t... " >&6; }
2152 if eval test \${$3+y}
2154 printf %s "(cached) " >&6
2157 # Order is important - never check a type that is potentially smaller
2158 # than half of the expected target width.
2159 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2160 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2163 $ac_includes_default
2167 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile "$LINENO"
2181 eval "$3=\$ac_type" ;;
2184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2185 if eval test \"x\$"$3"\" = x"no"
2194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 printf "%s\n" "$ac_res" >&6; }
2196 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 } # ac_fn_c_find_uintX_t
2200 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2201 # ------------------------------------------------------------------
2202 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2203 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 as_decl_name=`echo $2|sed 's/ *(.*//'`
2208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2209 printf %s "checking whether $as_decl_name is declared... " >&6; }
2210 if eval test \${$3+y}
2212 printf %s "(cached) " >&6
2214 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2215 eval ac_save_FLAGS=\$$6
2216 as_fn_append $6 " $5"
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2223 #ifndef $as_decl_name
2225 (void) $as_decl_use;
2227 (void) $as_decl_name;
2235 if ac_fn_c_try_compile "$LINENO"
2241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 eval $6=\$ac_save_FLAGS
2246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 printf "%s\n" "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 } # ac_fn_check_decl
2252 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2253 # --------------------------------------------
2254 # Tries to find the compile-time value of EXPR in a program that includes
2255 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2257 ac_fn_c_compute_int ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 if test "$cross_compiling" = yes; then
2261 # Depending upon the size, compute the lo and hi bounds.
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2268 static int test_array [1 - 2 * !(($2) >= 0)];
2270 return test_array [0];
2276 if ac_fn_c_try_compile "$LINENO"
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2288 return test_array [0];
2294 if ac_fn_c_try_compile "$LINENO"
2296 ac_hi=$ac_mid; break
2298 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2299 if test $ac_lo -le $ac_mid; then
2303 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2314 static int test_array [1 - 2 * !(($2) < 0)];
2316 return test_array [0];
2322 if ac_fn_c_try_compile "$LINENO"
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2332 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2334 return test_array [0];
2340 if ac_fn_c_try_compile "$LINENO"
2342 ac_lo=$ac_mid; break
2344 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2345 if test $ac_mid -le $ac_hi; then
2349 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2356 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2359 # Binary search between lo and hi bounds.
2360 while test "x$ac_lo" != "x$ac_hi"; do
2361 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2368 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2370 return test_array [0];
2376 if ac_fn_c_try_compile "$LINENO"
2380 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2385 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2392 static long int longval (void) { return $2; }
2393 static unsigned long int ulongval (void) { return $2; }
2400 FILE *f = fopen ("conftest.val", "w");
2405 long int i = longval ();
2408 fprintf (f, "%ld", i);
2412 unsigned long int i = ulongval ();
2415 fprintf (f, "%lu", i);
2417 /* Do not output a trailing newline, as this causes \r\n confusion
2418 on some platforms. */
2419 return ferror (f) || fclose (f) != 0;
2425 if ac_fn_c_try_run "$LINENO"
2427 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2432 conftest.$ac_objext conftest.beam conftest.$ac_ext
2436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 as_fn_set_status $ac_retval
2439 } # ac_fn_c_compute_int
2440 ac_configure_args_raw=
2445 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2447 as_fn_append ac_configure_args_raw " '$ac_arg'"
2450 case $ac_configure_args_raw in
2454 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2455 ac_unsafe_a="$ac_unsafe_z#~"
2456 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2457 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2460 cat >config.log <<_ACEOF
2461 This file contains any messages produced by compilers while
2462 running configure, to aid debugging if configure makes a mistake.
2464 It was created by libarchive $as_me 3.6.2, which was
2465 generated by GNU Autoconf 2.71. Invocation command line was
2467 $ $0$ac_configure_args_raw
2477 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2478 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2479 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2480 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2481 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2483 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2484 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2486 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2487 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2488 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2489 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2490 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2491 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2492 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 case $as_dir in #(((
2503 *) as_dir=$as_dir/ ;;
2505 printf "%s\n" "PATH: $as_dir"
2521 # Keep a trace of the command line.
2522 # Strip out --no-create and --no-recursion so they do not pile up.
2523 # Strip out --silent because we don't want to record it for future runs.
2524 # Also quote any args containing shell meta-characters.
2525 # Make two passes to allow for proper duplicate-argument suppression.
2529 ac_must_keep_next=false
2535 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2537 | -silent | --silent | --silen | --sile | --sil)
2540 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2543 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2545 as_fn_append ac_configure_args1 " '$ac_arg'"
2546 if test $ac_must_keep_next = true; then
2547 ac_must_keep_next=false # Got value, back to normal.
2550 *=* | --config-cache | -C | -disable-* | --disable-* \
2551 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2552 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2553 | -with-* | --with-* | -without-* | --without-* | --x)
2554 case "$ac_configure_args0 " in
2555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2558 -* ) ac_must_keep_next=true ;;
2561 as_fn_append ac_configure_args " '$ac_arg'"
2566 { ac_configure_args0=; unset ac_configure_args0;}
2567 { ac_configure_args1=; unset ac_configure_args1;}
2569 # When interrupted or exit'd, cleanup temporary files, and complete
2570 # config.log. We remove comments because anyway the quotes in there
2571 # would cause problems or look ugly.
2572 # WARNING: Use '\'' to represent an apostrophe within the trap.
2573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2574 trap 'exit_status=$?
2577 # Save into config.log some information that might help in debugging.
2581 printf "%s\n" "## ---------------- ##
2582 ## Cache variables. ##
2583 ## ---------------- ##"
2585 # The following way of writing the cache mishandles newlines in values,
2587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2588 eval ac_val=\$$ac_var
2592 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2593 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2596 _ | IFS | as_nl) ;; #(
2597 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2598 *) { eval $ac_var=; unset $ac_var;} ;;
2603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2604 *${as_nl}ac_space=\ *)
2606 "s/'\''/'\''\\\\'\'''\''/g;
2607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2610 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2617 printf "%s\n" "## ----------------- ##
2618 ## Output variables. ##
2619 ## ----------------- ##"
2621 for ac_var in $ac_subst_vars
2623 eval ac_val=\$$ac_var
2625 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627 printf "%s\n" "$ac_var='\''$ac_val'\''"
2631 if test -n "$ac_subst_files"; then
2632 printf "%s\n" "## ------------------- ##
2633 ## File substitutions. ##
2634 ## ------------------- ##"
2636 for ac_var in $ac_subst_files
2638 eval ac_val=\$$ac_var
2640 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2642 printf "%s\n" "$ac_var='\''$ac_val'\''"
2647 if test -s confdefs.h; then
2648 printf "%s\n" "## ----------- ##
2655 test "$ac_signal" != 0 &&
2656 printf "%s\n" "$as_me: caught signal $ac_signal"
2657 printf "%s\n" "$as_me: exit $exit_status"
2659 rm -f core *.core core.conftest.* &&
2660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2663 for ac_signal in 1 2 13 15; do
2664 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2669 rm -f -r conftest* confdefs.h
2671 printf "%s\n" "/* confdefs.h */" > confdefs.h
2673 # Predefined preprocessor variables.
2675 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2677 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2679 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2681 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2683 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2685 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2688 # Let the site file select an alternate cache file if it wants to.
2689 # Prefer an explicitly selected file to automatically selected ones.
2690 if test -n "$CONFIG_SITE"; then
2691 ac_site_files="$CONFIG_SITE"
2692 elif test "x$prefix" != xNONE; then
2693 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2695 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2698 for ac_site_file in $ac_site_files
2700 case $ac_site_file in #(
2704 ac_site_file=./$ac_site_file ;;
2706 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2708 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2709 sed 's/^/| /' "$ac_site_file" >&5
2711 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2713 as_fn_error $? "failed to load site script $ac_site_file
2714 See \`config.log' for more details" "$LINENO" 5; }
2718 if test -r "$cache_file"; then
2719 # Some versions of bash will fail to source /dev/null (special files
2720 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2721 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2723 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2725 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2726 *) . "./$cache_file";;
2730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2731 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2735 # Test code for whether the C compiler supports C89 (global declarations)
2736 ac_c_conftest_c89_globals='
2737 /* Does the compiler advertise C89 conformance?
2738 Do not test the value of __STDC__, because some compilers set it to 0
2739 while being otherwise adequately conformant. */
2740 #if !defined __STDC__
2741 # error "Compiler does not advertise C89 conformance"
2747 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2748 struct buf { int x; };
2749 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2750 static char *e (p, i)
2756 static char *f (char * (*g) (char **, int), char **p, ...)
2761 s = g (p, va_arg (v,int));
2766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2767 function prototypes and stuff, but not \xHH hex character constants.
2768 These do not provoke an error unfortunately, instead are silently treated
2769 as an "x". The following induces an error, until -std is added to get
2770 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2771 array size at least. It is necessary to write \x00 == 0 to get something
2772 that is true only with -std. */
2773 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2776 inside strings and character constants. */
2777 #define FOO(x) '\''x'\''
2778 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2780 int test (int i, double x);
2781 struct s1 {int (*f) (int a);};
2782 struct s2 {int (*f) (double a);};
2783 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2786 # Test code for whether the C compiler supports C89 (body of main).
2787 ac_c_conftest_c89_main='
2788 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2791 # Test code for whether the C compiler supports C99 (global declarations)
2792 ac_c_conftest_c99_globals='
2793 // Does the compiler advertise C99 conformance?
2794 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2795 # error "Compiler does not advertise C99 conformance"
2798 #include <stdbool.h>
2799 extern int puts (const char *);
2800 extern int printf (const char *, ...);
2801 extern int dprintf (int, const char *, ...);
2802 extern void *malloc (size_t);
2804 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2805 // dprintf is used instead of fprintf to avoid needing to declare
2807 #define debug(...) dprintf (2, __VA_ARGS__)
2808 #define showlist(...) puts (#__VA_ARGS__)
2809 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2811 test_varargs_macros (void)
2816 debug ("X = %d\n", x);
2817 showlist (The first, second, and third items.);
2818 report (x>y, "x is %d but y is %d", x, y);
2821 // Check long long types.
2822 #define BIG64 18446744073709551615ull
2823 #define BIG32 4294967295ul
2824 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2826 #error "your preprocessor is broken"
2830 #error "your preprocessor is broken"
2832 static long long int bignum = -9223372036854775807LL;
2833 static unsigned long long int ubignum = BIG64;
2835 struct incomplete_array
2843 const wchar_t *name;
2847 typedef const char *ccp;
2850 test_restrict (ccp restrict text)
2852 // See if C++-style comments work.
2853 // Iterate through items via the restricted pointer.
2854 // Also check for declarations in for loops.
2855 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2860 // Check varargs and va_copy.
2862 test_varargs (const char *format, ...)
2865 va_start (args, format);
2867 va_copy (args_copy, args);
2869 const char *str = "";
2877 case '\''s'\'': // string
2878 str = va_arg (args_copy, const char *);
2880 case '\''d'\'': // int
2881 number = va_arg (args_copy, int);
2883 case '\''f'\'': // float
2884 fnumber = va_arg (args_copy, double);
2893 return *str && number && fnumber;
2897 # Test code for whether the C compiler supports C99 (body of main).
2898 ac_c_conftest_c99_main='
2900 _Bool success = false;
2901 success |= (argc != 0);
2904 if (test_restrict ("String literal") == 0)
2906 char *restrict newvar = "Another string";
2909 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2910 test_varargs_macros ();
2912 // Check flexible array members.
2913 struct incomplete_array *ia =
2914 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2916 for (int i = 0; i < ia->datasize; ++i)
2917 ia->data[i] = i * 1.234;
2919 // Check named initializers.
2920 struct named_init ni = {
2922 .name = L"Test wide string",
2923 .average = 543.34343,
2928 int dynamic_array[ni.number];
2929 dynamic_array[0] = argv[0][0];
2930 dynamic_array[ni.number - 1] = 543;
2932 // work around unused variable warnings
2933 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2934 || dynamic_array[ni.number - 1] != 543);
2937 # Test code for whether the C compiler supports C11 (global declarations)
2938 ac_c_conftest_c11_globals='
2939 // Does the compiler advertise C11 conformance?
2940 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2941 # error "Compiler does not advertise C11 conformance"
2945 char _Alignas (double) aligned_as_double;
2946 char _Alignas (0) no_special_alignment;
2947 extern char aligned_as_int;
2948 char _Alignas (0) _Alignas (int) aligned_as_int;
2953 int_alignment = _Alignof (int),
2954 int_array_alignment = _Alignof (int[100]),
2955 char_alignment = _Alignof (char)
2957 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2960 int _Noreturn does_not_return (void) { for (;;) continue; }
2962 // Check _Static_assert.
2963 struct test_static_assert
2966 _Static_assert (sizeof (int) <= sizeof (long int),
2967 "_Static_assert does not work in struct");
2971 // Check UTF-8 literals.
2972 #define u8 syntax error!
2973 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2975 // Check duplicate typedefs.
2976 typedef long *long_ptr;
2977 typedef long int *long_ptr;
2978 typedef long_ptr long_ptr;
2980 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2984 struct { int i; int j; };
2985 struct { int k; long int l; } w;
2991 # Test code for whether the C compiler supports C11 (body of main).
2992 ac_c_conftest_c11_main='
2993 _Static_assert ((offsetof (struct anonymous, i)
2994 == offsetof (struct anonymous, w.k)),
2995 "Anonymous union alignment botch");
3001 # Test code for whether the C compiler supports C11 (complete).
3002 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3003 ${ac_c_conftest_c99_globals}
3004 ${ac_c_conftest_c11_globals}
3007 main (int argc, char **argv)
3010 ${ac_c_conftest_c89_main}
3011 ${ac_c_conftest_c99_main}
3012 ${ac_c_conftest_c11_main}
3017 # Test code for whether the C compiler supports C99 (complete).
3018 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3019 ${ac_c_conftest_c99_globals}
3022 main (int argc, char **argv)
3025 ${ac_c_conftest_c89_main}
3026 ${ac_c_conftest_c99_main}
3031 # Test code for whether the C compiler supports C89 (complete).
3032 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3035 main (int argc, char **argv)
3038 ${ac_c_conftest_c89_main}
3043 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3044 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3045 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3046 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3047 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3048 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3049 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3050 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3051 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3052 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3053 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3054 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3055 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3057 # Auxiliary files required by this configure script.
3058 ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
3060 # Locations in which to look for auxiliary files.
3061 ac_aux_dir_candidates="${srcdir}/build/autoconf"
3063 # Search for a directory containing all of the required auxiliary files,
3064 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3065 # If we don't find one directory that contains all the files we need,
3066 # we report the set of missing files from the *first* directory in
3067 # $ac_aux_dir_candidates and give up.
3068 ac_missing_aux_files=""
3069 ac_first_candidate=:
3070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $ac_aux_dir_candidates
3076 case $as_dir in #(((
3079 *) as_dir=$as_dir/ ;;
3083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3084 ac_aux_dir_found=yes
3086 for ac_aux in $ac_aux_files
3088 # As a special case, if "install-sh" is required, that requirement
3089 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3090 # and $ac_install_sh is set appropriately for whichever one is found.
3091 if test x"$ac_aux" = x"install-sh"
3093 if test -f "${as_dir}install-sh"; then
3094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3095 ac_install_sh="${as_dir}install-sh -c"
3096 elif test -f "${as_dir}install.sh"; then
3097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3098 ac_install_sh="${as_dir}install.sh -c"
3099 elif test -f "${as_dir}shtool"; then
3100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3101 ac_install_sh="${as_dir}shtool install -c"
3104 if $ac_first_candidate; then
3105 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3111 if test -f "${as_dir}${ac_aux}"; then
3112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3115 if $ac_first_candidate; then
3116 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3123 if test "$ac_aux_dir_found" = yes; then
3124 ac_aux_dir="$as_dir"
3127 ac_first_candidate=false
3136 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3140 # These three variables are undocumented and unsupported,
3141 # and are intended to be withdrawn in a future Autoconf release.
3142 # They can cause serious problems if a builder's source tree is in a directory
3143 # whose full name contains unusual characters.
3144 if test -f "${ac_aux_dir}config.guess"; then
3145 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3147 if test -f "${ac_aux_dir}config.sub"; then
3148 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3150 if test -f "$ac_aux_dir/configure"; then
3151 ac_configure="$SHELL ${ac_aux_dir}configure"
3154 # Check that the precious variables saved in the cache have kept the same
3156 ac_cache_corrupted=false
3157 for ac_var in $ac_precious_vars; do
3158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3159 eval ac_new_set=\$ac_env_${ac_var}_set
3160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3161 eval ac_new_val=\$ac_env_${ac_var}_value
3162 case $ac_old_set,$ac_new_set in
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3165 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3166 ac_cache_corrupted=: ;;
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3169 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3170 ac_cache_corrupted=: ;;
3173 if test "x$ac_old_val" != "x$ac_new_val"; then
3174 # differences in whitespace do not lead to failure.
3175 ac_old_val_w=`echo x $ac_old_val`
3176 ac_new_val_w=`echo x $ac_new_val`
3177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3179 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3180 ac_cache_corrupted=:
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3183 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3184 eval $ac_var=\$ac_old_val
3186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3187 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3189 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3192 # Pass precious variables to config.status.
3193 if test "$ac_new_set" = set; then
3195 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3196 *) ac_arg=$ac_var=$ac_new_val ;;
3198 case " $ac_configure_args " in
3199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3204 if $ac_cache_corrupted; then
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3206 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3208 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3209 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3210 and start over" "$LINENO" 5
3212 ## -------------------- ##
3213 ## Main body of script. ##
3214 ## -------------------- ##
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 # Make sure the srcdir contains "libarchive" directory
3225 # Use auxiliary subscripts from this subdirectory (cleans up root)
3229 # Must follow AC_CONFIG macros above...
3230 am__api_version='1.16'
3234 # Find a good install program. We prefer a C program (faster),
3235 # so one script is as good as another. But avoid the broken or
3236 # incompatible versions:
3237 # SysV /etc/install, /usr/sbin/install
3238 # SunOS /usr/etc/install
3239 # IRIX /sbin/install
3241 # AmigaOS /C/install, which installs bootblocks on floppy discs
3242 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3243 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3244 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3245 # OS/2's system install, which has a completely different semantic
3246 # ./install, which can be erroneously created by make from ./install.sh.
3247 # Reject install programs that cannot install multiple files.
3248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3249 printf %s "checking for a BSD-compatible install... " >&6; }
3250 if test -z "$INSTALL"; then
3251 if test ${ac_cv_path_install+y}
3253 printf %s "(cached) " >&6
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 case $as_dir in #(((
3262 *) as_dir=$as_dir/ ;;
3264 # Account for fact that we put trailing slashes in our PATH walk.
3267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3274 for ac_prog in ginstall scoinst install; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3277 if test $ac_prog = install &&
3278 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279 # AIX install. It has an incompatible calling convention.
3281 elif test $ac_prog = install &&
3282 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # program-specific install script used by HP pwplus--don't use.
3286 rm -rf conftest.one conftest.two conftest.dir
3287 echo one > conftest.one
3288 echo two > conftest.two
3290 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3291 test -s conftest.one && test -s conftest.two &&
3292 test -s conftest.dir/conftest.one &&
3293 test -s conftest.dir/conftest.two
3295 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3308 rm -rf conftest.one conftest.two conftest.dir
3311 if test ${ac_cv_path_install+y}; then
3312 INSTALL=$ac_cv_path_install
3314 # As a last resort, use the slow shell script. Don't cache a
3315 # value for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the value is a relative name.
3318 INSTALL=$ac_install_sh
3321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322 printf "%s\n" "$INSTALL" >&6; }
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333 printf %s "checking whether build environment is sane... " >&6; }
3334 # Reject unsafe characters in $srcdir or the absolute working directory
3335 # name. Accept space and tab only in the latter.
3339 *[\\\"\#\$\&\'\`$am_lf]*)
3340 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3343 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3344 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3347 # Do 'set' in a subshell so we don't clobber the current shell's
3348 # arguments. Must try -L first in case configure is actually a
3349 # symlink; some systems play weird games with the mod time of symlinks
3350 # (eg FreeBSD returns the mod time of the symlink's containing
3354 for am_try in 1 2; do
3355 echo "timestamp, slept: $am_has_slept" > conftest.file
3356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3357 if test "$*" = "X"; then
3359 set X `ls -t "$srcdir/configure" conftest.file`
3361 if test "$*" != "X $srcdir/configure conftest.file" \
3362 && test "$*" != "X conftest.file $srcdir/configure"; then
3364 # If neither matched, then we have a broken ls. This can happen
3365 # if, for instance, CONFIG_SHELL is bash and it inherits a
3366 # broken ls alias from the environment. This has actually
3367 # happened. Such a system could not be considered "sane".
3368 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3369 alias in your environment" "$LINENO" 5
3371 if test "$2" = conftest.file || test $am_try -eq 2; then
3378 test "$2" = conftest.file
3384 as_fn_error $? "newly created file is older than distributed files!
3385 Check your system clock" "$LINENO" 5
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3388 printf "%s\n" "yes" >&6; }
3389 # If we didn't sleep, we still need to ensure time stamps of config.status and
3390 # generated files are strictly newer.
3392 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3399 test "$program_prefix" != NONE &&
3400 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3401 # Use a double $ so make ignores it.
3402 test "$program_suffix" != NONE &&
3403 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3404 # Double any \ or $.
3405 # By default was `s,x,x', remove it if useless.
3406 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3407 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3410 # Expand $ac_aux_dir to an absolute path.
3411 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3414 if test x"${MISSING+set}" != xset; then
3415 MISSING="\${SHELL} '$am_aux_dir/missing'"
3417 # Use eval to expand $SHELL
3418 if eval "$MISSING --is-lightweight"; then
3419 am_missing_run="$MISSING "
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3423 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3426 if test x"${install_sh+set}" != xset; then
3429 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3431 install_sh="\${SHELL} $am_aux_dir/install-sh"
3435 # Installed binaries are usually stripped using 'strip' when the user
3436 # run "make install-strip". However 'strip' might not be the right
3437 # tool to use in cross-compilation environments, therefore Automake
3438 # will honor the 'STRIP' environment variable to overrule this program.
3439 if test "$cross_compiling" != no; then
3440 if test -n "$ac_tool_prefix"; then
3441 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3442 set dummy ${ac_tool_prefix}strip; ac_word=$2
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 printf %s "checking for $ac_word... " >&6; }
3445 if test ${ac_cv_prog_STRIP+y}
3447 printf %s "(cached) " >&6
3449 if test -n "$STRIP"; then
3450 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 case $as_dir in #(((
3459 *) as_dir=$as_dir/ ;;
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 STRIP=$ac_cv_prog_STRIP
3474 if test -n "$STRIP"; then
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3476 printf "%s\n" "$STRIP" >&6; }
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 printf "%s\n" "no" >&6; }
3484 if test -z "$ac_cv_prog_STRIP"; then
3486 # Extract the first word of "strip", so it can be a program name with args.
3487 set dummy strip; ac_word=$2
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 printf %s "checking for $ac_word... " >&6; }
3490 if test ${ac_cv_prog_ac_ct_STRIP+y}
3492 printf %s "(cached) " >&6
3494 if test -n "$ac_ct_STRIP"; then
3495 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 case $as_dir in #(((
3504 *) as_dir=$as_dir/ ;;
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_ac_ct_STRIP="strip"
3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3519 if test -n "$ac_ct_STRIP"; then
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3521 printf "%s\n" "$ac_ct_STRIP" >&6; }
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 printf "%s\n" "no" >&6; }
3527 if test "x$ac_ct_STRIP" = x; then
3530 case $cross_compiling:$ac_tool_warned in
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3534 ac_tool_warned=yes ;;
3539 STRIP="$ac_cv_prog_STRIP"
3543 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3547 printf %s "checking for a race-free mkdir -p... " >&6; }
3548 if test -z "$MKDIR_P"; then
3549 if test ${ac_cv_path_mkdir+y}
3551 printf %s "(cached) " >&6
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3557 case $as_dir in #(((
3560 *) as_dir=$as_dir/ ;;
3562 for ac_prog in mkdir gmkdir; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3565 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3566 'mkdir ('*'coreutils) '* | \
3568 'mkdir (fileutils) '4.1*)
3569 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3579 test -d ./--version && rmdir ./--version
3580 if test ${ac_cv_path_mkdir+y}; then
3581 MKDIR_P="$ac_cv_path_mkdir -p"
3583 # As a last resort, use the slow shell script. Don't cache a
3584 # value for MKDIR_P within a source directory, because that will
3585 # break other packages using the cache if that directory is
3586 # removed, or if the value is a relative name.
3587 MKDIR_P="$ac_install_sh -d"
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3591 printf "%s\n" "$MKDIR_P" >&6; }
3593 for ac_prog in gawk mawk nawk awk
3595 # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 printf %s "checking for $ac_word... " >&6; }
3599 if test ${ac_cv_prog_AWK+y}
3601 printf %s "(cached) " >&6
3603 if test -n "$AWK"; then
3604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 case $as_dir in #(((
3613 *) as_dir=$as_dir/ ;;
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3617 ac_cv_prog_AWK="$ac_prog"
3618 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3628 if test -n "$AWK"; then
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3630 printf "%s\n" "$AWK" >&6; }
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3637 test -n "$AWK" && break
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3641 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3643 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3644 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3646 printf %s "(cached) " >&6
3648 cat >conftest.make <<\_ACEOF
3651 @echo '@@@%%%=$(MAKE)=@@@%%%'
3653 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3654 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3656 eval ac_cv_prog_make_${ac_make}_set=yes;;
3658 eval ac_cv_prog_make_${ac_make}_set=no;;
3662 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3664 printf "%s\n" "yes" >&6; }
3667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 printf "%s\n" "no" >&6; }
3669 SET_MAKE="MAKE=${MAKE-make}"
3672 rm -rf .tst 2>/dev/null
3673 mkdir .tst 2>/dev/null
3674 if test -d .tst; then
3679 rmdir .tst 2>/dev/null
3681 # Check whether --enable-silent-rules was given.
3682 if test ${enable_silent_rules+y}
3684 enableval=$enable_silent_rules;
3687 case $enable_silent_rules in # (((
3688 yes) AM_DEFAULT_VERBOSITY=0;;
3689 no) AM_DEFAULT_VERBOSITY=1;;
3690 *) AM_DEFAULT_VERBOSITY=1;;
3692 am_make=${MAKE-make}
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3694 printf %s "checking whether $am_make supports nested variables... " >&6; }
3695 if test ${am_cv_make_support_nested_variables+y}
3697 printf %s "(cached) " >&6
3699 if printf "%s\n" 'TRUE=$(BAR$(V))
3705 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3706 am_cv_make_support_nested_variables=yes
3708 am_cv_make_support_nested_variables=no
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3712 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3713 if test $am_cv_make_support_nested_variables = yes; then
3715 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3717 AM_V=$AM_DEFAULT_VERBOSITY
3718 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3722 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3723 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3724 # is not polluted with repeated "-I."
3725 am__isrc=' -I$(srcdir)'
3726 # test to see if srcdir already configured
3727 if test -f $srcdir/config.status; then
3728 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3732 # test whether we have cygpath
3733 if test -z "$CYGPATH_W"; then
3734 if (cygpath --version) >/dev/null 2>/dev/null; then
3735 CYGPATH_W='cygpath -w'
3742 # Define the identity of the package.
3743 PACKAGE='libarchive'
3747 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3750 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3752 # Some tools Automake needs.
3754 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3757 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3760 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3763 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3766 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3768 # For better backward compatibility. To be removed once Automake 1.9.x
3769 # dies out for good. For more background, see:
3770 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3771 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3772 mkdir_p='$(MKDIR_P)'
3774 # We need awk for the "check" target (and possibly the TAP driver). The
3775 # system "awk" is bad on some platforms.
3776 # Always define AMTAR for backward compatibility. Yes, it's still used
3777 # in the wild :-( We should find a proper way to deprecate it ...
3781 # We'll loop over all known methods to create a tar archive until one works.
3782 _am_tools='gnutar pax cpio none'
3784 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3790 # Variables for tags utilities; see am/tags.am
3791 if test -z "$CTAGS"; then
3795 if test -z "$ETAGS"; then
3799 if test -z "$CSCOPE"; then
3805 # POSIX will say in a future version that running "rm -f" with no argument
3806 # is OK; and we want to be able to make that assumption in our Makefile
3807 # recipes. So use an aggressive probe to check that the usage we want is
3808 # actually supported "in the wild" to an acceptable degree.
3809 # See automake bug#10828.
3810 # To make any issue more visible, cause the running configure to be aborted
3811 # by default if the 'rm' program in use doesn't match our expectations; the
3812 # user can still override this though.
3813 if rm -f && rm -fr && rm -rf; then : OK; else
3817 Your 'rm' program seems unable to run without file operands specified
3818 on the command line, even when the '-f' option is present. This is contrary
3819 to the behaviour of most rm programs out there, and not conforming with
3820 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3822 Please tell bug-automake@gnu.org about your system, including the value
3823 of your $PATH and any error possibly output before this message. This
3824 can help us improve future automake versions.
3827 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3828 echo 'Configuration will proceed anyway, since you have set the' >&2
3829 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3833 Aborting the configuration process, to ensure you take notice of the issue.
3835 You can download and install GNU coreutils to get an 'rm' implementation
3836 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3838 If you want to complete the configuration process using your problematic
3839 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3840 to "yes", and re-run configure.
3843 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3849 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3850 # Check whether --enable-maintainer-mode was given.
3851 if test ${enable_maintainer_mode+y}
3853 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3855 USE_MAINTAINER_MODE=yes
3858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3859 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3860 if test $USE_MAINTAINER_MODE = yes; then
3861 MAINTAINER_MODE_TRUE=
3862 MAINTAINER_MODE_FALSE='#'
3864 MAINTAINER_MODE_TRUE='#'
3865 MAINTAINER_MODE_FALSE=
3868 MAINT=$MAINTAINER_MODE_TRUE
3871 # Check whether --enable-silent-rules was given.
3872 if test ${enable_silent_rules+y}
3874 enableval=$enable_silent_rules;
3877 case $enable_silent_rules in # (((
3878 yes) AM_DEFAULT_VERBOSITY=0;;
3879 no) AM_DEFAULT_VERBOSITY=1;;
3880 *) AM_DEFAULT_VERBOSITY=0;;
3882 am_make=${MAKE-make}
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3884 printf %s "checking whether $am_make supports nested variables... " >&6; }
3885 if test ${am_cv_make_support_nested_variables+y}
3887 printf %s "(cached) " >&6
3889 if printf "%s\n" 'TRUE=$(BAR$(V))
3895 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3896 am_cv_make_support_nested_variables=yes
3898 am_cv_make_support_nested_variables=no
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3902 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3903 if test $am_cv_make_support_nested_variables = yes; then
3905 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3907 AM_V=$AM_DEFAULT_VERBOSITY
3908 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3913 # Libtool's "interface version" can be computed from the libarchive version.
3915 # Libtool interface version bumps on any API change, so increments
3916 # whenever libarchive minor version does.
3917 ARCHIVE_MINOR=$(( (3006002 / 1000) % 1000 ))
3918 # Libarchive 2.7 == libtool interface 9 = 2 + 7
3919 # Libarchive 2.8 == libtool interface 10 = 2 + 8
3920 # Libarchive 2.9 == libtool interface 11 = 2 + 8
3921 # Libarchive 3.0 == libtool interface 12
3922 # Libarchive 3.1 == libtool interface 13
3923 ARCHIVE_INTERFACE=`echo $((13 + ${ARCHIVE_MINOR}))`
3924 # Libarchive revision is bumped on any source change === libtool revision
3925 ARCHIVE_REVISION=$(( 3006002 % 1000 ))
3926 # Libarchive minor is bumped on any interface addition === libtool age
3927 ARCHIVE_LIBTOOL_VERSION=$ARCHIVE_INTERFACE:$ARCHIVE_REVISION:$ARCHIVE_MINOR
3929 # Stick the version numbers into config.h
3931 printf "%s\n" "#define __LIBARCHIVE_CONFIG_H_INCLUDED 1" >>confdefs.h
3934 printf "%s\n" "#define LIBARCHIVE_VERSION_STRING \"3.6.2\"" >>confdefs.h
3937 printf "%s\n" "#define LIBARCHIVE_VERSION_NUMBER \"3006002\"" >>confdefs.h
3940 printf "%s\n" "#define BSDCPIO_VERSION_STRING \"3.6.2\"" >>confdefs.h
3943 printf "%s\n" "#define BSDTAR_VERSION_STRING \"3.6.2\"" >>confdefs.h
3946 printf "%s\n" "#define BSDCAT_VERSION_STRING \"3.6.2\"" >>confdefs.h
3949 # The shell variables here must be the same as the AC_SUBST() variables
3950 # below, but the shell variable names apparently cannot be the same as
3951 # the m4 macro names above. Why? Ask autoconf.
3952 BSDCPIO_VERSION_STRING=3.6.2
3953 BSDTAR_VERSION_STRING=3.6.2
3954 BSDCAT_VERSION_STRING=3.6.2
3955 LIBARCHIVE_VERSION_STRING=3.6.2
3956 LIBARCHIVE_VERSION_NUMBER=3006002
3958 # Substitute the above version numbers into the various files below.
3959 # Yes, I believe this is the fourth time we define what are essentially
3960 # the same symbols. Why? Ask autoconf.
3968 ac_config_headers="$ac_config_headers config.h"
3970 ac_config_files="$ac_config_files Makefile"
3972 ac_config_files="$ac_config_files build/pkgconfig/libarchive.pc"
3975 # Check for host type
3978 # Make sure we can run config.sub.
3979 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3980 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3983 printf %s "checking build system type... " >&6; }
3984 if test ${ac_cv_build+y}
3986 printf %s "(cached) " >&6
3988 ac_build_alias=$build_alias
3989 test "x$ac_build_alias" = x &&
3990 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3991 test "x$ac_build_alias" = x &&
3992 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3993 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3994 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3998 printf "%s\n" "$ac_cv_build" >&6; }
3999 case $ac_cv_build in
4001 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4004 ac_save_IFS=$IFS; IFS='-'
4010 # Remember, the first character of IFS is used to create $*,
4011 # except with old shells:
4014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4018 printf %s "checking host system type... " >&6; }
4019 if test ${ac_cv_host+y}
4021 printf %s "(cached) " >&6
4023 if test "x$host_alias" = x; then
4024 ac_cv_host=$ac_cv_build
4026 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4027 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4032 printf "%s\n" "$ac_cv_host" >&6; }
4035 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4038 ac_save_IFS=$IFS; IFS='-'
4044 # Remember, the first character of IFS is used to create $*,
4045 # except with old shells:
4048 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4052 inc_windows_files=no
4055 *mingw* ) inc_windows_files=yes ;;
4056 *cygwin* | *msys*) inc_cygwin_files=yes ;;
4058 if test $inc_windows_files = yes; then
4059 INC_WINDOWS_FILES_TRUE=
4060 INC_WINDOWS_FILES_FALSE='#'
4062 INC_WINDOWS_FILES_TRUE='#'
4063 INC_WINDOWS_FILES_FALSE=
4066 if test $inc_cygwin_files = yes; then
4067 INC_CYGWIN_FILES_TRUE=
4068 INC_CYGWIN_FILES_FALSE='#'
4070 INC_CYGWIN_FILES_TRUE='#'
4071 INC_CYGWIN_FILES_FALSE=
4077 *mingw* ) PLATFORMCPPFLAGS=-D__USE_MINGW_ANSI_STDIO ;;
4081 # Checks for programs.
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 printf %s "checking for $ac_word... " >&6; }
4101 if test ${ac_cv_prog_CC+y}
4103 printf %s "(cached) " >&6
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 case $as_dir in #(((
4115 *) as_dir=$as_dir/ ;;
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4130 if test -n "$CC"; then
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132 printf "%s\n" "$CC" >&6; }
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 printf "%s\n" "no" >&6; }
4140 if test -z "$ac_cv_prog_CC"; then
4142 # Extract the first word of "gcc", so it can be a program name with args.
4143 set dummy gcc; ac_word=$2
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145 printf %s "checking for $ac_word... " >&6; }
4146 if test ${ac_cv_prog_ac_ct_CC+y}
4148 printf %s "(cached) " >&6
4150 if test -n "$ac_ct_CC"; then
4151 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 case $as_dir in #(((
4160 *) as_dir=$as_dir/ ;;
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4164 ac_cv_prog_ac_ct_CC="gcc"
4165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175 if test -n "$ac_ct_CC"; then
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177 printf "%s\n" "$ac_ct_CC" >&6; }
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 printf "%s\n" "no" >&6; }
4183 if test "x$ac_ct_CC" = x; then
4186 case $cross_compiling:$ac_tool_warned in
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4189 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4190 ac_tool_warned=yes ;;
4198 if test -z "$CC"; then
4199 if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}cc; ac_word=$2
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 printf %s "checking for $ac_word... " >&6; }
4204 if test ${ac_cv_prog_CC+y}
4206 printf %s "(cached) " >&6
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 case $as_dir in #(((
4218 *) as_dir=$as_dir/ ;;
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4222 ac_cv_prog_CC="${ac_tool_prefix}cc"
4223 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4233 if test -n "$CC"; then
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4235 printf "%s\n" "$CC" >&6; }
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 printf "%s\n" "no" >&6; }
4244 if test -z "$CC"; then
4245 # Extract the first word of "cc", so it can be a program name with args.
4246 set dummy cc; ac_word=$2
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 printf %s "checking for $ac_word... " >&6; }
4249 if test ${ac_cv_prog_CC+y}
4251 printf %s "(cached) " >&6
4253 if test -n "$CC"; then
4254 ac_cv_prog_CC="$CC" # Let the user override the test.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 case $as_dir in #(((
4264 *) as_dir=$as_dir/ ;;
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4268 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4269 ac_prog_rejected=yes
4273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4280 if test $ac_prog_rejected = yes; then
4281 # We found a bogon in the path, so make sure we never use it.
4282 set dummy $ac_cv_prog_CC
4284 if test $# != 0; then
4285 # We chose a different compiler from the bogus one.
4286 # However, it has the same basename, so the bogon will be chosen
4287 # first if we set CC to just the basename; use the full file name.
4289 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4295 if test -n "$CC"; then
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4297 printf "%s\n" "$CC" >&6; }
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300 printf "%s\n" "no" >&6; }
4305 if test -z "$CC"; then
4306 if test -n "$ac_tool_prefix"; then
4307 for ac_prog in cl.exe
4309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 printf %s "checking for $ac_word... " >&6; }
4313 if test ${ac_cv_prog_CC+y}
4315 printf %s "(cached) " >&6
4317 if test -n "$CC"; then
4318 ac_cv_prog_CC="$CC" # Let the user override the test.
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 case $as_dir in #(((
4327 *) as_dir=$as_dir/ ;;
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4342 if test -n "$CC"; then
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4344 printf "%s\n" "$CC" >&6; }
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 printf "%s\n" "no" >&6; }
4351 test -n "$CC" && break
4354 if test -z "$CC"; then
4356 for ac_prog in cl.exe
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359 set dummy $ac_prog; ac_word=$2
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361 printf %s "checking for $ac_word... " >&6; }
4362 if test ${ac_cv_prog_ac_ct_CC+y}
4364 printf %s "(cached) " >&6
4366 if test -n "$ac_ct_CC"; then
4367 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 case $as_dir in #(((
4376 *) as_dir=$as_dir/ ;;
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC="$ac_prog"
4381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 printf "%s\n" "$ac_ct_CC" >&6; }
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 printf "%s\n" "no" >&6; }
4400 test -n "$ac_ct_CC" && break
4403 if test "x$ac_ct_CC" = x; then
4406 case $cross_compiling:$ac_tool_warned in
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4417 if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}clang; ac_word=$2
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 printf %s "checking for $ac_word... " >&6; }
4423 if test ${ac_cv_prog_CC+y}
4425 printf %s "(cached) " >&6
4427 if test -n "$CC"; then
4428 ac_cv_prog_CC="$CC" # Let the user override the test.
4430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 case $as_dir in #(((
4437 *) as_dir=$as_dir/ ;;
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_CC="${ac_tool_prefix}clang"
4442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4452 if test -n "$CC"; then
4453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4454 printf "%s\n" "$CC" >&6; }
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 printf "%s\n" "no" >&6; }
4462 if test -z "$ac_cv_prog_CC"; then
4464 # Extract the first word of "clang", so it can be a program name with args.
4465 set dummy clang; ac_word=$2
4466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 printf %s "checking for $ac_word... " >&6; }
4468 if test ${ac_cv_prog_ac_ct_CC+y}
4470 printf %s "(cached) " >&6
4472 if test -n "$ac_ct_CC"; then
4473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 case $as_dir in #(((
4482 *) as_dir=$as_dir/ ;;
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4486 ac_cv_prog_ac_ct_CC="clang"
4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4497 if test -n "$ac_ct_CC"; then
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4499 printf "%s\n" "$ac_ct_CC" >&6; }
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 printf "%s\n" "no" >&6; }
4505 if test "x$ac_ct_CC" = x; then
4508 case $cross_compiling:$ac_tool_warned in
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4523 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4525 as_fn_error $? "no acceptable C compiler found in \$PATH
4526 See \`config.log' for more details" "$LINENO" 5; }
4528 # Provide some information about the compiler.
4529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4532 for ac_option in --version -v -V -qversion -version; do
4533 { { ac_try="$ac_compiler $ac_option >&5"
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539 printf "%s\n" "$ac_try_echo"; } >&5
4540 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4542 if test -s conftest.err; then
4544 ... rest of stderr output deleted ...
4545 10q' conftest.err >conftest.er1
4546 cat conftest.er1 >&5
4548 rm -f conftest.er1 conftest.err
4549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4564 ac_clean_files_save=$ac_clean_files
4565 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4566 # Try to create an executable without -o first, disregard a.out.
4567 # It will help us diagnose broken compilers, and finding out an intuition
4569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4570 printf %s "checking whether the C compiler works... " >&6; }
4571 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4573 # The possible output files:
4574 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4577 for ac_file in $ac_files
4580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4581 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4586 if { { ac_try="$ac_link_default"
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 printf "%s\n" "$ac_try_echo"; } >&5
4593 (eval "$ac_link_default") 2>&5
4595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }
4598 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4599 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4600 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4601 # so that the user can short-circuit this test for compilers unknown to
4603 for ac_file in $ac_files ''
4605 test -f "$ac_file" || continue
4607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4610 # We found the default executable, but exeext='' is most
4614 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4616 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4618 # We set ac_cv_exeext here because the later test for it is not
4619 # safe: cross compilers may not add the suffix if given an `-o'
4620 # argument, so we may need to know it at that point already.
4621 # Even if this section looks crufty: it has the advantage of
4628 test "$ac_cv_exeext" = no && ac_cv_exeext=
4633 if test -z "$ac_file"
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 printf "%s\n" "no" >&6; }
4637 printf "%s\n" "$as_me: failed program was:" >&5
4638 sed 's/^/| /' conftest.$ac_ext >&5
4640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4641 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4642 as_fn_error 77 "C compiler cannot create executables
4643 See \`config.log' for more details" "$LINENO" 5; }
4645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 printf "%s\n" "yes" >&6; }
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4649 printf %s "checking for C compiler default output file name... " >&6; }
4650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4651 printf "%s\n" "$ac_file" >&6; }
4652 ac_exeext=$ac_cv_exeext
4654 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4655 ac_clean_files=$ac_clean_files_save
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4657 printf %s "checking for suffix of executables... " >&6; }
4658 if { { ac_try="$ac_link"
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4664 printf "%s\n" "$ac_try_echo"; } >&5
4665 (eval "$ac_link") 2>&5
4667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4668 test $ac_status = 0; }
4670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4674 for ac_file in conftest.exe conftest conftest.*; do
4675 test -f "$ac_file" || continue
4677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4684 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4685 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4686 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4687 See \`config.log' for more details" "$LINENO" 5; }
4689 rm -f conftest conftest$ac_cv_exeext
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4691 printf "%s\n" "$ac_cv_exeext" >&6; }
4693 rm -f conftest.$ac_ext
4694 EXEEXT=$ac_cv_exeext
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4702 FILE *f = fopen ("conftest.out", "w");
4703 return ferror (f) || fclose (f) != 0;
4709 ac_clean_files="$ac_clean_files conftest.out"
4710 # Check that the compiler produces executables we can run. If not, either
4711 # the compiler is broken, or we cross compile.
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4713 printf %s "checking whether we are cross compiling... " >&6; }
4714 if test "$cross_compiling" != yes; then
4715 { { ac_try="$ac_link"
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4721 printf "%s\n" "$ac_try_echo"; } >&5
4722 (eval "$ac_link") 2>&5
4724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4726 if { ac_try='./conftest$ac_cv_exeext'
4727 { { case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 printf "%s\n" "$ac_try_echo"; } >&5
4733 (eval "$ac_try") 2>&5
4735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }; }; then
4739 if test "$cross_compiling" = maybe; then
4742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4743 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4744 as_fn_error 77 "cannot run C compiled programs.
4745 If you meant to cross compile, use \`--host'.
4746 See \`config.log' for more details" "$LINENO" 5; }
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4751 printf "%s\n" "$cross_compiling" >&6; }
4753 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4754 ac_clean_files=$ac_clean_files_save
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4756 printf %s "checking for suffix of object files... " >&6; }
4757 if test ${ac_cv_objext+y}
4759 printf %s "(cached) " >&6
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4772 rm -f conftest.o conftest.obj
4773 if { { ac_try="$ac_compile"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 printf "%s\n" "$ac_try_echo"; } >&5
4780 (eval "$ac_compile") 2>&5
4782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }
4785 for ac_file in conftest.o conftest.obj conftest.*; do
4786 test -f "$ac_file" || continue;
4788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4794 printf "%s\n" "$as_me: failed program was:" >&5
4795 sed 's/^/| /' conftest.$ac_ext >&5
4797 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4798 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4799 as_fn_error $? "cannot compute suffix of object files: cannot compile
4800 See \`config.log' for more details" "$LINENO" 5; }
4802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4805 printf "%s\n" "$ac_cv_objext" >&6; }
4806 OBJEXT=$ac_cv_objext
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4809 printf %s "checking whether the compiler supports GNU C... " >&6; }
4810 if test ${ac_cv_c_compiler_gnu+y}
4812 printf %s "(cached) " >&6
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4828 if ac_fn_c_try_compile "$LINENO"
4834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4839 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 if test $ac_compiler_gnu = yes; then
4847 ac_test_CFLAGS=${CFLAGS+y}
4848 ac_save_CFLAGS=$CFLAGS
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4850 printf %s "checking whether $CC accepts -g... " >&6; }
4851 if test ${ac_cv_prog_cc_g+y}
4853 printf %s "(cached) " >&6
4855 ac_save_c_werror_flag=$ac_c_werror_flag
4856 ac_c_werror_flag=yes
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4870 if ac_fn_c_try_compile "$LINENO"
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4886 if ac_fn_c_try_compile "$LINENO"
4890 ac_c_werror_flag=$ac_save_c_werror_flag
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4903 if ac_fn_c_try_compile "$LINENO"
4907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4912 ac_c_werror_flag=$ac_save_c_werror_flag
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4915 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4916 if test $ac_test_CFLAGS; then
4917 CFLAGS=$ac_save_CFLAGS
4918 elif test $ac_cv_prog_cc_g = yes; then
4919 if test "$GCC" = yes; then
4925 if test "$GCC" = yes; then
4932 if test x$ac_prog_cc_stdc = xno
4934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4935 printf %s "checking for $CC option to enable C11 features... " >&6; }
4936 if test ${ac_cv_prog_cc_c11+y}
4938 printf %s "(cached) " >&6
4940 ac_cv_prog_cc_c11=no
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4944 $ac_c_conftest_c11_program
4946 for ac_arg in '' -std=gnu11
4948 CC="$ac_save_CC $ac_arg"
4949 if ac_fn_c_try_compile "$LINENO"
4951 ac_cv_prog_cc_c11=$ac_arg
4953 rm -f core conftest.err conftest.$ac_objext conftest.beam
4954 test "x$ac_cv_prog_cc_c11" != "xno" && break
4956 rm -f conftest.$ac_ext
4960 if test "x$ac_cv_prog_cc_c11" = xno
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4963 printf "%s\n" "unsupported" >&6; }
4965 if test "x$ac_cv_prog_cc_c11" = x
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4968 printf "%s\n" "none needed" >&6; }
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4971 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4972 CC="$CC $ac_cv_prog_cc_c11"
4974 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4978 if test x$ac_prog_cc_stdc = xno
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4981 printf %s "checking for $CC option to enable C99 features... " >&6; }
4982 if test ${ac_cv_prog_cc_c99+y}
4984 printf %s "(cached) " >&6
4986 ac_cv_prog_cc_c99=no
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990 $ac_c_conftest_c99_program
4992 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4994 CC="$ac_save_CC $ac_arg"
4995 if ac_fn_c_try_compile "$LINENO"
4997 ac_cv_prog_cc_c99=$ac_arg
4999 rm -f core conftest.err conftest.$ac_objext conftest.beam
5000 test "x$ac_cv_prog_cc_c99" != "xno" && break
5002 rm -f conftest.$ac_ext
5006 if test "x$ac_cv_prog_cc_c99" = xno
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5009 printf "%s\n" "unsupported" >&6; }
5011 if test "x$ac_cv_prog_cc_c99" = x
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5014 printf "%s\n" "none needed" >&6; }
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5017 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5018 CC="$CC $ac_cv_prog_cc_c99"
5020 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5024 if test x$ac_prog_cc_stdc = xno
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5027 printf %s "checking for $CC option to enable C89 features... " >&6; }
5028 if test ${ac_cv_prog_cc_c89+y}
5030 printf %s "(cached) " >&6
5032 ac_cv_prog_cc_c89=no
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 $ac_c_conftest_c89_program
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5040 CC="$ac_save_CC $ac_arg"
5041 if ac_fn_c_try_compile "$LINENO"
5043 ac_cv_prog_cc_c89=$ac_arg
5045 rm -f core conftest.err conftest.$ac_objext conftest.beam
5046 test "x$ac_cv_prog_cc_c89" != "xno" && break
5048 rm -f conftest.$ac_ext
5052 if test "x$ac_cv_prog_cc_c89" = xno
5054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5055 printf "%s\n" "unsupported" >&6; }
5057 if test "x$ac_cv_prog_cc_c89" = x
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5060 printf "%s\n" "none needed" >&6; }
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5063 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5064 CC="$CC $ac_cv_prog_cc_c89"
5066 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5084 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5085 if test ${am_cv_prog_cc_c_o+y}
5087 printf %s "(cached) " >&6
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5100 # Make sure it works both with $CC and with simple cc.
5101 # Following AC_PROG_CC_C_O, we do the test twice because some
5102 # compilers refuse to overwrite an existing .o file with -o,
5103 # though they will create one.
5104 am_cv_prog_cc_c_o=yes
5106 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5107 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } \
5111 && test -f conftest2.$ac_objext; then
5114 am_cv_prog_cc_c_o=no
5118 rm -f core conftest*
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5122 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5123 if test "$am_cv_prog_cc_c_o" != yes; then
5124 # Losing compiler, so override with the script.
5125 # FIXME: It is wrong to rewrite CC.
5126 # But if we don't then we get into trouble of one sort or another.
5127 # A longer-term fix would be to have automake use am__CC in this case,
5128 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5129 CC="$am_aux_dir/compile $CC"
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137 DEPDIR="${am__leading_dot}deps"
5139 ac_config_commands="$ac_config_commands depfiles"
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5142 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5143 cat > confinc.mk << 'END'
5145 @echo this is the am__doit target >confinc.out
5150 # BSD make does it like this.
5151 echo '.include "confinc.mk" # ignored' > confmf.BSD
5152 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5153 echo 'include confinc.mk # ignored' > confmf.GNU
5155 for s in GNU BSD; do
5156 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5157 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160 (exit $ac_status); }
5161 case $?:`cat confinc.out 2>/dev/null` in #(
5162 '0:this is the am__doit target') :
5165 am__include='.include' am__quote='"' ;; #(
5167 am__include='include' am__quote='' ;;
5172 if test "$am__include" != "#"; then
5173 _am_result="yes ($s style)"
5177 rm -f confinc.* confmf.*
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5179 printf "%s\n" "${_am_result}" >&6; }
5181 # Check whether --enable-dependency-tracking was given.
5182 if test ${enable_dependency_tracking+y}
5184 enableval=$enable_dependency_tracking;
5187 if test "x$enable_dependency_tracking" != xno; then
5188 am_depcomp="$ac_aux_dir/depcomp"
5192 if test "x$enable_dependency_tracking" != xno; then
5202 depcc="$CC" am_compiler_list=
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5205 printf %s "checking dependency style of $depcc... " >&6; }
5206 if test ${am_cv_CC_dependencies_compiler_type+y}
5208 printf %s "(cached) " >&6
5210 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5211 # We make a subdir and do the tests there. Otherwise we can end up
5212 # making bogus files that we don't know about and never remove. For
5213 # instance it was reported that on HP-UX the gcc test will end up
5214 # making a dummy file named 'D' -- because '-MD' means "put the output
5218 # Copy depcomp to subdir because otherwise we won't find it if we're
5219 # using a relative directory.
5220 cp "$am_depcomp" conftest.dir
5222 # We will build objects and dependencies in a subdirectory because
5223 # it helps to detect inapplicable dependency modes. For instance
5224 # both Tru64's cc and ICC support -MD to output dependencies as a
5225 # side effect of compilation, but ICC will put the dependencies in
5226 # the current directory while Tru64 will put them in the object
5230 am_cv_CC_dependencies_compiler_type=none
5231 if test "$am_compiler_list" = ""; then
5232 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5235 case " $depcc " in #(
5236 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5239 for depmode in $am_compiler_list; do
5240 # Setup a source with many dependencies, because some compilers
5241 # like to wrap large dependency lists on column 80 (with \), and
5242 # we should not choose a depcomp mode which is confused by this.
5244 # We need to recreate these files for each test, as the compiler may
5245 # overwrite some of them when testing with obscure command lines.
5246 # This happens at least with the AIX C compiler.
5248 for i in 1 2 3 4 5 6; do
5249 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5250 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5251 # Solaris 10 /bin/sh.
5252 echo '/* dummy */' > sub/conftst$i.h
5254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5256 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5257 # mode. It turns out that the SunPro C++ compiler does not properly
5258 # handle '-M -o', and we need to detect this. Also, some Intel
5259 # versions had trouble with output in subdirs.
5260 am__obj=sub/conftest.${OBJEXT-o}
5261 am__minus_obj="-o $am__obj"
5264 # This depmode causes a compiler race in universal mode.
5265 test "$am__universal" = false || continue
5268 # After this tag, mechanisms are not by side-effect, so they'll
5269 # only be used when explicitly requested.
5270 if test "x$enable_dependency_tracking" = xyes; then
5276 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5277 # This compiler won't grok '-c -o', but also, the minuso test has
5278 # not run yet. These depmodes are late enough in the game, and
5279 # so weak that their functioning should not be impacted.
5280 am__obj=conftest.${OBJEXT-o}
5285 if depmode=$depmode \
5286 source=sub/conftest.c object=$am__obj \
5287 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5288 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5289 >/dev/null 2>conftest.err &&
5290 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5292 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5294 # icc doesn't choke on unknown options, it will just issue warnings
5295 # or remarks (even with -Werror). So we grep stderr for any message
5296 # that says an option was ignored or not supported.
5297 # When given -MP, icc 7.0 and 7.1 complain thusly:
5298 # icc: Command line warning: ignoring option '-M'; no argument required
5299 # The diagnosis changed in icc 8.0:
5300 # icc: Command line remark: option '-MP' not supported
5301 if (grep 'ignoring option' conftest.err ||
5302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5303 am_cv_CC_dependencies_compiler_type=$depmode
5312 am_cv_CC_dependencies_compiler_type=none
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5317 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5321 test "x$enable_dependency_tracking" != xno \
5322 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5324 am__fastdepCC_FALSE='#'
5326 am__fastdepCC_TRUE='#'
5327 am__fastdepCC_FALSE=
5334 ac_cpp='$CPP $CPPFLAGS'
5335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5339 printf %s "checking how to run the C preprocessor... " >&6; }
5340 # On Suns, sometimes $CPP names a directory.
5341 if test -n "$CPP" && test -d "$CPP"; then
5344 if test -z "$CPP"; then
5345 if test ${ac_cv_prog_CPP+y}
5347 printf %s "(cached) " >&6
5349 # Double quotes because $CC needs to be expanded
5350 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5353 for ac_c_preproc_warn_flag in '' yes
5355 # Use a header file that comes with gcc, so configuring glibc
5356 # with a fresh cross-compiler works.
5357 # On the NeXT, cc -E runs the code through the compiler's parser,
5358 # not just through cpp. "Syntax error" is here to catch this case.
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5364 if ac_fn_c_try_cpp "$LINENO"
5368 # Broken: fails on valid input.
5371 rm -f conftest.err conftest.i conftest.$ac_ext
5373 # OK, works on sane cases. Now check whether nonexistent headers
5374 # can be detected and how.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 #include <ac_nonexistent.h>
5379 if ac_fn_c_try_cpp "$LINENO"
5381 # Broken: success on invalid input.
5384 # Passes both tests.
5388 rm -f conftest.err conftest.i conftest.$ac_ext
5391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5392 rm -f conftest.i conftest.err conftest.$ac_ext
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5407 printf "%s\n" "$CPP" >&6; }
5409 for ac_c_preproc_warn_flag in '' yes
5411 # Use a header file that comes with gcc, so configuring glibc
5412 # with a fresh cross-compiler works.
5413 # On the NeXT, cc -E runs the code through the compiler's parser,
5414 # not just through cpp. "Syntax error" is here to catch this case.
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5420 if ac_fn_c_try_cpp "$LINENO"
5424 # Broken: fails on valid input.
5427 rm -f conftest.err conftest.i conftest.$ac_ext
5429 # OK, works on sane cases. Now check whether nonexistent headers
5430 # can be detected and how.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #include <ac_nonexistent.h>
5435 if ac_fn_c_try_cpp "$LINENO"
5437 # Broken: success on invalid input.
5440 # Passes both tests.
5444 rm -f conftest.err conftest.i conftest.$ac_ext
5447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5448 rm -f conftest.i conftest.err conftest.$ac_ext
5453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5454 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5455 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5456 See \`config.log' for more details" "$LINENO" 5; }
5460 ac_cpp='$CPP $CPPFLAGS'
5461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5466 ac_header= ac_cache=
5467 for ac_item in $ac_header_c_list
5469 if test $ac_cache; then
5470 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5471 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5472 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5474 ac_header= ac_cache=
5475 elif test $ac_header; then
5489 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5492 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5502 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5503 if test ${ac_cv_safe_to_define___extensions__+y}
5505 printf %s "(cached) " >&6
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # define __EXTENSIONS__ 1
5511 $ac_includes_default
5520 if ac_fn_c_try_compile "$LINENO"
5522 ac_cv_safe_to_define___extensions__=yes
5524 ac_cv_safe_to_define___extensions__=no
5526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5529 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5532 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5533 if test ${ac_cv_should_define__xopen_source+y}
5535 printf %s "(cached) " >&6
5537 ac_cv_should_define__xopen_source=no
5538 if test $ac_cv_header_wchar_h = yes
5540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5553 if ac_fn_c_try_compile "$LINENO"
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5560 #define _XOPEN_SOURCE 500
5571 if ac_fn_c_try_compile "$LINENO"
5573 ac_cv_should_define__xopen_source=yes
5575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5581 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5583 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5585 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5587 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5589 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5591 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5593 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5595 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5597 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5599 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5601 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5603 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5605 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5607 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5609 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5611 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5613 if test $ac_cv_header_minix_config_h = yes
5616 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5618 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5620 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5625 if test $ac_cv_safe_to_define___extensions__ = yes
5627 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5630 if test $ac_cv_should_define__xopen_source = yes
5632 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5636 enable_win32_dll=yes
5639 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5640 if test -n "$ac_tool_prefix"; then
5641 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5642 set dummy ${ac_tool_prefix}as; ac_word=$2
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 printf %s "checking for $ac_word... " >&6; }
5645 if test ${ac_cv_prog_AS+y}
5647 printf %s "(cached) " >&6
5649 if test -n "$AS"; then
5650 ac_cv_prog_AS="$AS" # Let the user override the test.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 case $as_dir in #(((
5659 *) as_dir=$as_dir/ ;;
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_AS="${ac_tool_prefix}as"
5664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5674 if test -n "$AS"; then
5675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5676 printf "%s\n" "$AS" >&6; }
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 printf "%s\n" "no" >&6; }
5684 if test -z "$ac_cv_prog_AS"; then
5686 # Extract the first word of "as", so it can be a program name with args.
5687 set dummy as; ac_word=$2
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 printf %s "checking for $ac_word... " >&6; }
5690 if test ${ac_cv_prog_ac_ct_AS+y}
5692 printf %s "(cached) " >&6
5694 if test -n "$ac_ct_AS"; then
5695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 case $as_dir in #(((
5704 *) as_dir=$as_dir/ ;;
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5708 ac_cv_prog_ac_ct_AS="as"
5709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5718 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5719 if test -n "$ac_ct_AS"; then
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5721 printf "%s\n" "$ac_ct_AS" >&6; }
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 printf "%s\n" "no" >&6; }
5727 if test "x$ac_ct_AS" = x; then
5730 case $cross_compiling:$ac_tool_warned in
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5733 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5734 ac_tool_warned=yes ;;
5742 if test -n "$ac_tool_prefix"; then
5743 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5744 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 printf %s "checking for $ac_word... " >&6; }
5747 if test ${ac_cv_prog_DLLTOOL+y}
5749 printf %s "(cached) " >&6
5751 if test -n "$DLLTOOL"; then
5752 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 case $as_dir in #(((
5761 *) as_dir=$as_dir/ ;;
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5765 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5775 DLLTOOL=$ac_cv_prog_DLLTOOL
5776 if test -n "$DLLTOOL"; then
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5778 printf "%s\n" "$DLLTOOL" >&6; }
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781 printf "%s\n" "no" >&6; }
5786 if test -z "$ac_cv_prog_DLLTOOL"; then
5787 ac_ct_DLLTOOL=$DLLTOOL
5788 # Extract the first word of "dlltool", so it can be a program name with args.
5789 set dummy dlltool; ac_word=$2
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5791 printf %s "checking for $ac_word... " >&6; }
5792 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
5794 printf %s "(cached) " >&6
5796 if test -n "$ac_ct_DLLTOOL"; then
5797 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 case $as_dir in #(((
5806 *) as_dir=$as_dir/ ;;
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5810 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5820 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5821 if test -n "$ac_ct_DLLTOOL"; then
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5823 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5826 printf "%s\n" "no" >&6; }
5829 if test "x$ac_ct_DLLTOOL" = x; then
5832 case $cross_compiling:$ac_tool_warned in
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5835 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5838 DLLTOOL=$ac_ct_DLLTOOL
5841 DLLTOOL="$ac_cv_prog_DLLTOOL"
5844 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 printf %s "checking for $ac_word... " >&6; }
5849 if test ${ac_cv_prog_OBJDUMP+y}
5851 printf %s "(cached) " >&6
5853 if test -n "$OBJDUMP"; then
5854 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 case $as_dir in #(((
5863 *) as_dir=$as_dir/ ;;
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5877 OBJDUMP=$ac_cv_prog_OBJDUMP
5878 if test -n "$OBJDUMP"; then
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5880 printf "%s\n" "$OBJDUMP" >&6; }
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 printf "%s\n" "no" >&6; }
5888 if test -z "$ac_cv_prog_OBJDUMP"; then
5889 ac_ct_OBJDUMP=$OBJDUMP
5890 # Extract the first word of "objdump", so it can be a program name with args.
5891 set dummy objdump; ac_word=$2
5892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 printf %s "checking for $ac_word... " >&6; }
5894 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5896 printf %s "(cached) " >&6
5898 if test -n "$ac_ct_OBJDUMP"; then
5899 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 case $as_dir in #(((
5908 *) as_dir=$as_dir/ ;;
5910 for ac_exec_ext in '' $ac_executable_extensions; do
5911 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5913 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5923 if test -n "$ac_ct_OBJDUMP"; then
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5925 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 printf "%s\n" "no" >&6; }
5931 if test "x$ac_ct_OBJDUMP" = x; then
5934 case $cross_compiling:$ac_tool_warned in
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5937 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5938 ac_tool_warned=yes ;;
5940 OBJDUMP=$ac_ct_OBJDUMP
5943 OBJDUMP="$ac_cv_prog_OBJDUMP"
5949 test -z "$AS" && AS=as
5955 test -z "$DLLTOOL" && DLLTOOL=dlltool
5961 test -z "$OBJDUMP" && OBJDUMP=objdump
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5972 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5977 macro_version='2.4.6'
5978 macro_revision='2.4.6'
5993 ltmain=$ac_aux_dir/ltmain.sh
5995 # Backslashify metacharacters that are still active within
5996 # double-quoted strings.
5997 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5999 # Same as above, but do not quote variable references.
6000 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6002 # Sed substitution to delay expansion of an escaped shell variable in a
6003 # double_quote_subst'ed string.
6004 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6006 # Sed substitution to delay expansion of an escaped single quote.
6007 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6009 # Sed substitution to avoid accidental globbing in evaled expressions
6010 no_glob_subst='s/\*/\\\*/g'
6012 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6013 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6017 printf %s "checking how to print strings... " >&6; }
6018 # Test print first, because it will be a builtin if present.
6019 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6020 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6022 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6025 # Use this function as a fallback that always works.
6026 func_fallback_echo ()
6028 eval 'cat <<_LTECHO_EOF
6032 ECHO='func_fallback_echo'
6035 # func_echo_all arg...
6036 # Invoke $ECHO with all args, space-separated.
6043 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6044 printf "%s\n" "printf" >&6; } ;;
6045 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6046 printf "%s\n" "print -r" >&6; } ;;
6047 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6048 printf "%s\n" "cat" >&6; } ;;
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6065 printf %s "checking for a sed that does not truncate output... " >&6; }
6066 if test ${ac_cv_path_SED+y}
6068 printf %s "(cached) " >&6
6070 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6071 for ac_i in 1 2 3 4 5 6 7; do
6072 ac_script="$ac_script$as_nl$ac_script"
6074 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6075 { ac_script=; unset ac_script;}
6076 if test -z "$SED"; then
6077 ac_path_SED_found=false
6078 # Loop through the user's path and test for each of PROGNAME-LIST
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 case $as_dir in #(((
6086 *) as_dir=$as_dir/ ;;
6088 for ac_prog in sed gsed
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6092 as_fn_executable_p "$ac_path_SED" || continue
6093 # Check for GNU ac_path_SED and select it if it is found.
6094 # Check for GNU $ac_path_SED
6095 case `"$ac_path_SED" --version 2>&1` in
6097 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6100 printf %s 0123456789 >"conftest.in"
6103 cat "conftest.in" "conftest.in" >"conftest.tmp"
6104 mv "conftest.tmp" "conftest.in"
6105 cp "conftest.in" "conftest.nl"
6106 printf "%s\n" '' >> "conftest.nl"
6107 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6109 as_fn_arith $ac_count + 1 && ac_count=$as_val
6110 if test $ac_count -gt ${ac_path_SED_max-0}; then
6111 # Best one so far, save it but keep looking for a better one
6112 ac_cv_path_SED="$ac_path_SED"
6113 ac_path_SED_max=$ac_count
6115 # 10*(2^10) chars as input seems more than enough
6116 test $ac_count -gt 10 && break
6118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6121 $ac_path_SED_found && break 3
6126 if test -z "$ac_cv_path_SED"; then
6127 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6135 printf "%s\n" "$ac_cv_path_SED" >&6; }
6136 SED="$ac_cv_path_SED"
6139 test -z "$SED" && SED=sed
6140 Xsed="$SED -e 1s/^X//"
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6153 printf %s "checking for grep that handles long lines and -e... " >&6; }
6154 if test ${ac_cv_path_GREP+y}
6156 printf %s "(cached) " >&6
6158 if test -z "$GREP"; then
6159 ac_path_GREP_found=false
6160 # Loop through the user's path and test for each of PROGNAME-LIST
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6165 case $as_dir in #(((
6168 *) as_dir=$as_dir/ ;;
6170 for ac_prog in grep ggrep
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6174 as_fn_executable_p "$ac_path_GREP" || continue
6175 # Check for GNU ac_path_GREP and select it if it is found.
6176 # Check for GNU $ac_path_GREP
6177 case `"$ac_path_GREP" --version 2>&1` in
6179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6182 printf %s 0123456789 >"conftest.in"
6185 cat "conftest.in" "conftest.in" >"conftest.tmp"
6186 mv "conftest.tmp" "conftest.in"
6187 cp "conftest.in" "conftest.nl"
6188 printf "%s\n" 'GREP' >> "conftest.nl"
6189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191 as_fn_arith $ac_count + 1 && ac_count=$as_val
6192 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6193 # Best one so far, save it but keep looking for a better one
6194 ac_cv_path_GREP="$ac_path_GREP"
6195 ac_path_GREP_max=$ac_count
6197 # 10*(2^10) chars as input seems more than enough
6198 test $ac_count -gt 10 && break
6200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6203 $ac_path_GREP_found && break 3
6208 if test -z "$ac_cv_path_GREP"; then
6209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6212 ac_cv_path_GREP=$GREP
6216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6217 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6218 GREP="$ac_cv_path_GREP"
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6222 printf %s "checking for egrep... " >&6; }
6223 if test ${ac_cv_path_EGREP+y}
6225 printf %s "(cached) " >&6
6227 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6228 then ac_cv_path_EGREP="$GREP -E"
6230 if test -z "$EGREP"; then
6231 ac_path_EGREP_found=false
6232 # Loop through the user's path and test for each of PROGNAME-LIST
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6237 case $as_dir in #(((
6240 *) as_dir=$as_dir/ ;;
6242 for ac_prog in egrep
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6246 as_fn_executable_p "$ac_path_EGREP" || continue
6247 # Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249 case `"$ac_path_EGREP" --version 2>&1` in
6251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6254 printf %s 0123456789 >"conftest.in"
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 printf "%s\n" 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP="$ac_path_EGREP"
6267 ac_path_EGREP_max=$ac_count
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275 $ac_path_EGREP_found && break 3
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6284 ac_cv_path_EGREP=$EGREP
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6291 EGREP="$ac_cv_path_EGREP"
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6295 printf %s "checking for fgrep... " >&6; }
6296 if test ${ac_cv_path_FGREP+y}
6298 printf %s "(cached) " >&6
6300 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6301 then ac_cv_path_FGREP="$GREP -F"
6303 if test -z "$FGREP"; then
6304 ac_path_FGREP_found=false
6305 # Loop through the user's path and test for each of PROGNAME-LIST
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6310 case $as_dir in #(((
6313 *) as_dir=$as_dir/ ;;
6315 for ac_prog in fgrep
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6319 as_fn_executable_p "$ac_path_FGREP" || continue
6320 # Check for GNU ac_path_FGREP and select it if it is found.
6321 # Check for GNU $ac_path_FGREP
6322 case `"$ac_path_FGREP" --version 2>&1` in
6324 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6327 printf %s 0123456789 >"conftest.in"
6330 cat "conftest.in" "conftest.in" >"conftest.tmp"
6331 mv "conftest.tmp" "conftest.in"
6332 cp "conftest.in" "conftest.nl"
6333 printf "%s\n" 'FGREP' >> "conftest.nl"
6334 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6335 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6336 as_fn_arith $ac_count + 1 && ac_count=$as_val
6337 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6338 # Best one so far, save it but keep looking for a better one
6339 ac_cv_path_FGREP="$ac_path_FGREP"
6340 ac_path_FGREP_max=$ac_count
6342 # 10*(2^10) chars as input seems more than enough
6343 test $ac_count -gt 10 && break
6345 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6348 $ac_path_FGREP_found && break 3
6353 if test -z "$ac_cv_path_FGREP"; then
6354 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6357 ac_cv_path_FGREP=$FGREP
6362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6363 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6364 FGREP="$ac_cv_path_FGREP"
6367 test -z "$GREP" && GREP=grep
6387 # Check whether --with-gnu-ld was given.
6388 if test ${with_gnu_ld+y}
6390 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6396 if test yes = "$GCC"; then
6397 # Check if gcc -print-prog-name=ld gives a path.
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6399 printf %s "checking for ld used by $CC... " >&6; }
6402 # gcc leaves a trailing carriage return, which upsets mingw
6403 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6405 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6408 # Accept absolute paths.
6410 re_direlt='/[^/][^/]*/\.\./'
6411 # Canonicalize the pathname of ld
6412 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6413 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6414 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6416 test -z "$LD" && LD=$ac_prog
6419 # If it fails, then pretend we aren't using GCC.
6423 # If it is relative, then search for the first ld in PATH.
6427 elif test yes = "$with_gnu_ld"; then
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6429 printf %s "checking for GNU ld... " >&6; }
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6432 printf %s "checking for non-GNU ld... " >&6; }
6434 if test ${lt_cv_path_LD+y}
6436 printf %s "(cached) " >&6
6438 if test -z "$LD"; then
6439 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6440 for ac_dir in $PATH; do
6442 test -z "$ac_dir" && ac_dir=.
6443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6444 lt_cv_path_LD=$ac_dir/$ac_prog
6445 # Check to see if the program is GNU ld. I'd rather use --version,
6446 # but apparently some variants of GNU ld only accept -v.
6447 # Break only if it was the GNU/non-GNU ld that we prefer.
6448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6449 *GNU* | *'with BFD'*)
6450 test no != "$with_gnu_ld" && break
6453 test yes != "$with_gnu_ld" && break
6460 lt_cv_path_LD=$LD # Let the user override the test with a path.
6465 if test -n "$LD"; then
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6467 printf "%s\n" "$LD" >&6; }
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 printf "%s\n" "no" >&6; }
6472 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6474 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6475 if test ${lt_cv_prog_gnu_ld+y}
6477 printf %s "(cached) " >&6
6479 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6480 case `$LD -v 2>&1 </dev/null` in
6481 *GNU* | *'with BFD'*)
6482 lt_cv_prog_gnu_ld=yes
6485 lt_cv_prog_gnu_ld=no
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6490 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6491 with_gnu_ld=$lt_cv_prog_gnu_ld
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6502 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6503 if test ${lt_cv_path_NM+y}
6505 printf %s "(cached) " >&6
6507 if test -n "$NM"; then
6508 # Let the user override the test.
6511 lt_nm_to_check=${ac_tool_prefix}nm
6512 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6513 lt_nm_to_check="$lt_nm_to_check nm"
6515 for lt_tmp_nm in $lt_nm_to_check; do
6516 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6517 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6519 test -z "$ac_dir" && ac_dir=.
6520 tmp_nm=$ac_dir/$lt_tmp_nm
6521 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6522 # Check to see if the nm accepts a BSD-compat flag.
6523 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6524 # nm: unknown option "B" ignored
6525 # Tru64's nm complains that /dev/null is an invalid object file
6526 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6528 mingw*) lt_bad_file=conftest.nm/nofile ;;
6529 *) lt_bad_file=/dev/null ;;
6531 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6532 *$lt_bad_file* | *'Invalid file or object type'*)
6533 lt_cv_path_NM="$tmp_nm -B"
6537 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6539 lt_cv_path_NM="$tmp_nm -p"
6543 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6544 continue # so that we can try to find one that supports BSD flags
6553 : ${lt_cv_path_NM=no}
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6557 printf "%s\n" "$lt_cv_path_NM" >&6; }
6558 if test no != "$lt_cv_path_NM"; then
6561 # Didn't find any BSD compatible name lister, look for dumpbin.
6562 if test -n "$DUMPBIN"; then :
6563 # Let the user override the test.
6565 if test -n "$ac_tool_prefix"; then
6566 for ac_prog in dumpbin "link -dump"
6568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 printf %s "checking for $ac_word... " >&6; }
6572 if test ${ac_cv_prog_DUMPBIN+y}
6574 printf %s "(cached) " >&6
6576 if test -n "$DUMPBIN"; then
6577 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 case $as_dir in #(((
6586 *) as_dir=$as_dir/ ;;
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6590 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6600 DUMPBIN=$ac_cv_prog_DUMPBIN
6601 if test -n "$DUMPBIN"; then
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6603 printf "%s\n" "$DUMPBIN" >&6; }
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 printf "%s\n" "no" >&6; }
6610 test -n "$DUMPBIN" && break
6613 if test -z "$DUMPBIN"; then
6614 ac_ct_DUMPBIN=$DUMPBIN
6615 for ac_prog in dumpbin "link -dump"
6617 # Extract the first word of "$ac_prog", so it can be a program name with args.
6618 set dummy $ac_prog; ac_word=$2
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 printf %s "checking for $ac_word... " >&6; }
6621 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6623 printf %s "(cached) " >&6
6625 if test -n "$ac_ct_DUMPBIN"; then
6626 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 case $as_dir in #(((
6635 *) as_dir=$as_dir/ ;;
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6649 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6650 if test -n "$ac_ct_DUMPBIN"; then
6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6652 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 printf "%s\n" "no" >&6; }
6659 test -n "$ac_ct_DUMPBIN" && break
6662 if test "x$ac_ct_DUMPBIN" = x; then
6665 case $cross_compiling:$ac_tool_warned in
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6669 ac_tool_warned=yes ;;
6671 DUMPBIN=$ac_ct_DUMPBIN
6675 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6677 DUMPBIN="$DUMPBIN -symbols -headers"
6685 if test : != "$DUMPBIN"; then
6689 test -z "$NM" && NM=nm
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6697 printf %s "checking the name lister ($NM) interface... " >&6; }
6698 if test ${lt_cv_nm_interface+y}
6700 printf %s "(cached) " >&6
6702 lt_cv_nm_interface="BSD nm"
6703 echo "int some_variable = 0;" > conftest.$ac_ext
6704 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6705 (eval "$ac_compile" 2>conftest.err)
6706 cat conftest.err >&5
6707 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6708 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6709 cat conftest.err >&5
6710 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6711 cat conftest.out >&5
6712 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6713 lt_cv_nm_interface="MS dumpbin"
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6718 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6721 printf %s "checking whether ln -s works... " >&6; }
6723 if test "$LN_S" = "ln -s"; then
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6725 printf "%s\n" "yes" >&6; }
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6728 printf "%s\n" "no, using $LN_S" >&6; }
6731 # find the maximum length of command line arguments
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6733 printf %s "checking the maximum length of command line arguments... " >&6; }
6734 if test ${lt_cv_sys_max_cmd_len+y}
6736 printf %s "(cached) " >&6
6743 # On DJGPP, this test can blow up pretty badly due to problems in libc
6744 # (any single argument exceeding 2000 bytes causes a buffer overrun
6745 # during glob expansion). Even if it were fixed, the result of this
6746 # check would be larger than it should be.
6747 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6751 # Under GNU Hurd, this test is not required because there is
6752 # no limit to the length of command line arguments.
6753 # Libtool will interpret -1 as no limit whatsoever
6754 lt_cv_sys_max_cmd_len=-1;
6757 cygwin* | mingw* | cegcc*)
6758 # On Win9x/ME, this test blows up -- it succeeds, but takes
6759 # about 5 minutes as the teststring grows exponentially.
6760 # Worse, since 9x/ME are not pre-emptively multitasking,
6761 # you end up with a "frozen" computer, even though with patience
6762 # the test eventually succeeds (with a max line length of 256k).
6763 # Instead, let's just punt: use the minimum linelength reported by
6764 # all of the supported platforms: 8192 (on NT/2K/XP).
6765 lt_cv_sys_max_cmd_len=8192;
6769 # On MiNT this can take a long time and run out of memory.
6770 lt_cv_sys_max_cmd_len=8192;
6774 # On AmigaOS with pdksh, this test takes hours, literally.
6775 # So we just punt and use a minimum line length of 8192.
6776 lt_cv_sys_max_cmd_len=8192;
6779 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6780 # This has been around since 386BSD, at least. Likely further.
6781 if test -x /sbin/sysctl; then
6782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6783 elif test -x /usr/sbin/sysctl; then
6784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6786 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6788 # And add a safety zone
6789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6794 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6795 lt_cv_sys_max_cmd_len=196608
6799 # The test takes a long time on OS/2.
6800 lt_cv_sys_max_cmd_len=8192
6804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6806 # nice to cause kernel panics so lets avoid the loop below.
6807 # First set a reasonable default.
6808 lt_cv_sys_max_cmd_len=16384
6810 if test -x /sbin/sysconfig; then
6811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6812 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6817 lt_cv_sys_max_cmd_len=102400
6819 sysv5* | sco5v6* | sysv4.2uw2*)
6820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6821 if test -n "$kargmax"; then
6822 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6824 lt_cv_sys_max_cmd_len=32768
6828 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6829 if test -n "$lt_cv_sys_max_cmd_len" && \
6830 test undefined != "$lt_cv_sys_max_cmd_len"; then
6831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6834 # Make teststring a little bigger before we do anything with it.
6835 # a 1K string should be a reasonable start.
6836 for i in 1 2 3 4 5 6 7 8; do
6837 teststring=$teststring$teststring
6839 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6840 # If test is not a shell built-in, we'll probably end up computing a
6841 # maximum length that is only half of the actual maximum length, but
6843 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6844 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6845 test 17 != "$i" # 1/2 MB should be enough
6848 teststring=$teststring$teststring
6850 # Only check the string length outside the loop.
6851 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6853 # Add a significant safety factor because C++ compilers can tack on
6854 # massive amounts of additional arguments before passing them to the
6855 # linker. It appears as though 1/2 is a usable value.
6856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6863 if test -n "$lt_cv_sys_max_cmd_len"; then
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6865 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6868 printf "%s\n" "none" >&6; }
6870 max_cmd_len=$lt_cv_sys_max_cmd_len
6881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6891 # test EBCDIC or ASCII
6892 case `echo X|tr X '\101'` in
6893 A) # ASCII based system
6894 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6895 lt_SP2NL='tr \040 \012'
6896 lt_NL2SP='tr \015\012 \040\040'
6898 *) # EBCDIC based system
6899 lt_SP2NL='tr \100 \n'
6900 lt_NL2SP='tr \r\n \100\100'
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6913 printf %s "checking how to convert $build file names to $host format... " >&6; }
6914 if test ${lt_cv_to_host_file_cmd+y}
6916 printf %s "(cached) " >&6
6921 *-*-mingw* ) # actually msys
6922 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6925 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6927 * ) # otherwise, assume *nix
6928 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6934 *-*-mingw* ) # actually msys
6935 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6938 lt_cv_to_host_file_cmd=func_convert_file_noop
6940 * ) # otherwise, assume *nix
6941 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6945 * ) # unhandled hosts (and "normal" native builds)
6946 lt_cv_to_host_file_cmd=func_convert_file_noop
6952 to_host_file_cmd=$lt_cv_to_host_file_cmd
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6954 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6961 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6962 if test ${lt_cv_to_tool_file_cmd+y}
6964 printf %s "(cached) " >&6
6966 #assume ordinary cross tools, or native build.
6967 lt_cv_to_tool_file_cmd=func_convert_file_noop
6971 *-*-mingw* ) # actually msys
6972 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6980 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6982 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6989 printf %s "checking for $LD option to reload object files... " >&6; }
6990 if test ${lt_cv_ld_reload_flag+y}
6992 printf %s "(cached) " >&6
6994 lt_cv_ld_reload_flag='-r'
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6997 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6998 reload_flag=$lt_cv_ld_reload_flag
6999 case $reload_flag in
7001 *) reload_flag=" $reload_flag" ;;
7003 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7005 cygwin* | mingw* | pw32* | cegcc*)
7006 if test yes != "$GCC"; then
7011 if test yes = "$GCC"; then
7012 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7014 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 printf %s "checking for $ac_word... " >&6; }
7032 if test ${ac_cv_prog_OBJDUMP+y}
7034 printf %s "(cached) " >&6
7036 if test -n "$OBJDUMP"; then
7037 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043 case $as_dir in #(((
7046 *) as_dir=$as_dir/ ;;
7048 for ac_exec_ext in '' $ac_executable_extensions; do
7049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7050 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7060 OBJDUMP=$ac_cv_prog_OBJDUMP
7061 if test -n "$OBJDUMP"; then
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7063 printf "%s\n" "$OBJDUMP" >&6; }
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 printf "%s\n" "no" >&6; }
7071 if test -z "$ac_cv_prog_OBJDUMP"; then
7072 ac_ct_OBJDUMP=$OBJDUMP
7073 # Extract the first word of "objdump", so it can be a program name with args.
7074 set dummy objdump; ac_word=$2
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7076 printf %s "checking for $ac_word... " >&6; }
7077 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7079 printf %s "(cached) " >&6
7081 if test -n "$ac_ct_OBJDUMP"; then
7082 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 case $as_dir in #(((
7091 *) as_dir=$as_dir/ ;;
7093 for ac_exec_ext in '' $ac_executable_extensions; do
7094 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7095 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7106 if test -n "$ac_ct_OBJDUMP"; then
7107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7108 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 printf "%s\n" "no" >&6; }
7114 if test "x$ac_ct_OBJDUMP" = x; then
7117 case $cross_compiling:$ac_tool_warned in
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7123 OBJDUMP=$ac_ct_OBJDUMP
7126 OBJDUMP="$ac_cv_prog_OBJDUMP"
7129 test -z "$OBJDUMP" && OBJDUMP=objdump
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7137 printf %s "checking how to recognize dependent libraries... " >&6; }
7138 if test ${lt_cv_deplibs_check_method+y}
7140 printf %s "(cached) " >&6
7142 lt_cv_file_magic_cmd='$MAGIC_CMD'
7143 lt_cv_file_magic_test_file=
7144 lt_cv_deplibs_check_method='unknown'
7145 # Need to set the preceding variable on all platforms that support
7146 # interlibrary dependencies.
7147 # 'none' -- dependencies not supported.
7148 # 'unknown' -- same as none, but documents that we really don't know.
7149 # 'pass_all' -- all dependencies passed with no checks.
7150 # 'test_compile' -- check by making test program.
7151 # 'file_magic [[regex]]' -- check by looking for files in library path
7152 # that responds to the $file_magic_cmd with a given extended regex.
7153 # If you have 'file' or equivalent on your system and you're not sure
7154 # whether 'pass_all' will *always* work, you probably want this one.
7158 lt_cv_deplibs_check_method=pass_all
7162 lt_cv_deplibs_check_method=pass_all
7166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7167 lt_cv_file_magic_cmd='/usr/bin/file -L'
7168 lt_cv_file_magic_test_file=/shlib/libc.so
7172 # func_win32_libid is a shell function defined in ltmain.sh
7173 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7174 lt_cv_file_magic_cmd='func_win32_libid'
7178 # Base MSYS/MinGW do not provide the 'file' command needed by
7179 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7180 # unless we find 'file', for example because we are cross-compiling.
7181 if ( file / ) >/dev/null 2>&1; then
7182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7183 lt_cv_file_magic_cmd='func_win32_libid'
7185 # Keep this pattern in sync with the one in func_win32_libid.
7186 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7187 lt_cv_file_magic_cmd='$OBJDUMP -f'
7192 # use the weaker test based on 'objdump'. See mingw*.
7193 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7194 lt_cv_file_magic_cmd='$OBJDUMP -f'
7197 darwin* | rhapsody*)
7198 lt_cv_deplibs_check_method=pass_all
7201 freebsd* | dragonfly*)
7202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7205 # Not sure whether the presence of OpenBSD here was a mistake.
7206 # Let's accept both of them until this is cleared up.
7207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7208 lt_cv_file_magic_cmd=/usr/bin/file
7209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7213 lt_cv_deplibs_check_method=pass_all
7218 lt_cv_deplibs_check_method=pass_all
7221 hpux10.20* | hpux11*)
7222 lt_cv_file_magic_cmd=/usr/bin/file
7225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7226 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7229 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]'
7230 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7234 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7240 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7244 irix5* | irix6* | nonstopux*)
7246 *-32|*"-32 ") libmagic=32-bit;;
7247 *-n32|*"-n32 ") libmagic=N32;;
7248 *-64|*"-64 ") libmagic=64-bit;;
7249 *) libmagic=never-match;;
7251 lt_cv_deplibs_check_method=pass_all
7254 # This must be glibc/ELF.
7255 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7256 lt_cv_deplibs_check_method=pass_all
7259 netbsd* | netbsdelf*-gnu)
7260 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7269 lt_cv_file_magic_cmd=/usr/bin/file
7270 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7274 lt_cv_deplibs_check_method=pass_all
7278 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7285 osf3* | osf4* | osf5*)
7286 lt_cv_deplibs_check_method=pass_all
7290 lt_cv_deplibs_check_method=pass_all
7294 lt_cv_deplibs_check_method=pass_all
7297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7298 lt_cv_deplibs_check_method=pass_all
7302 case $host_vendor in
7304 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]'
7305 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7308 lt_cv_deplibs_check_method=pass_all
7311 lt_cv_file_magic_cmd='/bin/file'
7312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7315 lt_cv_file_magic_cmd='/bin/file'
7316 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7317 lt_cv_file_magic_test_file=/lib/libc.so
7320 lt_cv_deplibs_check_method=pass_all
7323 lt_cv_deplibs_check_method=pass_all
7329 lt_cv_deplibs_check_method=pass_all
7332 lt_cv_deplibs_check_method=pass_all
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7338 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7342 if test "$build" = "$host"; then
7345 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7348 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7354 file_magic_cmd=$lt_cv_file_magic_cmd
7355 deplibs_check_method=$lt_cv_deplibs_check_method
7356 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 printf %s "checking for $ac_word... " >&6; }
7384 if test ${ac_cv_prog_DLLTOOL+y}
7386 printf %s "(cached) " >&6
7388 if test -n "$DLLTOOL"; then
7389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 case $as_dir in #(((
7398 *) as_dir=$as_dir/ ;;
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7402 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7412 DLLTOOL=$ac_cv_prog_DLLTOOL
7413 if test -n "$DLLTOOL"; then
7414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7415 printf "%s\n" "$DLLTOOL" >&6; }
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 printf "%s\n" "no" >&6; }
7423 if test -z "$ac_cv_prog_DLLTOOL"; then
7424 ac_ct_DLLTOOL=$DLLTOOL
7425 # Extract the first word of "dlltool", so it can be a program name with args.
7426 set dummy dlltool; ac_word=$2
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428 printf %s "checking for $ac_word... " >&6; }
7429 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7431 printf %s "(cached) " >&6
7433 if test -n "$ac_ct_DLLTOOL"; then
7434 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 case $as_dir in #(((
7443 *) as_dir=$as_dir/ ;;
7445 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7447 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7457 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7458 if test -n "$ac_ct_DLLTOOL"; then
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7460 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 printf "%s\n" "no" >&6; }
7466 if test "x$ac_ct_DLLTOOL" = x; then
7469 case $cross_compiling:$ac_tool_warned in
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7475 DLLTOOL=$ac_ct_DLLTOOL
7478 DLLTOOL="$ac_cv_prog_DLLTOOL"
7481 test -z "$DLLTOOL" && DLLTOOL=dlltool
7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7490 printf %s "checking how to associate runtime and link libraries... " >&6; }
7491 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7493 printf %s "(cached) " >&6
7495 lt_cv_sharedlib_from_linklib_cmd='unknown'
7498 cygwin* | mingw* | pw32* | cegcc*)
7499 # two different shell functions defined in ltmain.sh;
7500 # decide which one to use based on capabilities of $DLLTOOL
7501 case `$DLLTOOL --help 2>&1` in
7502 *--identify-strict*)
7503 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7506 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7511 # fallback: assume linklib IS sharedlib
7512 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7518 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7519 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7520 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7528 if test -n "$ac_tool_prefix"; then
7531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 printf %s "checking for $ac_word... " >&6; }
7535 if test ${ac_cv_prog_AR+y}
7537 printf %s "(cached) " >&6
7539 if test -n "$AR"; then
7540 ac_cv_prog_AR="$AR" # Let the user override the test.
7542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 case $as_dir in #(((
7549 *) as_dir=$as_dir/ ;;
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7553 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7564 if test -n "$AR"; then
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7566 printf "%s\n" "$AR" >&6; }
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 printf "%s\n" "no" >&6; }
7573 test -n "$AR" && break
7576 if test -z "$AR"; then
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 printf %s "checking for $ac_word... " >&6; }
7584 if test ${ac_cv_prog_ac_ct_AR+y}
7586 printf %s "(cached) " >&6
7588 if test -n "$ac_ct_AR"; then
7589 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 case $as_dir in #(((
7598 *) as_dir=$as_dir/ ;;
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7602 ac_cv_prog_ac_ct_AR="$ac_prog"
7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7613 if test -n "$ac_ct_AR"; then
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7615 printf "%s\n" "$ac_ct_AR" >&6; }
7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 printf "%s\n" "no" >&6; }
7622 test -n "$ac_ct_AR" && break
7625 if test "x$ac_ct_AR" = x; then
7628 case $cross_compiling:$ac_tool_warned in
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7632 ac_tool_warned=yes ;;
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7652 printf %s "checking for archiver @FILE support... " >&6; }
7653 if test ${lt_cv_ar_at_file+y}
7655 printf %s "(cached) " >&6
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7669 if ac_fn_c_try_compile "$LINENO"
7671 echo conftest.$ac_objext > conftest.lst
7672 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7674 (eval $lt_ar_try) 2>&5
7676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7677 test $ac_status = 0; }
7678 if test 0 -eq "$ac_status"; then
7679 # Ensure the archiver fails upon bogus file names.
7680 rm -f conftest.$ac_objext libconftest.a
7681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7682 (eval $lt_ar_try) 2>&5
7684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; }
7686 if test 0 -ne "$ac_status"; then
7690 rm -f conftest.* libconftest.a
7693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7697 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7699 if test no = "$lt_cv_ar_at_file"; then
7702 archiver_list_spec=$lt_cv_ar_at_file
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7713 set dummy ${ac_tool_prefix}strip; ac_word=$2
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 printf %s "checking for $ac_word... " >&6; }
7716 if test ${ac_cv_prog_STRIP+y}
7718 printf %s "(cached) " >&6
7720 if test -n "$STRIP"; then
7721 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 case $as_dir in #(((
7730 *) as_dir=$as_dir/ ;;
7732 for ac_exec_ext in '' $ac_executable_extensions; do
7733 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7734 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7744 STRIP=$ac_cv_prog_STRIP
7745 if test -n "$STRIP"; then
7746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7747 printf "%s\n" "$STRIP" >&6; }
7749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 printf "%s\n" "no" >&6; }
7755 if test -z "$ac_cv_prog_STRIP"; then
7757 # Extract the first word of "strip", so it can be a program name with args.
7758 set dummy strip; ac_word=$2
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 printf %s "checking for $ac_word... " >&6; }
7761 if test ${ac_cv_prog_ac_ct_STRIP+y}
7763 printf %s "(cached) " >&6
7765 if test -n "$ac_ct_STRIP"; then
7766 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 case $as_dir in #(((
7775 *) as_dir=$as_dir/ ;;
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7779 ac_cv_prog_ac_ct_STRIP="strip"
7780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7789 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7790 if test -n "$ac_ct_STRIP"; then
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7792 printf "%s\n" "$ac_ct_STRIP" >&6; }
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7795 printf "%s\n" "no" >&6; }
7798 if test "x$ac_ct_STRIP" = x; then
7801 case $cross_compiling:$ac_tool_warned in
7803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7804 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7805 ac_tool_warned=yes ;;
7810 STRIP="$ac_cv_prog_STRIP"
7813 test -z "$STRIP" && STRIP=:
7820 if test -n "$ac_tool_prefix"; then
7821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824 printf %s "checking for $ac_word... " >&6; }
7825 if test ${ac_cv_prog_RANLIB+y}
7827 printf %s "(cached) " >&6
7829 if test -n "$RANLIB"; then
7830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836 case $as_dir in #(((
7839 *) as_dir=$as_dir/ ;;
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7853 RANLIB=$ac_cv_prog_RANLIB
7854 if test -n "$RANLIB"; then
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7856 printf "%s\n" "$RANLIB" >&6; }
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 printf "%s\n" "no" >&6; }
7864 if test -z "$ac_cv_prog_RANLIB"; then
7865 ac_ct_RANLIB=$RANLIB
7866 # Extract the first word of "ranlib", so it can be a program name with args.
7867 set dummy ranlib; ac_word=$2
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 printf %s "checking for $ac_word... " >&6; }
7870 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7872 printf %s "(cached) " >&6
7874 if test -n "$ac_ct_RANLIB"; then
7875 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881 case $as_dir in #(((
7884 *) as_dir=$as_dir/ ;;
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_ac_ct_RANLIB="ranlib"
7889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7898 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7899 if test -n "$ac_ct_RANLIB"; then
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7901 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 printf "%s\n" "no" >&6; }
7907 if test "x$ac_ct_RANLIB" = x; then
7910 case $cross_compiling:$ac_tool_warned in
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7916 RANLIB=$ac_ct_RANLIB
7919 RANLIB="$ac_cv_prog_RANLIB"
7922 test -z "$RANLIB" && RANLIB=:
7929 # Determine commands to create old-style static archives.
7930 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7931 old_postinstall_cmds='chmod 644 $oldlib'
7932 old_postuninstall_cmds=
7934 if test -n "$RANLIB"; then
7937 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7943 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7948 lock_old_archive_extraction=yes ;;
7950 lock_old_archive_extraction=no ;;
7991 # If no C compiler was specified, use CC.
7994 # If no C compiler flags were specified, use CFLAGS.
7995 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7997 # Allow CC to be a program name with arguments.
8001 # Check for command to grab the raw symbol name followed by C symbol from nm.
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8003 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8004 if test ${lt_cv_sys_global_symbol_pipe+y}
8006 printf %s "(cached) " >&6
8009 # These are sane defaults that work on at least a few old systems.
8010 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8012 # Character class describing NM global symbol codes.
8013 symcode='[BCDEGRST]'
8015 # Regexp to match symbols that can be accessed directly from C.
8016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8018 # Define system-specific variables.
8023 cygwin* | mingw* | pw32* | cegcc*)
8024 symcode='[ABCDGISTW]'
8027 if test ia64 = "$host_cpu"; then
8028 symcode='[ABCDEGRST]'
8032 symcode='[BCDEGRST]'
8035 symcode='[BCDEGQRST]'
8046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8054 # If we're using GNU nm, then use its standard symbol codes.
8055 case `$NM -V 2>&1` in
8056 *GNU* | *'with BFD'*)
8057 symcode='[ABCDGIRSTW]' ;;
8060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8061 # Gets list of data symbols to import.
8062 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8063 # Adjust the below global symbol transforms to fixup imported variables.
8064 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8065 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8066 lt_c_name_lib_hook="\
8067 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8068 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8070 # Disable hooks by default.
8071 lt_cv_sys_global_symbol_to_import=
8077 # Transform an extracted symbol line into a proper C declaration.
8078 # Some systems (esp. on ia64) link data and code symbols differently,
8079 # so use this general approach.
8080 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8082 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8083 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8085 # Transform an extracted symbol line into symbol name and symbol address
8086 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8088 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8089 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8091 # Transform an extracted symbol line into symbol name with lib prefix and
8093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8094 $lt_c_name_lib_hook\
8095 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8096 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8097 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8099 # Handle CRLF in mingw tool chain
8103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8107 # Try without a prefix underscore, then with it.
8108 for ac_symprfx in "" "_"; do
8110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8111 symxfrm="\\1 $ac_symprfx\\2 \\2"
8113 # Write the raw and C identifiers.
8114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8115 # Fake it for dumpbin and say T for any non-static function,
8116 # D for any global variable and I for any imported variable.
8117 # Also find C++ and __fastcall symbols from MSVC++,
8118 # which start with @ or ?.
8119 lt_cv_sys_global_symbol_pipe="$AWK '"\
8120 " {last_section=section; section=\$ 3};"\
8121 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8122 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8123 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8124 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8125 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8126 " \$ 0!~/External *\|/{next};"\
8127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8128 " {if(hide[section]) next};"\
8129 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8130 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8131 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8132 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8133 " ' prfx=^$ac_symprfx"
8135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8139 # Check to see that the pipe works correctly.
8143 cat > conftest.$ac_ext <<_LT_EOF
8148 void nm_test_func(void);
8149 void nm_test_func(void){}
8153 int main(){nm_test_var='a';nm_test_func();return(0);}
8156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8157 (eval $ac_compile) 2>&5
8159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8160 test $ac_status = 0; }; then
8161 # Now try to grab the symbols.
8163 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8164 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8165 # Try sorting and uniquifying the output.
8166 if sort "$nlist" | uniq > "$nlist"T; then
8167 mv -f "$nlist"T "$nlist"
8172 # Make sure that we snagged all the symbols we need.
8173 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8174 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8175 cat <<_LT_EOF > conftest.$ac_ext
8176 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8177 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8178 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8179 relocations are performed -- see ld's documentation on pseudo-relocs. */
8180 # define LT_DLSYM_CONST
8181 #elif defined __osf__
8182 /* This system does not cope well with relocations in const data. */
8183 # define LT_DLSYM_CONST
8185 # define LT_DLSYM_CONST const
8193 # Now generate the symbol file.
8194 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8196 cat <<_LT_EOF >> conftest.$ac_ext
8198 /* The mapping between symbol names and symbols. */
8199 LT_DLSYM_CONST struct {
8203 lt__PROGRAM__LTX_preloaded_symbols[] =
8205 { "@PROGRAM@", (void *) 0 },
8207 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8208 cat <<\_LT_EOF >> conftest.$ac_ext
8212 /* This works around a problem in FreeBSD linker */
8213 #ifdef FREEBSD_WORKAROUND
8214 static const void *lt_preloaded_setup() {
8215 return lt__PROGRAM__LTX_preloaded_symbols;
8223 # Now try linking the two files.
8224 mv conftest.$ac_objext conftstm.$ac_objext
8225 lt_globsym_save_LIBS=$LIBS
8226 lt_globsym_save_CFLAGS=$CFLAGS
8227 LIBS=conftstm.$ac_objext
8228 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8230 (eval $ac_link) 2>&5
8232 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8236 LIBS=$lt_globsym_save_LIBS
8237 CFLAGS=$lt_globsym_save_CFLAGS
8239 echo "cannot find nm_test_func in $nlist" >&5
8242 echo "cannot find nm_test_var in $nlist" >&5
8245 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8248 echo "$progname: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8251 rm -rf conftest* conftst*
8253 # Do not use the global_symbol_pipe unless it works.
8254 if test yes = "$pipe_works"; then
8257 lt_cv_sys_global_symbol_pipe=
8263 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8264 lt_cv_sys_global_symbol_to_cdecl=
8266 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8268 printf "%s\n" "failed" >&6; }
8270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8271 printf "%s\n" "ok" >&6; }
8274 # Response file support.
8275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8276 nm_file_list_spec='@'
8277 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8278 nm_file_list_spec='@'
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8318 printf %s "checking for sysroot... " >&6; }
8320 # Check whether --with-sysroot was given.
8321 if test ${with_sysroot+y}
8323 withval=$with_sysroot;
8330 case $with_sysroot in #(
8332 if test yes = "$GCC"; then
8333 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8337 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8343 printf "%s\n" "$with_sysroot" >&6; }
8344 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8349 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8356 printf %s "checking for a working dd... " >&6; }
8357 if test ${ac_cv_path_lt_DD+y}
8359 printf %s "(cached) " >&6
8361 printf 0123456789abcdef0123456789abcdef >conftest.i
8362 cat conftest.i conftest.i >conftest2.i
8364 if test -z "$lt_DD"; then
8365 ac_path_lt_DD_found=false
8366 # Loop through the user's path and test for each of PROGNAME-LIST
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 case $as_dir in #(((
8374 *) as_dir=$as_dir/ ;;
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8380 as_fn_executable_p "$ac_path_lt_DD" || continue
8381 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8382 cmp -s conftest.i conftest.out \
8383 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8385 $ac_path_lt_DD_found && break 3
8390 if test -z "$ac_cv_path_lt_DD"; then
8394 ac_cv_path_lt_DD=$lt_DD
8397 rm -f conftest.i conftest2.i conftest.out
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8400 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8404 printf %s "checking how to truncate binary pipes... " >&6; }
8405 if test ${lt_cv_truncate_bin+y}
8407 printf %s "(cached) " >&6
8409 printf 0123456789abcdef0123456789abcdef >conftest.i
8410 cat conftest.i conftest.i >conftest2.i
8412 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8413 cmp -s conftest.i conftest.out \
8414 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8416 rm -f conftest.i conftest2.i conftest.out
8417 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8420 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8428 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8431 for cc_temp in $*""; do
8433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8439 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8442 # Check whether --enable-libtool-lock was given.
8443 if test ${enable_libtool_lock+y}
8445 enableval=$enable_libtool_lock;
8448 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8450 # Some flags need to be propagated to the compiler or linker for good
8454 # Find out what ABI is being produced by ac_compile, and set mode
8455 # options accordingly.
8456 echo 'int i;' > conftest.$ac_ext
8457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8458 (eval $ac_compile) 2>&5
8460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8461 test $ac_status = 0; }; then
8462 case `/usr/bin/file conftest.$ac_objext` in
8474 # Find out what ABI is being produced by ac_compile, and set linker
8475 # options accordingly.
8476 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8478 (eval $ac_compile) 2>&5
8480 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8481 test $ac_status = 0; }; then
8482 if test yes = "$lt_cv_prog_gnu_ld"; then
8483 case `/usr/bin/file conftest.$ac_objext` in
8485 LD="${LD-ld} -melf32bsmip"
8488 LD="${LD-ld} -melf32bmipn32"
8491 LD="${LD-ld} -melf64bmip"
8495 case `/usr/bin/file conftest.$ac_objext` in
8512 # Find out what ABI is being produced by ac_compile, and set linker
8513 # options accordingly.
8514 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8516 (eval $ac_compile) 2>&5
8518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8519 test $ac_status = 0; }; then
8521 case `/usr/bin/file conftest.$ac_objext` in
8529 case `/usr/bin/file conftest.$ac_objext` in
8531 emul="${emul}btsmip"
8534 emul="${emul}ltsmip"
8537 case `/usr/bin/file conftest.$ac_objext` in
8542 LD="${LD-ld} -m $emul"
8547 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8548 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8549 # Find out what ABI is being produced by ac_compile, and set linker
8550 # options accordingly. Note that the listed cases only cover the
8551 # situations where additional linker options are needed (such as when
8552 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8553 # vice versa); the common cases where no linker options are needed do
8554 # not appear in the list.
8555 echo 'int i;' > conftest.$ac_ext
8556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8557 (eval $ac_compile) 2>&5
8559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8560 test $ac_status = 0; }; then
8561 case `/usr/bin/file conftest.o` in
8564 x86_64-*kfreebsd*-gnu)
8565 LD="${LD-ld} -m elf_i386_fbsd"
8568 case `/usr/bin/file conftest.o` in
8570 LD="${LD-ld} -m elf32_x86_64"
8573 LD="${LD-ld} -m elf_i386"
8577 powerpc64le-*linux*)
8578 LD="${LD-ld} -m elf32lppclinux"
8581 LD="${LD-ld} -m elf32ppclinux"
8584 LD="${LD-ld} -m elf_s390"
8587 LD="${LD-ld} -m elf32_sparc"
8593 x86_64-*kfreebsd*-gnu)
8594 LD="${LD-ld} -m elf_x86_64_fbsd"
8597 LD="${LD-ld} -m elf_x86_64"
8600 LD="${LD-ld} -m elf64lppc"
8603 LD="${LD-ld} -m elf64ppc"
8605 s390*-*linux*|s390*-*tpf*)
8606 LD="${LD-ld} -m elf64_s390"
8609 LD="${LD-ld} -m elf64_sparc"
8619 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8621 CFLAGS="$CFLAGS -belf"
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8623 printf %s "checking whether the C compiler needs -belf... " >&6; }
8624 if test ${lt_cv_cc_needs_belf+y}
8626 printf %s "(cached) " >&6
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8645 if ac_fn_c_try_link "$LINENO"
8647 lt_cv_cc_needs_belf=yes
8649 lt_cv_cc_needs_belf=no
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8652 conftest$ac_exeext conftest.$ac_ext
8654 ac_cpp='$CPP $CPPFLAGS'
8655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8661 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8662 if test yes != "$lt_cv_cc_needs_belf"; then
8663 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8668 # Find out what ABI is being produced by ac_compile, and set linker
8669 # options accordingly.
8670 echo 'int i;' > conftest.$ac_ext
8671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8672 (eval $ac_compile) 2>&5
8674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8675 test $ac_status = 0; }; then
8676 case `/usr/bin/file conftest.o` in
8678 case $lt_cv_prog_gnu_ld in
8681 i?86-*-solaris*|x86_64-*-solaris*)
8682 LD="${LD-ld} -m elf_x86_64"
8685 LD="${LD-ld} -m elf64_sparc"
8688 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8689 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8694 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8706 need_locks=$enable_libtool_lock
8708 if test -n "$ac_tool_prefix"; then
8709 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8710 set dummy ${ac_tool_prefix}mt; ac_word=$2
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 printf %s "checking for $ac_word... " >&6; }
8713 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8715 printf %s "(cached) " >&6
8717 if test -n "$MANIFEST_TOOL"; then
8718 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 case $as_dir in #(((
8727 *) as_dir=$as_dir/ ;;
8729 for ac_exec_ext in '' $ac_executable_extensions; do
8730 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8731 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8732 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8741 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8742 if test -n "$MANIFEST_TOOL"; then
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8744 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 printf "%s\n" "no" >&6; }
8752 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8753 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8754 # Extract the first word of "mt", so it can be a program name with args.
8755 set dummy mt; ac_word=$2
8756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8757 printf %s "checking for $ac_word... " >&6; }
8758 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8760 printf %s "(cached) " >&6
8762 if test -n "$ac_ct_MANIFEST_TOOL"; then
8763 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8769 case $as_dir in #(((
8772 *) as_dir=$as_dir/ ;;
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8776 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8786 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8787 if test -n "$ac_ct_MANIFEST_TOOL"; then
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8789 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 printf "%s\n" "no" >&6; }
8795 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8798 case $cross_compiling:$ac_tool_warned in
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8801 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8802 ac_tool_warned=yes ;;
8804 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8807 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8810 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8812 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8813 if test ${lt_cv_path_mainfest_tool+y}
8815 printf %s "(cached) " >&6
8817 lt_cv_path_mainfest_tool=no
8818 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8819 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8820 cat conftest.err >&5
8821 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8822 lt_cv_path_mainfest_tool=yes
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8827 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8828 if test yes != "$lt_cv_path_mainfest_tool"; then
8838 rhapsody* | darwin*)
8839 if test -n "$ac_tool_prefix"; then
8840 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8841 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 printf %s "checking for $ac_word... " >&6; }
8844 if test ${ac_cv_prog_DSYMUTIL+y}
8846 printf %s "(cached) " >&6
8848 if test -n "$DSYMUTIL"; then
8849 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8855 case $as_dir in #(((
8858 *) as_dir=$as_dir/ ;;
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8862 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8872 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8873 if test -n "$DSYMUTIL"; then
8874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8875 printf "%s\n" "$DSYMUTIL" >&6; }
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878 printf "%s\n" "no" >&6; }
8883 if test -z "$ac_cv_prog_DSYMUTIL"; then
8884 ac_ct_DSYMUTIL=$DSYMUTIL
8885 # Extract the first word of "dsymutil", so it can be a program name with args.
8886 set dummy dsymutil; ac_word=$2
8887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 printf %s "checking for $ac_word... " >&6; }
8889 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8891 printf %s "(cached) " >&6
8893 if test -n "$ac_ct_DSYMUTIL"; then
8894 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8900 case $as_dir in #(((
8903 *) as_dir=$as_dir/ ;;
8905 for ac_exec_ext in '' $ac_executable_extensions; do
8906 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8907 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8917 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8918 if test -n "$ac_ct_DSYMUTIL"; then
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8920 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 printf "%s\n" "no" >&6; }
8926 if test "x$ac_ct_DSYMUTIL" = x; then
8929 case $cross_compiling:$ac_tool_warned in
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8933 ac_tool_warned=yes ;;
8935 DSYMUTIL=$ac_ct_DSYMUTIL
8938 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8941 if test -n "$ac_tool_prefix"; then
8942 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8943 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8945 printf %s "checking for $ac_word... " >&6; }
8946 if test ${ac_cv_prog_NMEDIT+y}
8948 printf %s "(cached) " >&6
8950 if test -n "$NMEDIT"; then
8951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 case $as_dir in #(((
8960 *) as_dir=$as_dir/ ;;
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8964 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8974 NMEDIT=$ac_cv_prog_NMEDIT
8975 if test -n "$NMEDIT"; then
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8977 printf "%s\n" "$NMEDIT" >&6; }
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 printf "%s\n" "no" >&6; }
8985 if test -z "$ac_cv_prog_NMEDIT"; then
8986 ac_ct_NMEDIT=$NMEDIT
8987 # Extract the first word of "nmedit", so it can be a program name with args.
8988 set dummy nmedit; ac_word=$2
8989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 printf %s "checking for $ac_word... " >&6; }
8991 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8993 printf %s "(cached) " >&6
8995 if test -n "$ac_ct_NMEDIT"; then
8996 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 case $as_dir in #(((
9005 *) as_dir=$as_dir/ ;;
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9009 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9019 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9020 if test -n "$ac_ct_NMEDIT"; then
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9022 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 printf "%s\n" "no" >&6; }
9028 if test "x$ac_ct_NMEDIT" = x; then
9031 case $cross_compiling:$ac_tool_warned in
9033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9034 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9035 ac_tool_warned=yes ;;
9037 NMEDIT=$ac_ct_NMEDIT
9040 NMEDIT="$ac_cv_prog_NMEDIT"
9043 if test -n "$ac_tool_prefix"; then
9044 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9045 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9047 printf %s "checking for $ac_word... " >&6; }
9048 if test ${ac_cv_prog_LIPO+y}
9050 printf %s "(cached) " >&6
9052 if test -n "$LIPO"; then
9053 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9059 case $as_dir in #(((
9062 *) as_dir=$as_dir/ ;;
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9066 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9076 LIPO=$ac_cv_prog_LIPO
9077 if test -n "$LIPO"; then
9078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9079 printf "%s\n" "$LIPO" >&6; }
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9082 printf "%s\n" "no" >&6; }
9087 if test -z "$ac_cv_prog_LIPO"; then
9089 # Extract the first word of "lipo", so it can be a program name with args.
9090 set dummy lipo; ac_word=$2
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 printf %s "checking for $ac_word... " >&6; }
9093 if test ${ac_cv_prog_ac_ct_LIPO+y}
9095 printf %s "(cached) " >&6
9097 if test -n "$ac_ct_LIPO"; then
9098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104 case $as_dir in #(((
9107 *) as_dir=$as_dir/ ;;
9109 for ac_exec_ext in '' $ac_executable_extensions; do
9110 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9111 ac_cv_prog_ac_ct_LIPO="lipo"
9112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9121 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9122 if test -n "$ac_ct_LIPO"; then
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9124 printf "%s\n" "$ac_ct_LIPO" >&6; }
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9127 printf "%s\n" "no" >&6; }
9130 if test "x$ac_ct_LIPO" = x; then
9133 case $cross_compiling:$ac_tool_warned in
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9137 ac_tool_warned=yes ;;
9142 LIPO="$ac_cv_prog_LIPO"
9145 if test -n "$ac_tool_prefix"; then
9146 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9147 set dummy ${ac_tool_prefix}otool; ac_word=$2
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 printf %s "checking for $ac_word... " >&6; }
9150 if test ${ac_cv_prog_OTOOL+y}
9152 printf %s "(cached) " >&6
9154 if test -n "$OTOOL"; then
9155 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 case $as_dir in #(((
9164 *) as_dir=$as_dir/ ;;
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9178 OTOOL=$ac_cv_prog_OTOOL
9179 if test -n "$OTOOL"; then
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9181 printf "%s\n" "$OTOOL" >&6; }
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 printf "%s\n" "no" >&6; }
9189 if test -z "$ac_cv_prog_OTOOL"; then
9191 # Extract the first word of "otool", so it can be a program name with args.
9192 set dummy otool; ac_word=$2
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194 printf %s "checking for $ac_word... " >&6; }
9195 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9197 printf %s "(cached) " >&6
9199 if test -n "$ac_ct_OTOOL"; then
9200 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 case $as_dir in #(((
9209 *) as_dir=$as_dir/ ;;
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9213 ac_cv_prog_ac_ct_OTOOL="otool"
9214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9223 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9224 if test -n "$ac_ct_OTOOL"; then
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9226 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 printf "%s\n" "no" >&6; }
9232 if test "x$ac_ct_OTOOL" = x; then
9235 case $cross_compiling:$ac_tool_warned in
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9239 ac_tool_warned=yes ;;
9244 OTOOL="$ac_cv_prog_OTOOL"
9247 if test -n "$ac_tool_prefix"; then
9248 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9249 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 printf %s "checking for $ac_word... " >&6; }
9252 if test ${ac_cv_prog_OTOOL64+y}
9254 printf %s "(cached) " >&6
9256 if test -n "$OTOOL64"; then
9257 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 case $as_dir in #(((
9266 *) as_dir=$as_dir/ ;;
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9280 OTOOL64=$ac_cv_prog_OTOOL64
9281 if test -n "$OTOOL64"; then
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9283 printf "%s\n" "$OTOOL64" >&6; }
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 printf "%s\n" "no" >&6; }
9291 if test -z "$ac_cv_prog_OTOOL64"; then
9292 ac_ct_OTOOL64=$OTOOL64
9293 # Extract the first word of "otool64", so it can be a program name with args.
9294 set dummy otool64; ac_word=$2
9295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9296 printf %s "checking for $ac_word... " >&6; }
9297 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9299 printf %s "(cached) " >&6
9301 if test -n "$ac_ct_OTOOL64"; then
9302 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9308 case $as_dir in #(((
9311 *) as_dir=$as_dir/ ;;
9313 for ac_exec_ext in '' $ac_executable_extensions; do
9314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9315 ac_cv_prog_ac_ct_OTOOL64="otool64"
9316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9325 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9326 if test -n "$ac_ct_OTOOL64"; then
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9328 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9331 printf "%s\n" "no" >&6; }
9334 if test "x$ac_ct_OTOOL64" = x; then
9337 case $cross_compiling:$ac_tool_warned in
9339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9340 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9341 ac_tool_warned=yes ;;
9343 OTOOL64=$ac_ct_OTOOL64
9346 OTOOL64="$ac_cv_prog_OTOOL64"
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9376 printf %s "checking for -single_module linker flag... " >&6; }
9377 if test ${lt_cv_apple_cc_single_mod+y}
9379 printf %s "(cached) " >&6
9381 lt_cv_apple_cc_single_mod=no
9382 if test -z "$LT_MULTI_MODULE"; then
9383 # By default we will add the -single_module flag. You can override
9384 # by either setting the environment variable LT_MULTI_MODULE
9385 # non-empty at configure time, or by adding -multi_module to the
9387 rm -rf libconftest.dylib*
9388 echo "int foo(void){return 1;}" > conftest.c
9389 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9390 -dynamiclib -Wl,-single_module conftest.c" >&5
9391 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9392 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9394 # If there is a non-empty error log, and "single_module"
9395 # appears in it, assume the flag caused a linker warning
9396 if test -s conftest.err && $GREP single_module conftest.err; then
9397 cat conftest.err >&5
9398 # Otherwise, if the output was created with a 0 exit code from
9399 # the compiler, it worked.
9400 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9401 lt_cv_apple_cc_single_mod=yes
9403 cat conftest.err >&5
9405 rm -rf libconftest.dylib*
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9410 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9413 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9414 if test ${lt_cv_ld_exported_symbols_list+y}
9416 printf %s "(cached) " >&6
9418 lt_cv_ld_exported_symbols_list=no
9419 save_LDFLAGS=$LDFLAGS
9420 echo "_main" > conftest.sym
9421 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9433 if ac_fn_c_try_link "$LINENO"
9435 lt_cv_ld_exported_symbols_list=yes
9437 lt_cv_ld_exported_symbols_list=no
9439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9440 conftest$ac_exeext conftest.$ac_ext
9441 LDFLAGS=$save_LDFLAGS
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9445 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9448 printf %s "checking for -force_load linker flag... " >&6; }
9449 if test ${lt_cv_ld_force_load+y}
9451 printf %s "(cached) " >&6
9453 lt_cv_ld_force_load=no
9454 cat > conftest.c << _LT_EOF
9455 int forced_loaded() { return 2;}
9457 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9458 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9459 echo "$AR cr libconftest.a conftest.o" >&5
9460 $AR cr libconftest.a conftest.o 2>&5
9461 echo "$RANLIB libconftest.a" >&5
9462 $RANLIB libconftest.a 2>&5
9463 cat > conftest.c << _LT_EOF
9464 int main() { return 0;}
9466 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9467 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9469 if test -s conftest.err && $GREP force_load conftest.err; then
9470 cat conftest.err >&5
9471 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9472 lt_cv_ld_force_load=yes
9474 cat conftest.err >&5
9476 rm -f conftest.err libconftest.a conftest conftest.c
9477 rm -rf conftest.dSYM
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9481 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9483 rhapsody* | darwin1.[012])
9484 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9486 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9487 darwin*) # darwin 5.x on
9488 # if running on 10.5 or later, the deployment target defaults
9489 # to the OS version, if on x86, and 10.4, the deployment
9490 # target defaults to 10.4. Don't you love it?
9491 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9492 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9493 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9495 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9497 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9501 if test yes = "$lt_cv_apple_cc_single_mod"; then
9502 _lt_dar_single_mod='$single_module'
9504 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9505 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9507 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9509 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9510 _lt_dsymutil='~$DSYMUTIL $lib || :'
9517 # func_munge_path_list VARIABLE PATH
9518 # -----------------------------------
9519 # VARIABLE is name of variable containing _space_ separated list of
9520 # directories to be munged by the contents of PATH, which is string
9523 # string "DIR[ DIR]" will be prepended to VARIABLE
9525 # string "DIR[ DIR]" will be appended to VARIABLE
9526 # "DIRP[:DIRP]::[DIRA:]DIRA"
9527 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9528 # "DIRA[ DIRA]" will be appended to VARIABLE
9530 # VARIABLE will be replaced by "DIR[ DIR]"
9531 func_munge_path_list ()
9537 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9540 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9543 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9544 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9547 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9552 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9554 if test "x$ac_cv_header_dlfcn_h" = xyes
9556 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9572 # Check whether --enable-shared was given.
9573 if test ${enable_shared+y}
9575 enableval=$enable_shared; p=${PACKAGE-default}
9577 yes) enable_shared=yes ;;
9578 no) enable_shared=no ;;
9581 # Look at the argument we got. We use all the common list separators.
9582 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9583 for pkg in $enableval; do
9585 if test "X$pkg" = "X$p"; then
9604 # Check whether --enable-static was given.
9605 if test ${enable_static+y}
9607 enableval=$enable_static; p=${PACKAGE-default}
9609 yes) enable_static=yes ;;
9610 no) enable_static=no ;;
9613 # Look at the argument we got. We use all the common list separators.
9614 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9615 for pkg in $enableval; do
9617 if test "X$pkg" = "X$p"; then
9637 # Check whether --with-pic was given.
9638 if test ${with_pic+y}
9640 withval=$with_pic; lt_p=${PACKAGE-default}
9642 yes|no) pic_mode=$withval ;;
9645 # Look at the argument we got. We use all the common list separators.
9646 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9647 for lt_pkg in $withval; do
9649 if test "X$lt_pkg" = "X$lt_p"; then
9667 # Check whether --enable-fast-install was given.
9668 if test ${enable_fast_install+y}
9670 enableval=$enable_fast_install; p=${PACKAGE-default}
9672 yes) enable_fast_install=yes ;;
9673 no) enable_fast_install=no ;;
9675 enable_fast_install=no
9676 # Look at the argument we got. We use all the common list separators.
9677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9678 for pkg in $enableval; do
9680 if test "X$pkg" = "X$p"; then
9681 enable_fast_install=yes
9688 enable_fast_install=yes
9698 shared_archive_member_spec=
9699 case $host,$enable_shared in
9700 power*-*-aix[5-9]*,yes)
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9702 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9704 # Check whether --with-aix-soname was given.
9705 if test ${with_aix_soname+y}
9707 withval=$with_aix_soname; case $withval in
9711 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9714 lt_cv_with_aix_soname=$with_aix_soname
9716 if test ${lt_cv_with_aix_soname+y}
9718 printf %s "(cached) " >&6
9720 lt_cv_with_aix_soname=aix
9723 with_aix_soname=$lt_cv_with_aix_soname
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9727 printf "%s\n" "$with_aix_soname" >&6; }
9728 if test aix != "$with_aix_soname"; then
9729 # For the AIX way of multilib, we name the shared archive member
9730 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9731 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9732 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9733 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9734 if test 64 = "${OBJECT_MODE-32}"; then
9735 shared_archive_member_spec=shr_64
9737 shared_archive_member_spec=shr
9755 # This can be used to rebuild libtool when needed
9756 LIBTOOL_DEPS=$ltmain
9758 # Always use our own libtool.
9759 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9790 test -z "$LN_S" && LN_S="ln -s"
9805 if test -n "${ZSH_VERSION+set}"; then
9806 setopt NO_GLOB_SUBST
9809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9810 printf %s "checking for objdir... " >&6; }
9811 if test ${lt_cv_objdir+y}
9813 printf %s "(cached) " >&6
9815 rm -f .libs 2>/dev/null
9816 mkdir .libs 2>/dev/null
9817 if test -d .libs; then
9820 # MS-DOS does not allow filenames that begin with a dot.
9823 rmdir .libs 2>/dev/null
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9826 printf "%s\n" "$lt_cv_objdir" >&6; }
9827 objdir=$lt_cv_objdir
9833 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9840 # AIX sometimes has problems with the GCC collect2 program. For some
9841 # reason, if we set the COLLECT_NAMES environment variable, the problems
9842 # vanish in a puff of smoke.
9843 if test set != "${COLLECT_NAMES+set}"; then
9845 export COLLECT_NAMES
9852 can_build_shared=yes
9854 # All known linkers require a '.a' archive for static linking (except MSVC,
9855 # which needs '.lib').
9858 with_gnu_ld=$lt_cv_prog_gnu_ld
9863 # Set sane defaults for various variables
9864 test -z "$CC" && CC=cc
9865 test -z "$LTCC" && LTCC=$CC
9866 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9867 test -z "$LD" && LD=ld
9868 test -z "$ac_objext" && ac_objext=o
9870 func_cc_basename $compiler
9871 cc_basename=$func_cc_basename_result
9874 # Only perform the check for file, if the check method requires it
9875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9876 case $deplibs_check_method in
9878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9880 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9881 if test ${lt_cv_path_MAGIC_CMD+y}
9883 printf %s "(cached) " >&6
9887 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9890 lt_save_MAGIC_CMD=$MAGIC_CMD
9891 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9893 for ac_dir in $ac_dummy; do
9895 test -z "$ac_dir" && ac_dir=.
9896 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9897 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9898 if test -n "$file_magic_test_file"; then
9899 case $deplibs_check_method in
9901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9902 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9904 $EGREP "$file_magic_regex" > /dev/null; then
9909 *** Warning: the command libtool uses to detect shared libraries,
9910 *** $file_magic_cmd, produces output that libtool cannot recognize.
9911 *** The result is that libtool may fail to recognize shared libraries
9912 *** as such. This will affect the creation of libtool libraries that
9913 *** depend on shared libraries, but programs linked with such libtool
9914 *** libraries will work regardless of this problem. Nevertheless, you
9915 *** may want to report the problem to your system manager and/or to
9916 *** bug-libtool@gnu.org
9926 MAGIC_CMD=$lt_save_MAGIC_CMD
9931 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9932 if test -n "$MAGIC_CMD"; then
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9934 printf "%s\n" "$MAGIC_CMD" >&6; }
9936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 printf "%s\n" "no" >&6; }
9944 if test -z "$lt_cv_path_MAGIC_CMD"; then
9945 if test -n "$ac_tool_prefix"; then
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9947 printf %s "checking for file... " >&6; }
9948 if test ${lt_cv_path_MAGIC_CMD+y}
9950 printf %s "(cached) " >&6
9954 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9957 lt_save_MAGIC_CMD=$MAGIC_CMD
9958 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9960 for ac_dir in $ac_dummy; do
9962 test -z "$ac_dir" && ac_dir=.
9963 if test -f "$ac_dir/file"; then
9964 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9965 if test -n "$file_magic_test_file"; then
9966 case $deplibs_check_method in
9968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9969 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9971 $EGREP "$file_magic_regex" > /dev/null; then
9976 *** Warning: the command libtool uses to detect shared libraries,
9977 *** $file_magic_cmd, produces output that libtool cannot recognize.
9978 *** The result is that libtool may fail to recognize shared libraries
9979 *** as such. This will affect the creation of libtool libraries that
9980 *** depend on shared libraries, but programs linked with such libtool
9981 *** libraries will work regardless of this problem. Nevertheless, you
9982 *** may want to report the problem to your system manager and/or to
9983 *** bug-libtool@gnu.org
9993 MAGIC_CMD=$lt_save_MAGIC_CMD
9998 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9999 if test -n "$MAGIC_CMD"; then
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10001 printf "%s\n" "$MAGIC_CMD" >&6; }
10003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004 printf "%s\n" "no" >&6; }
10017 # Use C for the default configuration in the libtool script
10021 ac_cpp='$CPP $CPPFLAGS'
10022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10027 # Source file extension for C test sources.
10030 # Object file extension for compiled C test sources.
10034 # Code to be used in simple compile tests
10035 lt_simple_compile_test_code="int some_variable = 0;"
10037 # Code to be used in simple link tests
10038 lt_simple_link_test_code='int main(){return(0);}'
10046 # If no C compiler was specified, use CC.
10049 # If no C compiler flags were specified, use CFLAGS.
10050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10052 # Allow CC to be a program name with arguments.
10055 # Save the default compiler, since it gets overwritten when the other
10056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10057 compiler_DEFAULT=$CC
10059 # save warnings/boilerplate of simple test code
10060 ac_outfile=conftest.$ac_objext
10061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10063 _lt_compiler_boilerplate=`cat conftest.err`
10066 ac_outfile=conftest.$ac_objext
10067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10069 _lt_linker_boilerplate=`cat conftest.err`
10073 if test -n "$compiler"; then
10075 lt_prog_compiler_no_builtin_flag=
10077 if test yes = "$GCC"; then
10078 case $cc_basename in
10080 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10082 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10086 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10087 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10089 printf %s "(cached) " >&6
10091 lt_cv_prog_compiler_rtti_exceptions=no
10092 ac_outfile=conftest.$ac_objext
10093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10094 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10095 # Insert the option either (1) after the last *FLAGS variable, or
10096 # (2) before a word containing "conftest.", or (3) at the end.
10097 # Note that $ac_compile itself does not contain backslashes and begins
10098 # with a dollar sign (not a hyphen), so the echo should work correctly.
10099 # The option is referenced via a variable to avoid confusing sed.
10100 lt_compile=`echo "$ac_compile" | $SED \
10101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10103 -e 's:$: $lt_compiler_flag:'`
10104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10105 (eval "$lt_compile" 2>conftest.err)
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 if (exit $ac_status) && test -s "$ac_outfile"; then
10110 # The compiler can only warn and ignore the option if not recognized
10111 # So say no if there are warnings other than the usual output.
10112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10115 lt_cv_prog_compiler_rtti_exceptions=yes
10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10122 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10124 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10137 lt_prog_compiler_wl=
10138 lt_prog_compiler_pic=
10139 lt_prog_compiler_static=
10142 if test yes = "$GCC"; then
10143 lt_prog_compiler_wl='-Wl,'
10144 lt_prog_compiler_static='-static'
10148 # All AIX code is PIC.
10149 if test ia64 = "$host_cpu"; then
10150 # AIX 5 now supports IA64 processor
10151 lt_prog_compiler_static='-Bstatic'
10153 lt_prog_compiler_pic='-fPIC'
10159 # see comment about AmigaOS4 .so support
10160 lt_prog_compiler_pic='-fPIC'
10163 # FIXME: we need at least 68020 code to build shared libraries, but
10164 # adding the '-m68020' flag to GCC prevents building anything better,
10166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10172 # PIC is the default for these OSes.
10175 mingw* | cygwin* | pw32* | os2* | cegcc*)
10176 # This hack is so that the source file can tell whether it is being
10177 # built for inclusion in a dll (and should export symbols for example).
10178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10179 # (--disable-auto-import) libraries
10180 lt_prog_compiler_pic='-DDLL_EXPORT'
10183 lt_prog_compiler_static='$wl-static'
10188 darwin* | rhapsody*)
10189 # PIC is the default on this platform
10190 # Common symbols not allowed in MH_DYLIB files
10191 lt_prog_compiler_pic='-fno-common'
10195 # PIC is the default for Haiku.
10196 # The "-static" flag exists, but is broken.
10197 lt_prog_compiler_static=
10201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10203 # sets the default TLS model and affects inlining.
10209 lt_prog_compiler_pic='-fPIC'
10215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10216 # Instead, we relocate shared libraries at runtime.
10220 # Just because we use GCC doesn't mean we suddenly get shared libraries
10221 # on systems that don't support them.
10222 lt_prog_compiler_can_build_shared=no
10227 # QNX uses GNU C++, but need to define -shared option too, otherwise
10228 # it will coredump.
10229 lt_prog_compiler_pic='-fPIC -shared'
10233 if test -d /usr/nec; then
10234 lt_prog_compiler_pic=-Kconform_pic
10239 lt_prog_compiler_pic='-fPIC'
10243 case $cc_basename in
10244 nvcc*) # Cuda Compiler Driver 2.2
10245 lt_prog_compiler_wl='-Xlinker '
10246 if test -n "$lt_prog_compiler_pic"; then
10247 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10252 # PORTME Check for flag to pass linker flags through the system compiler.
10255 lt_prog_compiler_wl='-Wl,'
10256 if test ia64 = "$host_cpu"; then
10257 # AIX 5 now supports IA64 processor
10258 lt_prog_compiler_static='-Bstatic'
10260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10264 darwin* | rhapsody*)
10265 # PIC is the default on this platform
10266 # Common symbols not allowed in MH_DYLIB files
10267 lt_prog_compiler_pic='-fno-common'
10268 case $cc_basename in
10270 # NAG Fortran compiler
10271 lt_prog_compiler_wl='-Wl,-Wl,,'
10272 lt_prog_compiler_pic='-PIC'
10273 lt_prog_compiler_static='-Bstatic'
10278 mingw* | cygwin* | pw32* | os2* | cegcc*)
10279 # This hack is so that the source file can tell whether it is being
10280 # built for inclusion in a dll (and should export symbols for example).
10281 lt_prog_compiler_pic='-DDLL_EXPORT'
10284 lt_prog_compiler_static='$wl-static'
10289 hpux9* | hpux10* | hpux11*)
10290 lt_prog_compiler_wl='-Wl,'
10291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10292 # not for PA HP-UX.
10298 lt_prog_compiler_pic='+Z'
10301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10302 lt_prog_compiler_static='$wl-a ${wl}archive'
10305 irix5* | irix6* | nonstopux*)
10306 lt_prog_compiler_wl='-Wl,'
10307 # PIC (with -KPIC) is the default.
10308 lt_prog_compiler_static='-non_shared'
10311 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10312 case $cc_basename in
10313 # old Intel for x86_64, which still supported -KPIC.
10315 lt_prog_compiler_wl='-Wl,'
10316 lt_prog_compiler_pic='-KPIC'
10317 lt_prog_compiler_static='-static'
10319 # flang / f18. f95 an alias for gfortran or flang on Debian
10320 flang* | f18* | f95*)
10321 lt_prog_compiler_wl='-Wl,'
10322 lt_prog_compiler_pic='-fPIC'
10323 lt_prog_compiler_static='-static'
10325 # icc used to be incompatible with GCC.
10326 # ICC 10 doesn't accept -KPIC any more.
10328 lt_prog_compiler_wl='-Wl,'
10329 lt_prog_compiler_pic='-fPIC'
10330 lt_prog_compiler_static='-static'
10332 # Lahey Fortran 8.1.
10334 lt_prog_compiler_wl='-Wl,'
10335 lt_prog_compiler_pic='--shared'
10336 lt_prog_compiler_static='--static'
10339 # NAG Fortran compiler
10340 lt_prog_compiler_wl='-Wl,-Wl,,'
10341 lt_prog_compiler_pic='-PIC'
10342 lt_prog_compiler_static='-Bstatic'
10345 # Fabrice Bellard et al's Tiny C Compiler
10346 lt_prog_compiler_wl='-Wl,'
10347 lt_prog_compiler_pic='-fPIC'
10348 lt_prog_compiler_static='-static'
10350 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10351 # Portland Group compilers (*not* the Pentium gcc compiler,
10352 # which looks to be a dead project)
10353 lt_prog_compiler_wl='-Wl,'
10354 lt_prog_compiler_pic='-fpic'
10355 lt_prog_compiler_static='-Bstatic'
10358 lt_prog_compiler_wl='-Wl,'
10359 # All Alpha code is PIC.
10360 lt_prog_compiler_static='-non_shared'
10362 xl* | bgxl* | bgf* | mpixl*)
10363 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10364 lt_prog_compiler_wl='-Wl,'
10365 lt_prog_compiler_pic='-qpic'
10366 lt_prog_compiler_static='-qstaticlink'
10369 case `$CC -V 2>&1 | sed 5q` in
10370 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10371 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10372 lt_prog_compiler_pic='-KPIC'
10373 lt_prog_compiler_static='-Bstatic'
10374 lt_prog_compiler_wl=''
10376 *Sun\ F* | *Sun*Fortran*)
10377 lt_prog_compiler_pic='-KPIC'
10378 lt_prog_compiler_static='-Bstatic'
10379 lt_prog_compiler_wl='-Qoption ld '
10383 lt_prog_compiler_pic='-KPIC'
10384 lt_prog_compiler_static='-Bstatic'
10385 lt_prog_compiler_wl='-Wl,'
10387 *Intel*\ [CF]*Compiler*)
10388 lt_prog_compiler_wl='-Wl,'
10389 lt_prog_compiler_pic='-fPIC'
10390 lt_prog_compiler_static='-static'
10393 lt_prog_compiler_wl='-Wl,'
10394 lt_prog_compiler_pic='-fpic'
10395 lt_prog_compiler_static='-Bstatic'
10403 lt_prog_compiler_pic='-KPIC'
10404 lt_prog_compiler_static='-Bstatic'
10408 # QNX uses GNU C++, but need to define -shared option too, otherwise
10409 # it will coredump.
10410 lt_prog_compiler_pic='-fPIC -shared'
10413 osf3* | osf4* | osf5*)
10414 lt_prog_compiler_wl='-Wl,'
10415 # All OSF/1 code is PIC.
10416 lt_prog_compiler_static='-non_shared'
10420 lt_prog_compiler_static='-non_shared'
10424 lt_prog_compiler_pic='-KPIC'
10425 lt_prog_compiler_static='-Bstatic'
10426 case $cc_basename in
10427 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10428 lt_prog_compiler_wl='-Qoption ld ';;
10430 lt_prog_compiler_wl='-Wl,';;
10435 lt_prog_compiler_wl='-Qoption ld '
10436 lt_prog_compiler_pic='-PIC'
10437 lt_prog_compiler_static='-Bstatic'
10440 sysv4 | sysv4.2uw2* | sysv4.3*)
10441 lt_prog_compiler_wl='-Wl,'
10442 lt_prog_compiler_pic='-KPIC'
10443 lt_prog_compiler_static='-Bstatic'
10447 if test -d /usr/nec; then
10448 lt_prog_compiler_pic='-Kconform_pic'
10449 lt_prog_compiler_static='-Bstatic'
10453 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10454 lt_prog_compiler_wl='-Wl,'
10455 lt_prog_compiler_pic='-KPIC'
10456 lt_prog_compiler_static='-Bstatic'
10460 lt_prog_compiler_wl='-Wl,'
10461 lt_prog_compiler_can_build_shared=no
10465 lt_prog_compiler_pic='-pic'
10466 lt_prog_compiler_static='-Bstatic'
10470 lt_prog_compiler_can_build_shared=no
10476 # For platforms that do not support PIC, -DPIC is meaningless:
10478 lt_prog_compiler_pic=
10481 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10486 printf %s "checking for $compiler option to produce PIC... " >&6; }
10487 if test ${lt_cv_prog_compiler_pic+y}
10489 printf %s "(cached) " >&6
10491 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10494 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10495 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10498 # Check to make sure the PIC flag actually works.
10500 if test -n "$lt_prog_compiler_pic"; then
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10502 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10503 if test ${lt_cv_prog_compiler_pic_works+y}
10505 printf %s "(cached) " >&6
10507 lt_cv_prog_compiler_pic_works=no
10508 ac_outfile=conftest.$ac_objext
10509 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10510 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10511 # Insert the option either (1) after the last *FLAGS variable, or
10512 # (2) before a word containing "conftest.", or (3) at the end.
10513 # Note that $ac_compile itself does not contain backslashes and begins
10514 # with a dollar sign (not a hyphen), so the echo should work correctly.
10515 # The option is referenced via a variable to avoid confusing sed.
10516 lt_compile=`echo "$ac_compile" | $SED \
10517 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10518 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10519 -e 's:$: $lt_compiler_flag:'`
10520 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10521 (eval "$lt_compile" 2>conftest.err)
10523 cat conftest.err >&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 if (exit $ac_status) && test -s "$ac_outfile"; then
10526 # The compiler can only warn and ignore the option if not recognized
10527 # So say no if there are warnings other than the usual output.
10528 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10529 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10530 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10531 lt_cv_prog_compiler_pic_works=yes
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10538 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10540 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10541 case $lt_prog_compiler_pic in
10543 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10546 lt_prog_compiler_pic=
10547 lt_prog_compiler_can_build_shared=no
10563 # Check to make sure the static flag actually works.
10565 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10567 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10568 if test ${lt_cv_prog_compiler_static_works+y}
10570 printf %s "(cached) " >&6
10572 lt_cv_prog_compiler_static_works=no
10573 save_LDFLAGS=$LDFLAGS
10574 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10575 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10576 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10577 # The linker can only warn and ignore the option if not recognized
10578 # So say no if there are warnings
10579 if test -s conftest.err; then
10580 # Append any errors to the config.log.
10581 cat conftest.err 1>&5
10582 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10584 if diff conftest.exp conftest.er2 >/dev/null; then
10585 lt_cv_prog_compiler_static_works=yes
10588 lt_cv_prog_compiler_static_works=yes
10592 LDFLAGS=$save_LDFLAGS
10595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10596 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10598 if test yes = "$lt_cv_prog_compiler_static_works"; then
10601 lt_prog_compiler_static=
10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10611 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10612 if test ${lt_cv_prog_compiler_c_o+y}
10614 printf %s "(cached) " >&6
10616 lt_cv_prog_compiler_c_o=no
10617 $RM -r conftest 2>/dev/null
10621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10623 lt_compiler_flag="-o out/conftest2.$ac_objext"
10624 # Insert the option either (1) after the last *FLAGS variable, or
10625 # (2) before a word containing "conftest.", or (3) at the end.
10626 # Note that $ac_compile itself does not contain backslashes and begins
10627 # with a dollar sign (not a hyphen), so the echo should work correctly.
10628 lt_compile=`echo "$ac_compile" | $SED \
10629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10631 -e 's:$: $lt_compiler_flag:'`
10632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10633 (eval "$lt_compile" 2>out/conftest.err)
10635 cat out/conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10639 # The compiler can only warn and ignore the option if not recognized
10640 # So say no if there are warnings
10641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10644 lt_cv_prog_compiler_c_o=yes
10649 # SGI C++ compiler will create directory out/ii_files/ for
10650 # template instantiation
10651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10652 $RM out/* && rmdir out
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10659 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10667 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10668 if test ${lt_cv_prog_compiler_c_o+y}
10670 printf %s "(cached) " >&6
10672 lt_cv_prog_compiler_c_o=no
10673 $RM -r conftest 2>/dev/null
10677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10679 lt_compiler_flag="-o out/conftest2.$ac_objext"
10680 # Insert the option either (1) after the last *FLAGS variable, or
10681 # (2) before a word containing "conftest.", or (3) at the end.
10682 # Note that $ac_compile itself does not contain backslashes and begins
10683 # with a dollar sign (not a hyphen), so the echo should work correctly.
10684 lt_compile=`echo "$ac_compile" | $SED \
10685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10687 -e 's:$: $lt_compiler_flag:'`
10688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10689 (eval "$lt_compile" 2>out/conftest.err)
10691 cat out/conftest.err >&5
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10695 # The compiler can only warn and ignore the option if not recognized
10696 # So say no if there are warnings
10697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10700 lt_cv_prog_compiler_c_o=yes
10705 # SGI C++ compiler will create directory out/ii_files/ for
10706 # template instantiation
10707 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10708 $RM out/* && rmdir out
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10715 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10720 hard_links=nottested
10721 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10722 # do not overwrite the value of need_locks provided by the user
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10724 printf %s "checking if we can lock with hard links... " >&6; }
10727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10729 ln conftest.a conftest.b 2>&5 || hard_links=no
10730 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10732 printf "%s\n" "$hard_links" >&6; }
10733 if test no = "$hard_links"; then
10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10735 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10748 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10751 allow_undefined_flag=
10752 always_export_symbols=no
10754 archive_expsym_cmds=
10755 compiler_needs_object=no
10756 enable_shared_with_static_runtimes=no
10757 export_dynamic_flag_spec=
10758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10759 hardcode_automatic=no
10761 hardcode_direct_absolute=no
10762 hardcode_libdir_flag_spec=
10763 hardcode_libdir_separator=
10764 hardcode_minus_L=no
10765 hardcode_shlibpath_var=unsupported
10767 link_all_deplibs=unknown
10769 module_expsym_cmds=
10770 old_archive_from_new_cmds=
10771 old_archive_from_expsyms_cmds=
10772 thread_safe_flag_spec=
10773 whole_archive_flag_spec=
10774 # include_expsyms should be a list of space-separated symbols to be *always*
10775 # included in the symbol list
10777 # exclude_expsyms can be an extended regexp of symbols to exclude
10778 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10779 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10780 # as well as any symbol that contains 'd'.
10781 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10783 # platforms (ab)use it in PIC code, but their linkers get confused if
10784 # the symbol is explicitly referenced. Since portable code cannot
10785 # rely on this symbol name, it's probably fine to never include it in
10786 # preloaded symbol tables.
10787 # Exclude shared library initialization/finalization symbols.
10788 extract_expsyms_cmds=
10791 cygwin* | mingw* | pw32* | cegcc*)
10792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10793 # When not using gcc, we currently assume that we are using
10794 # Microsoft Visual C++.
10795 if test yes != "$GCC"; then
10800 # we just hope/assume this is gcc and not c89 (= MSVC++)
10803 openbsd* | bitrig*)
10806 linux* | k*bsd*-gnu | gnu*)
10807 link_all_deplibs=no
10813 # On some targets, GNU ld is compatible enough with the native linker
10814 # that we're better off using the native interface for both.
10815 lt_use_gnu_ld_interface=no
10816 if test yes = "$with_gnu_ld"; then
10819 # The AIX port of GNU ld has always aspired to compatibility
10820 # with the native linker. However, as the warning in the GNU ld
10821 # block says, versions before 2.19.5* couldn't really create working
10822 # shared libraries, regardless of the interface used.
10823 case `$LD -v 2>&1` in
10824 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10825 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10826 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10828 lt_use_gnu_ld_interface=yes
10833 lt_use_gnu_ld_interface=yes
10838 if test yes = "$lt_use_gnu_ld_interface"; then
10839 # If archive_cmds runs LD, not CC, wlarc should be empty
10842 # Set some defaults for GNU ld with shared library support. These
10843 # are reset later if shared libraries are not supported. Putting them
10844 # here allows them to be overridden if necessary.
10845 runpath_var=LD_RUN_PATH
10846 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10847 export_dynamic_flag_spec='$wl--export-dynamic'
10848 # ancient GNU ld didn't support --whole-archive et. al.
10849 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10850 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10852 whole_archive_flag_spec=
10854 supports_anon_versioning=no
10855 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10856 *GNU\ gold*) supports_anon_versioning=yes ;;
10857 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10858 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10859 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10860 *\ 2.11.*) ;; # other 2.11 versions
10861 *) supports_anon_versioning=yes ;;
10864 # See if GNU ld supports shared libraries.
10867 # On AIX/PPC, the GNU linker is very broken
10868 if test ia64 != "$host_cpu"; then
10872 *** Warning: the GNU linker, at least up to release 2.19, is reported
10873 *** to be unable to reliably create shared libraries on AIX.
10874 *** Therefore, libtool is disabling shared libraries support. If you
10875 *** really care for shared libraries, you may want to install binutils
10876 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10877 *** You will then need to restart the configuration process.
10886 # see comment about AmigaOS4 .so support
10887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10888 archive_expsym_cmds=''
10891 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)'
10892 hardcode_libdir_flag_spec='-L$libdir'
10893 hardcode_minus_L=yes
10899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10900 allow_undefined_flag=unsupported
10901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10902 # support --undefined. This deserves some investigation. FIXME
10903 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10909 cygwin* | mingw* | pw32* | cegcc*)
10910 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10911 # as there is no search path for DLLs.
10912 hardcode_libdir_flag_spec='-L$libdir'
10913 export_dynamic_flag_spec='$wl--export-all-symbols'
10914 allow_undefined_flag=unsupported
10915 always_export_symbols=no
10916 enable_shared_with_static_runtimes=yes
10917 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'
10918 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10920 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10922 # If the export-symbols file already is a .def file, use it as
10923 # is; otherwise, prepend EXPORTS...
10924 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10925 cp $export_symbols $output_objdir/$soname.def;
10927 echo EXPORTS > $output_objdir/$soname.def;
10928 cat $export_symbols >> $output_objdir/$soname.def;
10930 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10938 link_all_deplibs=yes
10942 hardcode_libdir_flag_spec='-L$libdir'
10943 hardcode_minus_L=yes
10944 allow_undefined_flag=unsupported
10946 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10947 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10948 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10949 $ECHO EXPORTS >> $output_objdir/$libname.def~
10950 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10951 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10952 emximp -o $lib $output_objdir/$libname.def'
10953 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10954 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10955 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10956 $ECHO EXPORTS >> $output_objdir/$libname.def~
10957 prefix_cmds="$SED"~
10958 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10959 prefix_cmds="$prefix_cmds -e 1d";
10961 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10962 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10963 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10964 emximp -o $lib $output_objdir/$libname.def'
10965 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10966 enable_shared_with_static_runtimes=yes
10971 hardcode_shlibpath_var=no
10972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10973 export_dynamic_flag_spec='$wl-E'
10974 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10975 # Instead, shared libraries are loaded at an image base (0x10000000 by
10976 # default) and relocated if they conflict, which is a slow very memory
10977 # consuming and fragmenting process. To avoid this, we pick a random,
10978 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10979 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10980 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10981 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'
10984 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10986 if test linux-dietlibc = "$host_os"; then
10987 case $cc_basename in
10988 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10991 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10992 && test no = "$tmp_diet"
10994 tmp_addflag=' $pic_flag'
10995 tmp_sharedflag='-shared'
10996 case $cc_basename,$host_cpu in
10997 pgcc*) # Portland Group C compiler
10998 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'
10999 tmp_addflag=' $pic_flag'
11001 pgf77* | pgf90* | pgf95* | pgfortran*)
11002 # Portland Group f77 and f90 compilers
11003 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'
11004 tmp_addflag=' $pic_flag -Mnomain' ;;
11005 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11006 tmp_addflag=' -i_dynamic' ;;
11007 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11008 tmp_addflag=' -i_dynamic -nofor_main' ;;
11009 ifc* | ifort*) # Intel Fortran compiler
11010 tmp_addflag=' -nofor_main' ;;
11011 lf95*) # Lahey Fortran 8.1
11012 whole_archive_flag_spec=
11013 tmp_sharedflag='--shared' ;;
11014 nagfor*) # NAGFOR 5.3
11015 tmp_sharedflag='-Wl,-shared' ;;
11016 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11017 tmp_sharedflag='-qmkshrobj'
11019 nvcc*) # Cuda Compiler Driver 2.2
11020 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'
11021 compiler_needs_object=yes
11024 case `$CC -V 2>&1 | sed 5q` in
11025 *Sun\ C*) # Sun C 5.9
11026 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'
11027 compiler_needs_object=yes
11028 tmp_sharedflag='-G' ;;
11029 *Sun\ F*) # Sun Fortran 8.3
11030 tmp_sharedflag='-G' ;;
11032 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11034 if test yes = "$supports_anon_versioning"; then
11035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11037 echo "local: *; };" >> $output_objdir/$libname.ver~
11038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11041 case $cc_basename in
11043 export_dynamic_flag_spec='-rdynamic'
11045 xlf* | bgf* | bgxlf* | mpixlf*)
11046 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11047 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11048 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11049 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11050 if test yes = "$supports_anon_versioning"; then
11051 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11052 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11053 echo "local: *; };" >> $output_objdir/$libname.ver~
11054 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11063 netbsd* | netbsdelf*-gnu)
11064 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11065 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11068 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11069 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11074 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11078 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11079 *** create shared libraries on Solaris systems. Therefore, libtool
11080 *** is disabling shared libraries support. We urge you to upgrade GNU
11081 *** binutils to release 2.9.1 or newer. Another option is to modify
11082 *** your PATH or compiler configuration so that the native linker is
11083 *** used, and then restart.
11086 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11087 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11088 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11095 case `$LD -v 2>&1` in
11096 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11100 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11101 *** reliably create shared libraries on SCO systems. Therefore, libtool
11102 *** is disabling shared libraries support. We urge you to upgrade GNU
11103 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11104 *** your PATH or compiler configuration so that the native linker is
11105 *** used, and then restart.
11110 # For security reasons, it is highly recommended that you always
11111 # use absolute paths for naming shared libraries, and exclude the
11112 # DT_RUNPATH tag from executables and libraries. But doing so
11113 # requires that you compile everything twice, which is a pain.
11114 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11126 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11128 hardcode_direct=yes
11129 hardcode_shlibpath_var=no
11133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11135 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11142 if test no = "$ld_shlibs"; then
11144 hardcode_libdir_flag_spec=
11145 export_dynamic_flag_spec=
11146 whole_archive_flag_spec=
11149 # PORTME fill in a description of your system's linker (not GNU ld)
11152 allow_undefined_flag=unsupported
11153 always_export_symbols=yes
11154 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'
11155 # Note: this linker hardcodes the directories in LIBPATH if there
11156 # are no directories specified by -L.
11157 hardcode_minus_L=yes
11158 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11159 # Neither direct hardcoding nor static linking is supported with a
11161 hardcode_direct=unsupported
11166 if test ia64 = "$host_cpu"; then
11167 # On IA64, the linker does run time linking by default, so we don't
11168 # have to do anything special.
11169 aix_use_runtimelinking=no
11170 exp_sym_flag='-Bexport'
11173 # If we're using GNU nm, then we don't want the "-C" option.
11174 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11175 # Without the "-l" option, or with the "-B" option, AIX nm treats
11176 # weak defined symbols like other global defined symbols, whereas
11177 # GNU nm marks them as "W".
11178 # While the 'weak' keyword is ignored in the Export File, we need
11179 # it in the Import File for the 'aix-soname' feature, so we have
11180 # to replace the "-B" option with "-P" for AIX nm.
11181 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11182 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11184 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11186 aix_use_runtimelinking=no
11188 # Test if we are trying to use run time linking or normal
11189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11190 # have runtime linking enabled, and use it for executables.
11191 # For shared libraries, we enable/disable runtime linking
11192 # depending on the kind of the shared library created -
11193 # when "with_aix_soname,aix_use_runtimelinking" is:
11194 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11195 # "aix,yes" lib.so shared, rtl:yes, for executables
11196 # lib.a static archive
11197 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11198 # lib.a(lib.so.V) shared, rtl:no, for executables
11199 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11200 # lib.a(lib.so.V) shared, rtl:no
11201 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11202 # lib.a static archive
11203 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11204 for ld_flag in $LDFLAGS; do
11205 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11206 aix_use_runtimelinking=yes
11210 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11211 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11212 # so we don't have lib.a shared libs to link our executables.
11213 # We have to force runtime linking in this case.
11214 aix_use_runtimelinking=yes
11215 LDFLAGS="$LDFLAGS -Wl,-brtl"
11220 exp_sym_flag='-bexport'
11221 no_entry_flag='-bnoentry'
11224 # When large executables or shared objects are built, AIX ld can
11225 # have problems creating the table of contents. If linking a library
11226 # or program results in "error TOC overflow" add -mminimal-toc to
11227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11231 hardcode_direct=yes
11232 hardcode_direct_absolute=yes
11233 hardcode_libdir_separator=':'
11234 link_all_deplibs=yes
11235 file_list_spec='$wl-f,'
11236 case $with_aix_soname,$aix_use_runtimelinking in
11237 aix,*) ;; # traditional, no import file
11238 svr4,* | *,yes) # use import file
11239 # The Import File defines what to hardcode.
11241 hardcode_direct_absolute=no
11245 if test yes = "$GCC"; then
11246 case $host_os in aix4.[012]|aix4.[012].*)
11247 # We only want to do this on AIX 4.2 and lower, the check
11248 # below for broken collect2 doesn't work under 4.3+
11249 collect2name=`$CC -print-prog-name=collect2`
11250 if test -f "$collect2name" &&
11251 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11253 # We have reworked collect2
11256 # We have old collect2
11257 hardcode_direct=unsupported
11258 # It fails to find uninstalled libraries when the uninstalled
11259 # path is not listed in the libpath. Setting hardcode_minus_L
11260 # to unsupported forces relinking
11261 hardcode_minus_L=yes
11262 hardcode_libdir_flag_spec='-L$libdir'
11263 hardcode_libdir_separator=
11267 shared_flag='-shared'
11268 if test yes = "$aix_use_runtimelinking"; then
11269 shared_flag="$shared_flag "'$wl-G'
11271 # Need to ensure runtime linking is disabled for the traditional
11272 # shared library, or the linker may eventually find shared libraries
11273 # /with/ Import File - we do not want to mix them.
11274 shared_flag_aix='-shared'
11275 shared_flag_svr4='-shared $wl-G'
11278 if test ia64 = "$host_cpu"; then
11279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11280 # chokes on -Wl,-G. The following line is correct:
11283 if test yes = "$aix_use_runtimelinking"; then
11284 shared_flag='$wl-G'
11286 shared_flag='$wl-bM:SRE'
11288 shared_flag_aix='$wl-bM:SRE'
11289 shared_flag_svr4='$wl-G'
11293 export_dynamic_flag_spec='$wl-bexpall'
11294 # It seems that -bexpall does not export symbols beginning with
11295 # underscore (_), so it is better to generate a list of symbols to export.
11296 always_export_symbols=yes
11297 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11298 # Warning - without using the other runtime loading flags (-brtl),
11299 # -berok will link without error, but may produce a broken library.
11300 allow_undefined_flag='-berok'
11301 # Determine the default libpath from the value encoded in an
11302 # empty executable.
11303 if test set = "${lt_cv_aix_libpath+set}"; then
11304 aix_libpath=$lt_cv_aix_libpath
11306 if test ${lt_cv_aix_libpath_+y}
11308 printf %s "(cached) " >&6
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11321 if ac_fn_c_try_link "$LINENO"
11324 lt_aix_libpath_sed='
11325 /Import File Strings/,/^$/ {
11327 s/^0 *\([^ ]*\) *$/\1/
11331 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11332 # Check for a 64-bit object if we didn't find anything.
11333 if test -z "$lt_cv_aix_libpath_"; then
11334 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11338 conftest$ac_exeext conftest.$ac_ext
11339 if test -z "$lt_cv_aix_libpath_"; then
11340 lt_cv_aix_libpath_=/usr/lib:/lib
11345 aix_libpath=$lt_cv_aix_libpath_
11348 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11349 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11351 if test ia64 = "$host_cpu"; then
11352 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11353 allow_undefined_flag="-z nodefs"
11354 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"
11356 # Determine the default libpath from the value encoded in an
11357 # empty executable.
11358 if test set = "${lt_cv_aix_libpath+set}"; then
11359 aix_libpath=$lt_cv_aix_libpath
11361 if test ${lt_cv_aix_libpath_+y}
11363 printf %s "(cached) " >&6
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11376 if ac_fn_c_try_link "$LINENO"
11379 lt_aix_libpath_sed='
11380 /Import File Strings/,/^$/ {
11382 s/^0 *\([^ ]*\) *$/\1/
11386 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11387 # Check for a 64-bit object if we didn't find anything.
11388 if test -z "$lt_cv_aix_libpath_"; then
11389 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11393 conftest$ac_exeext conftest.$ac_ext
11394 if test -z "$lt_cv_aix_libpath_"; then
11395 lt_cv_aix_libpath_=/usr/lib:/lib
11400 aix_libpath=$lt_cv_aix_libpath_
11403 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11404 # Warning - without using the other run time loading flags,
11405 # -berok will link without error, but may produce a broken library.
11406 no_undefined_flag=' $wl-bernotok'
11407 allow_undefined_flag=' $wl-berok'
11408 if test yes = "$with_gnu_ld"; then
11409 # We only use this code for GNU lds that support --whole-archive.
11410 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11412 # Exported symbols can be pulled into shared objects from archives
11413 whole_archive_flag_spec='$convenience'
11415 archive_cmds_need_lc=yes
11416 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11417 # -brtl affects multiple linker settings, -berok does not and is overridden later
11418 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11419 if test svr4 != "$with_aix_soname"; then
11420 # This is similar to how AIX traditionally builds its shared libraries.
11421 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11423 if test aix != "$with_aix_soname"; then
11424 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11426 # used by -dlpreopen to get the symbols
11427 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11429 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11437 # see comment about AmigaOS4 .so support
11438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11439 archive_expsym_cmds=''
11442 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)'
11443 hardcode_libdir_flag_spec='-L$libdir'
11444 hardcode_minus_L=yes
11450 export_dynamic_flag_spec=-rdynamic
11453 cygwin* | mingw* | pw32* | cegcc*)
11454 # When not using gcc, we currently assume that we are using
11455 # Microsoft Visual C++.
11456 # hardcode_libdir_flag_spec is actually meaningless, as there is
11457 # no search path for DLLs.
11458 case $cc_basename in
11461 hardcode_libdir_flag_spec=' '
11462 allow_undefined_flag=unsupported
11463 always_export_symbols=yes
11465 # Tell ltmain to make .lib files, not .a files.
11467 # Tell ltmain to make .dll files, not .so files.
11469 # FIXME: Setting linknames here is a bad hack.
11470 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11471 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11472 cp "$export_symbols" "$output_objdir/$soname.def";
11473 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11475 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11477 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11479 # The linker will not automatically build a static lib if we build a DLL.
11480 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11481 enable_shared_with_static_runtimes=yes
11482 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11483 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11485 old_postinstall_cmds='chmod 644 $oldlib'
11486 postlink_cmds='lt_outputfile="@OUTPUT@"~
11487 lt_tool_outputfile="@TOOL_OUTPUT@"~
11488 case $lt_outputfile in
11491 lt_outputfile=$lt_outputfile.exe
11492 lt_tool_outputfile=$lt_tool_outputfile.exe
11495 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11496 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11497 $RM "$lt_outputfile.manifest";
11501 # Assume MSVC wrapper
11502 hardcode_libdir_flag_spec=' '
11503 allow_undefined_flag=unsupported
11504 # Tell ltmain to make .lib files, not .a files.
11506 # Tell ltmain to make .dll files, not .so files.
11508 # FIXME: Setting linknames here is a bad hack.
11509 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11510 # The linker will automatically build a .lib file if we build a DLL.
11511 old_archive_from_new_cmds='true'
11512 # FIXME: Should let the user specify the lib program.
11513 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11514 enable_shared_with_static_runtimes=yes
11519 darwin* | rhapsody*)
11522 archive_cmds_need_lc=no
11524 hardcode_automatic=yes
11525 hardcode_shlibpath_var=unsupported
11526 if test yes = "$lt_cv_ld_force_load"; then
11527 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\"`'
11530 whole_archive_flag_spec=''
11532 link_all_deplibs=yes
11533 allow_undefined_flag=$_lt_dar_allow_undefined
11534 case $cc_basename in
11535 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11536 *) _lt_dar_can_shared=$GCC ;;
11538 if test yes = "$_lt_dar_can_shared"; then
11539 output_verbose_link_cmd=func_echo_all
11540 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11541 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11542 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"
11543 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"
11552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11553 hardcode_libdir_flag_spec='-L$libdir'
11554 hardcode_shlibpath_var=no
11557 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11558 # support. Future versions do this automatically, but an explicit c++rt0.o
11559 # does not break anything, and helps significantly (at the cost of a little
11562 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11563 hardcode_libdir_flag_spec='-R$libdir'
11564 hardcode_direct=yes
11565 hardcode_shlibpath_var=no
11568 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11571 hardcode_direct=yes
11572 hardcode_minus_L=yes
11573 hardcode_shlibpath_var=no
11576 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11577 freebsd* | dragonfly*)
11578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11579 hardcode_libdir_flag_spec='-R$libdir'
11580 hardcode_direct=yes
11581 hardcode_shlibpath_var=no
11585 if test yes = "$GCC"; then
11586 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11588 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11590 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11591 hardcode_libdir_separator=:
11592 hardcode_direct=yes
11594 # hardcode_minus_L: Not really in the search PATH,
11595 # but as the default location of the library.
11596 hardcode_minus_L=yes
11597 export_dynamic_flag_spec='$wl-E'
11601 if test yes,no = "$GCC,$with_gnu_ld"; then
11602 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11604 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11606 if test no = "$with_gnu_ld"; then
11607 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11608 hardcode_libdir_separator=:
11609 hardcode_direct=yes
11610 hardcode_direct_absolute=yes
11611 export_dynamic_flag_spec='$wl-E'
11612 # hardcode_minus_L: Not really in the search PATH,
11613 # but as the default location of the library.
11614 hardcode_minus_L=yes
11619 if test yes,no = "$GCC,$with_gnu_ld"; then
11622 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11625 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11628 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11634 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11637 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11641 # Older versions of the 11.00 compiler do not understand -b yet
11642 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11644 printf %s "checking if $CC understands -b... " >&6; }
11645 if test ${lt_cv_prog_compiler__b+y}
11647 printf %s "(cached) " >&6
11649 lt_cv_prog_compiler__b=no
11650 save_LDFLAGS=$LDFLAGS
11651 LDFLAGS="$LDFLAGS -b"
11652 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11653 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11654 # The linker can only warn and ignore the option if not recognized
11655 # So say no if there are warnings
11656 if test -s conftest.err; then
11657 # Append any errors to the config.log.
11658 cat conftest.err 1>&5
11659 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11661 if diff conftest.exp conftest.er2 >/dev/null; then
11662 lt_cv_prog_compiler__b=yes
11665 lt_cv_prog_compiler__b=yes
11669 LDFLAGS=$save_LDFLAGS
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11673 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11675 if test yes = "$lt_cv_prog_compiler__b"; then
11676 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11678 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11684 if test no = "$with_gnu_ld"; then
11685 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11686 hardcode_libdir_separator=:
11691 hardcode_shlibpath_var=no
11694 hardcode_direct=yes
11695 hardcode_direct_absolute=yes
11696 export_dynamic_flag_spec='$wl-E'
11698 # hardcode_minus_L: Not really in the search PATH,
11699 # but as the default location of the library.
11700 hardcode_minus_L=yes
11706 irix5* | irix6* | nonstopux*)
11707 if test yes = "$GCC"; then
11708 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'
11709 # Try to use the -exported_symbol ld option, if it does not
11710 # work, assume that -exports_file does not work either and
11711 # implicitly export all symbols.
11712 # This should be the same for all languages, so no per-tag cache variable.
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11714 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11715 if test ${lt_cv_irix_exported_symbol+y}
11717 printf %s "(cached) " >&6
11719 save_LDFLAGS=$LDFLAGS
11720 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11723 int foo (void) { return 0; }
11725 if ac_fn_c_try_link "$LINENO"
11727 lt_cv_irix_exported_symbol=yes
11729 lt_cv_irix_exported_symbol=no
11731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LDFLAGS=$save_LDFLAGS
11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11736 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11737 if test yes = "$lt_cv_irix_exported_symbol"; then
11738 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'
11740 link_all_deplibs=no
11742 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'
11743 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'
11745 archive_cmds_need_lc='no'
11746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11747 hardcode_libdir_separator=:
11749 link_all_deplibs=yes
11753 case $cc_basename in
11755 # Fabrice Bellard et al's Tiny C Compiler
11757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11762 netbsd* | netbsdelf*-gnu)
11763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11766 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11768 hardcode_libdir_flag_spec='-R$libdir'
11769 hardcode_direct=yes
11770 hardcode_shlibpath_var=no
11774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775 hardcode_direct=yes
11776 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11777 hardcode_libdir_separator=:
11778 hardcode_shlibpath_var=no
11784 openbsd* | bitrig*)
11785 if test -f /usr/libexec/ld.so; then
11786 hardcode_direct=yes
11787 hardcode_shlibpath_var=no
11788 hardcode_direct_absolute=yes
11789 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11790 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11791 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11792 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11793 export_dynamic_flag_spec='$wl-E'
11795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11796 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11804 hardcode_libdir_flag_spec='-L$libdir'
11805 hardcode_minus_L=yes
11806 allow_undefined_flag=unsupported
11808 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11809 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11810 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11811 $ECHO EXPORTS >> $output_objdir/$libname.def~
11812 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11813 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11814 emximp -o $lib $output_objdir/$libname.def'
11815 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11816 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11817 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11818 $ECHO EXPORTS >> $output_objdir/$libname.def~
11819 prefix_cmds="$SED"~
11820 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11821 prefix_cmds="$prefix_cmds -e 1d";
11823 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11824 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11825 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11826 emximp -o $lib $output_objdir/$libname.def'
11827 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11828 enable_shared_with_static_runtimes=yes
11832 if test yes = "$GCC"; then
11833 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11834 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'
11836 allow_undefined_flag=' -expect_unresolved \*'
11837 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'
11839 archive_cmds_need_lc='no'
11840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11841 hardcode_libdir_separator=:
11844 osf4* | osf5*) # as osf3* with the addition of -msym flag
11845 if test yes = "$GCC"; then
11846 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11847 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'
11848 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11850 allow_undefined_flag=' -expect_unresolved \*'
11851 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'
11852 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~
11853 $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'
11855 # Both c and cxx compiler support -rpath directly
11856 hardcode_libdir_flag_spec='-rpath $libdir'
11858 archive_cmds_need_lc='no'
11859 hardcode_libdir_separator=:
11863 no_undefined_flag=' -z defs'
11864 if test yes = "$GCC"; then
11866 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11868 $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'
11870 case `$CC -V 2>&1` in
11873 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11875 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11879 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11881 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11885 hardcode_libdir_flag_spec='-R$libdir'
11886 hardcode_shlibpath_var=no
11888 solaris2.[0-5] | solaris2.[0-5].*) ;;
11890 # The compiler driver will combine and reorder linker options,
11891 # but understands '-z linker_flag'. GCC discards it without '$wl',
11892 # but is careful enough not to reorder.
11893 # Supported since Solaris 2.6 (maybe 2.5.1?)
11894 if test yes = "$GCC"; then
11895 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11901 link_all_deplibs=yes
11905 if test sequent = "$host_vendor"; then
11906 # Use $CC to link under sequent, because it throws in some extra .o
11907 # files that make .init and .fini sections work.
11908 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11912 hardcode_libdir_flag_spec='-L$libdir'
11913 hardcode_direct=yes
11914 hardcode_minus_L=yes
11915 hardcode_shlibpath_var=no
11919 case $host_vendor in
11921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11922 hardcode_direct=yes # is this really true???
11925 ## LD is ld it makes a PLAMLIB
11926 ## CC just makes a GrossModule.
11927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11928 reload_cmds='$CC -r -o $output$reload_objs'
11932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11936 runpath_var='LD_RUN_PATH'
11937 hardcode_shlibpath_var=no
11941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11942 hardcode_shlibpath_var=no
11943 export_dynamic_flag_spec='-Bexport'
11947 if test -d /usr/nec; then
11948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11949 hardcode_shlibpath_var=no
11950 runpath_var=LD_RUN_PATH
11951 hardcode_runpath_var=yes
11956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11957 no_undefined_flag='$wl-z,text'
11958 archive_cmds_need_lc=no
11959 hardcode_shlibpath_var=no
11960 runpath_var='LD_RUN_PATH'
11962 if test yes = "$GCC"; then
11963 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971 sysv5* | sco3.2v5* | sco5v6*)
11972 # Note: We CANNOT use -z defs as we might desire, because we do not
11973 # link with -lc, and that would cause any symbols used from libc to
11974 # always be unresolved, which means just about no library would
11975 # ever link correctly. If we're not using GNU ld we use -z text
11976 # though, which does catch some bad symbols but isn't as heavy-handed
11978 no_undefined_flag='$wl-z,text'
11979 allow_undefined_flag='$wl-z,nodefs'
11980 archive_cmds_need_lc=no
11981 hardcode_shlibpath_var=no
11982 hardcode_libdir_flag_spec='$wl-R,$libdir'
11983 hardcode_libdir_separator=':'
11984 link_all_deplibs=yes
11985 export_dynamic_flag_spec='$wl-Bexport'
11986 runpath_var='LD_RUN_PATH'
11988 if test yes = "$GCC"; then
11989 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11990 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11999 hardcode_libdir_flag_spec='-L$libdir'
12000 hardcode_shlibpath_var=no
12008 if test sni = "$host_vendor"; then
12010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12011 export_dynamic_flag_spec='$wl-Blargedynsym'
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12018 printf "%s\n" "$ld_shlibs" >&6; }
12019 test no = "$ld_shlibs" && can_build_shared=no
12021 with_gnu_ld=$with_gnu_ld
12038 # Do we need to explicitly link libc?
12040 case "x$archive_cmds_need_lc" in
12042 # Assume -lc should be added
12043 archive_cmds_need_lc=yes
12045 if test yes,yes = "$GCC,$enable_shared"; then
12046 case $archive_cmds in
12048 # FIXME: we may have to deal with multi-command sequences.
12051 # Test whether the compiler implicitly links with -lc since on some
12052 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12053 # to ld, don't add -lc before -lgcc.
12054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12055 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12056 if test ${lt_cv_archive_cmds_need_lc+y}
12058 printf %s "(cached) " >&6
12061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12064 (eval $ac_compile) 2>&5
12066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12067 test $ac_status = 0; } 2>conftest.err; then
12070 libobjs=conftest.$ac_objext
12072 wl=$lt_prog_compiler_wl
12073 pic_flag=$lt_prog_compiler_pic
12079 lt_save_allow_undefined_flag=$allow_undefined_flag
12080 allow_undefined_flag=
12081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12082 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12085 test $ac_status = 0; }
12087 lt_cv_archive_cmds_need_lc=no
12089 lt_cv_archive_cmds_need_lc=yes
12091 allow_undefined_flag=$lt_save_allow_undefined_flag
12093 cat conftest.err 1>&5
12098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12099 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12100 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12259 printf %s "checking dynamic linker characteristics... " >&6; }
12261 if test yes = "$GCC"; then
12263 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12264 *) lt_awk_arg='/^libraries:/' ;;
12267 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12268 *) lt_sed_strip_eq='s|=/|/|g' ;;
12270 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12271 case $lt_search_path_spec in
12273 # if the path contains ";" then we assume it to be the separator
12274 # otherwise default to the standard path separator (i.e. ":") - it is
12275 # assumed that no part of a normal pathname contains ";" but that should
12276 # okay in the real world where ";" in dirpaths is itself problematic.
12277 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12280 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12283 # Ok, now we have the path, separated by spaces, we can step through it
12284 # and add multilib dir if necessary...
12285 lt_tmp_lt_search_path_spec=
12286 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12287 # ...but if some path component already ends with the multilib dir we assume
12288 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12289 case "$lt_multi_os_dir; $lt_search_path_spec " in
12290 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12294 for lt_sys_path in $lt_search_path_spec; do
12295 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12296 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12297 elif test -n "$lt_multi_os_dir"; then
12298 test -d "$lt_sys_path" && \
12299 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12302 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12303 BEGIN {RS = " "; FS = "/|\n";} {
12306 for (lt_i = NF; lt_i > 0; lt_i--) {
12307 if ($lt_i != "" && $lt_i != ".") {
12308 if ($lt_i == "..") {
12311 if (lt_count == 0) {
12312 lt_foo = "/" $lt_i lt_foo;
12319 if (lt_foo != "") { lt_freq[lt_foo]++; }
12320 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12322 # AWK program above erroneously prepends '/' to C:/dos/paths
12325 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12326 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12328 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12330 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12332 library_names_spec=
12333 libname_spec='lib$name'
12337 postuninstall_cmds=
12341 shlibpath_overrides_runpath=unknown
12343 dynamic_linker="$host_os ld.so"
12344 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12345 need_lib_prefix=unknown
12346 hardcode_into_libs=no
12348 # when you set need_version to no, make sure it does not cause -set_version
12349 # flags to be left without arguments
12350 need_version=unknown
12356 version_type=linux # correct to gnu/linux during the next big refactor
12357 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12358 shlibpath_var=LIBPATH
12360 # AIX 3 has no versioning support, so we append a major version to the name.
12361 soname_spec='$libname$release$shared_ext$major'
12365 version_type=linux # correct to gnu/linux during the next big refactor
12368 hardcode_into_libs=yes
12369 if test ia64 = "$host_cpu"; then
12370 # AIX 5 supports IA64
12371 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12372 shlibpath_var=LD_LIBRARY_PATH
12374 # With GCC up to 2.95.x, collect2 would create an import file
12375 # for dependence libraries. The import file would start with
12376 # the line '#! .'. This would cause the generated library to
12377 # depend on '.', always an invalid library. This was fixed in
12378 # development snapshots of GCC prior to 3.0.
12380 aix4 | aix4.[01] | aix4.[01].*)
12381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12383 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12386 can_build_shared=no
12390 # Using Import Files as archive members, it is possible to support
12391 # filename-based versioning of shared library archives on AIX. While
12392 # this would work for both with and without runtime linking, it will
12393 # prevent static linking of such archives. So we do filename-based
12394 # shared library versioning with .so extension only, which is used
12395 # when both runtime linking and shared linking is enabled.
12396 # Unfortunately, runtime linking may impact performance, so we do
12397 # not want this to be the default eventually. Also, we use the
12398 # versioned .so libs for executables only if there is the -brtl
12399 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12400 # To allow for filename-based versioning support, we need to create
12401 # libNAME.so.V as an archive file, containing:
12402 # *) an Import File, referring to the versioned filename of the
12403 # archive as well as the shared archive member, telling the
12404 # bitwidth (32 or 64) of that shared object, and providing the
12405 # list of exported symbols of that shared object, eventually
12406 # decorated with the 'weak' keyword
12407 # *) the shared object with the F_LOADONLY flag set, to really avoid
12408 # it being seen by the linker.
12409 # At run time we better use the real file rather than another symlink,
12410 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12412 case $with_aix_soname,$aix_use_runtimelinking in
12413 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12414 # soname into executable. Probably we can add versioning support to
12415 # collect2, so additional links can be useful in future.
12416 aix,yes) # traditional libtool
12417 dynamic_linker='AIX unversionable lib.so'
12418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12419 # instead of lib<name>.a to let people know that these are not
12420 # typical AIX shared libraries.
12421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12423 aix,no) # traditional AIX only
12424 dynamic_linker='AIX lib.a(lib.so.V)'
12425 # We preserve .a as extension for shared libraries through AIX4.2
12426 # and later when we are not doing run time linking.
12427 library_names_spec='$libname$release.a $libname.a'
12428 soname_spec='$libname$release$shared_ext$major'
12430 svr4,*) # full svr4 only
12431 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12432 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12433 # We do not specify a path in Import Files, so LIBPATH fires.
12434 shlibpath_overrides_runpath=yes
12436 *,yes) # both, prefer svr4
12437 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12438 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12439 # unpreferred sharedlib libNAME.a needs extra handling
12440 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12441 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12442 # We do not specify a path in Import Files, so LIBPATH fires.
12443 shlibpath_overrides_runpath=yes
12445 *,no) # both, prefer aix
12446 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12447 library_names_spec='$libname$release.a $libname.a'
12448 soname_spec='$libname$release$shared_ext$major'
12449 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12450 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12451 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12454 shlibpath_var=LIBPATH
12461 # Since July 2007 AmigaOS4 officially supports .so libraries.
12462 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12466 library_names_spec='$libname.ixlibrary $libname.a'
12467 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12468 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12474 library_names_spec='$libname$shared_ext'
12475 dynamic_linker="$host_os ld.so"
12476 shlibpath_var=LIBRARY_PATH
12480 version_type=linux # correct to gnu/linux during the next big refactor
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 soname_spec='$libname$release$shared_ext$major'
12484 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12487 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12488 # the default ld.so.conf also contains /usr/contrib/lib and
12489 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12490 # libtool to hard-code these into programs
12493 cygwin* | mingw* | pw32* | cegcc*)
12494 version_type=windows
12499 case $GCC,$cc_basename in
12502 library_names_spec='$libname.dll.a'
12503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12504 postinstall_cmds='base_file=`basename \$file`~
12505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12506 dldir=$destdir/`dirname \$dlpath`~
12507 test -d \$dldir || mkdir -p \$dldir~
12508 $install_prog $dir/$dlname \$dldir/$dlname~
12509 chmod a+x \$dldir/$dlname~
12510 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12511 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12514 dlpath=$dir/\$dldll~
12516 shlibpath_overrides_runpath=yes
12520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12521 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12526 # MinGW DLLs use traditional 'lib' prefix
12527 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12530 # pw32 DLLs use 'pw' prefix rather than 'lib'
12531 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12534 dynamic_linker='Win32 ld.exe'
12539 libname_spec='$name'
12540 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12541 library_names_spec='$libname.dll.lib'
12545 sys_lib_search_path_spec=
12548 for lt_path in $LIB
12551 # Let DOS variable expansion print the short 8.3 style file name.
12552 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12553 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12556 # Convert to MSYS style.
12557 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12560 # Convert to unix form, then to dos form, then back to unix form
12561 # but this time dos style (no spaces!) so that the unix form looks
12562 # like /cygdrive/c/PROGRA~1:/cygdr...
12563 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12564 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12565 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12568 sys_lib_search_path_spec=$LIB
12569 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12570 # It is most probably a Windows format PATH.
12571 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12573 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12575 # FIXME: find the short name or the path components, as spaces are
12576 # common. (e.g. "Program Files" -> "PROGRA~1")
12580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12581 postinstall_cmds='base_file=`basename \$file`~
12582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12583 dldir=$destdir/`dirname \$dlpath`~
12584 test -d \$dldir || mkdir -p \$dldir~
12585 $install_prog $dir/$dlname \$dldir/$dlname'
12586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12587 dlpath=$dir/\$dldll~
12589 shlibpath_overrides_runpath=yes
12590 dynamic_linker='Win32 link.exe'
12594 # Assume MSVC wrapper
12595 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12596 dynamic_linker='Win32 ld.exe'
12599 # FIXME: first we should search . and the directory the executable is in
12603 darwin* | rhapsody*)
12604 dynamic_linker="$host_os dyld"
12605 version_type=darwin
12608 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12609 soname_spec='$libname$release$major$shared_ext'
12610 shlibpath_overrides_runpath=yes
12611 shlibpath_var=DYLD_LIBRARY_PATH
12612 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12614 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12615 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12619 version_type=linux # correct to gnu/linux during the next big refactor
12622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12623 soname_spec='$libname$release$shared_ext$major'
12624 shlibpath_var=LD_LIBRARY_PATH
12627 freebsd* | dragonfly*)
12628 # DragonFly does not have aout. When/if they implement a new
12629 # versioning mechanism, adjust this.
12630 if test -x /usr/bin/objformat; then
12631 objformat=`/usr/bin/objformat`
12634 freebsd[23].*) objformat=aout ;;
12635 *) objformat=elf ;;
12638 version_type=freebsd-$objformat
12639 case $version_type in
12641 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12642 soname_spec='$libname$release$shared_ext$major'
12647 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12651 shlibpath_var=LD_LIBRARY_PATH
12654 shlibpath_overrides_runpath=yes
12656 freebsd3.[01]* | freebsdelf3.[01]*)
12657 shlibpath_overrides_runpath=yes
12658 hardcode_into_libs=yes
12660 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12661 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12662 shlibpath_overrides_runpath=no
12663 hardcode_into_libs=yes
12665 *) # from 4.6 on, and DragonFly
12666 shlibpath_overrides_runpath=yes
12667 hardcode_into_libs=yes
12673 version_type=linux # correct to gnu/linux during the next big refactor
12676 dynamic_linker="$host_os runtime_loader"
12677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12678 soname_spec='$libname$release$shared_ext$major'
12679 shlibpath_var=LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12682 hardcode_into_libs=yes
12685 hpux9* | hpux10* | hpux11*)
12686 # Give a soname corresponding to the major version so that dld.sl refuses to
12687 # link against other versions.
12694 hardcode_into_libs=yes
12695 dynamic_linker="$host_os dld.so"
12696 shlibpath_var=LD_LIBRARY_PATH
12697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12699 soname_spec='$libname$release$shared_ext$major'
12700 if test 32 = "$HPUX_IA64_MODE"; then
12701 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12702 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12704 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12705 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12710 hardcode_into_libs=yes
12711 dynamic_linker="$host_os dld.sl"
12712 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12715 soname_spec='$libname$release$shared_ext$major'
12716 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12721 dynamic_linker="$host_os dld.sl"
12722 shlibpath_var=SHLIB_PATH
12723 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12725 soname_spec='$libname$release$shared_ext$major'
12728 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12729 postinstall_cmds='chmod 555 $lib'
12730 # or fails outright, so override atomically:
12731 install_override_mode=555
12735 version_type=linux # correct to gnu/linux during the next big refactor
12738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12739 soname_spec='$libname$release$shared_ext$major'
12740 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 shlibpath_overrides_runpath=no
12743 hardcode_into_libs=yes
12746 irix5* | irix6* | nonstopux*)
12748 nonstopux*) version_type=nonstopux ;;
12750 if test yes = "$lt_cv_prog_gnu_ld"; then
12751 version_type=linux # correct to gnu/linux during the next big refactor
12758 soname_spec='$libname$release$shared_ext$major'
12759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12761 irix5* | nonstopux*)
12762 libsuff= shlibsuff=
12765 case $LD in # libtool.m4 will add one of these switches to LD
12766 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12767 libsuff= shlibsuff= libmagic=32-bit;;
12768 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12769 libsuff=32 shlibsuff=N32 libmagic=N32;;
12770 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12771 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12772 *) libsuff= shlibsuff= libmagic=never-match;;
12776 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12777 shlibpath_overrides_runpath=no
12778 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12779 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12780 hardcode_into_libs=yes
12783 # No shared lib support for Linux oldld, aout, or coff.
12784 linux*oldld* | linux*aout* | linux*coff*)
12789 version_type=none # Android doesn't support versioned libraries.
12792 library_names_spec='$libname$release$shared_ext'
12793 soname_spec='$libname$release$shared_ext'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 shlibpath_overrides_runpath=yes
12798 # This implies no fast_install, which is unacceptable.
12799 # Some rework will be needed to allow for fast_install
12800 # before this can be enabled.
12801 hardcode_into_libs=yes
12803 dynamic_linker='Android linker'
12804 # Don't embed -rpath directories since the linker doesn't support them.
12805 hardcode_libdir_flag_spec='-L$libdir'
12808 # This must be glibc/ELF.
12809 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12810 version_type=linux # correct to gnu/linux during the next big refactor
12813 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12814 soname_spec='$libname$release$shared_ext$major'
12815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=no
12819 # Some binutils ld are patched to set DT_RUNPATH
12820 if test ${lt_cv_shlibpath_overrides_runpath+y}
12822 printf %s "(cached) " >&6
12824 lt_cv_shlibpath_overrides_runpath=no
12825 save_LDFLAGS=$LDFLAGS
12826 save_libdir=$libdir
12827 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12828 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12840 if ac_fn_c_try_link "$LINENO"
12842 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12844 lt_cv_shlibpath_overrides_runpath=yes
12847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12848 conftest$ac_exeext conftest.$ac_ext
12849 LDFLAGS=$save_LDFLAGS
12850 libdir=$save_libdir
12854 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12856 # This implies no fast_install, which is unacceptable.
12857 # Some rework will be needed to allow for fast_install
12858 # before this can be enabled.
12859 hardcode_into_libs=yes
12861 # Ideally, we could use ldconfig to report *all* directores which are
12862 # searched for libraries, however this is still not possible. Aside from not
12863 # being certain /sbin/ldconfig is available, command
12864 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12865 # even though it is searched at run-time. Try to do the best guess by
12866 # appending ld.so.conf contents (and includes) to the search path.
12867 if test -f /etc/ld.so.conf; then
12868 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' ' '`
12869 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12872 # We used to test for /lib/ld.so.1 and disable shared libraries on
12873 # powerpc, because MkLinux only supported shared libraries with the
12874 # GNU dynamic linker. Since this was broken with cross compilers,
12875 # most powerpc-linux boxes support dynamic linking these days and
12876 # people can always --disable-shared, the test was removed, and we
12877 # assume the GNU/Linux dynamic linker is in use.
12878 dynamic_linker='GNU/Linux ld.so'
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 shlibpath_var=LD_LIBRARY_PATH
12888 shlibpath_overrides_runpath=no
12889 hardcode_into_libs=yes
12890 dynamic_linker='NetBSD ld.elf_so'
12897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12898 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12900 dynamic_linker='NetBSD (a.out) ld.so'
12902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12903 soname_spec='$libname$release$shared_ext$major'
12904 dynamic_linker='NetBSD ld.elf_so'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=yes
12908 hardcode_into_libs=yes
12912 version_type=linux # correct to gnu/linux during the next big refactor
12913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12914 shlibpath_var=LD_LIBRARY_PATH
12915 shlibpath_overrides_runpath=yes
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12923 soname_spec='$libname$release$shared_ext$major'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 shlibpath_overrides_runpath=no
12926 hardcode_into_libs=yes
12927 dynamic_linker='ldqnx.so'
12930 openbsd* | bitrig*)
12932 sys_lib_dlsearch_path_spec=/usr/lib
12934 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12939 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12941 shlibpath_var=LD_LIBRARY_PATH
12942 shlibpath_overrides_runpath=yes
12946 libname_spec='$name'
12947 version_type=windows
12951 # OS/2 can only load a DLL with a base name of 8 characters or less.
12952 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12953 v=$($ECHO $release$versuffix | tr -d .-);
12954 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12955 $ECHO $n$v`$shared_ext'
12956 library_names_spec='${libname}_dll.$libext'
12957 dynamic_linker='OS/2 ld.exe'
12958 shlibpath_var=BEGINLIBPATH
12959 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12961 postinstall_cmds='base_file=`basename \$file`~
12962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12963 dldir=$destdir/`dirname \$dlpath`~
12964 test -d \$dldir || mkdir -p \$dldir~
12965 $install_prog $dir/$dlname \$dldir/$dlname~
12966 chmod a+x \$dldir/$dlname~
12967 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12968 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12970 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12971 dlpath=$dir/\$dldll~
12975 osf3* | osf4* | osf5*)
12979 soname_spec='$libname$release$shared_ext$major'
12980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12981 shlibpath_var=LD_LIBRARY_PATH
12982 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12991 version_type=linux # correct to gnu/linux during the next big refactor
12994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12995 soname_spec='$libname$release$shared_ext$major'
12996 shlibpath_var=LD_LIBRARY_PATH
12997 shlibpath_overrides_runpath=yes
12998 hardcode_into_libs=yes
12999 # ldd complains unless libraries are executable
13000 postinstall_cmds='chmod +x $lib'
13005 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13006 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13007 shlibpath_var=LD_LIBRARY_PATH
13008 shlibpath_overrides_runpath=yes
13009 if test yes = "$with_gnu_ld"; then
13016 version_type=linux # correct to gnu/linux during the next big refactor
13017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13018 soname_spec='$libname$release$shared_ext$major'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 case $host_vendor in
13022 shlibpath_overrides_runpath=no
13024 runpath_var=LD_RUN_PATH
13032 shlibpath_overrides_runpath=no
13033 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13039 if test -d /usr/nec; then
13040 version_type=linux # correct to gnu/linux during the next big refactor
13041 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13042 soname_spec='$libname$shared_ext.$major'
13043 shlibpath_var=LD_LIBRARY_PATH
13047 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13051 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13052 soname_spec='$libname$release$shared_ext$major'
13053 shlibpath_var=LD_LIBRARY_PATH
13054 shlibpath_overrides_runpath=yes
13055 hardcode_into_libs=yes
13056 if test yes = "$with_gnu_ld"; then
13057 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13059 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13062 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13066 sys_lib_dlsearch_path_spec='/usr/lib'
13070 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13071 version_type=linux # correct to gnu/linux during the next big refactor
13074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13075 shlibpath_var=LD_LIBRARY_PATH
13076 shlibpath_overrides_runpath=no
13077 hardcode_into_libs=yes
13081 version_type=linux # correct to gnu/linux during the next big refactor
13082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13083 soname_spec='$libname$release$shared_ext$major'
13084 shlibpath_var=LD_LIBRARY_PATH
13091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13092 printf "%s\n" "$dynamic_linker" >&6; }
13093 test no = "$dynamic_linker" && can_build_shared=no
13095 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13096 if test yes = "$GCC"; then
13097 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13100 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13101 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13104 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13105 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13108 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13109 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13111 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13112 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13114 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13115 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13214 printf %s "checking how to hardcode library paths into programs... " >&6; }
13216 if test -n "$hardcode_libdir_flag_spec" ||
13217 test -n "$runpath_var" ||
13218 test yes = "$hardcode_automatic"; then
13220 # We can hardcode non-existent directories.
13221 if test no != "$hardcode_direct" &&
13222 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13223 # have to relink, otherwise we might link with an installed library
13224 # when we should be linking with a yet-to-be-installed one
13225 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13226 test no != "$hardcode_minus_L"; then
13227 # Linking always hardcodes the temporary library directory.
13228 hardcode_action=relink
13230 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13231 hardcode_action=immediate
13234 # We cannot hardcode anything, or else we can only hardcode existing
13236 hardcode_action=unsupported
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13239 printf "%s\n" "$hardcode_action" >&6; }
13241 if test relink = "$hardcode_action" ||
13242 test yes = "$inherit_rpath"; then
13243 # Fast installation is not supported
13244 enable_fast_install=no
13245 elif test yes = "$shlibpath_overrides_runpath" ||
13246 test no = "$enable_shared"; then
13247 # Fast installation is not necessary
13248 enable_fast_install=needless
13256 if test yes != "$enable_dlopen"; then
13257 enable_dlopen=unknown
13258 enable_dlopen_self=unknown
13259 enable_dlopen_self_static=unknown
13266 lt_cv_dlopen=load_add_on
13268 lt_cv_dlopen_self=yes
13271 mingw* | pw32* | cegcc*)
13272 lt_cv_dlopen=LoadLibrary
13277 lt_cv_dlopen=dlopen
13282 # if libdl is installed we need to link against it
13283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13284 printf %s "checking for dlopen in -ldl... " >&6; }
13285 if test ${ac_cv_lib_dl_dlopen+y}
13287 printf %s "(cached) " >&6
13289 ac_check_lib_save_LIBS=$LIBS
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13294 /* Override any GCC internal prototype to avoid an error.
13295 Use char because int might match the return type of a GCC
13296 builtin and then its argument prototype would still apply. */
13306 if ac_fn_c_try_link "$LINENO"
13308 ac_cv_lib_dl_dlopen=yes
13310 ac_cv_lib_dl_dlopen=no
13312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13313 conftest$ac_exeext conftest.$ac_ext
13314 LIBS=$ac_check_lib_save_LIBS
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13317 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13318 if test "x$ac_cv_lib_dl_dlopen" = xyes
13320 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13325 lt_cv_dlopen_self=yes
13332 # Don't try to run any link tests for TPF. We know it's impossible
13333 # because TPF is a cross-compiler, and we know how we open DSOs.
13334 lt_cv_dlopen=dlopen
13336 lt_cv_dlopen_self=no
13340 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13341 if test "x$ac_cv_func_shl_load" = xyes
13343 lt_cv_dlopen=shl_load
13345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13346 printf %s "checking for shl_load in -ldld... " >&6; }
13347 if test ${ac_cv_lib_dld_shl_load+y}
13349 printf %s "(cached) " >&6
13351 ac_check_lib_save_LIBS=$LIBS
13353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13363 return shl_load ();
13368 if ac_fn_c_try_link "$LINENO"
13370 ac_cv_lib_dld_shl_load=yes
13372 ac_cv_lib_dld_shl_load=no
13374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13375 conftest$ac_exeext conftest.$ac_ext
13376 LIBS=$ac_check_lib_save_LIBS
13378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13379 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13380 if test "x$ac_cv_lib_dld_shl_load" = xyes
13382 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13384 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13385 if test "x$ac_cv_func_dlopen" = xyes
13387 lt_cv_dlopen=dlopen
13389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13390 printf %s "checking for dlopen in -ldl... " >&6; }
13391 if test ${ac_cv_lib_dl_dlopen+y}
13393 printf %s "(cached) " >&6
13395 ac_check_lib_save_LIBS=$LIBS
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13400 /* Override any GCC internal prototype to avoid an error.
13401 Use char because int might match the return type of a GCC
13402 builtin and then its argument prototype would still apply. */
13412 if ac_fn_c_try_link "$LINENO"
13414 ac_cv_lib_dl_dlopen=yes
13416 ac_cv_lib_dl_dlopen=no
13418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13419 conftest$ac_exeext conftest.$ac_ext
13420 LIBS=$ac_check_lib_save_LIBS
13422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13423 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13424 if test "x$ac_cv_lib_dl_dlopen" = xyes
13426 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13429 printf %s "checking for dlopen in -lsvld... " >&6; }
13430 if test ${ac_cv_lib_svld_dlopen+y}
13432 printf %s "(cached) " >&6
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lsvld $LIBS"
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13451 if ac_fn_c_try_link "$LINENO"
13453 ac_cv_lib_svld_dlopen=yes
13455 ac_cv_lib_svld_dlopen=no
13457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13458 conftest$ac_exeext conftest.$ac_ext
13459 LIBS=$ac_check_lib_save_LIBS
13461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13462 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13463 if test "x$ac_cv_lib_svld_dlopen" = xyes
13465 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13468 printf %s "checking for dld_link in -ldld... " >&6; }
13469 if test ${ac_cv_lib_dld_dld_link+y}
13471 printf %s "(cached) " >&6
13473 ac_check_lib_save_LIBS=$LIBS
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13478 /* Override any GCC internal prototype to avoid an error.
13479 Use char because int might match the return type of a GCC
13480 builtin and then its argument prototype would still apply. */
13485 return dld_link ();
13490 if ac_fn_c_try_link "$LINENO"
13492 ac_cv_lib_dld_dld_link=yes
13494 ac_cv_lib_dld_dld_link=no
13496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13497 conftest$ac_exeext conftest.$ac_ext
13498 LIBS=$ac_check_lib_save_LIBS
13500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13501 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13502 if test "x$ac_cv_lib_dld_dld_link" = xyes
13504 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13525 if test no = "$lt_cv_dlopen"; then
13531 case $lt_cv_dlopen in
13533 save_CPPFLAGS=$CPPFLAGS
13534 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13536 save_LDFLAGS=$LDFLAGS
13537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13540 LIBS="$lt_cv_dlopen_libs $LIBS"
13542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13543 printf %s "checking whether a program can dlopen itself... " >&6; }
13544 if test ${lt_cv_dlopen_self+y}
13546 printf %s "(cached) " >&6
13548 if test yes = "$cross_compiling"; then :
13549 lt_cv_dlopen_self=cross
13551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13552 lt_status=$lt_dlunknown
13553 cat > conftest.$ac_ext <<_LT_EOF
13554 #line $LINENO "configure"
13555 #include "confdefs.h"
13564 # define LT_DLGLOBAL RTLD_GLOBAL
13567 # define LT_DLGLOBAL DL_GLOBAL
13569 # define LT_DLGLOBAL 0
13573 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13574 find out it does not work in some platform. */
13575 #ifndef LT_DLLAZY_OR_NOW
13577 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13580 # define LT_DLLAZY_OR_NOW DL_LAZY
13583 # define LT_DLLAZY_OR_NOW RTLD_NOW
13586 # define LT_DLLAZY_OR_NOW DL_NOW
13588 # define LT_DLLAZY_OR_NOW 0
13595 /* When -fvisibility=hidden is used, assume the code has been annotated
13596 correspondingly for the symbols needed. */
13597 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13598 int fnord () __attribute__((visibility("default")));
13601 int fnord () { return 42; }
13604 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13605 int status = $lt_dlunknown;
13609 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13612 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13613 else puts (dlerror ());
13615 /* dlclose (self); */
13623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13624 (eval $ac_link) 2>&5
13626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13628 (./conftest; exit; ) >&5 2>/dev/null
13630 case x$lt_status in
13631 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13632 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13633 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13636 # compilation failed
13637 lt_cv_dlopen_self=no
13644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13645 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13647 if test yes = "$lt_cv_dlopen_self"; then
13648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13650 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13651 if test ${lt_cv_dlopen_self_static+y}
13653 printf %s "(cached) " >&6
13655 if test yes = "$cross_compiling"; then :
13656 lt_cv_dlopen_self_static=cross
13658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13659 lt_status=$lt_dlunknown
13660 cat > conftest.$ac_ext <<_LT_EOF
13661 #line $LINENO "configure"
13662 #include "confdefs.h"
13671 # define LT_DLGLOBAL RTLD_GLOBAL
13674 # define LT_DLGLOBAL DL_GLOBAL
13676 # define LT_DLGLOBAL 0
13680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13681 find out it does not work in some platform. */
13682 #ifndef LT_DLLAZY_OR_NOW
13684 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13687 # define LT_DLLAZY_OR_NOW DL_LAZY
13690 # define LT_DLLAZY_OR_NOW RTLD_NOW
13693 # define LT_DLLAZY_OR_NOW DL_NOW
13695 # define LT_DLLAZY_OR_NOW 0
13702 /* When -fvisibility=hidden is used, assume the code has been annotated
13703 correspondingly for the symbols needed. */
13704 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13705 int fnord () __attribute__((visibility("default")));
13708 int fnord () { return 42; }
13711 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13712 int status = $lt_dlunknown;
13716 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13719 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13720 else puts (dlerror ());
13722 /* dlclose (self); */
13730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13731 (eval $ac_link) 2>&5
13733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13735 (./conftest; exit; ) >&5 2>/dev/null
13737 case x$lt_status in
13738 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13739 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13740 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13743 # compilation failed
13744 lt_cv_dlopen_self_static=no
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13752 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13755 CPPFLAGS=$save_CPPFLAGS
13756 LDFLAGS=$save_LDFLAGS
13761 case $lt_cv_dlopen_self in
13762 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13763 *) enable_dlopen_self=unknown ;;
13766 case $lt_cv_dlopen_self_static in
13767 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13768 *) enable_dlopen_self_static=unknown ;;
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13791 printf %s "checking whether stripping libraries is possible... " >&6; }
13792 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13793 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13794 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13796 printf "%s\n" "yes" >&6; }
13798 # FIXME - insert some real tests, host_os isn't really good enough
13801 if test -n "$STRIP"; then
13802 striplib="$STRIP -x"
13803 old_striplib="$STRIP -S"
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13805 printf "%s\n" "yes" >&6; }
13807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 printf "%s\n" "no" >&6; }
13812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13813 printf "%s\n" "no" >&6; }
13829 # Report what library types will actually be built
13830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13831 printf %s "checking if libtool supports shared libraries... " >&6; }
13832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13833 printf "%s\n" "$can_build_shared" >&6; }
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13836 printf %s "checking whether to build shared libraries... " >&6; }
13837 test no = "$can_build_shared" && enable_shared=no
13839 # On AIX, shared libraries and static libraries use the same namespace, and
13840 # are all built from PIC.
13843 test yes = "$enable_shared" && enable_static=no
13844 if test -n "$RANLIB"; then
13845 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13846 postinstall_cmds='$RANLIB $lib'
13851 if test ia64 != "$host_cpu"; then
13852 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13853 yes,aix,yes) ;; # shared object as lib.so file only
13854 yes,svr4,*) ;; # shared object as lib.so archive member only
13855 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13861 printf "%s\n" "$enable_shared" >&6; }
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13864 printf %s "checking whether to build static libraries... " >&6; }
13865 # Make sure either enable_shared or enable_static is yes.
13866 test yes = "$enable_shared" || enable_static=yes
13867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13868 printf "%s\n" "$enable_static" >&6; }
13875 ac_cpp='$CPP $CPPFLAGS'
13876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13896 ac_config_commands="$ac_config_commands libtool"
13901 # Only expand once:
13904 if test -n "$ac_tool_prefix"; then
13905 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13906 set dummy ${ac_tool_prefix}strip; ac_word=$2
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13908 printf %s "checking for $ac_word... " >&6; }
13909 if test ${ac_cv_prog_STRIP+y}
13911 printf %s "(cached) " >&6
13913 if test -n "$STRIP"; then
13914 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13917 for as_dir in $PATH
13920 case $as_dir in #(((
13923 *) as_dir=$as_dir/ ;;
13925 for ac_exec_ext in '' $ac_executable_extensions; do
13926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13937 STRIP=$ac_cv_prog_STRIP
13938 if test -n "$STRIP"; then
13939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13940 printf "%s\n" "$STRIP" >&6; }
13942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13943 printf "%s\n" "no" >&6; }
13948 if test -z "$ac_cv_prog_STRIP"; then
13950 # Extract the first word of "strip", so it can be a program name with args.
13951 set dummy strip; ac_word=$2
13952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13953 printf %s "checking for $ac_word... " >&6; }
13954 if test ${ac_cv_prog_ac_ct_STRIP+y}
13956 printf %s "(cached) " >&6
13958 if test -n "$ac_ct_STRIP"; then
13959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13962 for as_dir in $PATH
13965 case $as_dir in #(((
13968 *) as_dir=$as_dir/ ;;
13970 for ac_exec_ext in '' $ac_executable_extensions; do
13971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13972 ac_cv_prog_ac_ct_STRIP="strip"
13973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13983 if test -n "$ac_ct_STRIP"; then
13984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13985 printf "%s\n" "$ac_ct_STRIP" >&6; }
13987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13988 printf "%s\n" "no" >&6; }
13991 if test "x$ac_ct_STRIP" = x; then
13994 case $cross_compiling:$ac_tool_warned in
13996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13997 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13998 ac_tool_warned=yes ;;
14003 STRIP="$ac_cv_prog_STRIP"
14009 # Options for building bsdtar.
14011 # Default is to build bsdtar, but allow people to override that.
14013 # Check whether --enable-bsdtar was given.
14014 if test ${enable_bsdtar+y}
14016 enableval=$enable_bsdtar;
14022 case "$enable_bsdtar" in
14024 if test "$enable_static" = "no"; then
14032 if test "$enable_shared" = "no"; then
14033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14035 as_fn_error $? "Shared linking of bsdtar requires shared libarchive
14036 See \`config.log' for more details" "$LINENO" 5; }
14050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14051 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14052 as_fn_error $? "Unsupported value for --enable-bsdtar
14053 See \`config.log' for more details" "$LINENO" 5; }
14057 if test "$build_bsdtar" = yes ; then
14059 BUILD_BSDTAR_FALSE='#'
14061 BUILD_BSDTAR_TRUE='#'
14062 BUILD_BSDTAR_FALSE=
14065 if test "$static_bsdtar" = yes ; then
14066 STATIC_BSDTAR_TRUE=
14067 STATIC_BSDTAR_FALSE='#'
14069 STATIC_BSDTAR_TRUE='#'
14070 STATIC_BSDTAR_FALSE=
14075 # Options for building bsdcat.
14077 # Default is to build bsdcat, but allow people to override that.
14079 # Check whether --enable-bsdcat was given.
14080 if test ${enable_bsdcat+y}
14082 enableval=$enable_bsdcat;
14088 case "$enable_bsdcat" in
14090 if test "$enable_static" = "no"; then
14098 if test "$enable_shared" = "no"; then
14099 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14100 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14101 as_fn_error $? "Shared linking of bsdcat requires shared libarchive
14102 See \`config.log' for more details" "$LINENO" 5; }
14116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14118 as_fn_error $? "Unsupported value for --enable-bsdcat
14119 See \`config.log' for more details" "$LINENO" 5; }
14123 if test "$build_bsdcat" = yes ; then
14125 BUILD_BSDCAT_FALSE='#'
14127 BUILD_BSDCAT_TRUE='#'
14128 BUILD_BSDCAT_FALSE=
14131 if test "$static_bsdcat" = yes ; then
14132 STATIC_BSDCAT_TRUE=
14133 STATIC_BSDCAT_FALSE='#'
14135 STATIC_BSDCAT_TRUE='#'
14136 STATIC_BSDCAT_FALSE=
14141 # Options for building bsdcpio.
14143 # Default is not to build bsdcpio, but that can be overridden.
14145 # Check whether --enable-bsdcpio was given.
14146 if test ${enable_bsdcpio+y}
14148 enableval=$enable_bsdcpio;
14154 case "$enable_bsdcpio" in
14156 if test "$enable_static" = "no"; then
14164 if test "$enabled_shared" = "no"; then
14165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14166 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14167 as_fn_error $? "Shared linking of bsdcpio requires shared libarchive
14168 See \`config.log' for more details" "$LINENO" 5; }
14181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14183 as_fn_error $? "Unsupported value for --enable-bsdcpio
14184 See \`config.log' for more details" "$LINENO" 5; }
14188 if test "$build_bsdcpio" = yes ; then
14189 BUILD_BSDCPIO_TRUE=
14190 BUILD_BSDCPIO_FALSE='#'
14192 BUILD_BSDCPIO_TRUE='#'
14193 BUILD_BSDCPIO_FALSE=
14196 if test "$static_bsdcpio" = yes ; then
14197 STATIC_BSDCPIO_TRUE=
14198 STATIC_BSDCPIO_FALSE='#'
14200 STATIC_BSDCPIO_TRUE='#'
14201 STATIC_BSDCPIO_FALSE=
14205 # Set up defines needed before including any headers
14207 *mingw* | *cygwin* | *msys* )
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211 #ifdef _WIN32_WINNT
14212 # error _WIN32_WINNT already defined
14224 if ac_fn_c_try_cpp "$LINENO"
14228 printf "%s\n" "#define _WIN32_WINNT 0x0502" >>confdefs.h
14231 printf "%s\n" "#define NTDDI_VERSION 0x05020000" >>confdefs.h
14235 rm -f conftest.err conftest.i conftest.$ac_ext
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14239 # error WINVER already defined
14251 if ac_fn_c_try_cpp "$LINENO"
14255 printf "%s\n" "#define WINVER 0x0502" >>confdefs.h
14259 rm -f conftest.err conftest.i conftest.$ac_ext
14263 # Checks for header files.
14264 ac_header_dirent=no
14265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14266 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
14268 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
14269 if eval test \${$as_ac_Header+y}
14271 printf %s "(cached) " >&6
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 #include <sys/types.h>
14287 if ac_fn_c_try_compile "$LINENO"
14289 eval "$as_ac_Header=yes"
14291 eval "$as_ac_Header=no"
14293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14295 eval ac_res=\$$as_ac_Header
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14297 printf "%s\n" "$ac_res" >&6; }
14298 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14300 cat >>confdefs.h <<_ACEOF
14301 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
14304 ac_header_dirent=$ac_hdr; break
14308 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14309 if test $ac_header_dirent = dirent.h; then
14310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14311 printf %s "checking for library containing opendir... " >&6; }
14312 if test ${ac_cv_search_opendir+y}
14314 printf %s "(cached) " >&6
14316 ac_func_search_save_LIBS=$LIBS
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14320 /* Override any GCC internal prototype to avoid an error.
14321 Use char because int might match the return type of a GCC
14322 builtin and then its argument prototype would still apply. */
14332 for ac_lib in '' dir
14334 if test -z "$ac_lib"; then
14335 ac_res="none required"
14338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14340 if ac_fn_c_try_link "$LINENO"
14342 ac_cv_search_opendir=$ac_res
14344 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14346 if test ${ac_cv_search_opendir+y}
14351 if test ${ac_cv_search_opendir+y}
14355 ac_cv_search_opendir=no
14357 rm conftest.$ac_ext
14358 LIBS=$ac_func_search_save_LIBS
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14361 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14362 ac_res=$ac_cv_search_opendir
14363 if test "$ac_res" != no
14365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
14371 printf %s "checking for library containing opendir... " >&6; }
14372 if test ${ac_cv_search_opendir+y}
14374 printf %s "(cached) " >&6
14376 ac_func_search_save_LIBS=$LIBS
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14394 if test -z "$ac_lib"; then
14395 ac_res="none required"
14398 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14400 if ac_fn_c_try_link "$LINENO"
14402 ac_cv_search_opendir=$ac_res
14404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14406 if test ${ac_cv_search_opendir+y}
14411 if test ${ac_cv_search_opendir+y}
14415 ac_cv_search_opendir=no
14417 rm conftest.$ac_ext
14418 LIBS=$ac_func_search_save_LIBS
14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
14421 printf "%s\n" "$ac_cv_search_opendir" >&6; }
14422 ac_res=$ac_cv_search_opendir
14423 if test "$ac_res" != no
14425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
14432 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14433 if test ${ac_cv_header_sys_wait_h+y}
14435 printf %s "(cached) " >&6
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 #include <sys/types.h>
14440 #include <sys/wait.h>
14441 #ifndef WEXITSTATUS
14442 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14445 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14453 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14458 if ac_fn_c_try_compile "$LINENO"
14460 ac_cv_header_sys_wait_h=yes
14462 ac_cv_header_sys_wait_h=no
14464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14467 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
14468 if test $ac_cv_header_sys_wait_h = yes; then
14470 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14474 ac_fn_c_check_header_compile "$LINENO" "acl/libacl.h" "ac_cv_header_acl_libacl_h" "$ac_includes_default"
14475 if test "x$ac_cv_header_acl_libacl_h" = xyes
14477 printf "%s\n" "#define HAVE_ACL_LIBACL_H 1" >>confdefs.h
14480 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
14481 if test "x$ac_cv_header_attr_xattr_h" = xyes
14483 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
14487 ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default"
14488 if test "x$ac_cv_header_copyfile_h" = xyes
14490 printf "%s\n" "#define HAVE_COPYFILE_H 1" >>confdefs.h
14493 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
14494 if test "x$ac_cv_header_ctype_h" = xyes
14496 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
14500 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
14501 if test "x$ac_cv_header_errno_h" = xyes
14503 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
14506 ac_fn_c_check_header_compile "$LINENO" "ext2fs/ext2_fs.h" "ac_cv_header_ext2fs_ext2_fs_h" "$ac_includes_default"
14507 if test "x$ac_cv_header_ext2fs_ext2_fs_h" = xyes
14509 printf "%s\n" "#define HAVE_EXT2FS_EXT2_FS_H 1" >>confdefs.h
14512 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14513 if test "x$ac_cv_header_fcntl_h" = xyes
14515 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14518 ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
14519 if test "x$ac_cv_header_grp_h" = xyes
14521 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
14526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether EXT2_IOC_GETFLAGS is usable" >&5
14527 printf %s "checking whether EXT2_IOC_GETFLAGS is usable... " >&6; }
14528 if test ${ac_cv_have_decl_EXT2_IOC_GETFLAGS+y}
14530 printf %s "(cached) " >&6
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534 #include <sys/ioctl.h>
14535 #include <ext2fs/ext2_fs.h>
14539 int x = EXT2_IOC_GETFLAGS
14544 if ac_fn_c_try_compile "$LINENO"
14546 ac_cv_have_decl_EXT2_IOC_GETFLAGS=yes
14548 ac_cv_have_decl_EXT2_IOC_GETFLAGS=no
14550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&5
14553 printf "%s\n" "$ac_cv_have_decl_EXT2_IOC_GETFLAGS" >&6; }
14555 if test "x$ac_cv_have_decl_EXT2_IOC_GETFLAGS" = xyes
14558 printf "%s\n" "#define HAVE_WORKING_EXT2_IOC_GETFLAGS 1" >>confdefs.h
14562 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
14563 if test "x$ac_cv_header_inttypes_h" = xyes
14565 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
14568 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
14569 if test "x$ac_cv_header_io_h" = xyes
14571 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
14574 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
14575 if test "x$ac_cv_header_langinfo_h" = xyes
14577 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
14580 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
14581 if test "x$ac_cv_header_limits_h" = xyes
14583 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
14587 ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
14588 if test "x$ac_cv_header_linux_fiemap_h" = xyes
14590 printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
14593 ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
14594 if test "x$ac_cv_header_linux_fs_h" = xyes
14596 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
14599 ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
14600 if test "x$ac_cv_header_linux_magic_h" = xyes
14602 printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h
14605 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
14606 if test "x$ac_cv_header_linux_types_h" = xyes
14608 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
14613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FS_IOC_GETFLAGS is usable" >&5
14614 printf %s "checking whether FS_IOC_GETFLAGS is usable... " >&6; }
14615 if test ${ac_cv_have_decl_FS_IOC_GETFLAGS+y}
14617 printf %s "(cached) " >&6
14619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14620 /* end confdefs.h. */
14621 #include <sys/ioctl.h>
14622 #include <linux/fs.h>
14626 int x = FS_IOC_GETFLAGS
14631 if ac_fn_c_try_compile "$LINENO"
14633 ac_cv_have_decl_FS_IOC_GETFLAGS=yes
14635 ac_cv_have_decl_FS_IOC_GETFLAGS=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_FS_IOC_GETFLAGS" >&5
14640 printf "%s\n" "$ac_cv_have_decl_FS_IOC_GETFLAGS" >&6; }
14642 if test "x$ac_cv_have_decl_FS_IOC_GETFLAGS" = xyes
14645 printf "%s\n" "#define HAVE_WORKING_FS_IOC_GETFLAGS 1" >>confdefs.h
14649 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14650 if test "x$ac_cv_header_locale_h" = xyes
14652 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14655 ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
14656 if test "x$ac_cv_header_membership_h" = xyes
14658 printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
14661 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
14662 if test "x$ac_cv_header_paths_h" = xyes
14664 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
14667 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
14668 if test "x$ac_cv_header_poll_h" = xyes
14670 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
14673 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14674 if test "x$ac_cv_header_pthread_h" = xyes
14676 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
14679 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
14680 if test "x$ac_cv_header_pwd_h" = xyes
14682 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
14686 ac_fn_c_check_header_compile "$LINENO" "readpassphrase.h" "ac_cv_header_readpassphrase_h" "$ac_includes_default"
14687 if test "x$ac_cv_header_readpassphrase_h" = xyes
14689 printf "%s\n" "#define HAVE_READPASSPHRASE_H 1" >>confdefs.h
14692 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14693 if test "x$ac_cv_header_signal_h" = xyes
14695 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
14698 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
14699 if test "x$ac_cv_header_spawn_h" = xyes
14701 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
14705 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
14706 if test "x$ac_cv_header_stdarg_h" = xyes
14708 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
14711 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14712 if test "x$ac_cv_header_stdint_h" = xyes
14714 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14717 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
14718 if test "x$ac_cv_header_stdlib_h" = xyes
14720 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
14723 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
14724 if test "x$ac_cv_header_string_h" = xyes
14726 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
14730 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
14731 if test "x$ac_cv_header_sys_acl_h" = xyes
14733 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
14736 ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
14737 if test "x$ac_cv_header_sys_cdefs_h" = xyes
14739 printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
14742 ac_fn_c_check_header_compile "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
14743 if test "x$ac_cv_header_sys_ea_h" = xyes
14745 printf "%s\n" "#define HAVE_SYS_EA_H 1" >>confdefs.h
14748 ac_fn_c_check_header_compile "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
14749 if test "x$ac_cv_header_sys_extattr_h" = xyes
14751 printf "%s\n" "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
14755 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
14756 if test "x$ac_cv_header_sys_ioctl_h" = xyes
14758 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
14761 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
14762 if test "x$ac_cv_header_sys_mkdev_h" = xyes
14764 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
14767 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
14768 if test "x$ac_cv_header_sys_mount_h" = xyes
14770 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
14774 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
14775 if test "x$ac_cv_header_sys_param_h" = xyes
14777 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
14780 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
14781 if test "x$ac_cv_header_sys_poll_h" = xyes
14783 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
14786 ac_fn_c_check_header_compile "$LINENO" "sys/richacl.h" "ac_cv_header_sys_richacl_h" "$ac_includes_default"
14787 if test "x$ac_cv_header_sys_richacl_h" = xyes
14789 printf "%s\n" "#define HAVE_SYS_RICHACL_H 1" >>confdefs.h
14793 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
14794 if test "x$ac_cv_header_sys_select_h" = xyes
14796 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
14799 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
14800 if test "x$ac_cv_header_sys_statfs_h" = xyes
14802 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
14805 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
14806 if test "x$ac_cv_header_sys_statvfs_h" = xyes
14808 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
14811 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
14812 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
14814 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
14818 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14819 if test "x$ac_cv_header_sys_time_h" = xyes
14821 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14824 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
14825 if test "x$ac_cv_header_sys_utime_h" = xyes
14827 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
14830 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
14831 if test "x$ac_cv_header_sys_utsname_h" = xyes
14833 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
14836 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
14837 if test "x$ac_cv_header_sys_vfs_h" = xyes
14839 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
14842 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
14843 if test "x$ac_cv_header_sys_xattr_h" = xyes
14845 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
14849 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
14850 if test "x$ac_cv_header_time_h" = xyes
14852 printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
14855 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14856 if test "x$ac_cv_header_unistd_h" = xyes
14858 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14861 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
14862 if test "x$ac_cv_header_utime_h" = xyes
14864 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
14867 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
14868 if test "x$ac_cv_header_wchar_h" = xyes
14870 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
14873 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
14874 if test "x$ac_cv_header_wctype_h" = xyes
14876 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
14880 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
14881 if test "x$ac_cv_header_windows_h" = xyes
14883 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
14887 # check windows.h first; the other headers require it.
14888 ac_fn_c_check_header_compile "$LINENO" "wincrypt.h" "ac_cv_header_wincrypt_h" "#ifdef HAVE_WINDOWS_H
14889 # include <windows.h>
14893 if test "x$ac_cv_header_wincrypt_h" = xyes
14895 printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
14898 ac_fn_c_check_header_compile "$LINENO" "winioctl.h" "ac_cv_header_winioctl_h" "#ifdef HAVE_WINDOWS_H
14899 # include <windows.h>
14903 if test "x$ac_cv_header_winioctl_h" = xyes
14905 printf "%s\n" "#define HAVE_WINIOCTL_H 1" >>confdefs.h
14910 # Checks for libraries.
14912 # Check whether --with-zlib was given.
14913 if test ${with_zlib+y}
14915 withval=$with_zlib;
14919 if test "x$with_zlib" != "xno"; then
14920 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
14921 if test "x$ac_cv_header_zlib_h" = xyes
14923 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
14927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
14928 printf %s "checking for inflate in -lz... " >&6; }
14929 if test ${ac_cv_lib_z_inflate+y}
14931 printf %s "(cached) " >&6
14933 ac_check_lib_save_LIBS=$LIBS
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14938 /* Override any GCC internal prototype to avoid an error.
14939 Use char because int might match the return type of a GCC
14940 builtin and then its argument prototype would still apply. */
14950 if ac_fn_c_try_link "$LINENO"
14952 ac_cv_lib_z_inflate=yes
14954 ac_cv_lib_z_inflate=no
14956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
14961 printf "%s\n" "$ac_cv_lib_z_inflate" >&6; }
14962 if test "x$ac_cv_lib_z_inflate" = xyes
14964 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
14973 # Check whether --with-bz2lib was given.
14974 if test ${with_bz2lib+y}
14976 withval=$with_bz2lib;
14980 if test "x$with_bz2lib" != "xno"; then
14981 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
14982 if test "x$ac_cv_header_bzlib_h" = xyes
14984 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
14989 *mingw* | *cygwin* | *msys*)
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
14991 printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14997 int main() { return BZ2_bzDecompressInit(NULL, 0, 0); }
14999 if ac_fn_c_try_link "$LINENO"
15001 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
15003 ac_cv_lib_bz2_BZ2_bzDecompressInit=no
15005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15006 conftest$ac_exeext conftest.$ac_ext
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
15009 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
15010 if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes; then
15012 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompressInit in -lbz2" >&5
15019 printf %s "checking for BZ2_bzDecompressInit in -lbz2... " >&6; }
15020 if test ${ac_cv_lib_bz2_BZ2_bzDecompressInit+y}
15022 printf %s "(cached) " >&6
15024 ac_check_lib_save_LIBS=$LIBS
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 char BZ2_bzDecompressInit ();
15036 return BZ2_bzDecompressInit ();
15041 if ac_fn_c_try_link "$LINENO"
15043 ac_cv_lib_bz2_BZ2_bzDecompressInit=yes
15045 ac_cv_lib_bz2_BZ2_bzDecompressInit=no
15047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15048 conftest$ac_exeext conftest.$ac_ext
15049 LIBS=$ac_check_lib_save_LIBS
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompressInit" >&5
15052 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzDecompressInit" >&6; }
15053 if test "x$ac_cv_lib_bz2_BZ2_bzDecompressInit" = xyes
15055 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15066 # Check whether --with-libb2 was given.
15067 if test ${with_libb2+y}
15069 withval=$with_libb2;
15073 if test "x$with_libb2" != "xno"; then
15074 ac_fn_c_check_header_compile "$LINENO" "blake2.h" "ac_cv_header_blake2_h" "$ac_includes_default"
15075 if test "x$ac_cv_header_blake2_h" = xyes
15077 printf "%s\n" "#define HAVE_BLAKE2_H 1" >>confdefs.h
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blake2sp_init in -lb2" >&5
15082 printf %s "checking for blake2sp_init in -lb2... " >&6; }
15083 if test ${ac_cv_lib_b2_blake2sp_init+y}
15085 printf %s "(cached) " >&6
15087 ac_check_lib_save_LIBS=$LIBS
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15092 /* Override any GCC internal prototype to avoid an error.
15093 Use char because int might match the return type of a GCC
15094 builtin and then its argument prototype would still apply. */
15095 char blake2sp_init ();
15099 return blake2sp_init ();
15104 if ac_fn_c_try_link "$LINENO"
15106 ac_cv_lib_b2_blake2sp_init=yes
15108 ac_cv_lib_b2_blake2sp_init=no
15110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15111 conftest$ac_exeext conftest.$ac_ext
15112 LIBS=$ac_check_lib_save_LIBS
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_b2_blake2sp_init" >&5
15115 printf "%s\n" "$ac_cv_lib_b2_blake2sp_init" >&6; }
15116 if test "x$ac_cv_lib_b2_blake2sp_init" = xyes
15118 printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
15126 if test "x$ac_cv_lib_b2_blake2sp_init" != "xyes"; then
15128 INC_BLAKE2_FALSE='#'
15130 INC_BLAKE2_TRUE='#'
15136 # Check whether --with-iconv was given.
15137 if test ${with_iconv+y}
15139 withval=$with_iconv;
15143 if test "x$with_iconv" != "xno"; then
15145 if test "X$prefix" = "XNONE"; then
15146 acl_final_prefix="$ac_default_prefix"
15148 acl_final_prefix="$prefix"
15150 if test "X$exec_prefix" = "XNONE"; then
15151 acl_final_exec_prefix='${prefix}'
15153 acl_final_exec_prefix="$exec_prefix"
15155 acl_save_prefix="$prefix"
15156 prefix="$acl_final_prefix"
15157 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15158 prefix="$acl_save_prefix"
15161 # Check whether --with-gnu-ld was given.
15162 if test ${with_gnu_ld+y}
15164 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15169 # Prepare PATH_SEPARATOR.
15170 # The user is always right.
15171 if test "${PATH_SEPARATOR+set}" != set; then
15172 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
15173 # contains only /bin. Note that ksh looks also at the FPATH variable,
15174 # so we have to set that as well for the test.
15176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15177 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
15178 || PATH_SEPARATOR=';'
15182 if test "$GCC" = yes; then
15183 # Check if gcc -print-prog-name=ld gives a path.
15184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15185 printf %s "checking for ld used by GCC... " >&6; }
15188 # gcc leaves a trailing carriage return which upsets mingw
15189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15194 # Accept absolute paths.
15195 [\\/]* | [A-Za-z]:[\\/]*)
15196 re_direlt='/[^/][^/]*/\.\./'
15197 # Canonicalize the path of ld
15198 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15200 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15202 test -z "$LD" && LD="$ac_prog"
15205 # If it fails, then pretend we aren't using GCC.
15209 # If it is relative, then search for the first ld in PATH.
15210 with_gnu_ld=unknown
15213 elif test "$with_gnu_ld" = yes; then
15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15215 printf %s "checking for GNU ld... " >&6; }
15217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15218 printf %s "checking for non-GNU ld... " >&6; }
15220 if test ${acl_cv_path_LD+y}
15222 printf %s "(cached) " >&6
15224 if test -z "$LD"; then
15225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15226 for ac_dir in $PATH; do
15227 test -z "$ac_dir" && ac_dir=.
15228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15229 acl_cv_path_LD="$ac_dir/$ac_prog"
15230 # Check to see if the program is GNU ld. I'd rather use --version,
15231 # but apparently some GNU ld's only accept -v.
15232 # Break only if it was the GNU/non-GNU ld that we prefer.
15233 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15234 *GNU* | *'with BFD'*)
15235 test "$with_gnu_ld" != no && break ;;
15237 test "$with_gnu_ld" != yes && break ;;
15243 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15247 LD="$acl_cv_path_LD"
15248 if test -n "$LD"; then
15249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15250 printf "%s\n" "$LD" >&6; }
15252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15253 printf "%s\n" "no" >&6; }
15255 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15257 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
15258 if test ${acl_cv_prog_gnu_ld+y}
15260 printf %s "(cached) " >&6
15262 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15263 case `$LD -v 2>&1 </dev/null` in
15264 *GNU* | *'with BFD'*)
15265 acl_cv_prog_gnu_ld=yes ;;
15267 acl_cv_prog_gnu_ld=no ;;
15270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15271 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
15272 with_gnu_ld=$acl_cv_prog_gnu_ld
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15279 printf %s "checking for shared library run path origin... " >&6; }
15280 if test ${acl_cv_rpath+y}
15282 printf %s "(cached) " >&6
15285 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15286 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15288 rm -f ./conftest.sh
15292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15293 printf "%s\n" "$acl_cv_rpath" >&6; }
15295 acl_libext="$acl_cv_libext"
15296 acl_shlibext="$acl_cv_shlibext"
15297 acl_libname_spec="$acl_cv_libname_spec"
15298 acl_library_names_spec="$acl_cv_library_names_spec"
15299 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15300 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15301 acl_hardcode_direct="$acl_cv_hardcode_direct"
15302 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
15303 # Check whether --enable-rpath was given.
15304 if test ${enable_rpath+y}
15306 enableval=$enable_rpath; :
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
15319 printf %s "checking for 64-bit host... " >&6; }
15320 if test ${gl_cv_solaris_64bit+y}
15322 printf %s "(cached) " >&6
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15333 $EGREP "sixtyfour bits" >/dev/null 2>&1
15335 gl_cv_solaris_64bit=yes
15337 gl_cv_solaris_64bit=no
15343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
15344 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
15345 if test $gl_cv_solaris_64bit = yes; then
15346 acl_libdirstem=lib/64
15347 case "$host_cpu" in
15348 sparc*) acl_libdirstem2=lib/sparcv9 ;;
15349 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
15354 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15355 if test -n "$searchpath"; then
15356 acl_save_IFS="${IFS= }"; IFS=":"
15357 for searchdir in $searchpath; do
15358 if test -d "$searchdir"; then
15359 case "$searchdir" in
15360 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15362 # Better ignore directories of this form. They are misleading.
15364 *) searchdir=`cd "$searchdir" && pwd`
15365 case "$searchdir" in
15366 */lib64 ) acl_libdirstem=lib64 ;;
15371 IFS="$acl_save_IFS"
15375 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
15390 acl_save_prefix="$prefix"
15391 prefix="$acl_final_prefix"
15392 acl_save_exec_prefix="$exec_prefix"
15393 exec_prefix="$acl_final_exec_prefix"
15395 eval additional_includedir=\"$includedir\"
15396 eval additional_libdir=\"$libdir\"
15398 exec_prefix="$acl_save_exec_prefix"
15399 prefix="$acl_save_prefix"
15402 # Check whether --with-libiconv-prefix was given.
15403 if test ${with_libiconv_prefix+y}
15405 withval=$with_libiconv_prefix;
15406 if test "X$withval" = "Xno"; then
15409 if test "X$withval" = "X"; then
15411 acl_save_prefix="$prefix"
15412 prefix="$acl_final_prefix"
15413 acl_save_exec_prefix="$exec_prefix"
15414 exec_prefix="$acl_final_exec_prefix"
15416 eval additional_includedir=\"$includedir\"
15417 eval additional_libdir=\"$libdir\"
15419 exec_prefix="$acl_save_exec_prefix"
15420 prefix="$acl_save_prefix"
15423 additional_includedir="$withval/include"
15424 additional_libdir="$withval/$acl_libdirstem"
15425 if test "$acl_libdirstem2" != "$acl_libdirstem" \
15426 && ! test -d "$withval/$acl_libdirstem"; then
15427 additional_libdir="$withval/$acl_libdirstem2"
15441 names_already_handled=
15442 names_next_round='iconv '
15443 while test -n "$names_next_round"; do
15444 names_this_round="$names_next_round"
15446 for name in $names_this_round; do
15448 for n in $names_already_handled; do
15449 if test "$n" = "$name"; then
15450 already_handled=yes
15454 if test -z "$already_handled"; then
15455 names_already_handled="$names_already_handled $name"
15456 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15457 eval value=\"\$HAVE_LIB$uppername\"
15458 if test -n "$value"; then
15459 if test "$value" = yes; then
15460 eval value=\"\$LIB$uppername\"
15461 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15462 eval value=\"\$LTLIB$uppername\"
15463 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15472 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
15473 if test -n "$acl_shlibext"; then
15474 shrext=".$acl_shlibext" # typically: shrext=.so
15478 if test $use_additional = yes; then
15479 dir="$additional_libdir"
15480 if test -n "$acl_shlibext"; then
15481 if test -f "$dir/$libname$shrext"; then
15483 found_so="$dir/$libname$shrext"
15485 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15486 ver=`(cd "$dir" && \
15487 for f in "$libname$shrext".*; do echo "$f"; done \
15488 | sed -e "s,^$libname$shrext\\\\.,," \
15489 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15490 | sed 1q ) 2>/dev/null`
15491 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15493 found_so="$dir/$libname$shrext.$ver"
15496 eval library_names=\"$acl_library_names_spec\"
15497 for f in $library_names; do
15498 if test -f "$dir/$f"; then
15507 if test "X$found_dir" = "X"; then
15508 if test -f "$dir/$libname.$acl_libext"; then
15510 found_a="$dir/$libname.$acl_libext"
15513 if test "X$found_dir" != "X"; then
15514 if test -f "$dir/$libname.la"; then
15515 found_la="$dir/$libname.la"
15519 if test "X$found_dir" = "X"; then
15520 for x in $LDFLAGS $LTLIBICONV; do
15522 acl_save_prefix="$prefix"
15523 prefix="$acl_final_prefix"
15524 acl_save_exec_prefix="$exec_prefix"
15525 exec_prefix="$acl_final_exec_prefix"
15527 exec_prefix="$acl_save_exec_prefix"
15528 prefix="$acl_save_prefix"
15532 dir=`echo "X$x" | sed -e 's/^X-L//'`
15533 if test -n "$acl_shlibext"; then
15534 if test -f "$dir/$libname$shrext"; then
15536 found_so="$dir/$libname$shrext"
15538 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15539 ver=`(cd "$dir" && \
15540 for f in "$libname$shrext".*; do echo "$f"; done \
15541 | sed -e "s,^$libname$shrext\\\\.,," \
15542 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15543 | sed 1q ) 2>/dev/null`
15544 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15546 found_so="$dir/$libname$shrext.$ver"
15549 eval library_names=\"$acl_library_names_spec\"
15550 for f in $library_names; do
15551 if test -f "$dir/$f"; then
15560 if test "X$found_dir" = "X"; then
15561 if test -f "$dir/$libname.$acl_libext"; then
15563 found_a="$dir/$libname.$acl_libext"
15566 if test "X$found_dir" != "X"; then
15567 if test -f "$dir/$libname.la"; then
15568 found_la="$dir/$libname.la"
15573 if test "X$found_dir" != "X"; then
15578 if test "X$found_dir" != "X"; then
15579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15580 if test "X$found_so" != "X"; then
15581 if test "$enable_rpath" = no \
15582 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15583 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15584 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15587 for x in $ltrpathdirs; do
15588 if test "X$x" = "X$found_dir"; then
15593 if test -z "$haveit"; then
15594 ltrpathdirs="$ltrpathdirs $found_dir"
15596 if test "$acl_hardcode_direct" = yes; then
15597 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15599 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15600 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15602 for x in $rpathdirs; do
15603 if test "X$x" = "X$found_dir"; then
15608 if test -z "$haveit"; then
15609 rpathdirs="$rpathdirs $found_dir"
15613 for x in $LDFLAGS $LIBICONV; do
15615 acl_save_prefix="$prefix"
15616 prefix="$acl_final_prefix"
15617 acl_save_exec_prefix="$exec_prefix"
15618 exec_prefix="$acl_final_exec_prefix"
15620 exec_prefix="$acl_save_exec_prefix"
15621 prefix="$acl_save_prefix"
15623 if test "X$x" = "X-L$found_dir"; then
15628 if test -z "$haveit"; then
15629 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15631 if test "$acl_hardcode_minus_L" != no; then
15632 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15634 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15640 if test "X$found_a" != "X"; then
15641 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15643 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15646 additional_includedir=
15647 case "$found_dir" in
15648 */$acl_libdirstem | */$acl_libdirstem/)
15649 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15650 if test "$name" = 'iconv'; then
15651 LIBICONV_PREFIX="$basedir"
15653 additional_includedir="$basedir/include"
15655 */$acl_libdirstem2 | */$acl_libdirstem2/)
15656 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15657 if test "$name" = 'iconv'; then
15658 LIBICONV_PREFIX="$basedir"
15660 additional_includedir="$basedir/include"
15663 if test "X$additional_includedir" != "X"; then
15664 if test "X$additional_includedir" != "X/usr/include"; then
15666 if test "X$additional_includedir" = "X/usr/local/include"; then
15667 if test -n "$GCC"; then
15669 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15673 if test -z "$haveit"; then
15674 for x in $CPPFLAGS $INCICONV; do
15676 acl_save_prefix="$prefix"
15677 prefix="$acl_final_prefix"
15678 acl_save_exec_prefix="$exec_prefix"
15679 exec_prefix="$acl_final_exec_prefix"
15681 exec_prefix="$acl_save_exec_prefix"
15682 prefix="$acl_save_prefix"
15684 if test "X$x" = "X-I$additional_includedir"; then
15689 if test -z "$haveit"; then
15690 if test -d "$additional_includedir"; then
15691 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15697 if test -n "$found_la"; then
15698 save_libdir="$libdir"
15699 case "$found_la" in
15700 */* | *\\*) . "$found_la" ;;
15701 *) . "./$found_la" ;;
15703 libdir="$save_libdir"
15704 for dep in $dependency_libs; do
15707 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15708 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15709 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15711 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15712 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15713 if test -n "$GCC"; then
15715 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15719 if test -z "$haveit"; then
15721 for x in $LDFLAGS $LIBICONV; do
15723 acl_save_prefix="$prefix"
15724 prefix="$acl_final_prefix"
15725 acl_save_exec_prefix="$exec_prefix"
15726 exec_prefix="$acl_final_exec_prefix"
15728 exec_prefix="$acl_save_exec_prefix"
15729 prefix="$acl_save_prefix"
15731 if test "X$x" = "X-L$additional_libdir"; then
15736 if test -z "$haveit"; then
15737 if test -d "$additional_libdir"; then
15738 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15742 for x in $LDFLAGS $LTLIBICONV; do
15744 acl_save_prefix="$prefix"
15745 prefix="$acl_final_prefix"
15746 acl_save_exec_prefix="$exec_prefix"
15747 exec_prefix="$acl_final_exec_prefix"
15749 exec_prefix="$acl_save_exec_prefix"
15750 prefix="$acl_save_prefix"
15752 if test "X$x" = "X-L$additional_libdir"; then
15757 if test -z "$haveit"; then
15758 if test -d "$additional_libdir"; then
15759 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15766 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15767 if test "$enable_rpath" != no; then
15769 for x in $rpathdirs; do
15770 if test "X$x" = "X$dir"; then
15775 if test -z "$haveit"; then
15776 rpathdirs="$rpathdirs $dir"
15779 for x in $ltrpathdirs; do
15780 if test "X$x" = "X$dir"; then
15785 if test -z "$haveit"; then
15786 ltrpathdirs="$ltrpathdirs $dir"
15791 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15794 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15797 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15798 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15804 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15805 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15811 if test "X$rpathdirs" != "X"; then
15812 if test -n "$acl_hardcode_libdir_separator"; then
15814 for found_dir in $rpathdirs; do
15815 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15817 acl_save_libdir="$libdir"
15819 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15820 libdir="$acl_save_libdir"
15821 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15823 for found_dir in $rpathdirs; do
15824 acl_save_libdir="$libdir"
15825 libdir="$found_dir"
15826 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15827 libdir="$acl_save_libdir"
15828 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15832 if test "X$ltrpathdirs" != "X"; then
15833 for found_dir in $ltrpathdirs; do
15834 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15849 am_save_CPPFLAGS="$CPPFLAGS"
15851 for element in $INCICONV; do
15853 for x in $CPPFLAGS; do
15855 acl_save_prefix="$prefix"
15856 prefix="$acl_final_prefix"
15857 acl_save_exec_prefix="$exec_prefix"
15858 exec_prefix="$acl_final_exec_prefix"
15860 exec_prefix="$acl_save_exec_prefix"
15861 prefix="$acl_save_prefix"
15863 if test "X$x" = "X$element"; then
15868 if test -z "$haveit"; then
15869 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15875 printf %s "checking for iconv... " >&6; }
15876 if test ${am_cv_func_iconv+y}
15878 printf %s "(cached) " >&6
15881 am_cv_func_iconv="no, consider installing GNU libiconv"
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15886 #include <stdlib.h>
15892 iconv_t cd = iconv_open("","");
15893 iconv(cd,NULL,NULL,NULL,NULL);
15899 if ac_fn_c_try_link "$LINENO"
15901 am_cv_func_iconv=yes
15903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15904 conftest$ac_exeext conftest.$ac_ext
15905 if test "$am_cv_func_iconv" != yes; then
15906 am_save_LIBS="$LIBS"
15907 LIBS="$LIBS $LIBICONV"
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15911 #include <stdlib.h>
15917 iconv_t cd = iconv_open("","");
15918 iconv(cd,NULL,NULL,NULL,NULL);
15924 if ac_fn_c_try_link "$LINENO"
15926 am_cv_lib_iconv=yes
15927 am_cv_func_iconv=yes
15929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15930 conftest$ac_exeext conftest.$ac_ext
15931 LIBS="$am_save_LIBS"
15935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15936 printf "%s\n" "$am_cv_func_iconv" >&6; }
15937 if test "$am_cv_func_iconv" = yes; then
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15939 printf %s "checking for working iconv... " >&6; }
15940 if test ${am_cv_func_iconv_works+y}
15942 printf %s "(cached) " >&6
15945 am_save_LIBS="$LIBS"
15946 if test $am_cv_lib_iconv = yes; then
15947 LIBS="$LIBS $LIBICONV"
15949 am_cv_func_iconv_works=no
15950 for ac_iconv_const in '' 'const'; do
15951 if test "$cross_compiling" = yes
15954 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15955 *) am_cv_func_iconv_works="guessing yes" ;;
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15962 #include <string.h>
15964 #ifndef ICONV_CONST
15965 # define ICONV_CONST $ac_iconv_const
15972 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15975 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15976 if (cd_utf8_to_88591 != (iconv_t)(-1))
15978 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
15980 ICONV_CONST char *inptr = input;
15981 size_t inbytesleft = strlen (input);
15982 char *outptr = buf;
15983 size_t outbytesleft = sizeof (buf);
15984 size_t res = iconv (cd_utf8_to_88591,
15985 &inptr, &inbytesleft,
15986 &outptr, &outbytesleft);
15989 iconv_close (cd_utf8_to_88591);
15992 /* Test against Solaris 10 bug: Failures are not distinguishable from
15993 successful returns. */
15995 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15996 if (cd_ascii_to_88591 != (iconv_t)(-1))
15998 static ICONV_CONST char input[] = "\263";
16000 ICONV_CONST char *inptr = input;
16001 size_t inbytesleft = strlen (input);
16002 char *outptr = buf;
16003 size_t outbytesleft = sizeof (buf);
16004 size_t res = iconv (cd_ascii_to_88591,
16005 &inptr, &inbytesleft,
16006 &outptr, &outbytesleft);
16009 iconv_close (cd_ascii_to_88591);
16012 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
16014 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
16015 if (cd_88591_to_utf8 != (iconv_t)(-1))
16017 static ICONV_CONST char input[] = "\304";
16018 static char buf[2] = { (char)0xDE, (char)0xAD };
16019 ICONV_CONST char *inptr = input;
16020 size_t inbytesleft = 1;
16021 char *outptr = buf;
16022 size_t outbytesleft = 1;
16023 size_t res = iconv (cd_88591_to_utf8,
16024 &inptr, &inbytesleft,
16025 &outptr, &outbytesleft);
16026 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
16028 iconv_close (cd_88591_to_utf8);
16031 #if 0 /* This bug could be worked around by the caller. */
16032 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
16034 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
16035 if (cd_88591_to_utf8 != (iconv_t)(-1))
16037 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
16039 ICONV_CONST char *inptr = input;
16040 size_t inbytesleft = strlen (input);
16041 char *outptr = buf;
16042 size_t outbytesleft = sizeof (buf);
16043 size_t res = iconv (cd_88591_to_utf8,
16044 &inptr, &inbytesleft,
16045 &outptr, &outbytesleft);
16048 iconv_close (cd_88591_to_utf8);
16052 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
16054 if (/* Try standardized names. */
16055 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
16056 /* Try IRIX, OSF/1 names. */
16057 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
16058 /* Try AIX names. */
16059 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
16060 /* Try HP-UX names. */
16061 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
16069 if ac_fn_c_try_run "$LINENO"
16071 am_cv_func_iconv_works=yes
16073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16074 conftest.$ac_objext conftest.beam conftest.$ac_ext
16077 test "$am_cv_func_iconv_works" = no || break
16079 LIBS="$am_save_LIBS"
16082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
16083 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
16084 case "$am_cv_func_iconv_works" in
16085 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
16086 *) am_func_iconv=yes ;;
16089 am_func_iconv=no am_cv_lib_iconv=no
16091 if test "$am_func_iconv" = yes; then
16093 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
16096 if test "$am_cv_lib_iconv" = yes; then
16097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16098 printf %s "checking how to link with libiconv... " >&6; }
16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16100 printf "%s\n" "$LIBICONV" >&6; }
16102 CPPFLAGS="$am_save_CPPFLAGS"
16109 if test "$am_cv_func_iconv" = yes; then
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
16111 printf %s "checking for iconv declaration... " >&6; }
16112 if test ${am_cv_proto_iconv+y}
16114 printf %s "(cached) " >&6
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16120 #include <stdlib.h>
16126 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
16127 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16140 if ac_fn_c_try_compile "$LINENO"
16142 am_cv_proto_iconv_arg1=""
16144 am_cv_proto_iconv_arg1="const"
16146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16147 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);"
16150 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
16151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
16152 $am_cv_proto_iconv" >&5
16154 $am_cv_proto_iconv" >&6; }
16156 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
16161 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "#include <stdlib.h>
16163 if test "x$ac_cv_header_iconv_h" = xyes
16165 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
16169 if test "x$am_cv_func_iconv" = "xyes"; then
16170 ac_fn_c_check_header_compile "$LINENO" "localcharset.h" "ac_cv_header_localcharset_h" "$ac_includes_default"
16171 if test "x$ac_cv_header_localcharset_h" = xyes
16173 printf "%s\n" "#define HAVE_LOCALCHARSET_H 1" >>confdefs.h
16177 am_save_LIBS="$LIBS"
16178 LIBS="${LIBS} ${LIBICONV}"
16179 LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }iconv"
16180 ac_fn_c_check_func "$LINENO" "locale_charset" "ac_cv_func_locale_charset"
16181 if test "x$ac_cv_func_locale_charset" = xyes
16183 printf "%s\n" "#define HAVE_LOCALE_CHARSET 1" >>confdefs.h
16187 LIBS="${am_save_LIBS}"
16188 if test "x$ac_cv_func_locale_charset" != "xyes"; then
16189 # If locale_charset() is not in libiconv, we have to find libcharset.
16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for locale_charset in -lcharset" >&5
16191 printf %s "checking for locale_charset in -lcharset... " >&6; }
16192 if test ${ac_cv_lib_charset_locale_charset+y}
16194 printf %s "(cached) " >&6
16196 ac_check_lib_save_LIBS=$LIBS
16197 LIBS="-lcharset $LIBS"
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16204 char locale_charset ();
16208 return locale_charset ();
16213 if ac_fn_c_try_link "$LINENO"
16215 ac_cv_lib_charset_locale_charset=yes
16217 ac_cv_lib_charset_locale_charset=no
16219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LIBS=$ac_check_lib_save_LIBS
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_charset_locale_charset" >&5
16224 printf "%s\n" "$ac_cv_lib_charset_locale_charset" >&6; }
16225 if test "x$ac_cv_lib_charset_locale_charset" = xyes
16227 printf "%s\n" "#define HAVE_LIBCHARSET 1" >>confdefs.h
16229 LIBS="-lcharset $LIBS"
16238 # Check whether --with-lz4 was given.
16239 if test ${with_lz4+y}
16245 if test "x$with_lz4" != "xno"; then
16246 ac_fn_c_check_header_compile "$LINENO" "lz4.h" "ac_cv_header_lz4_h" "$ac_includes_default"
16247 if test "x$ac_cv_header_lz4_h" = xyes
16249 printf "%s\n" "#define HAVE_LZ4_H 1" >>confdefs.h
16252 ac_fn_c_check_header_compile "$LINENO" "lz4hc.h" "ac_cv_header_lz4hc_h" "$ac_includes_default"
16253 if test "x$ac_cv_header_lz4hc_h" = xyes
16255 printf "%s\n" "#define HAVE_LZ4HC_H 1" >>confdefs.h
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ4_decompress_safe in -llz4" >&5
16260 printf %s "checking for LZ4_decompress_safe in -llz4... " >&6; }
16261 if test ${ac_cv_lib_lz4_LZ4_decompress_safe+y}
16263 printf %s "(cached) " >&6
16265 ac_check_lib_save_LIBS=$LIBS
16267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268 /* end confdefs.h. */
16270 /* Override any GCC internal prototype to avoid an error.
16271 Use char because int might match the return type of a GCC
16272 builtin and then its argument prototype would still apply. */
16273 char LZ4_decompress_safe ();
16277 return LZ4_decompress_safe ();
16282 if ac_fn_c_try_link "$LINENO"
16284 ac_cv_lib_lz4_LZ4_decompress_safe=yes
16286 ac_cv_lib_lz4_LZ4_decompress_safe=no
16288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16289 conftest$ac_exeext conftest.$ac_ext
16290 LIBS=$ac_check_lib_save_LIBS
16292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz4_LZ4_decompress_safe" >&5
16293 printf "%s\n" "$ac_cv_lib_lz4_LZ4_decompress_safe" >&6; }
16294 if test "x$ac_cv_lib_lz4_LZ4_decompress_safe" = xyes
16296 printf "%s\n" "#define HAVE_LIBLZ4 1" >>confdefs.h
16305 # Check whether --with-zstd was given.
16306 if test ${with_zstd+y}
16308 withval=$with_zstd;
16312 if test "x$with_zstd" != "xno"; then
16313 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
16314 if test "x$ac_cv_header_zstd_h" = xyes
16316 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
16320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompressStream in -lzstd" >&5
16321 printf %s "checking for ZSTD_decompressStream in -lzstd... " >&6; }
16322 if test ${ac_cv_lib_zstd_ZSTD_decompressStream+y}
16324 printf %s "(cached) " >&6
16326 ac_check_lib_save_LIBS=$LIBS
16327 LIBS="-lzstd $LIBS"
16328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329 /* end confdefs.h. */
16331 /* Override any GCC internal prototype to avoid an error.
16332 Use char because int might match the return type of a GCC
16333 builtin and then its argument prototype would still apply. */
16334 char ZSTD_decompressStream ();
16338 return ZSTD_decompressStream ();
16343 if ac_fn_c_try_link "$LINENO"
16345 ac_cv_lib_zstd_ZSTD_decompressStream=yes
16347 ac_cv_lib_zstd_ZSTD_decompressStream=no
16349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16350 conftest$ac_exeext conftest.$ac_ext
16351 LIBS=$ac_check_lib_save_LIBS
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompressStream" >&5
16354 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompressStream" >&6; }
16355 if test "x$ac_cv_lib_zstd_ZSTD_decompressStream" = xyes
16357 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
16359 LIBS="-lzstd $LIBS"
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_compressStream in -lzstd" >&5
16364 printf %s "checking for ZSTD_compressStream in -lzstd... " >&6; }
16365 if test ${ac_cv_lib_zstd_ZSTD_compressStream+y}
16367 printf %s "(cached) " >&6
16369 ac_check_lib_save_LIBS=$LIBS
16370 LIBS="-lzstd $LIBS"
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16374 /* Override any GCC internal prototype to avoid an error.
16375 Use char because int might match the return type of a GCC
16376 builtin and then its argument prototype would still apply. */
16377 char ZSTD_compressStream ();
16381 return ZSTD_compressStream ();
16386 if ac_fn_c_try_link "$LINENO"
16388 ac_cv_lib_zstd_ZSTD_compressStream=yes
16390 ac_cv_lib_zstd_ZSTD_compressStream=no
16392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16393 conftest$ac_exeext conftest.$ac_ext
16394 LIBS=$ac_check_lib_save_LIBS
16396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_compressStream" >&5
16397 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_compressStream" >&6; }
16398 if test "x$ac_cv_lib_zstd_ZSTD_compressStream" = xyes
16401 printf "%s\n" "#define HAVE_LIBZSTD_COMPRESSOR 1" >>confdefs.h
16408 # Check whether --with-lzma was given.
16409 if test ${with_lzma+y}
16411 withval=$with_lzma;
16415 if test "x$with_lzma" != "xno"; then
16416 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
16417 if test "x$ac_cv_header_lzma_h" = xyes
16419 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
16424 printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
16425 if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
16427 printf %s "(cached) " >&6
16429 ac_check_lib_save_LIBS=$LIBS
16430 LIBS="-llzma $LIBS"
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16432 /* end confdefs.h. */
16434 /* Override any GCC internal prototype to avoid an error.
16435 Use char because int might match the return type of a GCC
16436 builtin and then its argument prototype would still apply. */
16437 char lzma_stream_decoder ();
16441 return lzma_stream_decoder ();
16446 if ac_fn_c_try_link "$LINENO"
16448 ac_cv_lib_lzma_lzma_stream_decoder=yes
16450 ac_cv_lib_lzma_lzma_stream_decoder=no
16452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16453 conftest$ac_exeext conftest.$ac_ext
16454 LIBS=$ac_check_lib_save_LIBS
16456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
16457 printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
16458 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
16460 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
16462 LIBS="-llzma $LIBS"
16466 # Some pre-release (but widely distributed) versions of liblzma
16467 # included a disabled version of lzma_stream_encoder_mt that
16468 # fools a naive AC_CHECK_LIB or AC_CHECK_FUNC, so we need
16469 # to do something more complex here:
16470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we have multithread support in lzma" >&5
16471 printf %s "checking whether we have multithread support in lzma... " >&6; }
16472 if test ${ac_cv_lzma_has_mt+y}
16474 printf %s "(cached) " >&6
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16480 #if LZMA_VERSION < 50020000
16486 lzma_stream_encoder_mt(0, 0);
16491 if ac_fn_c_try_link "$LINENO"
16493 ac_cv_lzma_has_mt=yes
16495 ac_cv_lzma_has_mt=no
16497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16498 conftest$ac_exeext conftest.$ac_ext
16500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lzma_has_mt" >&5
16501 printf "%s\n" "$ac_cv_lzma_has_mt" >&6; }
16502 if test "x$ac_cv_lzma_has_mt" != xno; then
16504 printf "%s\n" "#define HAVE_LZMA_STREAM_ENCODER_MT 1" >>confdefs.h
16510 # Check whether --with-lzo2 was given.
16511 if test ${with_lzo2+y}
16513 withval=$with_lzo2;
16517 if test "x$with_lzo2" = "xyes"; then
16518 ac_fn_c_check_header_compile "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
16519 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes
16521 printf "%s\n" "#define HAVE_LZO_LZOCONF_H 1" >>confdefs.h
16524 ac_fn_c_check_header_compile "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
16525 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes
16527 printf "%s\n" "#define HAVE_LZO_LZO1X_H 1" >>confdefs.h
16531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzo1x_decompress_safe in -llzo2" >&5
16532 printf %s "checking for lzo1x_decompress_safe in -llzo2... " >&6; }
16533 if test ${ac_cv_lib_lzo2_lzo1x_decompress_safe+y}
16535 printf %s "(cached) " >&6
16537 ac_check_lib_save_LIBS=$LIBS
16538 LIBS="-llzo2 $LIBS"
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h. */
16542 /* Override any GCC internal prototype to avoid an error.
16543 Use char because int might match the return type of a GCC
16544 builtin and then its argument prototype would still apply. */
16545 char lzo1x_decompress_safe ();
16549 return lzo1x_decompress_safe ();
16554 if ac_fn_c_try_link "$LINENO"
16556 ac_cv_lib_lzo2_lzo1x_decompress_safe=yes
16558 ac_cv_lib_lzo2_lzo1x_decompress_safe=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16561 conftest$ac_exeext conftest.$ac_ext
16562 LIBS=$ac_check_lib_save_LIBS
16564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_decompress_safe" >&5
16565 printf "%s\n" "$ac_cv_lib_lzo2_lzo1x_decompress_safe" >&6; }
16566 if test "x$ac_cv_lib_lzo2_lzo1x_decompress_safe" = xyes
16568 printf "%s\n" "#define HAVE_LIBLZO2 1" >>confdefs.h
16570 LIBS="-llzo2 $LIBS"
16577 # Check whether --with-cng was given.
16578 if test ${with_cng+y}
16585 # Check whether --with-mbedtls was given.
16586 if test ${with_mbedtls+y}
16588 withval=$with_mbedtls;
16592 # Check whether --with-nettle was given.
16593 if test ${with_nettle+y}
16595 withval=$with_nettle;
16599 # Check whether --with-openssl was given.
16600 if test ${with_openssl+y}
16602 withval=$with_openssl;
16606 *darwin* ) with_openssl=no ;;
16610 # Check whether --with-xml2 was given.
16611 if test ${with_xml2+y}
16613 withval=$with_xml2;
16617 # Check whether --with-expat was given.
16618 if test ${with_expat+y}
16620 withval=$with_expat;
16624 if test "x$with_xml2" != "xno"; then
16632 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16633 if test -n "$ac_tool_prefix"; then
16634 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16635 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16637 printf %s "checking for $ac_word... " >&6; }
16638 if test ${ac_cv_path_PKG_CONFIG+y}
16640 printf %s "(cached) " >&6
16642 case $PKG_CONFIG in
16644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16648 for as_dir in $PATH
16651 case $as_dir in #(((
16654 *) as_dir=$as_dir/ ;;
16656 for ac_exec_ext in '' $ac_executable_extensions; do
16657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16658 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16670 if test -n "$PKG_CONFIG"; then
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16672 printf "%s\n" "$PKG_CONFIG" >&6; }
16674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 printf "%s\n" "no" >&6; }
16680 if test -z "$ac_cv_path_PKG_CONFIG"; then
16681 ac_pt_PKG_CONFIG=$PKG_CONFIG
16682 # Extract the first word of "pkg-config", so it can be a program name with args.
16683 set dummy pkg-config; ac_word=$2
16684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16685 printf %s "checking for $ac_word... " >&6; }
16686 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
16688 printf %s "(cached) " >&6
16690 case $ac_pt_PKG_CONFIG in
16692 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696 for as_dir in $PATH
16699 case $as_dir in #(((
16702 *) as_dir=$as_dir/ ;;
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16706 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
16707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16717 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16718 if test -n "$ac_pt_PKG_CONFIG"; then
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16720 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
16722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723 printf "%s\n" "no" >&6; }
16726 if test "x$ac_pt_PKG_CONFIG" = x; then
16729 case $cross_compiling:$ac_tool_warned in
16731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16733 ac_tool_warned=yes ;;
16735 PKG_CONFIG=$ac_pt_PKG_CONFIG
16738 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16742 if test -n "$PKG_CONFIG"; then
16743 _pkg_min_version=0.9.0
16744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16745 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16746 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16748 printf "%s\n" "yes" >&6; }
16750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16751 printf "%s\n" "no" >&6; }
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0" >&5
16758 printf %s "checking for libxml-2.0... " >&6; }
16760 if test -n "$LIBXML2_PC_CFLAGS"; then
16761 pkg_cv_LIBXML2_PC_CFLAGS="$LIBXML2_PC_CFLAGS"
16762 elif test -n "$PKG_CONFIG"; then
16763 if test -n "$PKG_CONFIG" && \
16764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
16765 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
16767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16768 test $ac_status = 0; }; then
16769 pkg_cv_LIBXML2_PC_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
16770 test "x$?" != "x0" && pkg_failed=yes
16777 if test -n "$LIBXML2_PC_LIBS"; then
16778 pkg_cv_LIBXML2_PC_LIBS="$LIBXML2_PC_LIBS"
16779 elif test -n "$PKG_CONFIG"; then
16780 if test -n "$PKG_CONFIG" && \
16781 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\""; } >&5
16782 ($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
16784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16785 test $ac_status = 0; }; then
16786 pkg_cv_LIBXML2_PC_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
16787 test "x$?" != "x0" && pkg_failed=yes
16797 if test $pkg_failed = yes; then
16798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16799 printf "%s\n" "no" >&6; }
16801 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16802 _pkg_short_errors_supported=yes
16804 _pkg_short_errors_supported=no
16806 if test $_pkg_short_errors_supported = yes; then
16807 LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0" 2>&1`
16809 LIBXML2_PC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0" 2>&1`
16811 # Put the nasty error message in config.log where it belongs
16812 echo "$LIBXML2_PC_PKG_ERRORS" >&5
16815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16816 printf %s "checking for xmlInitParser in -lxml2... " >&6; }
16817 if test ${ac_cv_lib_xml2_xmlInitParser+y}
16819 printf %s "(cached) " >&6
16821 ac_check_lib_save_LIBS=$LIBS
16822 LIBS="-lxml2 $LIBS"
16823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16824 /* end confdefs.h. */
16826 /* Override any GCC internal prototype to avoid an error.
16827 Use char because int might match the return type of a GCC
16828 builtin and then its argument prototype would still apply. */
16829 char xmlInitParser ();
16833 return xmlInitParser ();
16838 if ac_fn_c_try_link "$LINENO"
16840 ac_cv_lib_xml2_xmlInitParser=yes
16842 ac_cv_lib_xml2_xmlInitParser=no
16844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16845 conftest$ac_exeext conftest.$ac_ext
16846 LIBS=$ac_check_lib_save_LIBS
16848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16849 printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16850 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
16852 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
16854 LIBS="-lxml2 $LIBS"
16859 elif test $pkg_failed = untried; then
16860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861 printf "%s\n" "no" >&6; }
16863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16864 printf %s "checking for xmlInitParser in -lxml2... " >&6; }
16865 if test ${ac_cv_lib_xml2_xmlInitParser+y}
16867 printf %s "(cached) " >&6
16869 ac_check_lib_save_LIBS=$LIBS
16870 LIBS="-lxml2 $LIBS"
16871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16874 /* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
16877 char xmlInitParser ();
16881 return xmlInitParser ();
16886 if ac_fn_c_try_link "$LINENO"
16888 ac_cv_lib_xml2_xmlInitParser=yes
16890 ac_cv_lib_xml2_xmlInitParser=no
16892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16893 conftest$ac_exeext conftest.$ac_ext
16894 LIBS=$ac_check_lib_save_LIBS
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16897 printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16898 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
16900 printf "%s\n" "#define HAVE_LIBXML2 1" >>confdefs.h
16902 LIBS="-lxml2 $LIBS"
16908 LIBXML2_PC_CFLAGS=$pkg_cv_LIBXML2_PC_CFLAGS
16909 LIBXML2_PC_LIBS=$pkg_cv_LIBXML2_PC_LIBS
16910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911 printf "%s\n" "yes" >&6; }
16913 CPPFLAGS="${CPPFLAGS} ${LIBXML2_PC_CFLAGS}"
16914 LIBS="${LIBS} ${LIBXML2_PC_LIBS}"
16915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmlInitParser in -lxml2" >&5
16916 printf %s "checking for xmlInitParser in -lxml2... " >&6; }
16917 if test ${ac_cv_lib_xml2_xmlInitParser+y}
16919 printf %s "(cached) " >&6
16921 ac_check_lib_save_LIBS=$LIBS
16922 LIBS="-lxml2 $LIBS"
16923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924 /* end confdefs.h. */
16926 /* Override any GCC internal prototype to avoid an error.
16927 Use char because int might match the return type of a GCC
16928 builtin and then its argument prototype would still apply. */
16929 char xmlInitParser ();
16933 return xmlInitParser ();
16938 if ac_fn_c_try_link "$LINENO"
16940 ac_cv_lib_xml2_xmlInitParser=yes
16942 ac_cv_lib_xml2_xmlInitParser=no
16944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16945 conftest$ac_exeext conftest.$ac_ext
16946 LIBS=$ac_check_lib_save_LIBS
16948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlInitParser" >&5
16949 printf "%s\n" "$ac_cv_lib_xml2_xmlInitParser" >&6; }
16950 if test "x$ac_cv_lib_xml2_xmlInitParser" = xyes
16954 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16955 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16956 as_fn_error $? "Missing xml2 library
16957 See \`config.log' for more details" "$LINENO" 5; }
16962 ac_fn_c_check_header_compile "$LINENO" "libxml/xmlreader.h" "ac_cv_header_libxml_xmlreader_h" "$ac_includes_default"
16963 if test "x$ac_cv_header_libxml_xmlreader_h" = xyes
16965 printf "%s\n" "#define HAVE_LIBXML_XMLREADER_H 1" >>confdefs.h
16968 ac_fn_c_check_header_compile "$LINENO" "libxml/xmlwriter.h" "ac_cv_header_libxml_xmlwriter_h" "$ac_includes_default"
16969 if test "x$ac_cv_header_libxml_xmlwriter_h" = xyes
16971 printf "%s\n" "#define HAVE_LIBXML_XMLWRITER_H 1" >>confdefs.h
16976 if test "x$ac_cv_header_libxml_xmlreader_h" != "xyes"; then
16977 if test "x$with_expat" != "xno"; then
16978 ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
16979 if test "x$ac_cv_header_expat_h" = xyes
16981 printf "%s\n" "#define HAVE_EXPAT_H 1" >>confdefs.h
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
16986 printf %s "checking for XML_ParserCreate in -lexpat... " >&6; }
16987 if test ${ac_cv_lib_expat_XML_ParserCreate+y}
16989 printf %s "(cached) " >&6
16991 ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-lexpat $LIBS"
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
16999 char XML_ParserCreate ();
17003 return XML_ParserCreate ();
17008 if ac_fn_c_try_link "$LINENO"
17010 ac_cv_lib_expat_XML_ParserCreate=yes
17012 ac_cv_lib_expat_XML_ParserCreate=no
17014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17015 conftest$ac_exeext conftest.$ac_ext
17016 LIBS=$ac_check_lib_save_LIBS
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
17019 printf "%s\n" "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
17020 if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes
17022 printf "%s\n" "#define HAVE_LIBEXPAT 1" >>confdefs.h
17024 LIBS="-lexpat $LIBS"
17031 # Check whether --enable-posix-regex-lib was given.
17032 if test ${enable_posix_regex_lib+y}
17034 enableval=$enable_posix_regex_lib;
17036 enable_posix_regex_lib=auto
17040 posix_regex_lib_found=
17041 if test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libc" || test "$enable_posix_regex_lib" = "libregex"; then
17042 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
17043 if test "x$ac_cv_header_regex_h" = xyes
17045 printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
17049 if test "x$ac_cv_header_regex_h" != "xno"; then
17050 ac_fn_c_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
17051 if test "x$ac_cv_func_regcomp" = xyes
17056 if test "x$ac_cv_func_regcomp" = xyes; then
17057 posix_regex_lib_found=1
17059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
17060 printf %s "checking for regcomp in -lregex... " >&6; }
17061 if test ${ac_cv_lib_regex_regcomp+y}
17063 printf %s "(cached) " >&6
17065 ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-lregex $LIBS"
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17082 if ac_fn_c_try_link "$LINENO"
17084 ac_cv_lib_regex_regcomp=yes
17086 ac_cv_lib_regex_regcomp=no
17088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17089 conftest$ac_exeext conftest.$ac_ext
17090 LIBS=$ac_check_lib_save_LIBS
17092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
17093 printf "%s\n" "$ac_cv_lib_regex_regcomp" >&6; }
17094 if test "x$ac_cv_lib_regex_regcomp" = xyes
17096 printf "%s\n" "#define HAVE_LIBREGEX 1" >>confdefs.h
17098 LIBS="-lregex $LIBS"
17102 if test "x$ac_cv_lib_regex_regcomp" = xyes; then
17103 posix_regex_lib_found=1
17108 if test -z $posix_regex_lib_found && (test "$enable_posix_regex_lib" = "auto" || test "$enable_posix_regex_lib" = "libpcreposix"); then
17109 ac_fn_c_check_header_compile "$LINENO" "pcreposix.h" "ac_cv_header_pcreposix_h" "$ac_includes_default"
17110 if test "x$ac_cv_header_pcreposix_h" = xyes
17112 printf "%s\n" "#define HAVE_PCREPOSIX_H 1" >>confdefs.h
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
17117 printf %s "checking for regcomp in -lpcreposix... " >&6; }
17118 if test ${ac_cv_lib_pcreposix_regcomp+y}
17120 printf %s "(cached) " >&6
17122 ac_check_lib_save_LIBS=$LIBS
17123 LIBS="-lpcreposix $LIBS"
17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17125 /* end confdefs.h. */
17127 /* Override any GCC internal prototype to avoid an error.
17128 Use char because int might match the return type of a GCC
17129 builtin and then its argument prototype would still apply. */
17139 if ac_fn_c_try_link "$LINENO"
17141 ac_cv_lib_pcreposix_regcomp=yes
17143 ac_cv_lib_pcreposix_regcomp=no
17145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17146 conftest$ac_exeext conftest.$ac_ext
17147 LIBS=$ac_check_lib_save_LIBS
17149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
17150 printf "%s\n" "$ac_cv_lib_pcreposix_regcomp" >&6; }
17151 if test "x$ac_cv_lib_pcreposix_regcomp" = xyes
17153 printf "%s\n" "#define HAVE_LIBPCREPOSIX 1" >>confdefs.h
17155 LIBS="-lpcreposix $LIBS"
17159 if test "x$ac_cv_lib_pcreposix_regcomp" != xyes; then
17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying libpcreposix check again with libpcre" >&5
17161 printf "%s\n" "$as_me: trying libpcreposix check again with libpcre" >&6;}
17162 unset ac_cv_lib_pcreposix_regcomp
17163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_exec in -lpcre" >&5
17164 printf %s "checking for pcre_exec in -lpcre... " >&6; }
17165 if test ${ac_cv_lib_pcre_pcre_exec+y}
17167 printf %s "(cached) " >&6
17169 ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lpcre $LIBS"
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17174 /* Override any GCC internal prototype to avoid an error.
17175 Use char because int might match the return type of a GCC
17176 builtin and then its argument prototype would still apply. */
17181 return pcre_exec ();
17186 if ac_fn_c_try_link "$LINENO"
17188 ac_cv_lib_pcre_pcre_exec=yes
17190 ac_cv_lib_pcre_pcre_exec=no
17192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17193 conftest$ac_exeext conftest.$ac_ext
17194 LIBS=$ac_check_lib_save_LIBS
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_exec" >&5
17197 printf "%s\n" "$ac_cv_lib_pcre_pcre_exec" >&6; }
17198 if test "x$ac_cv_lib_pcre_pcre_exec" = xyes
17200 printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h
17202 LIBS="-lpcre $LIBS"
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lpcreposix" >&5
17207 printf %s "checking for regcomp in -lpcreposix... " >&6; }
17208 if test ${ac_cv_lib_pcreposix_regcomp+y}
17210 printf %s "(cached) " >&6
17212 ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lpcreposix $LIBS"
17214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17229 if ac_fn_c_try_link "$LINENO"
17231 ac_cv_lib_pcreposix_regcomp=yes
17233 ac_cv_lib_pcreposix_regcomp=no
17235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcreposix_regcomp" >&5
17240 printf "%s\n" "$ac_cv_lib_pcreposix_regcomp" >&6; }
17241 if test "x$ac_cv_lib_pcreposix_regcomp" = xyes
17243 printf "%s\n" "#define HAVE_LIBPCREPOSIX 1" >>confdefs.h
17245 LIBS="-lpcreposix $LIBS"
17249 if test "x$ac_cv_lib_pcre_pcre_exec" = xyes && test "x$ac_cv_lib_pcreposix_regcomp" = xyes; then
17250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PCRE_STATIC needs to be defined" >&5
17251 printf %s "checking if PCRE_STATIC needs to be defined... " >&6; }
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 #include <pcreposix.h>
17255 int main() { return regcomp(NULL, NULL, 0); }
17257 if ac_fn_c_try_link "$LINENO"
17259 without_pcre_static=yes
17261 without_pcre_static=no
17263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17264 conftest$ac_exeext conftest.$ac_ext
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266 /* end confdefs.h. */
17267 #define PCRE_STATIC
17268 #include <pcreposix.h>
17269 int main() { return regcomp(NULL, NULL, 0); }
17271 if ac_fn_c_try_link "$LINENO"
17273 with_pcre_static=yes
17275 with_pcre_static=no
17277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17278 conftest$ac_exeext conftest.$ac_ext
17279 if test "x$without_pcre_static" != xyes && test "x$with_pcre_static" = xyes; then
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17281 printf "%s\n" "yes" >&6; }
17283 printf "%s\n" "#define PCRE_STATIC 1" >>confdefs.h
17285 elif test "x$without_pcre_static" = xyes || test "x$with_pcre_static" = xyes; then
17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287 printf "%s\n" "no" >&6; }
17289 posix_regex_lib_found=1
17292 posix_regex_lib_found=1
17296 # TODO: Give the user the option of using a pre-existing system
17297 # libarchive. This will define HAVE_LIBARCHIVE which will cause
17298 # bsdtar_platform.h to use #include <...> for the libarchive headers.
17299 # Need to include Makefile.am magic to link against system
17300 # -larchive in that case.
17301 #AC_CHECK_LIB(archive,archive_version)
17303 # Checks for supported compiler flags
17308 for flag in -Wall -Wformat -Wformat-security; do
17309 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17311 printf %s "checking whether C compiler accepts $flag... " >&6; }
17312 if eval test \${$as_CACHEVAR+y}
17314 printf %s "(cached) " >&6
17317 ax_check_save_flags=$CFLAGS
17318 CFLAGS="$CFLAGS $flag"
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17330 if ac_fn_c_try_compile "$LINENO"
17332 eval "$as_CACHEVAR=yes"
17334 eval "$as_CACHEVAR=no"
17336 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17337 CFLAGS=$ax_check_save_flags
17339 eval ac_res=\$$as_CACHEVAR
17340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17341 printf "%s\n" "$ac_res" >&6; }
17342 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17345 if test ${CFLAGS+y}
17348 case " $CFLAGS " in #(
17350 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17351 (: CFLAGS already contains $flag) 2>&5
17353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354 test $ac_status = 0; } ;; #(
17357 as_fn_append CFLAGS " $flag"
17358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17359 (: CFLAGS="$CFLAGS") 2>&5
17361 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17362 test $ac_status = 0; }
17369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17370 (: CFLAGS="$CFLAGS") 2>&5
17372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17373 test $ac_status = 0; }
17384 # Place the functions and data into separate sections, allowing the linker
17385 # to garbage collect the unused ones.
17386 save_LDFLAGS=$LDFLAGS
17387 LDFLAGS="$LDFLAGS -Wl,--gc-sections"
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ld supports --gc-sections" >&5
17389 printf %s "checking whether ld supports --gc-sections... " >&6; }
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 static char UnusedFunc() { return 5; } int main() { return 0;}
17394 if ac_fn_c_try_link "$LINENO"
17396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17397 printf "%s\n" "yes" >&6; }
17398 GC_SECTIONS="-Wl,--gc-sections";
17403 for flag in -ffunction-sections -fdata-sections; do
17404 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
17405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17406 printf %s "checking whether C compiler accepts $flag... " >&6; }
17407 if eval test \${$as_CACHEVAR+y}
17409 printf %s "(cached) " >&6
17412 ax_check_save_flags=$CFLAGS
17413 CFLAGS="$CFLAGS $flag"
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17425 if ac_fn_c_try_compile "$LINENO"
17427 eval "$as_CACHEVAR=yes"
17429 eval "$as_CACHEVAR=no"
17431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17432 CFLAGS=$ax_check_save_flags
17434 eval ac_res=\$$as_CACHEVAR
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17436 printf "%s\n" "$ac_res" >&6; }
17437 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
17440 if test ${CFLAGS+y}
17443 case " $CFLAGS " in #(
17445 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
17446 (: CFLAGS already contains $flag) 2>&5
17448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17449 test $ac_status = 0; } ;; #(
17452 as_fn_append CFLAGS " $flag"
17453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17454 (: CFLAGS="$CFLAGS") 2>&5
17456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; }
17464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17465 (: CFLAGS="$CFLAGS") 2>&5
17467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468 test $ac_status = 0; }
17479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17480 printf "%s\n" "no" >&6; }
17483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17484 conftest$ac_exeext conftest.$ac_ext
17485 LDFLAGS=$save_LDFLAGS
17489 # Checks for typedefs, structures, and compiler characteristics.
17490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17491 printf %s "checking for an ANSI C-conforming const... " >&6; }
17492 if test ${ac_cv_c_const+y}
17494 printf %s "(cached) " >&6
17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17497 /* end confdefs.h. */
17503 #ifndef __cplusplus
17504 /* Ultrix mips cc rejects this sort of thing. */
17505 typedef int charset[2];
17506 const charset cs = { 0, 0 };
17507 /* SunOS 4.1.1 cc rejects this. */
17508 char const *const *pcpcc;
17510 /* NEC SVR4.0.2 mips cc rejects this. */
17511 struct point {int x, y;};
17512 static struct point const zero = {0,0};
17513 /* IBM XL C 1.02.0.0 rejects this.
17514 It does not let you subtract one const X* pointer from another in
17515 an arm of an if-expression whose if-part is not a constant
17517 const char *g = "string";
17518 pcpcc = &g + (g ? g-g : 0);
17519 /* HPUX 7.0 cc rejects these. */
17521 ppc = (char**) pcpcc;
17522 pcpcc = (char const *const *) ppc;
17523 { /* SCO 3.2v4 cc rejects this sort of thing. */
17526 char const *s = 0 ? (char *) 0 : (char const *) 0;
17531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17532 int x[] = {25, 17};
17533 const int *foo = &x[0];
17536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17537 typedef const int *iptr;
17541 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
17542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17543 struct s { int j; const int *ap[3]; } bx;
17544 struct s *b = &bx; b->j = 5;
17546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17547 const int foo = 10;
17548 if (!foo) return 0;
17550 return !cs[0] && !zero.x;
17557 if ac_fn_c_try_compile "$LINENO"
17563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17566 printf "%s\n" "$ac_cv_c_const" >&6; }
17567 if test $ac_cv_c_const = no; then
17569 printf "%s\n" "#define const /**/" >>confdefs.h
17573 # la_TYPE_UID_T defaults to "int", which is incorrect for MinGW
17574 # and MSVC. Use a customized version.
17575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17576 printf %s "checking for uid_t in sys/types.h... " >&6; }
17577 if test ${la_cv_type_uid_t+y}
17579 printf %s "(cached) " >&6
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583 #include <sys/types.h>
17586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17587 $EGREP "uid_t" >/dev/null 2>&1
17589 la_cv_type_uid_t=yes
17591 la_cv_type_uid_t=no
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $la_cv_type_uid_t" >&5
17597 printf "%s\n" "$la_cv_type_uid_t" >&6; }
17598 if test $la_cv_type_uid_t = no; then
17600 *mingw*) def_uid_t=short ;;
17601 *) def_uid_t=int ;;
17604 printf "%s\n" "#define uid_t $def_uid_t" >>confdefs.h
17607 printf "%s\n" "#define gid_t $def_uid_t" >>confdefs.h
17611 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
17612 if test "x$ac_cv_type_mode_t" = xyes
17617 printf "%s\n" "#define mode_t int" >>confdefs.h
17621 # AC_TYPE_OFF_T defaults to "long", which limits us to 4GB files on
17622 # most systems... default to "long long" instead.
17623 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17624 if test "x$ac_cv_type_off_t" = xyes
17629 printf "%s\n" "#define off_t long long" >>confdefs.h
17633 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17634 if test "x$ac_cv_type_size_t" = xyes
17639 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17643 ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
17644 if test "x$ac_cv_type_id_t" = xyes
17649 printf "%s\n" "#define id_t unsigned long" >>confdefs.h
17653 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17654 if test "x$ac_cv_type_uintptr_t" = xyes
17659 printf "%s\n" "#define uintptr_t unsigned int" >>confdefs.h
17664 # Check for tm_gmtoff in struct tm
17665 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "
17669 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
17672 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
17676 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "
17680 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes
17683 printf "%s\n" "#define HAVE_STRUCT_TM___TM_GMTOFF 1" >>confdefs.h
17689 # Check for f_namemax in struct statfs
17690 ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "
17691 #include <sys/param.h>
17692 #include <sys/mount.h>
17695 if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes
17698 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_NAMEMAX 1" >>confdefs.h
17704 # Check for f_iosize in struct statfs
17705 ac_fn_c_check_member "$LINENO" "struct statfs" "f_iosize" "ac_cv_member_struct_statfs_f_iosize" "
17706 #include <sys/param.h>
17707 #include <sys/mount.h>
17710 if test "x$ac_cv_member_struct_statfs_f_iosize" = xyes
17713 printf "%s\n" "#define HAVE_STRUCT_STATFS_F_IOSIZE 1" >>confdefs.h
17719 # Check for f_iosize in struct statvfs
17720 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_iosize" "ac_cv_member_struct_statvfs_f_iosize" "
17721 #include <sys/statvfs.h>
17724 if test "x$ac_cv_member_struct_statvfs_f_iosize" = xyes
17727 printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_IOSIZE 1" >>confdefs.h
17733 # Check for birthtime in struct stat
17734 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
17735 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
17738 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
17744 # Check for high-resolution timestamps in struct stat
17745 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "$ac_includes_default"
17746 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
17749 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
17754 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec.tv_nsec" "ac_cv_member_struct_stat_st_mtimespec_tv_nsec" "$ac_includes_default"
17755 if test "x$ac_cv_member_struct_stat_st_mtimespec_tv_nsec" = xyes
17758 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1" >>confdefs.h
17763 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
17764 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes
17767 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1" >>confdefs.h
17772 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_n" "ac_cv_member_struct_stat_st_mtime_n" "$ac_includes_default"
17773 if test "x$ac_cv_member_struct_stat_st_mtime_n" = xyes
17776 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_N 1" >>confdefs.h
17781 ac_fn_c_check_member "$LINENO" "struct stat" "st_umtime" "ac_cv_member_struct_stat_st_umtime" "$ac_includes_default"
17782 if test "x$ac_cv_member_struct_stat_st_umtime" = xyes
17785 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_UMTIME 1" >>confdefs.h
17790 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtime_usec" "ac_cv_member_struct_stat_st_mtime_usec" "$ac_includes_default"
17791 if test "x$ac_cv_member_struct_stat_st_mtime_usec" = xyes
17794 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIME_USEC 1" >>confdefs.h
17799 # Check for block size support in struct stat
17800 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
17801 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
17804 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
17809 # Check for st_flags in struct stat (BSD fflags)
17810 ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
17811 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
17814 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
17820 # If you have uintmax_t, we assume printf supports %ju
17821 # If you have unsigned long long, we assume printf supports %llu
17822 # TODO: Check for %ju and %llu support directly.
17823 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17824 if test "x$ac_cv_type_uintmax_t" = xyes
17827 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
17831 ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
17832 if test "x$ac_cv_type_unsigned_long_long" = xyes
17835 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
17841 # We use C99-style integer types
17842 # Declare them if the local platform doesn't already do so.
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
17845 printf %s "checking for unsigned long long int... " >&6; }
17846 if test ${ac_cv_type_unsigned_long_long_int+y}
17848 printf %s "(cached) " >&6
17850 ac_cv_type_unsigned_long_long_int=yes
17851 case $ac_prog_cc_stdc in
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17857 /* For now, do not test the preprocessor; as of 2007 there are too many
17858 implementations with broken preprocessors. Perhaps this can
17859 be revisited in 2012. In the meantime, code should not expect
17860 #if to work with literals wider than 32 bits. */
17861 /* Test literals. */
17862 long long int ll = 9223372036854775807ll;
17863 long long int nll = -9223372036854775807LL;
17864 unsigned long long int ull = 18446744073709551615ULL;
17865 /* Test constant expressions. */
17866 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17868 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17874 /* Test availability of runtime routines for shift and division. */
17875 long long int llmax = 9223372036854775807ll;
17876 unsigned long long int ullmax = 18446744073709551615ull;
17877 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17878 | (llmax / ll) | (llmax % ll)
17879 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17880 | (ullmax / ull) | (ullmax % ull));
17886 if ac_fn_c_try_link "$LINENO"
17890 ac_cv_type_unsigned_long_long_int=no
17892 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17893 conftest$ac_exeext conftest.$ac_ext;;
17896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
17897 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
17898 if test $ac_cv_type_unsigned_long_long_int = yes; then
17900 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
17907 printf %s "checking for long long int... " >&6; }
17908 if test ${ac_cv_type_long_long_int+y}
17910 printf %s "(cached) " >&6
17912 ac_cv_type_long_long_int=yes
17913 case $ac_prog_cc_stdc in
17916 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
17917 if test $ac_cv_type_long_long_int = yes; then
17918 if test "$cross_compiling" = yes
17922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17923 /* end confdefs.h. */
17924 #include <limits.h>
17927 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17928 # define LLONG_MAX (HALF - 1 + HALF)
17933 long long int n = 1;
17937 long long int m = n << i;
17940 if (LLONG_MAX / 2 < m)
17948 if ac_fn_c_try_run "$LINENO"
17952 ac_cv_type_long_long_int=no
17954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17955 conftest.$ac_objext conftest.beam conftest.$ac_ext
17961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
17962 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
17963 if test $ac_cv_type_long_long_int = yes; then
17965 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
17971 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
17972 if test "x$ac_cv_type_intmax_t" = xyes
17975 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
17978 test $ac_cv_type_long_long_int = yes \
17979 && ac_type='long long int' \
17980 || ac_type='long int'
17982 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
17989 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
17990 if test "x$ac_cv_type_uintmax_t" = xyes
17993 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
17996 test $ac_cv_type_unsigned_long_long_int = yes \
17997 && ac_type='unsigned long long int' \
17998 || ac_type='unsigned long int'
18000 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
18005 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
18006 case $ac_cv_c_int64_t in #(
18010 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
18014 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
18015 case $ac_cv_c_uint64_t in #(
18019 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
18022 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
18026 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
18027 case $ac_cv_c_int32_t in #(
18031 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
18035 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
18036 case $ac_cv_c_uint32_t in #(
18040 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
18043 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
18047 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
18048 case $ac_cv_c_int16_t in #(
18052 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
18056 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
18057 case $ac_cv_c_uint16_t in #(
18062 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
18066 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
18067 case $ac_cv_c_uint8_t in #(
18071 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
18074 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
18079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18080 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
18081 if test ${ac_cv_c_undeclared_builtin_options+y}
18083 printf %s "(cached) " >&6
18085 ac_save_CFLAGS=$CFLAGS
18086 ac_cv_c_undeclared_builtin_options='cannot detect'
18087 for ac_arg in '' -fno-builtin; do
18088 CFLAGS="$ac_save_CFLAGS $ac_arg"
18089 # This test program should *not* compile successfully.
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18101 if ac_fn_c_try_compile "$LINENO"
18105 # This test program should compile successfully.
18106 # No library function is consistently available on
18107 # freestanding implementations, so test against a dummy
18108 # declaration. Include always-available headers on the
18109 # off chance that they somehow elicit warnings.
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18113 #include <limits.h>
18114 #include <stdarg.h>
18115 #include <stddef.h>
18116 extern void ac_decl (int, char *);
18121 (void) ac_decl (0, (char *) 0);
18128 if ac_fn_c_try_compile "$LINENO"
18130 if test x"$ac_arg" = x
18132 ac_cv_c_undeclared_builtin_options='none needed'
18134 ac_cv_c_undeclared_builtin_options=$ac_arg
18138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18142 CFLAGS=$ac_save_CFLAGS
18145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
18146 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
18147 case $ac_cv_c_undeclared_builtin_options in #(
18149 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18150 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18151 as_fn_error $? "cannot make $CC report undeclared builtins
18152 See \`config.log' for more details" "$LINENO" 5; } ;; #(
18154 ac_c_undeclared_builtin_options='' ;; #(
18156 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
18159 ac_fn_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18160 if test "x$ac_cv_have_decl_SIZE_MAX" = xyes
18166 printf "%s\n" "#define HAVE_DECL_SIZE_MAX $ac_have_decl" >>confdefs.h
18167 ac_fn_check_decl "$LINENO" "INT32_MAX" "ac_cv_have_decl_INT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18168 if test "x$ac_cv_have_decl_INT32_MAX" = xyes
18174 printf "%s\n" "#define HAVE_DECL_INT32_MAX $ac_have_decl" >>confdefs.h
18175 ac_fn_check_decl "$LINENO" "INT32_MIN" "ac_cv_have_decl_INT32_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18176 if test "x$ac_cv_have_decl_INT32_MIN" = xyes
18182 printf "%s\n" "#define HAVE_DECL_INT32_MIN $ac_have_decl" >>confdefs.h
18184 ac_fn_check_decl "$LINENO" "INT64_MAX" "ac_cv_have_decl_INT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18185 if test "x$ac_cv_have_decl_INT64_MAX" = xyes
18191 printf "%s\n" "#define HAVE_DECL_INT64_MAX $ac_have_decl" >>confdefs.h
18192 ac_fn_check_decl "$LINENO" "INT64_MIN" "ac_cv_have_decl_INT64_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18193 if test "x$ac_cv_have_decl_INT64_MIN" = xyes
18199 printf "%s\n" "#define HAVE_DECL_INT64_MIN $ac_have_decl" >>confdefs.h
18200 ac_fn_check_decl "$LINENO" "UINT64_MAX" "ac_cv_have_decl_UINT64_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18201 if test "x$ac_cv_have_decl_UINT64_MAX" = xyes
18207 printf "%s\n" "#define HAVE_DECL_UINT64_MAX $ac_have_decl" >>confdefs.h
18208 ac_fn_check_decl "$LINENO" "UINT32_MAX" "ac_cv_have_decl_UINT32_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18209 if test "x$ac_cv_have_decl_UINT32_MAX" = xyes
18215 printf "%s\n" "#define HAVE_DECL_UINT32_MAX $ac_have_decl" >>confdefs.h
18217 ac_fn_check_decl "$LINENO" "INTMAX_MAX" "ac_cv_have_decl_INTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18218 if test "x$ac_cv_have_decl_INTMAX_MAX" = xyes
18224 printf "%s\n" "#define HAVE_DECL_INTMAX_MAX $ac_have_decl" >>confdefs.h
18225 ac_fn_check_decl "$LINENO" "INTMAX_MIN" "ac_cv_have_decl_INTMAX_MIN" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18226 if test "x$ac_cv_have_decl_INTMAX_MIN" = xyes
18232 printf "%s\n" "#define HAVE_DECL_INTMAX_MIN $ac_have_decl" >>confdefs.h
18233 ac_fn_check_decl "$LINENO" "UINTMAX_MAX" "ac_cv_have_decl_UINTMAX_MAX" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18234 if test "x$ac_cv_have_decl_UINTMAX_MAX" = xyes
18240 printf "%s\n" "#define HAVE_DECL_UINTMAX_MAX $ac_have_decl" >>confdefs.h
18243 ac_fn_check_decl "$LINENO" "SSIZE_MAX" "ac_cv_have_decl_SSIZE_MAX" "#include <limits.h>
18244 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18245 if test "x$ac_cv_have_decl_SSIZE_MAX" = xyes
18248 printf "%s\n" "#define HAVE_DECL_SSIZE_MAX 1" >>confdefs.h
18252 ac_fn_check_decl "$LINENO" "EFTYPE" "ac_cv_have_decl_EFTYPE" "#include <errno.h>
18253 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18254 if test "x$ac_cv_have_decl_EFTYPE" = xyes
18257 printf "%s\n" "#define HAVE_EFTYPE 1" >>confdefs.h
18260 ac_fn_check_decl "$LINENO" "EILSEQ" "ac_cv_have_decl_EILSEQ" "#include <errno.h>
18261 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18262 if test "x$ac_cv_have_decl_EILSEQ" = xyes
18265 printf "%s\n" "#define HAVE_EILSEQ 1" >>confdefs.h
18268 ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" "$ac_includes_default"
18269 if test "x$ac_cv_type_wchar_t" = xyes
18272 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
18273 # The cast to long int works around a bug in the HP C Compiler
18274 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18275 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18276 # This bug is HP SR number 8606223364.
18277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
18278 printf %s "checking size of wchar_t... " >&6; }
18279 if test ${ac_cv_sizeof_wchar_t+y}
18281 printf %s "(cached) " >&6
18283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
18287 if test "$ac_cv_type_wchar_t" = yes; then
18288 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18289 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18290 as_fn_error 77 "cannot compute sizeof (wchar_t)
18291 See \`config.log' for more details" "$LINENO" 5; }
18293 ac_cv_sizeof_wchar_t=0
18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
18299 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
18303 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
18309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
18310 printf %s "checking size of int... " >&6; }
18311 if test ${ac_cv_sizeof_int+y}
18313 printf %s "(cached) " >&6
18315 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18319 #include <sys/types.h>
18325 switch (0) case 0: case (sizeof (int) == $ac_size):;
18330 if ac_fn_c_try_compile "$LINENO"
18332 ac_cv_sizeof_int=$ac_size
18334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18335 if test x$ac_cv_sizeof_int != x ; then break; fi
18340 if test x$ac_cv_sizeof_int = x ; then
18341 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
18343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
18344 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
18346 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
18349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
18350 printf %s "checking size of long... " >&6; }
18351 if test ${ac_cv_sizeof_long+y}
18353 printf %s "(cached) " >&6
18355 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18359 #include <sys/types.h>
18365 switch (0) case 0: case (sizeof (long) == $ac_size):;
18370 if ac_fn_c_try_compile "$LINENO"
18372 ac_cv_sizeof_long=$ac_size
18374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18375 if test x$ac_cv_sizeof_long != x ; then break; fi
18380 if test x$ac_cv_sizeof_long = x ; then
18381 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
18383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
18384 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
18386 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
18392 # Obsolete code to be removed.
18393 if test $ac_cv_header_sys_time_h = yes; then
18395 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18398 # End of obsolete code.
18401 # Checks for library functions.
18402 if test $ac_cv_c_compiler_gnu = yes; then
18403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
18404 printf %s "checking whether $CC needs -traditional... " >&6; }
18405 if test ${ac_cv_prog_gcc_traditional+y}
18407 printf %s "(cached) " >&6
18409 ac_pattern="Autoconf.*'x'"
18410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18416 $EGREP "$ac_pattern" >/dev/null 2>&1
18418 ac_cv_prog_gcc_traditional=yes
18420 ac_cv_prog_gcc_traditional=no
18425 if test $ac_cv_prog_gcc_traditional = no; then
18426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428 #include <termio.h>
18431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18432 $EGREP "$ac_pattern" >/dev/null 2>&1
18434 ac_cv_prog_gcc_traditional=yes
18440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
18441 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
18442 if test $ac_cv_prog_gcc_traditional = yes; then
18443 CC="$CC -traditional"
18448 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
18449 if test "x$ac_cv_header_sys_mkdev_h" = xyes
18452 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
18456 if test $ac_cv_header_sys_mkdev_h = no; then
18457 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
18458 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
18461 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
18467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18468 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
18469 if test ${ac_cv_sys_largefile_source+y}
18471 printf %s "(cached) " >&6
18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18475 /* end confdefs.h. */
18476 #include <sys/types.h> /* for off_t */
18481 int (*fp) (FILE *, off_t, int) = fseeko;
18482 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18487 if ac_fn_c_try_link "$LINENO"
18489 ac_cv_sys_largefile_source=no; break
18491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18492 conftest$ac_exeext conftest.$ac_ext
18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494 /* end confdefs.h. */
18495 #define _LARGEFILE_SOURCE 1
18496 #include <sys/types.h> /* for off_t */
18501 int (*fp) (FILE *, off_t, int) = fseeko;
18502 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18507 if ac_fn_c_try_link "$LINENO"
18509 ac_cv_sys_largefile_source=1; break
18511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18512 conftest$ac_exeext conftest.$ac_ext
18513 ac_cv_sys_largefile_source=unknown
18517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
18518 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
18519 case $ac_cv_sys_largefile_source in #(
18522 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
18527 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18528 # in glibc 2.1.3, but that breaks too many other things.
18529 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18530 if test $ac_cv_sys_largefile_source != unknown; then
18532 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
18536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
18537 printf %s "checking for working memcmp... " >&6; }
18538 if test ${ac_cv_func_memcmp_working+y}
18540 printf %s "(cached) " >&6
18542 if test "$cross_compiling" = yes
18544 ac_cv_func_memcmp_working=no
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548 $ac_includes_default
18553 /* Some versions of memcmp are not 8-bit clean. */
18554 char c0 = '\100', c1 = '\200', c2 = '\201';
18555 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18558 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18559 or more and with at least one buffer not starting on a 4-byte boundary.
18560 William Lewis provided this test program. */
18565 for (i = 0; i < 4; i++)
18569 strcpy (a, "--------01111111");
18570 strcpy (b, "--------10000000");
18571 if (memcmp (a, b, 16) >= 0)
18581 if ac_fn_c_try_run "$LINENO"
18583 ac_cv_func_memcmp_working=yes
18585 ac_cv_func_memcmp_working=no
18587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18588 conftest.$ac_objext conftest.beam conftest.$ac_ext
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18593 printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
18594 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18595 *" memcmp.$ac_objext "* ) ;;
18596 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
18602 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
18603 if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
18605 printf %s "(cached) " >&6
18607 rm -f conftest.sym conftest.file
18608 echo >conftest.file
18609 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18610 if test "$cross_compiling" = yes
18612 case "$host_os" in # ((
18613 # Guess yes on glibc systems.
18614 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
18615 # If we don't know, assume the worst.
18616 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
18619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18620 /* end confdefs.h. */
18621 $ac_includes_default
18626 /* Linux will dereference the symlink and fail, as required by POSIX.
18627 That is better in the sense that it means we will not
18628 have to compile and use the lstat wrapper. */
18629 return lstat ("conftest.sym/", &sbuf) == 0;
18634 if ac_fn_c_try_run "$LINENO"
18636 ac_cv_func_lstat_dereferences_slashed_symlink=yes
18638 ac_cv_func_lstat_dereferences_slashed_symlink=no
18640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18641 conftest.$ac_objext conftest.beam conftest.$ac_ext
18645 # If the `ln -s' command failed, then we probably don't even
18646 # have an lstat function.
18647 ac_cv_func_lstat_dereferences_slashed_symlink=no
18649 rm -f conftest.sym conftest.file
18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18653 printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18655 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18657 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
18660 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
18661 case " $LIBOBJS " in
18662 *" lstat.$ac_objext "* ) ;;
18663 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
18670 printf %s "checking whether lstat accepts an empty string... " >&6; }
18671 if test ${ac_cv_func_lstat_empty_string_bug+y}
18673 printf %s "(cached) " >&6
18675 if test "$cross_compiling" = yes
18677 ac_cv_func_lstat_empty_string_bug=yes
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 $ac_includes_default
18686 return lstat ("", &sbuf) == 0;
18691 if ac_fn_c_try_run "$LINENO"
18693 ac_cv_func_lstat_empty_string_bug=no
18695 ac_cv_func_lstat_empty_string_bug=yes
18697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18698 conftest.$ac_objext conftest.beam conftest.$ac_ext
18702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
18703 printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
18704 if test $ac_cv_func_lstat_empty_string_bug = yes; then
18705 case " $LIBOBJS " in
18706 *" lstat.$ac_objext "* ) ;;
18707 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
18712 printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
18716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
18717 printf %s "checking whether stat accepts an empty string... " >&6; }
18718 if test ${ac_cv_func_stat_empty_string_bug+y}
18720 printf %s "(cached) " >&6
18722 if test "$cross_compiling" = yes
18724 ac_cv_func_stat_empty_string_bug=yes
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728 $ac_includes_default
18733 return stat ("", &sbuf) == 0;
18738 if ac_fn_c_try_run "$LINENO"
18740 ac_cv_func_stat_empty_string_bug=no
18742 ac_cv_func_stat_empty_string_bug=yes
18744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18745 conftest.$ac_objext conftest.beam conftest.$ac_ext
18749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
18750 printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
18751 if test $ac_cv_func_stat_empty_string_bug = yes; then
18752 case " $LIBOBJS " in
18753 *" stat.$ac_objext "* ) ;;
18754 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
18759 printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
18763 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18764 if test "x$ac_cv_have_decl_strerror_r" = xyes
18770 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
18773 if test $ac_cv_have_decl_strerror_r = yes; then
18774 # For backward compatibility's sake, define HAVE_STRERROR_R.
18775 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
18776 # as AC_CHECK_DECLS_ONCE.)
18778 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
18782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
18783 printf %s "checking whether strerror_r returns char *... " >&6; }
18784 if test ${ac_cv_func_strerror_r_char_p+y}
18786 printf %s "(cached) " >&6
18789 ac_cv_func_strerror_r_char_p=no
18790 if test $ac_cv_have_decl_strerror_r = yes; then
18791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18792 /* end confdefs.h. */
18793 #include <string.h>
18799 char x = *strerror_r (0, buf, sizeof buf);
18800 char *p = strerror_r (0, buf, sizeof buf);
18807 if ac_fn_c_try_compile "$LINENO"
18809 ac_cv_func_strerror_r_char_p=yes
18811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
18817 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
18818 if test $ac_cv_func_strerror_r_char_p = yes; then
18820 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
18825 for ac_func in strftime
18827 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
18828 if test "x$ac_cv_func_strftime" = xyes
18830 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
18833 # strftime is in -lintl on SCO UNIX.
18834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
18835 printf %s "checking for strftime in -lintl... " >&6; }
18836 if test ${ac_cv_lib_intl_strftime+y}
18838 printf %s "(cached) " >&6
18840 ac_check_lib_save_LIBS=$LIBS
18841 LIBS="-lintl $LIBS"
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18852 return strftime ();
18857 if ac_fn_c_try_link "$LINENO"
18859 ac_cv_lib_intl_strftime=yes
18861 ac_cv_lib_intl_strftime=no
18863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18864 conftest$ac_exeext conftest.$ac_ext
18865 LIBS=$ac_check_lib_save_LIBS
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
18868 printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
18869 if test "x$ac_cv_lib_intl_strftime" = xyes
18871 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
18873 LIBS="-lintl $LIBS"
18880 for ac_item in $ac_func_c_list
18882 if test $ac_func; then
18883 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
18884 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
18885 echo "#define $ac_item 1" >> confdefs.h
18893 if test "x$ac_cv_func_vprintf" = xno
18895 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
18896 if test "x$ac_cv_func__doprnt" = xyes
18899 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
18905 # CreateHardLinkA(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES)
18906 # To avoid necessity for including windows.h or special forward declaration
18907 # workarounds, we use 'void *' for 'struct SECURITY_ATTRIBUTES *'
18908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CreateHardLinkA" >&5
18909 printf %s "checking for CreateHardLinkA... " >&6; }
18910 if test ${ac_cv_func_CreateHardLinkA+y}
18912 printf %s "(cached) " >&6
18914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18915 /* end confdefs.h. */
18916 /* System header to define __stub macros and hopefully few prototypes,
18917 which can conflict with char __stdcall CreateHardLinkA ( const char *, const char *, void * ) below. */
18918 #include <assert.h>
18919 /* Override any gcc2 internal prototype to avoid an error. */
18923 /* We use char because int might match the return type of a gcc2
18924 builtin and then its argument prototype would still apply. */
18925 char __stdcall CreateHardLinkA ( const char *, const char *, void * );
18926 char (*f) ( const char *, const char *, void * );
18931 /* The GNU C library defines this for functions which it implements
18932 to always fail with ENOSYS. Some functions are actually named
18933 something starting with __ and the normal name is an alias. */
18934 #if defined (__stub_CreateHardLinkA) || defined (__stub___CreateHardLinkA)
18937 f = CreateHardLinkA;
18944 if ac_fn_c_try_link "$LINENO"
18946 ac_cv_func_CreateHardLinkA=yes
18948 ac_cv_func_CreateHardLinkA=no
18950 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18951 conftest$ac_exeext conftest.$ac_ext
18953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_CreateHardLinkA" >&5
18954 printf "%s\n" "$ac_cv_func_CreateHardLinkA" >&6; }
18955 if test $ac_cv_func_CreateHardLinkA = yes
18959 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
18960 if test "x$ac_cv_func_arc4random_buf" = xyes
18962 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
18965 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
18966 if test "x$ac_cv_func_chflags" = xyes
18968 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
18971 ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown"
18972 if test "x$ac_cv_func_chown" = xyes
18974 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
18977 ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
18978 if test "x$ac_cv_func_chroot" = xyes
18980 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
18983 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
18984 if test "x$ac_cv_func_ctime_r" = xyes
18986 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
18990 ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
18991 if test "x$ac_cv_func_fchdir" = xyes
18993 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
18996 ac_fn_c_check_func "$LINENO" "fchflags" "ac_cv_func_fchflags"
18997 if test "x$ac_cv_func_fchflags" = xyes
18999 printf "%s\n" "#define HAVE_FCHFLAGS 1" >>confdefs.h
19002 ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod"
19003 if test "x$ac_cv_func_fchmod" = xyes
19005 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
19008 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
19009 if test "x$ac_cv_func_fchown" = xyes
19011 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
19014 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
19015 if test "x$ac_cv_func_fcntl" = xyes
19017 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
19020 ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir"
19021 if test "x$ac_cv_func_fdopendir" = xyes
19023 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
19026 ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork"
19027 if test "x$ac_cv_func_fork" = xyes
19029 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
19033 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
19034 if test "x$ac_cv_func_fstat" = xyes
19036 printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
19039 ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat"
19040 if test "x$ac_cv_func_fstatat" = xyes
19042 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
19045 ac_fn_c_check_func "$LINENO" "fstatfs" "ac_cv_func_fstatfs"
19046 if test "x$ac_cv_func_fstatfs" = xyes
19048 printf "%s\n" "#define HAVE_FSTATFS 1" >>confdefs.h
19051 ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
19052 if test "x$ac_cv_func_fstatvfs" = xyes
19054 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
19057 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
19058 if test "x$ac_cv_func_ftruncate" = xyes
19060 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
19064 ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens"
19065 if test "x$ac_cv_func_futimens" = xyes
19067 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
19070 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
19071 if test "x$ac_cv_func_futimes" = xyes
19073 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
19076 ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat"
19077 if test "x$ac_cv_func_futimesat" = xyes
19079 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
19083 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
19084 if test "x$ac_cv_func_geteuid" = xyes
19086 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
19089 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
19090 if test "x$ac_cv_func_getpid" = xyes
19092 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
19095 ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
19096 if test "x$ac_cv_func_getgrgid_r" = xyes
19098 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
19101 ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
19102 if test "x$ac_cv_func_getgrnam_r" = xyes
19104 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
19108 ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
19109 if test "x$ac_cv_func_getpwnam_r" = xyes
19111 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
19114 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
19115 if test "x$ac_cv_func_getpwuid_r" = xyes
19117 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
19120 ac_fn_c_check_func "$LINENO" "getvfsbyname" "ac_cv_func_getvfsbyname"
19121 if test "x$ac_cv_func_getvfsbyname" = xyes
19123 printf "%s\n" "#define HAVE_GETVFSBYNAME 1" >>confdefs.h
19126 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
19127 if test "x$ac_cv_func_gmtime_r" = xyes
19129 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
19133 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags"
19134 if test "x$ac_cv_func_lchflags" = xyes
19136 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
19139 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod"
19140 if test "x$ac_cv_func_lchmod" = xyes
19142 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
19145 ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown"
19146 if test "x$ac_cv_func_lchown" = xyes
19148 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
19151 ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link"
19152 if test "x$ac_cv_func_link" = xyes
19154 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
19157 ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat"
19158 if test "x$ac_cv_func_linkat" = xyes
19160 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
19163 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
19164 if test "x$ac_cv_func_localtime_r" = xyes
19166 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
19169 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
19170 if test "x$ac_cv_func_lstat" = xyes
19172 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
19175 ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes"
19176 if test "x$ac_cv_func_lutimes" = xyes
19178 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
19182 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
19183 if test "x$ac_cv_func_mbrtowc" = xyes
19185 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
19188 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
19189 if test "x$ac_cv_func_memmove" = xyes
19191 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
19194 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
19195 if test "x$ac_cv_func_memset" = xyes
19197 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
19201 ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
19202 if test "x$ac_cv_func_mkdir" = xyes
19204 printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h
19207 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
19208 if test "x$ac_cv_func_mkfifo" = xyes
19210 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
19213 ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod"
19214 if test "x$ac_cv_func_mknod" = xyes
19216 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
19219 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
19220 if test "x$ac_cv_func_mkstemp" = xyes
19222 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
19226 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
19227 if test "x$ac_cv_func_nl_langinfo" = xyes
19229 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
19232 ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat"
19233 if test "x$ac_cv_func_openat" = xyes
19235 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
19238 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
19239 if test "x$ac_cv_func_pipe" = xyes
19241 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
19244 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
19245 if test "x$ac_cv_func_poll" = xyes
19247 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
19250 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
19251 if test "x$ac_cv_func_posix_spawnp" = xyes
19253 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
19256 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
19257 if test "x$ac_cv_func_readlink" = xyes
19259 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
19262 ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat"
19263 if test "x$ac_cv_func_readlinkat" = xyes
19265 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
19269 ac_fn_c_check_func "$LINENO" "readpassphrase" "ac_cv_func_readpassphrase"
19270 if test "x$ac_cv_func_readpassphrase" = xyes
19272 printf "%s\n" "#define HAVE_READPASSPHRASE 1" >>confdefs.h
19276 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
19277 if test "x$ac_cv_func_select" = xyes
19279 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
19282 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
19283 if test "x$ac_cv_func_setenv" = xyes
19285 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
19288 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19289 if test "x$ac_cv_func_setlocale" = xyes
19291 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
19294 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
19295 if test "x$ac_cv_func_sigaction" = xyes
19297 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
19300 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
19301 if test "x$ac_cv_func_statfs" = xyes
19303 printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
19306 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
19307 if test "x$ac_cv_func_statvfs" = xyes
19309 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
19313 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
19314 if test "x$ac_cv_func_strchr" = xyes
19316 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
19319 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
19320 if test "x$ac_cv_func_strdup" = xyes
19322 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
19325 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
19326 if test "x$ac_cv_func_strerror" = xyes
19328 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
19331 ac_fn_c_check_func "$LINENO" "strncpy_s" "ac_cv_func_strncpy_s"
19332 if test "x$ac_cv_func_strncpy_s" = xyes
19334 printf "%s\n" "#define HAVE_STRNCPY_S 1" >>confdefs.h
19337 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
19338 if test "x$ac_cv_func_strnlen" = xyes
19340 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
19343 ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
19344 if test "x$ac_cv_func_strrchr" = xyes
19346 printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h
19349 ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink"
19350 if test "x$ac_cv_func_symlink" = xyes
19352 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
19356 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
19357 if test "x$ac_cv_func_timegm" = xyes
19359 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
19362 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
19363 if test "x$ac_cv_func_tzset" = xyes
19365 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
19368 ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat"
19369 if test "x$ac_cv_func_unlinkat" = xyes
19371 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
19374 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
19375 if test "x$ac_cv_func_unsetenv" = xyes
19377 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
19380 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
19381 if test "x$ac_cv_func_utime" = xyes
19383 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
19386 ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat"
19387 if test "x$ac_cv_func_utimensat" = xyes
19389 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
19392 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
19393 if test "x$ac_cv_func_utimes" = xyes
19395 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
19398 ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork"
19399 if test "x$ac_cv_func_vfork" = xyes
19401 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
19405 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
19406 if test "x$ac_cv_func_wcrtomb" = xyes
19408 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
19411 ac_fn_c_check_func "$LINENO" "wcscmp" "ac_cv_func_wcscmp"
19412 if test "x$ac_cv_func_wcscmp" = xyes
19414 printf "%s\n" "#define HAVE_WCSCMP 1" >>confdefs.h
19417 ac_fn_c_check_func "$LINENO" "wcscpy" "ac_cv_func_wcscpy"
19418 if test "x$ac_cv_func_wcscpy" = xyes
19420 printf "%s\n" "#define HAVE_WCSCPY 1" >>confdefs.h
19423 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
19424 if test "x$ac_cv_func_wcslen" = xyes
19426 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
19429 ac_fn_c_check_func "$LINENO" "wctomb" "ac_cv_func_wctomb"
19430 if test "x$ac_cv_func_wctomb" = xyes
19432 printf "%s\n" "#define HAVE_WCTOMB 1" >>confdefs.h
19435 ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
19436 if test "x$ac_cv_func_wmemcmp" = xyes
19438 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
19441 ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy"
19442 if test "x$ac_cv_func_wmemcpy" = xyes
19444 printf "%s\n" "#define HAVE_WMEMCPY 1" >>confdefs.h
19447 ac_fn_c_check_func "$LINENO" "wmemmove" "ac_cv_func_wmemmove"
19448 if test "x$ac_cv_func_wmemmove" = xyes
19450 printf "%s\n" "#define HAVE_WMEMMOVE 1" >>confdefs.h
19454 ac_fn_c_check_func "$LINENO" "_ctime64_s" "ac_cv_func__ctime64_s"
19455 if test "x$ac_cv_func__ctime64_s" = xyes
19457 printf "%s\n" "#define HAVE__CTIME64_S 1" >>confdefs.h
19460 ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
19461 if test "x$ac_cv_func__fseeki64" = xyes
19463 printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
19467 ac_fn_c_check_func "$LINENO" "_get_timezone" "ac_cv_func__get_timezone"
19468 if test "x$ac_cv_func__get_timezone" = xyes
19470 printf "%s\n" "#define HAVE__GET_TIMEZONE 1" >>confdefs.h
19473 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
19474 if test "x$ac_cv_func__gmtime64_s" = xyes
19476 printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h
19479 ac_fn_c_check_func "$LINENO" "_localtime64_s" "ac_cv_func__localtime64_s"
19480 if test "x$ac_cv_func__localtime64_s" = xyes
19482 printf "%s\n" "#define HAVE__LOCALTIME64_S 1" >>confdefs.h
19485 ac_fn_c_check_func "$LINENO" "_mkgmtime64" "ac_cv_func__mkgmtime64"
19486 if test "x$ac_cv_func__mkgmtime64" = xyes
19488 printf "%s\n" "#define HAVE__MKGMTIME64 1" >>confdefs.h
19492 # detects cygwin-1.7, as opposed to older versions
19493 ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path"
19494 if test "x$ac_cv_func_cygwin_conv_path" = xyes
19496 printf "%s\n" "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h
19501 # DragonFly uses vfsconf, FreeBSD xvfsconf.
19502 ac_fn_c_check_type "$LINENO" "struct vfsconf" "ac_cv_type_struct_vfsconf" "#if HAVE_SYS_TYPES_H
19503 #include <sys/types.h>
19505 #include <sys/mount.h>
19508 if test "x$ac_cv_type_struct_vfsconf" = xyes
19511 printf "%s\n" "#define HAVE_STRUCT_VFSCONF 1" >>confdefs.h
19517 ac_fn_c_check_type "$LINENO" "struct xvfsconf" "ac_cv_type_struct_xvfsconf" "#if HAVE_SYS_TYPES_H
19518 #include <sys/types.h>
19520 #include <sys/mount.h>
19523 if test "x$ac_cv_type_struct_xvfsconf" = xyes
19526 printf "%s\n" "#define HAVE_STRUCT_XVFSCONF 1" >>confdefs.h
19532 ac_fn_c_check_type "$LINENO" "struct statfs" "ac_cv_type_struct_statfs" "#if HAVE_SYS_TYPES_H
19533 #include <sys/types.h>
19535 #include <sys/mount.h>
19538 if test "x$ac_cv_type_struct_statfs" = xyes
19541 printf "%s\n" "#define HAVE_STRUCT_STATFS 1" >>confdefs.h
19547 # There are several variants of readdir_r around; we only
19548 # accept the POSIX-compliant version.
19549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19550 /* end confdefs.h. */
19551 #include <dirent.h>
19555 DIR *dir; struct dirent e, *r;
19556 return(readdir_r(dir, &e, &r));
19561 if ac_fn_c_try_link "$LINENO"
19564 printf "%s\n" "#define HAVE_READDIR_R 1" >>confdefs.h
19568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19569 conftest$ac_exeext conftest.$ac_ext
19570 # dirfd can be either a function or a macro.
19571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h. */
19573 #include <dirent.h>
19578 return(dirfd(dir));
19583 if ac_fn_c_try_link "$LINENO"
19586 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19591 conftest$ac_exeext conftest.$ac_ext
19593 # FreeBSD's nl_langinfo supports an option to specify whether the
19594 # current locale uses month/day or day/month ordering. It makes the
19595 # output a little prettier...
19596 ac_fn_check_decl "$LINENO" "D_MD_ORDER" "ac_cv_have_decl_D_MD_ORDER" "#if HAVE_LANGINFO_H
19597 #include <langinfo.h>
19600 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19601 if test "x$ac_cv_have_decl_D_MD_ORDER" = xyes
19604 printf "%s\n" "#define HAVE_D_MD_ORDER 1" >>confdefs.h
19608 # Check for dirent.d_namlen field explicitly
19609 # (This is a bit more straightforward than, if not quite as portable as,
19610 # the recipe given by the autoconf maintainers.)
19611 ac_fn_c_check_member "$LINENO" "struct dirent" "d_namlen" "ac_cv_member_struct_dirent_d_namlen" "#if HAVE_DIRENT_H
19612 #include <dirent.h>
19616 if test "x$ac_cv_member_struct_dirent_d_namlen" = xyes
19622 # Check for Extended Attributes support
19623 # Check whether --enable-xattr was given.
19624 if test ${enable_xattr+y}
19626 enableval=$enable_xattr;
19630 if test "x$enable_xattr" != "xno"; then
19631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setxattr" >&5
19632 printf %s "checking for library containing setxattr... " >&6; }
19633 if test ${ac_cv_search_setxattr+y}
19635 printf %s "(cached) " >&6
19637 ac_func_search_save_LIBS=$LIBS
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19641 /* Override any GCC internal prototype to avoid an error.
19642 Use char because int might match the return type of a GCC
19643 builtin and then its argument prototype would still apply. */
19648 return setxattr ();
19653 for ac_lib in '' attr gnu
19655 if test -z "$ac_lib"; then
19656 ac_res="none required"
19659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19661 if ac_fn_c_try_link "$LINENO"
19663 ac_cv_search_setxattr=$ac_res
19665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19667 if test ${ac_cv_search_setxattr+y}
19672 if test ${ac_cv_search_setxattr+y}
19676 ac_cv_search_setxattr=no
19678 rm conftest.$ac_ext
19679 LIBS=$ac_func_search_save_LIBS
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setxattr" >&5
19682 printf "%s\n" "$ac_cv_search_setxattr" >&6; }
19683 ac_res=$ac_cv_search_setxattr
19684 if test "$ac_res" != no
19686 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19690 ac_fn_check_decl "$LINENO" "EXTATTR_NAMESPACE_USER" "ac_cv_have_decl_EXTATTR_NAMESPACE_USER" "#include <sys/types.h>
19691 #include <sys/extattr.h>
19693 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19694 if test "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = xyes
19700 printf "%s\n" "#define HAVE_DECL_EXTATTR_NAMESPACE_USER $ac_have_decl" >>confdefs.h
19702 ac_fn_check_decl "$LINENO" "XATTR_NOFOLLOW" "ac_cv_have_decl_XATTR_NOFOLLOW" "#include <sys/xattr.h>
19704 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19705 if test "x$ac_cv_have_decl_XATTR_NOFOLLOW" = xyes
19711 printf "%s\n" "#define HAVE_DECL_XATTR_NOFOLLOW $ac_have_decl" >>confdefs.h
19713 if test "x$ac_cv_header_sys_xattr_h" = "xyes" \
19714 -a "x$ac_cv_have_decl_XATTR_NOFOLLOW" = "xyes"; then
19715 # Darwin extended attributes support
19716 if test ${ac_cv_archive_xattr_darwin+y}
19718 printf %s "(cached) " >&6
19721 for ac_func in fgetxattr flistxattr fsetxattr getxattr listxattr setxattr
19723 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19725 if eval test \"x\$"$as_ac_var"\" = x"yes"
19727 cat >>confdefs.h <<_ACEOF
19728 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19730 ac_cv_archive_xattr_darwin=yes
19732 ac_cv_archive_xattr_darwin=no
19740 elif test "x$ac_cv_header_sys_extattr_h" = "xyes" \
19741 -a "x$ac_cv_have_decl_EXTATTR_NAMESPACE_USER" = "xyes"; then
19742 # FreeBSD extended attributes support
19743 if test ${ac_cv_archive_xattr_freebsd+y}
19745 printf %s "(cached) " >&6
19748 for ac_func in extattr_get_fd extattr_get_file extattr_get_link extattr_list_fd extattr_list_file extattr_list_link extattr_set_fd extattr_set_link
19750 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19751 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19752 if eval test \"x\$"$as_ac_var"\" = x"yes"
19754 cat >>confdefs.h <<_ACEOF
19755 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19757 ac_cv_archive_xattr_freebsd=yes
19759 ac_cv_archive_xattr_freebsd=no
19767 elif test "x$ac_cv_header_sys_xattr_h" = "xyes" \
19768 -o "x$ac_cv_header_attr_xattr_h" = "xyes"; then
19769 # Linux extended attributes support
19770 if test ${ac_cv_archive_xattr_linux+y}
19772 printf %s "(cached) " >&6
19775 for ac_func in fgetxattr flistxattr fsetxattr getxattr lgetxattr listxattr llistxattr lsetxattr
19777 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19779 if eval test \"x\$"$as_ac_var"\" = x"yes"
19781 cat >>confdefs.h <<_ACEOF
19782 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19784 ac_cv_archive_xattr_linux=yes
19786 ac_cv_archive_xattr_linux=no
19794 elif test "x$ac_cv_header_sys_ea_h" = "xyes"; then
19795 # AIX extended attributes support
19796 if test ${ac_cv_archive_xattr_aix+y}
19798 printf %s "(cached) " >&6
19801 for ac_func in fgetea flistea fsetea getea lgetea listea llistea lsetea
19803 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
19804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19805 if eval test \"x\$"$as_ac_var"\" = x"yes"
19807 cat >>confdefs.h <<_ACEOF
19808 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
19810 ac_cv_archive_xattr_aix=yes
19812 ac_cv_archive_xattr_aix=no
19822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for extended attributes support" >&5
19823 printf %s "checking for extended attributes support... " >&6; }
19824 if test "x$ac_cv_archive_xattr_linux" = "xyes"; then
19826 printf "%s\n" "#define ARCHIVE_XATTR_LINUX 1" >>confdefs.h
19828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
19829 printf "%s\n" "Linux" >&6; }
19830 elif test "x$ac_cv_archive_xattr_darwin" = "xyes"; then
19832 printf "%s\n" "#define ARCHIVE_XATTR_DARWIN 1" >>confdefs.h
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
19835 printf "%s\n" "Darwin" >&6; }
19836 elif test "x$ac_cv_archive_xattr_freebsd" = "xyes"; then
19838 printf "%s\n" "#define ARCHIVE_XATTR_FREEBSD 1" >>confdefs.h
19840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD" >&5
19841 printf "%s\n" "FreeBSD" >&6; }
19842 elif test "x$ac_cv_archive_xattr_aix" = "xyes"; then
19844 printf "%s\n" "#define ARCHIVE_XATTR_AIX 1" >>confdefs.h
19846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: AIX" >&5
19847 printf "%s\n" "AIX" >&6; }
19849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
19850 printf "%s\n" "none" >&6; }
19854 # Check for ACL support
19856 # The ACL support in libarchive is written against the POSIX1e draft,
19857 # which was never officially approved and varies quite a bit across
19858 # platforms. Worse, some systems have completely non-POSIX acl functions,
19859 # which makes the following checks rather more complex than I would like.
19861 # Check whether --enable-acl was given.
19862 if test ${enable_acl+y}
19864 enableval=$enable_acl;
19868 if test "x$enable_acl" != "xno"; then
19870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
19871 printf %s "checking for acl_get_file in -lacl... " >&6; }
19872 if test ${ac_cv_lib_acl_acl_get_file+y}
19874 printf %s "(cached) " >&6
19876 ac_check_lib_save_LIBS=$LIBS
19878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19879 /* end confdefs.h. */
19881 /* Override any GCC internal prototype to avoid an error.
19882 Use char because int might match the return type of a GCC
19883 builtin and then its argument prototype would still apply. */
19884 char acl_get_file ();
19888 return acl_get_file ();
19893 if ac_fn_c_try_link "$LINENO"
19895 ac_cv_lib_acl_acl_get_file=yes
19897 ac_cv_lib_acl_acl_get_file=no
19899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19900 conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_check_lib_save_LIBS
19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
19904 printf "%s\n" "$ac_cv_lib_acl_acl_get_file" >&6; }
19905 if test "x$ac_cv_lib_acl_acl_get_file" = xyes
19907 printf "%s\n" "#define HAVE_LIBACL 1" >>confdefs.h
19914 ac_fn_c_check_type "$LINENO" "acl_t" "ac_cv_type_acl_t" "
19915 #if HAVE_SYS_TYPES_H
19916 #include <sys/types.h>
19919 #include <sys/acl.h>
19923 if test "x$ac_cv_type_acl_t" = xyes
19926 printf "%s\n" "#define HAVE_ACL_T 1" >>confdefs.h
19930 ac_fn_c_check_type "$LINENO" "acl_entry_t" "ac_cv_type_acl_entry_t" "
19931 #if HAVE_SYS_TYPES_H
19932 #include <sys/types.h>
19935 #include <sys/acl.h>
19939 if test "x$ac_cv_type_acl_entry_t" = xyes
19942 printf "%s\n" "#define HAVE_ACL_ENTRY_T 1" >>confdefs.h
19946 ac_fn_c_check_type "$LINENO" "acl_permset_t" "ac_cv_type_acl_permset_t" "
19947 #if HAVE_SYS_TYPES_H
19948 #include <sys/types.h>
19951 #include <sys/acl.h>
19955 if test "x$ac_cv_type_acl_permset_t" = xyes
19958 printf "%s\n" "#define HAVE_ACL_PERMSET_T 1" >>confdefs.h
19962 ac_fn_c_check_type "$LINENO" "acl_tag_t" "ac_cv_type_acl_tag_t" "
19963 #if HAVE_SYS_TYPES_H
19964 #include <sys/types.h>
19967 #include <sys/acl.h>
19971 if test "x$ac_cv_type_acl_tag_t" = xyes
19974 printf "%s\n" "#define HAVE_ACL_TAG_T 1" >>confdefs.h
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for richacl_get_file in -lrichacl" >&5
19981 printf %s "checking for richacl_get_file in -lrichacl... " >&6; }
19982 if test ${ac_cv_lib_richacl_richacl_get_file+y}
19984 printf %s "(cached) " >&6
19986 ac_check_lib_save_LIBS=$LIBS
19987 LIBS="-lrichacl $LIBS"
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h. */
19991 /* Override any GCC internal prototype to avoid an error.
19992 Use char because int might match the return type of a GCC
19993 builtin and then its argument prototype would still apply. */
19994 char richacl_get_file ();
19998 return richacl_get_file ();
20003 if ac_fn_c_try_link "$LINENO"
20005 ac_cv_lib_richacl_richacl_get_file=yes
20007 ac_cv_lib_richacl_richacl_get_file=no
20009 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20010 conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_richacl_richacl_get_file" >&5
20014 printf "%s\n" "$ac_cv_lib_richacl_richacl_get_file" >&6; }
20015 if test "x$ac_cv_lib_richacl_richacl_get_file" = xyes
20017 printf "%s\n" "#define HAVE_LIBRICHACL 1" >>confdefs.h
20019 LIBS="-lrichacl $LIBS"
20024 ac_fn_c_check_type "$LINENO" "struct richace" "ac_cv_type_struct_richace" "
20025 #if HAVE_SYS_RICHACL_H
20026 #include <sys/richacl.h>
20030 if test "x$ac_cv_type_struct_richace" = xyes
20033 printf "%s\n" "#define HAVE_STRUCT_RICHACE 1" >>confdefs.h
20037 ac_fn_c_check_type "$LINENO" "struct richacl" "ac_cv_type_struct_richacl" "
20038 #if HAVE_SYS_RICHACL_H
20039 #include <sys/richacl.h>
20043 if test "x$ac_cv_type_struct_richacl" = xyes
20046 printf "%s\n" "#define HAVE_STRUCT_RICHACL 1" >>confdefs.h
20052 # Solaris and derivates ACLs
20053 ac_fn_c_check_func "$LINENO" "acl" "ac_cv_func_acl"
20054 if test "x$ac_cv_func_acl" = xyes
20056 printf "%s\n" "#define HAVE_ACL 1" >>confdefs.h
20059 ac_fn_c_check_func "$LINENO" "facl" "ac_cv_func_facl"
20060 if test "x$ac_cv_func_facl" = xyes
20062 printf "%s\n" "#define HAVE_FACL 1" >>confdefs.h
20067 if test "x$ac_cv_lib_richacl_richacl_get_file" = "xyes" \
20068 -a "x$ac_cv_type_struct_richace" = "xyes" \
20069 -a "x$ac_cv_type_struct_richacl" = "xyes"; then
20070 if test ${ac_cv_archive_acl_librichacl+y}
20072 printf %s "(cached) " >&6
20075 for ac_func in richacl_alloc richacl_equiv_mode richacl_free richacl_get_fd richacl_get_file richacl_set_fd richacl_set_file
20077 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
20078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20079 if eval test \"x\$"$as_ac_var"\" = x"yes"
20081 cat >>confdefs.h <<_ACEOF
20082 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
20084 ac_cv_archive_acl_librichacl=yes
20086 ac_cv_archive_acl_librichacl=no
20094 if test "x$ac_cv_func_acl" = "xyes" \
20095 -a "x$ac_cv_func_facl" = "xyes"; then
20096 ac_fn_c_check_type "$LINENO" "aclent_t" "ac_cv_type_aclent_t" "#include <sys/acl.h>
20098 if test "x$ac_cv_type_aclent_t" = xyes
20101 printf "%s\n" "#define HAVE_ACLENT_T 1" >>confdefs.h
20106 if test "x$ac_cv_type_aclent_t" = "xyes"; then
20107 if test ${ac_cv_archive_acl_sunos+y}
20109 printf %s "(cached) " >&6
20111 ac_fn_check_decl "$LINENO" "GETACL" "ac_cv_have_decl_GETACL" "#include <sys/acl.h>
20112 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20113 if test "x$ac_cv_have_decl_GETACL" = xyes
20119 printf "%s\n" "#define HAVE_DECL_GETACL $ac_have_decl" >>confdefs.h
20120 if test $ac_have_decl = 1
20122 ac_cv_archive_acl_sunos=yes
20124 ac_cv_archive_acl_sunos=no
20126 ac_fn_check_decl "$LINENO" "SETACL" "ac_cv_have_decl_SETACL" "#include <sys/acl.h>
20127 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20128 if test "x$ac_cv_have_decl_SETACL" = xyes
20134 printf "%s\n" "#define HAVE_DECL_SETACL $ac_have_decl" >>confdefs.h
20135 if test $ac_have_decl = 1
20137 ac_cv_archive_acl_sunos=yes
20139 ac_cv_archive_acl_sunos=no
20141 ac_fn_check_decl "$LINENO" "GETACLCNT" "ac_cv_have_decl_GETACLCNT" "#include <sys/acl.h>
20142 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20143 if test "x$ac_cv_have_decl_GETACLCNT" = xyes
20149 printf "%s\n" "#define HAVE_DECL_GETACLCNT $ac_have_decl" >>confdefs.h
20150 if test $ac_have_decl = 1
20152 ac_cv_archive_acl_sunos=yes
20154 ac_cv_archive_acl_sunos=no
20159 ac_fn_c_check_type "$LINENO" "ace_t" "ac_cv_type_ace_t" "#include <sys/acl.h>
20161 if test "x$ac_cv_type_ace_t" = xyes
20164 printf "%s\n" "#define HAVE_ACE_T 1" >>confdefs.h
20169 if test "x$ac_cv_type_ace_t" = "xyes"; then
20170 if test ${ac_cv_archive_acl_sunos_nfs4+y}
20172 printf %s "(cached) " >&6
20174 ac_fn_check_decl "$LINENO" "ACE_GETACL" "ac_cv_have_decl_ACE_GETACL" "#include <sys/acl.h>
20175 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20176 if test "x$ac_cv_have_decl_ACE_GETACL" = xyes
20182 printf "%s\n" "#define HAVE_DECL_ACE_GETACL $ac_have_decl" >>confdefs.h
20183 if test $ac_have_decl = 1
20185 ac_cv_archive_acl_sunos_nfs4=yes
20187 ac_cv_archive_acl_sonos_nfs4=no
20189 ac_fn_check_decl "$LINENO" "ACE_SETACL" "ac_cv_have_decl_ACE_SETACL" "#include <sys/acl.h>
20190 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20191 if test "x$ac_cv_have_decl_ACE_SETACL" = xyes
20197 printf "%s\n" "#define HAVE_DECL_ACE_SETACL $ac_have_decl" >>confdefs.h
20198 if test $ac_have_decl = 1
20200 ac_cv_archive_acl_sunos_nfs4=yes
20202 ac_cv_archive_acl_sonos_nfs4=no
20204 ac_fn_check_decl "$LINENO" "ACE_GETACLCNT" "ac_cv_have_decl_ACE_GETACLCNT" "#include <sys/acl.h>
20205 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20206 if test "x$ac_cv_have_decl_ACE_GETACLCNT" = xyes
20212 printf "%s\n" "#define HAVE_DECL_ACE_GETACLCNT $ac_have_decl" >>confdefs.h
20213 if test $ac_have_decl = 1
20215 ac_cv_archive_acl_sunos_nfs4=yes
20217 ac_cv_archive_acl_sonos_nfs4=no
20224 elif test "x$ac_cv_type_acl_t" = "xyes" \
20225 -a "x$ac_cv_type_acl_entry_t" = "xyes" \
20226 -a "x$ac_cv_type_acl_permset_t" = "xyes" \
20227 -a "x$ac_cv_type_acl_tag_t" = "xyes"; then
20228 # POSIX.1e ACL functions
20229 if test ${ac_cv_posix_acl_funcs+y}
20231 printf %s "(cached) " >&6
20234 for ac_func in acl_add_perm acl_clear_perms acl_create_entry acl_delete_def_file acl_free acl_get_entry acl_get_fd acl_get_file acl_get_permset acl_get_qualifier acl_get_tag_type acl_init acl_set_fd acl_set_file acl_set_qualifier acl_set_tag_type
20236 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
20237 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20238 if eval test \"x\$"$as_ac_var"\" = x"yes"
20240 cat >>confdefs.h <<_ACEOF
20241 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
20243 ac_cv_posix_acl_funcs=yes
20245 ac_cv_posix_acl_funcs=no
20253 ac_fn_c_check_func "$LINENO" "acl_get_perm" "ac_cv_func_acl_get_perm"
20254 if test "x$ac_cv_func_acl_get_perm" = xyes
20256 printf "%s\n" "#define HAVE_ACL_GET_PERM 1" >>confdefs.h
20261 if test "x$ac_cv_posix_acl_funcs" = "xyes" \
20262 -a "x$ac_cv_header_acl_libacl_h" = "xyes" \
20263 -a "x$ac_cv_lib_acl_acl_get_file" = "xyes" \
20264 -a "x$ac_cv_func_acl_get_perm"; then
20265 if test ${ac_cv_archive_acl_libacl+y}
20267 printf %s "(cached) " >&6
20269 ac_cv_archive_acl_libacl=yes
20273 printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
20277 ac_fn_c_check_func "$LINENO" "acl_add_flag_np" "ac_cv_func_acl_add_flag_np"
20278 if test "x$ac_cv_func_acl_add_flag_np" = xyes
20280 printf "%s\n" "#define HAVE_ACL_ADD_FLAG_NP 1" >>confdefs.h
20283 ac_fn_c_check_func "$LINENO" "acl_clear_flags_np" "ac_cv_func_acl_clear_flags_np"
20284 if test "x$ac_cv_func_acl_clear_flags_np" = xyes
20286 printf "%s\n" "#define HAVE_ACL_CLEAR_FLAGS_NP 1" >>confdefs.h
20289 ac_fn_c_check_func "$LINENO" "acl_get_brand_np" "ac_cv_func_acl_get_brand_np"
20290 if test "x$ac_cv_func_acl_get_brand_np" = xyes
20292 printf "%s\n" "#define HAVE_ACL_GET_BRAND_NP 1" >>confdefs.h
20295 ac_fn_c_check_func "$LINENO" "acl_get_entry_type_np" "ac_cv_func_acl_get_entry_type_np"
20296 if test "x$ac_cv_func_acl_get_entry_type_np" = xyes
20298 printf "%s\n" "#define HAVE_ACL_GET_ENTRY_TYPE_NP 1" >>confdefs.h
20301 ac_fn_c_check_func "$LINENO" "acl_get_flag_np" "ac_cv_func_acl_get_flag_np"
20302 if test "x$ac_cv_func_acl_get_flag_np" = xyes
20304 printf "%s\n" "#define HAVE_ACL_GET_FLAG_NP 1" >>confdefs.h
20307 ac_fn_c_check_func "$LINENO" "acl_get_flagset_np" "ac_cv_func_acl_get_flagset_np"
20308 if test "x$ac_cv_func_acl_get_flagset_np" = xyes
20310 printf "%s\n" "#define HAVE_ACL_GET_FLAGSET_NP 1" >>confdefs.h
20313 ac_fn_c_check_func "$LINENO" "acl_get_fd_np" "ac_cv_func_acl_get_fd_np"
20314 if test "x$ac_cv_func_acl_get_fd_np" = xyes
20316 printf "%s\n" "#define HAVE_ACL_GET_FD_NP 1" >>confdefs.h
20319 ac_fn_c_check_func "$LINENO" "acl_get_link_np" "ac_cv_func_acl_get_link_np"
20320 if test "x$ac_cv_func_acl_get_link_np" = xyes
20322 printf "%s\n" "#define HAVE_ACL_GET_LINK_NP 1" >>confdefs.h
20325 ac_fn_c_check_func "$LINENO" "acl_get_perm_np" "ac_cv_func_acl_get_perm_np"
20326 if test "x$ac_cv_func_acl_get_perm_np" = xyes
20328 printf "%s\n" "#define HAVE_ACL_GET_PERM_NP 1" >>confdefs.h
20331 ac_fn_c_check_func "$LINENO" "acl_is_trivial_np" "ac_cv_func_acl_is_trivial_np"
20332 if test "x$ac_cv_func_acl_is_trivial_np" = xyes
20334 printf "%s\n" "#define HAVE_ACL_IS_TRIVIAL_NP 1" >>confdefs.h
20337 ac_fn_c_check_func "$LINENO" "acl_set_entry_type_np" "ac_cv_func_acl_set_entry_type_np"
20338 if test "x$ac_cv_func_acl_set_entry_type_np" = xyes
20340 printf "%s\n" "#define HAVE_ACL_SET_ENTRY_TYPE_NP 1" >>confdefs.h
20343 ac_fn_c_check_func "$LINENO" "acl_set_fd_np" "ac_cv_func_acl_set_fd_np"
20344 if test "x$ac_cv_func_acl_set_fd_np" = xyes
20346 printf "%s\n" "#define HAVE_ACL_SET_FD_NP 1" >>confdefs.h
20349 ac_fn_c_check_func "$LINENO" "acl_set_link_np" "ac_cv_func_acl_set_link_np"
20350 if test "x$ac_cv_func_acl_set_link_np" = xyes
20352 printf "%s\n" "#define HAVE_ACL_SET_LINK_NP 1" >>confdefs.h
20357 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
20358 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes
20360 printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h
20363 ac_fn_c_check_func "$LINENO" "mbr_uuid_to_id" "ac_cv_func_mbr_uuid_to_id"
20364 if test "x$ac_cv_func_mbr_uuid_to_id" = xyes
20366 printf "%s\n" "#define HAVE_MBR_UUID_TO_ID 1" >>confdefs.h
20369 ac_fn_c_check_func "$LINENO" "mbr_gid_to_uuid" "ac_cv_func_mbr_gid_to_uuid"
20370 if test "x$ac_cv_func_mbr_gid_to_uuid" = xyes
20372 printf "%s\n" "#define HAVE_MBR_GID_TO_UUID 1" >>confdefs.h
20377 ac_fn_check_decl "$LINENO" "ACL_TYPE_EXTENDED" "ac_cv_have_decl_ACL_TYPE_EXTENDED" "#include <sys/types.h>
20378 #include <sys/acl.h>
20379 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20380 if test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = xyes
20386 printf "%s\n" "#define HAVE_DECL_ACL_TYPE_EXTENDED $ac_have_decl" >>confdefs.h
20387 ac_fn_check_decl "$LINENO" "ACL_TYPE_NFS4" "ac_cv_have_decl_ACL_TYPE_NFS4" "#include <sys/types.h>
20388 #include <sys/acl.h>
20389 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20390 if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = xyes
20396 printf "%s\n" "#define HAVE_DECL_ACL_TYPE_NFS4 $ac_have_decl" >>confdefs.h
20397 ac_fn_check_decl "$LINENO" "ACL_USER" "ac_cv_have_decl_ACL_USER" "#include <sys/types.h>
20398 #include <sys/acl.h>
20399 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20400 if test "x$ac_cv_have_decl_ACL_USER" = xyes
20406 printf "%s\n" "#define HAVE_DECL_ACL_USER $ac_have_decl" >>confdefs.h
20407 ac_fn_check_decl "$LINENO" "ACL_SYNCHRONIZE" "ac_cv_have_decl_ACL_SYNCHRONIZE" "#include <sys/types.h>
20408 #include <sys/acl.h>
20409 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20410 if test "x$ac_cv_have_decl_ACL_SYNCHRONIZE" = xyes
20416 printf "%s\n" "#define HAVE_DECL_ACL_SYNCHRONIZE $ac_have_decl" >>confdefs.h
20418 if test "x$ac_cv_posix_acl_funcs" = "xyes" \
20419 -a "x$ac_cv_func_acl_get_fd_np" = "xyes" \
20420 -a "x$ac_cv_func_acl_get_perm" != "xyes" \
20421 -a "x$ac_cv_func_acl_get_perm_np" = "xyes" \
20422 -a "x$ac_cv_func_acl_set_fd_np" = "xyes"; then
20423 if test "x$ac_cv_have_decl_ACL_USER" = "xyes"; then
20424 if test ${ac_cv_archive_acl_freebsd+y}
20426 printf %s "(cached) " >&6
20428 ac_cv_archive_acl_freebsd=yes
20431 if test "x$ac_cv_have_decl_ACL_TYPE_NFS4" = "xyes" \
20432 -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
20433 -a "x$ac_cv_func_acl_get_brand_np" = "xyes" \
20434 -a "x$ac_cv_func_acl_get_entry_type_np" = "xyes" \
20435 -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
20436 -a "x$ac_cv_func_acl_set_entry_type_np" = "xyes"; then
20437 if test ${ac_cv_archive_acl_freebsd_nfs4+y}
20439 printf %s "(cached) " >&6
20441 ac_cv_archive_acl_freebsd_nfs4=yes
20445 elif test "x$ac_cv_have_decl_ACL_TYPE_EXTENDED" = "xyes" \
20446 -a "x$ac_cv_func_acl_add_flag_np" = "xyes" \
20447 -a "x$ac_cv_func_acl_get_flagset_np" = "xyes" \
20448 -a "x$ac_cv_func_acl_get_link_np" = "xyes" \
20449 -a "x$ac_cv_func_acl_set_link_np" = "xyes" \
20450 -a "x$ac_cv_func_mbr_uid_to_uuid" = "xyes" \
20451 -a "x$ac_cv_func_mbr_uuid_to_id" = "xyes" \
20452 -a "x$ac_cv_func_mbr_gid_to_uuid" = "xyes"; then
20453 if test ${ac_cv_archive_acl_darwin+y}
20455 printf %s "(cached) " >&6
20457 ac_cv_archive_acl_darwin=yes
20464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ACL support" >&5
20465 printf %s "checking for ACL support... " >&6; }
20466 if test "x$ac_cv_archive_acl_libacl" = "xyes" \
20467 -a "x$ac_cv_archive_acl_librichacl" = "xyes"; then
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e) + librichacl (NFSv4)" >&5
20469 printf "%s\n" "libacl (POSIX.1e) + librichacl (NFSv4)" >&6; }
20471 printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
20474 printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
20476 elif test "x$ac_cv_archive_acl_libacl" = "xyes"; then
20477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libacl (POSIX.1e)" >&5
20478 printf "%s\n" "libacl (POSIX.1e)" >&6; }
20480 printf "%s\n" "#define ARCHIVE_ACL_LIBACL 1" >>confdefs.h
20482 elif test "x$ac_cv_archive_acl_librichacl" = "xyes"; then
20483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: librichacl (NFSv4)" >&5
20484 printf "%s\n" "librichacl (NFSv4)" >&6; }
20486 printf "%s\n" "#define ARCHIVE_ACL_LIBRICHACL 1" >>confdefs.h
20488 elif test "x$ac_cv_archive_acl_darwin" = "xyes"; then
20490 printf "%s\n" "#define ARCHIVE_ACL_DARWIN 1" >>confdefs.h
20492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Darwin (limited NFSv4)" >&5
20493 printf "%s\n" "Darwin (limited NFSv4)" >&6; }
20494 elif test "x$ac_cv_archive_acl_sunos" = "xyes"; then
20496 printf "%s\n" "#define ARCHIVE_ACL_SUNOS 1" >>confdefs.h
20498 if test "x$ac_cv_archive_acl_sunos_nfs4" = "xyes"; then
20500 printf "%s\n" "#define ARCHIVE_ACL_SUNOS_NFS4 1" >>confdefs.h
20502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e and NFSv4)" >&5
20503 printf "%s\n" "Solaris (POSIX.1e and NFSv4)" >&6; }
20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Solaris (POSIX.1e)" >&5
20506 printf "%s\n" "Solaris (POSIX.1e)" >&6; }
20508 elif test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
20510 printf "%s\n" "#define ARCHIVE_ACL_FREEBSD 1" >>confdefs.h
20512 if test "x$ac_cv_archive_acl_freebsd_nfs4" = "xyes"; then
20514 printf "%s\n" "#define ARCHIVE_ACL_FREEBSD_NFS4 1" >>confdefs.h
20516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e and NFSv4)" >&5
20517 printf "%s\n" "FreeBSD (POSIX.1e and NFSv4)" >&6; }
20519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: FreeBSD (POSIX.1e)" >&5
20520 printf "%s\n" "FreeBSD (POSIX.1e)" >&6; }
20523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
20524 printf "%s\n" "none" >&6; }
20529 if test "x$ac_cv_archive_acl_libacl" = "xyes" \
20530 -o "x$ac_cv_archive_acl_librichacl" = "xyes"; then
20531 INC_LINUX_ACL_TRUE=
20532 INC_LINUX_ACL_FALSE='#'
20534 INC_LINUX_ACL_TRUE='#'
20535 INC_LINUX_ACL_FALSE=
20538 if test "x$ac_cv_archive_acl_sunos" = "xyes"; then
20539 INC_SUNOS_ACL_TRUE=
20540 INC_SUNOS_ACL_FALSE='#'
20542 INC_SUNOS_ACL_TRUE='#'
20543 INC_SUNOS_ACL_FALSE=
20546 if test "x$ac_cv_archive_acl_darwin" = "xyes"; then
20547 INC_DARWIN_ACL_TRUE=
20548 INC_DARWIN_ACL_FALSE='#'
20550 INC_DARWIN_ACL_TRUE='#'
20551 INC_DARWIN_ACL_FALSE=
20554 if test "x$ac_cv_archive_acl_freebsd" = "xyes"; then
20555 INC_FREEBSD_ACL_TRUE=
20556 INC_FREEBSD_ACL_FALSE='#'
20558 INC_FREEBSD_ACL_TRUE='#'
20559 INC_FREEBSD_ACL_FALSE=
20563 # Additional requirements
20564 # Check whether --enable-largefile was given.
20565 if test ${enable_largefile+y}
20567 enableval=$enable_largefile;
20570 if test "$enable_largefile" != no; then
20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
20573 printf %s "checking for special C compiler options needed for large files... " >&6; }
20574 if test ${ac_cv_sys_largefile_CC+y}
20576 printf %s "(cached) " >&6
20578 ac_cv_sys_largefile_CC=no
20579 if test "$GCC" != yes; then
20582 # IRIX 6.2 and later do not support large files by default,
20583 # so use the C compiler's -n32 option if that helps.
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20586 #include <sys/types.h>
20587 /* Check that off_t can represent 2**63 - 1 correctly.
20588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20589 since some C++ compilers masquerading as C compilers
20590 incorrectly reject 9223372036854775807. */
20591 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20593 && LARGE_OFF_T % 2147483647 == 1)
20603 if ac_fn_c_try_compile "$LINENO"
20607 rm -f core conftest.err conftest.$ac_objext conftest.beam
20609 if ac_fn_c_try_compile "$LINENO"
20611 ac_cv_sys_largefile_CC=' -n32'; break
20613 rm -f core conftest.err conftest.$ac_objext conftest.beam
20617 rm -f conftest.$ac_ext
20620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
20621 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
20622 if test "$ac_cv_sys_largefile_CC" != no; then
20623 CC=$CC$ac_cv_sys_largefile_CC
20626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20627 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
20628 if test ${ac_cv_sys_file_offset_bits+y}
20630 printf %s "(cached) " >&6
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20635 #include <sys/types.h>
20636 /* Check that off_t can represent 2**63 - 1 correctly.
20637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20638 since some C++ compilers masquerading as C compilers
20639 incorrectly reject 9223372036854775807. */
20640 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20642 && LARGE_OFF_T % 2147483647 == 1)
20652 if ac_fn_c_try_compile "$LINENO"
20654 ac_cv_sys_file_offset_bits=no; break
20656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h. */
20659 #define _FILE_OFFSET_BITS 64
20660 #include <sys/types.h>
20661 /* Check that off_t can represent 2**63 - 1 correctly.
20662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20663 since some C++ compilers masquerading as C compilers
20664 incorrectly reject 9223372036854775807. */
20665 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20667 && LARGE_OFF_T % 2147483647 == 1)
20677 if ac_fn_c_try_compile "$LINENO"
20679 ac_cv_sys_file_offset_bits=64; break
20681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20682 ac_cv_sys_file_offset_bits=unknown
20686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
20687 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
20688 case $ac_cv_sys_file_offset_bits in #(
20691 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
20695 if test $ac_cv_sys_file_offset_bits = unknown; then
20696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
20697 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
20698 if test ${ac_cv_sys_large_files+y}
20700 printf %s "(cached) " >&6
20703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20704 /* end confdefs.h. */
20705 #include <sys/types.h>
20706 /* Check that off_t can represent 2**63 - 1 correctly.
20707 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20708 since some C++ compilers masquerading as C compilers
20709 incorrectly reject 9223372036854775807. */
20710 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20711 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20712 && LARGE_OFF_T % 2147483647 == 1)
20722 if ac_fn_c_try_compile "$LINENO"
20724 ac_cv_sys_large_files=no; break
20726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20728 /* end confdefs.h. */
20729 #define _LARGE_FILES 1
20730 #include <sys/types.h>
20731 /* Check that off_t can represent 2**63 - 1 correctly.
20732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
20733 since some C++ compilers masquerading as C compilers
20734 incorrectly reject 9223372036854775807. */
20735 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
20736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
20737 && LARGE_OFF_T % 2147483647 == 1)
20747 if ac_fn_c_try_compile "$LINENO"
20749 ac_cv_sys_large_files=1; break
20751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20752 ac_cv_sys_large_files=unknown
20756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
20757 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
20758 case $ac_cv_sys_large_files in #(
20761 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
20774 *mingw* | *cygwin* | *msys*)
20778 if test "$found_MD5" != yes; then
20779 saved_CPPFLAGS="$CPPFLAGS"
20780 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20781 touch "check_crypto_md.h"
20782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBC" >&5
20783 printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBC... " >&6; }
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785 /* end confdefs.h. */
20787 #define ARCHIVE_MD5_COMPILE_TEST
20788 #define ARCHIVE_CRYPTO_MD5_LIBC
20789 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20791 $(cat "$srcdir/libarchive/archive_digest.c")
20794 main(int argc, char **argv)
20796 archive_md5_ctx ctx;
20797 archive_md5_init(&ctx);
20798 archive_md5_update(&ctx, *argv, argc);
20799 archive_md5_final(&ctx, NULL);
20804 if ac_fn_c_try_link "$LINENO"
20806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20807 printf "%s\n" "yes" >&6; }
20811 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBC 1" >>confdefs.h
20815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20816 printf "%s\n" "no" >&6; }
20818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20819 conftest$ac_exeext conftest.$ac_ext
20820 CPPFLAGS="$saved_CPPFLAGS"
20821 rm "check_crypto_md.h"
20825 if test "$found_MD5" != yes; then
20826 saved_CPPFLAGS="$CPPFLAGS"
20827 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20828 touch "check_crypto_md.h"
20829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM" >&5
20830 printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM... " >&6; }
20831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20832 /* end confdefs.h. */
20834 #define ARCHIVE_MD5_COMPILE_TEST
20835 #define ARCHIVE_CRYPTO_MD5_LIBSYSTEM
20836 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20838 $(cat "$srcdir/libarchive/archive_digest.c")
20841 main(int argc, char **argv)
20843 archive_md5_ctx ctx;
20844 archive_md5_init(&ctx);
20845 archive_md5_update(&ctx, *argv, argc);
20846 archive_md5_final(&ctx, NULL);
20851 if ac_fn_c_try_link "$LINENO"
20853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20854 printf "%s\n" "yes" >&6; }
20856 found_LIBSYSTEM=yes
20858 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBSYSTEM 1" >>confdefs.h
20862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863 printf "%s\n" "no" >&6; }
20865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20866 conftest$ac_exeext conftest.$ac_ext
20867 CPPFLAGS="$saved_CPPFLAGS"
20868 rm "check_crypto_md.h"
20872 if test "$found_RMD160" != yes; then
20873 saved_CPPFLAGS="$CPPFLAGS"
20874 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20875 touch "check_crypto_md.h"
20876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBC" >&5
20877 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_LIBC... " >&6; }
20878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879 /* end confdefs.h. */
20881 #define ARCHIVE_RMD160_COMPILE_TEST
20882 #define ARCHIVE_CRYPTO_RMD160_LIBC
20883 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20885 $(cat "$srcdir/libarchive/archive_digest.c")
20888 main(int argc, char **argv)
20890 archive_rmd160_ctx ctx;
20891 archive_rmd160_init(&ctx);
20892 archive_rmd160_update(&ctx, *argv, argc);
20893 archive_rmd160_final(&ctx, NULL);
20898 if ac_fn_c_try_link "$LINENO"
20900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20901 printf "%s\n" "yes" >&6; }
20905 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_LIBC 1" >>confdefs.h
20909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20910 printf "%s\n" "no" >&6; }
20912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20913 conftest$ac_exeext conftest.$ac_ext
20914 CPPFLAGS="$saved_CPPFLAGS"
20915 rm "check_crypto_md.h"
20919 if test "$found_SHA1" != yes; then
20920 saved_CPPFLAGS="$CPPFLAGS"
20921 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20922 touch "check_crypto_md.h"
20923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBC" >&5
20924 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBC... " >&6; }
20925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h. */
20928 #define ARCHIVE_SHA1_COMPILE_TEST
20929 #define ARCHIVE_CRYPTO_SHA1_LIBC
20930 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20932 $(cat "$srcdir/libarchive/archive_digest.c")
20935 main(int argc, char **argv)
20937 archive_sha1_ctx ctx;
20938 archive_sha1_init(&ctx);
20939 archive_sha1_update(&ctx, *argv, argc);
20940 archive_sha1_final(&ctx, NULL);
20945 if ac_fn_c_try_link "$LINENO"
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20948 printf "%s\n" "yes" >&6; }
20952 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBC 1" >>confdefs.h
20956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20957 printf "%s\n" "no" >&6; }
20959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20960 conftest$ac_exeext conftest.$ac_ext
20961 CPPFLAGS="$saved_CPPFLAGS"
20962 rm "check_crypto_md.h"
20966 if test "$found_SHA1" != yes; then
20967 saved_CPPFLAGS="$CPPFLAGS"
20968 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
20969 touch "check_crypto_md.h"
20970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM" >&5
20971 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM... " >&6; }
20972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20975 #define ARCHIVE_SHA1_COMPILE_TEST
20976 #define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
20977 #define PLATFORM_CONFIG_H "check_crypto_md.h"
20979 $(cat "$srcdir/libarchive/archive_digest.c")
20982 main(int argc, char **argv)
20984 archive_sha1_ctx ctx;
20985 archive_sha1_init(&ctx);
20986 archive_sha1_update(&ctx, *argv, argc);
20987 archive_sha1_final(&ctx, NULL);
20992 if ac_fn_c_try_link "$LINENO"
20994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20995 printf "%s\n" "yes" >&6; }
20997 found_LIBSYSTEM=yes
20999 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBSYSTEM 1" >>confdefs.h
21003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21004 printf "%s\n" "no" >&6; }
21006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21007 conftest$ac_exeext conftest.$ac_ext
21008 CPPFLAGS="$saved_CPPFLAGS"
21009 rm "check_crypto_md.h"
21013 if test "$found_SHA256" != yes; then
21014 saved_CPPFLAGS="$CPPFLAGS"
21015 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21016 touch "check_crypto_md.h"
21017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC" >&5
21018 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC... " >&6; }
21019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21022 #define ARCHIVE_SHA256_COMPILE_TEST
21023 #define ARCHIVE_CRYPTO_SHA256_LIBC
21024 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21026 $(cat "$srcdir/libarchive/archive_digest.c")
21029 main(int argc, char **argv)
21031 archive_sha256_ctx ctx;
21032 archive_sha256_init(&ctx);
21033 archive_sha256_update(&ctx, *argv, argc);
21034 archive_sha256_final(&ctx, NULL);
21039 if ac_fn_c_try_link "$LINENO"
21041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21042 printf "%s\n" "yes" >&6; }
21046 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC 1" >>confdefs.h
21050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051 printf "%s\n" "no" >&6; }
21053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21054 conftest$ac_exeext conftest.$ac_ext
21055 CPPFLAGS="$saved_CPPFLAGS"
21056 rm "check_crypto_md.h"
21060 if test "$found_SHA256" != yes; then
21061 saved_CPPFLAGS="$CPPFLAGS"
21062 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21063 touch "check_crypto_md.h"
21064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC2" >&5
21065 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC2... " >&6; }
21066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21067 /* end confdefs.h. */
21069 #define ARCHIVE_SHA256_COMPILE_TEST
21070 #define ARCHIVE_CRYPTO_SHA256_LIBC2
21071 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21073 $(cat "$srcdir/libarchive/archive_digest.c")
21076 main(int argc, char **argv)
21078 archive_sha256_ctx ctx;
21079 archive_sha256_init(&ctx);
21080 archive_sha256_update(&ctx, *argv, argc);
21081 archive_sha256_final(&ctx, NULL);
21086 if ac_fn_c_try_link "$LINENO"
21088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21089 printf "%s\n" "yes" >&6; }
21093 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC2 1" >>confdefs.h
21097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21098 printf "%s\n" "no" >&6; }
21100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21101 conftest$ac_exeext conftest.$ac_ext
21102 CPPFLAGS="$saved_CPPFLAGS"
21103 rm "check_crypto_md.h"
21107 if test "$found_SHA256" != yes; then
21108 saved_CPPFLAGS="$CPPFLAGS"
21109 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21110 touch "check_crypto_md.h"
21111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBC3" >&5
21112 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBC3... " >&6; }
21113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21114 /* end confdefs.h. */
21116 #define ARCHIVE_SHA256_COMPILE_TEST
21117 #define ARCHIVE_CRYPTO_SHA256_LIBC3
21118 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21120 $(cat "$srcdir/libarchive/archive_digest.c")
21123 main(int argc, char **argv)
21125 archive_sha256_ctx ctx;
21126 archive_sha256_init(&ctx);
21127 archive_sha256_update(&ctx, *argv, argc);
21128 archive_sha256_final(&ctx, NULL);
21133 if ac_fn_c_try_link "$LINENO"
21135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21136 printf "%s\n" "yes" >&6; }
21140 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBC3 1" >>confdefs.h
21144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21145 printf "%s\n" "no" >&6; }
21147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21148 conftest$ac_exeext conftest.$ac_ext
21149 CPPFLAGS="$saved_CPPFLAGS"
21150 rm "check_crypto_md.h"
21154 if test "$found_SHA256" != yes; then
21155 saved_CPPFLAGS="$CPPFLAGS"
21156 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21157 touch "check_crypto_md.h"
21158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM" >&5
21159 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM... " >&6; }
21160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21161 /* end confdefs.h. */
21163 #define ARCHIVE_SHA256_COMPILE_TEST
21164 #define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
21165 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21167 $(cat "$srcdir/libarchive/archive_digest.c")
21170 main(int argc, char **argv)
21172 archive_sha256_ctx ctx;
21173 archive_sha256_init(&ctx);
21174 archive_sha256_update(&ctx, *argv, argc);
21175 archive_sha256_final(&ctx, NULL);
21180 if ac_fn_c_try_link "$LINENO"
21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21183 printf "%s\n" "yes" >&6; }
21185 found_LIBSYSTEM=yes
21187 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBSYSTEM 1" >>confdefs.h
21191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21192 printf "%s\n" "no" >&6; }
21194 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21195 conftest$ac_exeext conftest.$ac_ext
21196 CPPFLAGS="$saved_CPPFLAGS"
21197 rm "check_crypto_md.h"
21201 if test "$found_SHA384" != yes; then
21202 saved_CPPFLAGS="$CPPFLAGS"
21203 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21204 touch "check_crypto_md.h"
21205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC" >&5
21206 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC... " >&6; }
21207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21208 /* end confdefs.h. */
21210 #define ARCHIVE_SHA384_COMPILE_TEST
21211 #define ARCHIVE_CRYPTO_SHA384_LIBC
21212 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21214 $(cat "$srcdir/libarchive/archive_digest.c")
21217 main(int argc, char **argv)
21219 archive_sha384_ctx ctx;
21220 archive_sha384_init(&ctx);
21221 archive_sha384_update(&ctx, *argv, argc);
21222 archive_sha384_final(&ctx, NULL);
21227 if ac_fn_c_try_link "$LINENO"
21229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21230 printf "%s\n" "yes" >&6; }
21234 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC 1" >>confdefs.h
21238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21239 printf "%s\n" "no" >&6; }
21241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21242 conftest$ac_exeext conftest.$ac_ext
21243 CPPFLAGS="$saved_CPPFLAGS"
21244 rm "check_crypto_md.h"
21248 if test "$found_SHA384" != yes; then
21249 saved_CPPFLAGS="$CPPFLAGS"
21250 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21251 touch "check_crypto_md.h"
21252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC2" >&5
21253 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC2... " >&6; }
21254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255 /* end confdefs.h. */
21257 #define ARCHIVE_SHA384_COMPILE_TEST
21258 #define ARCHIVE_CRYPTO_SHA384_LIBC2
21259 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21261 $(cat "$srcdir/libarchive/archive_digest.c")
21264 main(int argc, char **argv)
21266 archive_sha384_ctx ctx;
21267 archive_sha384_init(&ctx);
21268 archive_sha384_update(&ctx, *argv, argc);
21269 archive_sha384_final(&ctx, NULL);
21274 if ac_fn_c_try_link "$LINENO"
21276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21277 printf "%s\n" "yes" >&6; }
21281 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC2 1" >>confdefs.h
21285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21286 printf "%s\n" "no" >&6; }
21288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21289 conftest$ac_exeext conftest.$ac_ext
21290 CPPFLAGS="$saved_CPPFLAGS"
21291 rm "check_crypto_md.h"
21295 if test "$found_SHA384" != yes; then
21296 saved_CPPFLAGS="$CPPFLAGS"
21297 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21298 touch "check_crypto_md.h"
21299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBC3" >&5
21300 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBC3... " >&6; }
21301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21302 /* end confdefs.h. */
21304 #define ARCHIVE_SHA384_COMPILE_TEST
21305 #define ARCHIVE_CRYPTO_SHA384_LIBC3
21306 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21308 $(cat "$srcdir/libarchive/archive_digest.c")
21311 main(int argc, char **argv)
21313 archive_sha384_ctx ctx;
21314 archive_sha384_init(&ctx);
21315 archive_sha384_update(&ctx, *argv, argc);
21316 archive_sha384_final(&ctx, NULL);
21321 if ac_fn_c_try_link "$LINENO"
21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21324 printf "%s\n" "yes" >&6; }
21328 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBC3 1" >>confdefs.h
21332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333 printf "%s\n" "no" >&6; }
21335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21336 conftest$ac_exeext conftest.$ac_ext
21337 CPPFLAGS="$saved_CPPFLAGS"
21338 rm "check_crypto_md.h"
21342 if test "$found_SHA384" != yes; then
21343 saved_CPPFLAGS="$CPPFLAGS"
21344 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21345 touch "check_crypto_md.h"
21346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM" >&5
21347 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM... " >&6; }
21348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349 /* end confdefs.h. */
21351 #define ARCHIVE_SHA384_COMPILE_TEST
21352 #define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
21353 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21355 $(cat "$srcdir/libarchive/archive_digest.c")
21358 main(int argc, char **argv)
21360 archive_sha384_ctx ctx;
21361 archive_sha384_init(&ctx);
21362 archive_sha384_update(&ctx, *argv, argc);
21363 archive_sha384_final(&ctx, NULL);
21368 if ac_fn_c_try_link "$LINENO"
21370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21371 printf "%s\n" "yes" >&6; }
21373 found_LIBSYSTEM=yes
21375 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_LIBSYSTEM 1" >>confdefs.h
21379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21380 printf "%s\n" "no" >&6; }
21382 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21383 conftest$ac_exeext conftest.$ac_ext
21384 CPPFLAGS="$saved_CPPFLAGS"
21385 rm "check_crypto_md.h"
21389 if test "$found_SHA512" != yes; then
21390 saved_CPPFLAGS="$CPPFLAGS"
21391 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21392 touch "check_crypto_md.h"
21393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC" >&5
21394 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC... " >&6; }
21395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21396 /* end confdefs.h. */
21398 #define ARCHIVE_SHA512_COMPILE_TEST
21399 #define ARCHIVE_CRYPTO_SHA512_LIBC
21400 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21402 $(cat "$srcdir/libarchive/archive_digest.c")
21405 main(int argc, char **argv)
21407 archive_sha512_ctx ctx;
21408 archive_sha512_init(&ctx);
21409 archive_sha512_update(&ctx, *argv, argc);
21410 archive_sha512_final(&ctx, NULL);
21415 if ac_fn_c_try_link "$LINENO"
21417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21418 printf "%s\n" "yes" >&6; }
21422 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC 1" >>confdefs.h
21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21427 printf "%s\n" "no" >&6; }
21429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21430 conftest$ac_exeext conftest.$ac_ext
21431 CPPFLAGS="$saved_CPPFLAGS"
21432 rm "check_crypto_md.h"
21436 if test "$found_SHA512" != yes; then
21437 saved_CPPFLAGS="$CPPFLAGS"
21438 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21439 touch "check_crypto_md.h"
21440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC2" >&5
21441 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC2... " >&6; }
21442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443 /* end confdefs.h. */
21445 #define ARCHIVE_SHA512_COMPILE_TEST
21446 #define ARCHIVE_CRYPTO_SHA512_LIBC2
21447 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21449 $(cat "$srcdir/libarchive/archive_digest.c")
21452 main(int argc, char **argv)
21454 archive_sha512_ctx ctx;
21455 archive_sha512_init(&ctx);
21456 archive_sha512_update(&ctx, *argv, argc);
21457 archive_sha512_final(&ctx, NULL);
21462 if ac_fn_c_try_link "$LINENO"
21464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21465 printf "%s\n" "yes" >&6; }
21469 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC2 1" >>confdefs.h
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21474 printf "%s\n" "no" >&6; }
21476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21477 conftest$ac_exeext conftest.$ac_ext
21478 CPPFLAGS="$saved_CPPFLAGS"
21479 rm "check_crypto_md.h"
21483 if test "$found_SHA512" != yes; then
21484 saved_CPPFLAGS="$CPPFLAGS"
21485 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21486 touch "check_crypto_md.h"
21487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBC3" >&5
21488 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBC3... " >&6; }
21489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21490 /* end confdefs.h. */
21492 #define ARCHIVE_SHA512_COMPILE_TEST
21493 #define ARCHIVE_CRYPTO_SHA512_LIBC3
21494 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21496 $(cat "$srcdir/libarchive/archive_digest.c")
21499 main(int argc, char **argv)
21501 archive_sha512_ctx ctx;
21502 archive_sha512_init(&ctx);
21503 archive_sha512_update(&ctx, *argv, argc);
21504 archive_sha512_final(&ctx, NULL);
21509 if ac_fn_c_try_link "$LINENO"
21511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21512 printf "%s\n" "yes" >&6; }
21516 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBC3 1" >>confdefs.h
21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21521 printf "%s\n" "no" >&6; }
21523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21524 conftest$ac_exeext conftest.$ac_ext
21525 CPPFLAGS="$saved_CPPFLAGS"
21526 rm "check_crypto_md.h"
21530 if test "$found_SHA512" != yes; then
21531 saved_CPPFLAGS="$CPPFLAGS"
21532 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21533 touch "check_crypto_md.h"
21534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM" >&5
21535 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM... " >&6; }
21536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h. */
21539 #define ARCHIVE_SHA512_COMPILE_TEST
21540 #define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
21541 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21543 $(cat "$srcdir/libarchive/archive_digest.c")
21546 main(int argc, char **argv)
21548 archive_sha512_ctx ctx;
21549 archive_sha512_init(&ctx);
21550 archive_sha512_update(&ctx, *argv, argc);
21551 archive_sha512_final(&ctx, NULL);
21556 if ac_fn_c_try_link "$LINENO"
21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 printf "%s\n" "yes" >&6; }
21561 found_LIBSYSTEM=yes
21563 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBSYSTEM 1" >>confdefs.h
21567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21568 printf "%s\n" "no" >&6; }
21570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21571 conftest$ac_exeext conftest.$ac_ext
21572 CPPFLAGS="$saved_CPPFLAGS"
21573 rm "check_crypto_md.h"
21579 if test "x$with_cng" != "xno"; then
21580 for ac_header in bcrypt.h
21582 ac_fn_c_check_header_compile "$LINENO" "bcrypt.h" "ac_cv_header_bcrypt_h" "#ifdef HAVE_WINDOWS_H
21583 # include <windows.h>
21587 if test "x$ac_cv_header_bcrypt_h" = xyes
21589 printf "%s\n" "#define HAVE_BCRYPT_H 1" >>confdefs.h
21591 LIBS="$LIBS -lbcrypt"
21598 if test "x$with_mbedtls" = "xyes"; then
21599 ac_fn_c_check_header_compile "$LINENO" "mbedtls/aes.h" "ac_cv_header_mbedtls_aes_h" "$ac_includes_default"
21600 if test "x$ac_cv_header_mbedtls_aes_h" = xyes
21602 printf "%s\n" "#define HAVE_MBEDTLS_AES_H 1" >>confdefs.h
21605 ac_fn_c_check_header_compile "$LINENO" "mbedtls/md.h" "ac_cv_header_mbedtls_md_h" "$ac_includes_default"
21606 if test "x$ac_cv_header_mbedtls_md_h" = xyes
21608 printf "%s\n" "#define HAVE_MBEDTLS_MD_H 1" >>confdefs.h
21611 ac_fn_c_check_header_compile "$LINENO" "mbedtls/pkcs5.h" "ac_cv_header_mbedtls_pkcs5_h" "$ac_includes_default"
21612 if test "x$ac_cv_header_mbedtls_pkcs5_h" = xyes
21614 printf "%s\n" "#define HAVE_MBEDTLS_PKCS5_H 1" >>confdefs.h
21619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_sha1_init in -lmbedcrypto" >&5
21620 printf %s "checking for mbedtls_sha1_init in -lmbedcrypto... " >&6; }
21621 if test ${ac_cv_lib_mbedcrypto_mbedtls_sha1_init+y}
21623 printf %s "(cached) " >&6
21625 ac_check_lib_save_LIBS=$LIBS
21626 LIBS="-lmbedcrypto $LIBS"
21627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21628 /* end confdefs.h. */
21630 /* Override any GCC internal prototype to avoid an error.
21631 Use char because int might match the return type of a GCC
21632 builtin and then its argument prototype would still apply. */
21633 char mbedtls_sha1_init ();
21637 return mbedtls_sha1_init ();
21642 if ac_fn_c_try_link "$LINENO"
21644 ac_cv_lib_mbedcrypto_mbedtls_sha1_init=yes
21646 ac_cv_lib_mbedcrypto_mbedtls_sha1_init=no
21648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21649 conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&5
21653 printf "%s\n" "$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" >&6; }
21654 if test "x$ac_cv_lib_mbedcrypto_mbedtls_sha1_init" = xyes
21656 printf "%s\n" "#define HAVE_LIBMBEDCRYPTO 1" >>confdefs.h
21658 LIBS="-lmbedcrypto $LIBS"
21663 if test "$found_MD5" != yes; then
21664 saved_CPPFLAGS="$CPPFLAGS"
21665 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21666 touch "check_crypto_md.h"
21667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS" >&5
21668 printf %s "checking support for ARCHIVE_CRYPTO_MD5_MBEDTLS... " >&6; }
21669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670 /* end confdefs.h. */
21672 #define ARCHIVE_MD5_COMPILE_TEST
21673 #define ARCHIVE_CRYPTO_MD5_MBEDTLS
21674 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21676 $(cat "$srcdir/libarchive/archive_digest.c")
21679 main(int argc, char **argv)
21681 archive_md5_ctx ctx;
21682 archive_md5_init(&ctx);
21683 archive_md5_update(&ctx, *argv, argc);
21684 archive_md5_final(&ctx, NULL);
21689 if ac_fn_c_try_link "$LINENO"
21691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21692 printf "%s\n" "yes" >&6; }
21696 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_MBEDTLS 1" >>confdefs.h
21700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701 printf "%s\n" "no" >&6; }
21703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21704 conftest$ac_exeext conftest.$ac_ext
21705 CPPFLAGS="$saved_CPPFLAGS"
21706 rm "check_crypto_md.h"
21710 if test "$found_RMD160" != yes; then
21711 saved_CPPFLAGS="$CPPFLAGS"
21712 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21713 touch "check_crypto_md.h"
21714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS" >&5
21715 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_MBEDTLS... " >&6; }
21716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717 /* end confdefs.h. */
21719 #define ARCHIVE_RMD160_COMPILE_TEST
21720 #define ARCHIVE_CRYPTO_RMD160_MBEDTLS
21721 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21723 $(cat "$srcdir/libarchive/archive_digest.c")
21726 main(int argc, char **argv)
21728 archive_rmd160_ctx ctx;
21729 archive_rmd160_init(&ctx);
21730 archive_rmd160_update(&ctx, *argv, argc);
21731 archive_rmd160_final(&ctx, NULL);
21736 if ac_fn_c_try_link "$LINENO"
21738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21739 printf "%s\n" "yes" >&6; }
21743 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_MBEDTLS 1" >>confdefs.h
21747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21748 printf "%s\n" "no" >&6; }
21750 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21751 conftest$ac_exeext conftest.$ac_ext
21752 CPPFLAGS="$saved_CPPFLAGS"
21753 rm "check_crypto_md.h"
21757 if test "$found_SHA1" != yes; then
21758 saved_CPPFLAGS="$CPPFLAGS"
21759 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21760 touch "check_crypto_md.h"
21761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS" >&5
21762 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_MBEDTLS... " >&6; }
21763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21764 /* end confdefs.h. */
21766 #define ARCHIVE_SHA1_COMPILE_TEST
21767 #define ARCHIVE_CRYPTO_SHA1_MBEDTLS
21768 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21770 $(cat "$srcdir/libarchive/archive_digest.c")
21773 main(int argc, char **argv)
21775 archive_sha1_ctx ctx;
21776 archive_sha1_init(&ctx);
21777 archive_sha1_update(&ctx, *argv, argc);
21778 archive_sha1_final(&ctx, NULL);
21783 if ac_fn_c_try_link "$LINENO"
21785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21786 printf "%s\n" "yes" >&6; }
21790 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_MBEDTLS 1" >>confdefs.h
21794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 printf "%s\n" "no" >&6; }
21797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21798 conftest$ac_exeext conftest.$ac_ext
21799 CPPFLAGS="$saved_CPPFLAGS"
21800 rm "check_crypto_md.h"
21804 if test "$found_SHA256" != yes; then
21805 saved_CPPFLAGS="$CPPFLAGS"
21806 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21807 touch "check_crypto_md.h"
21808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS" >&5
21809 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_MBEDTLS... " >&6; }
21810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21811 /* end confdefs.h. */
21813 #define ARCHIVE_SHA256_COMPILE_TEST
21814 #define ARCHIVE_CRYPTO_SHA256_MBEDTLS
21815 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21817 $(cat "$srcdir/libarchive/archive_digest.c")
21820 main(int argc, char **argv)
21822 archive_sha256_ctx ctx;
21823 archive_sha256_init(&ctx);
21824 archive_sha256_update(&ctx, *argv, argc);
21825 archive_sha256_final(&ctx, NULL);
21830 if ac_fn_c_try_link "$LINENO"
21832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21833 printf "%s\n" "yes" >&6; }
21837 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_MBEDTLS 1" >>confdefs.h
21841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21842 printf "%s\n" "no" >&6; }
21844 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21845 conftest$ac_exeext conftest.$ac_ext
21846 CPPFLAGS="$saved_CPPFLAGS"
21847 rm "check_crypto_md.h"
21851 if test "$found_SHA384" != yes; then
21852 saved_CPPFLAGS="$CPPFLAGS"
21853 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21854 touch "check_crypto_md.h"
21855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS" >&5
21856 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_MBEDTLS... " >&6; }
21857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h. */
21860 #define ARCHIVE_SHA384_COMPILE_TEST
21861 #define ARCHIVE_CRYPTO_SHA384_MBEDTLS
21862 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21864 $(cat "$srcdir/libarchive/archive_digest.c")
21867 main(int argc, char **argv)
21869 archive_sha384_ctx ctx;
21870 archive_sha384_init(&ctx);
21871 archive_sha384_update(&ctx, *argv, argc);
21872 archive_sha384_final(&ctx, NULL);
21877 if ac_fn_c_try_link "$LINENO"
21879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 printf "%s\n" "yes" >&6; }
21884 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_MBEDTLS 1" >>confdefs.h
21888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21889 printf "%s\n" "no" >&6; }
21891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21892 conftest$ac_exeext conftest.$ac_ext
21893 CPPFLAGS="$saved_CPPFLAGS"
21894 rm "check_crypto_md.h"
21898 if test "$found_SHA512" != yes; then
21899 saved_CPPFLAGS="$CPPFLAGS"
21900 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
21901 touch "check_crypto_md.h"
21902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS" >&5
21903 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_MBEDTLS... " >&6; }
21904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21905 /* end confdefs.h. */
21907 #define ARCHIVE_SHA512_COMPILE_TEST
21908 #define ARCHIVE_CRYPTO_SHA512_MBEDTLS
21909 #define PLATFORM_CONFIG_H "check_crypto_md.h"
21911 $(cat "$srcdir/libarchive/archive_digest.c")
21914 main(int argc, char **argv)
21916 archive_sha512_ctx ctx;
21917 archive_sha512_init(&ctx);
21918 archive_sha512_update(&ctx, *argv, argc);
21919 archive_sha512_final(&ctx, NULL);
21924 if ac_fn_c_try_link "$LINENO"
21926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21927 printf "%s\n" "yes" >&6; }
21931 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_MBEDTLS 1" >>confdefs.h
21935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21936 printf "%s\n" "no" >&6; }
21938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21939 conftest$ac_exeext conftest.$ac_ext
21940 CPPFLAGS="$saved_CPPFLAGS"
21941 rm "check_crypto_md.h"
21944 if test "x$found_MBEDTLS" != "xyes"; then
21949 if test "x$with_nettle" = "xyes"; then
21950 ac_fn_c_check_header_compile "$LINENO" "nettle/md5.h" "ac_cv_header_nettle_md5_h" "$ac_includes_default"
21951 if test "x$ac_cv_header_nettle_md5_h" = xyes
21953 printf "%s\n" "#define HAVE_NETTLE_MD5_H 1" >>confdefs.h
21956 ac_fn_c_check_header_compile "$LINENO" "nettle/ripemd160.h" "ac_cv_header_nettle_ripemd160_h" "$ac_includes_default"
21957 if test "x$ac_cv_header_nettle_ripemd160_h" = xyes
21959 printf "%s\n" "#define HAVE_NETTLE_RIPEMD160_H 1" >>confdefs.h
21962 ac_fn_c_check_header_compile "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
21963 if test "x$ac_cv_header_nettle_sha_h" = xyes
21965 printf "%s\n" "#define HAVE_NETTLE_SHA_H 1" >>confdefs.h
21969 ac_fn_c_check_header_compile "$LINENO" "nettle/pbkdf2.h" "ac_cv_header_nettle_pbkdf2_h" "$ac_includes_default"
21970 if test "x$ac_cv_header_nettle_pbkdf2_h" = xyes
21972 printf "%s\n" "#define HAVE_NETTLE_PBKDF2_H 1" >>confdefs.h
21975 ac_fn_c_check_header_compile "$LINENO" "nettle/aes.h" "ac_cv_header_nettle_aes_h" "$ac_includes_default"
21976 if test "x$ac_cv_header_nettle_aes_h" = xyes
21978 printf "%s\n" "#define HAVE_NETTLE_AES_H 1" >>confdefs.h
21981 ac_fn_c_check_header_compile "$LINENO" "nettle/hmac.h" "ac_cv_header_nettle_hmac_h" "$ac_includes_default"
21982 if test "x$ac_cv_header_nettle_hmac_h" = xyes
21984 printf "%s\n" "#define HAVE_NETTLE_HMAC_H 1" >>confdefs.h
21989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_sha1_init in -lnettle" >&5
21990 printf %s "checking for nettle_sha1_init in -lnettle... " >&6; }
21991 if test ${ac_cv_lib_nettle_nettle_sha1_init+y}
21993 printf %s "(cached) " >&6
21995 ac_check_lib_save_LIBS=$LIBS
21996 LIBS="-lnettle $LIBS"
21997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21998 /* end confdefs.h. */
22000 /* Override any GCC internal prototype to avoid an error.
22001 Use char because int might match the return type of a GCC
22002 builtin and then its argument prototype would still apply. */
22003 char nettle_sha1_init ();
22007 return nettle_sha1_init ();
22012 if ac_fn_c_try_link "$LINENO"
22014 ac_cv_lib_nettle_nettle_sha1_init=yes
22016 ac_cv_lib_nettle_nettle_sha1_init=no
22018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_sha1_init" >&5
22023 printf "%s\n" "$ac_cv_lib_nettle_nettle_sha1_init" >&6; }
22024 if test "x$ac_cv_lib_nettle_nettle_sha1_init" = xyes
22026 printf "%s\n" "#define HAVE_LIBNETTLE 1" >>confdefs.h
22028 LIBS="-lnettle $LIBS"
22033 if test "$found_MD5" != yes; then
22034 saved_CPPFLAGS="$CPPFLAGS"
22035 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22036 touch "check_crypto_md.h"
22037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_NETTLE" >&5
22038 printf %s "checking support for ARCHIVE_CRYPTO_MD5_NETTLE... " >&6; }
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22042 #define ARCHIVE_MD5_COMPILE_TEST
22043 #define ARCHIVE_CRYPTO_MD5_NETTLE
22044 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22046 $(cat "$srcdir/libarchive/archive_digest.c")
22049 main(int argc, char **argv)
22051 archive_md5_ctx ctx;
22052 archive_md5_init(&ctx);
22053 archive_md5_update(&ctx, *argv, argc);
22054 archive_md5_final(&ctx, NULL);
22059 if ac_fn_c_try_link "$LINENO"
22061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22062 printf "%s\n" "yes" >&6; }
22066 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_NETTLE 1" >>confdefs.h
22070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22071 printf "%s\n" "no" >&6; }
22073 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22074 conftest$ac_exeext conftest.$ac_ext
22075 CPPFLAGS="$saved_CPPFLAGS"
22076 rm "check_crypto_md.h"
22080 if test "$found_RMD160" != yes; then
22081 saved_CPPFLAGS="$CPPFLAGS"
22082 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22083 touch "check_crypto_md.h"
22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_NETTLE" >&5
22085 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_NETTLE... " >&6; }
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22089 #define ARCHIVE_RMD160_COMPILE_TEST
22090 #define ARCHIVE_CRYPTO_RMD160_NETTLE
22091 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22093 $(cat "$srcdir/libarchive/archive_digest.c")
22096 main(int argc, char **argv)
22098 archive_rmd160_ctx ctx;
22099 archive_rmd160_init(&ctx);
22100 archive_rmd160_update(&ctx, *argv, argc);
22101 archive_rmd160_final(&ctx, NULL);
22106 if ac_fn_c_try_link "$LINENO"
22108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22109 printf "%s\n" "yes" >&6; }
22113 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_NETTLE 1" >>confdefs.h
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 printf "%s\n" "no" >&6; }
22120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22121 conftest$ac_exeext conftest.$ac_ext
22122 CPPFLAGS="$saved_CPPFLAGS"
22123 rm "check_crypto_md.h"
22127 if test "$found_SHA1" != yes; then
22128 saved_CPPFLAGS="$CPPFLAGS"
22129 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22130 touch "check_crypto_md.h"
22131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_NETTLE" >&5
22132 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_NETTLE... " >&6; }
22133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22134 /* end confdefs.h. */
22136 #define ARCHIVE_SHA1_COMPILE_TEST
22137 #define ARCHIVE_CRYPTO_SHA1_NETTLE
22138 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22140 $(cat "$srcdir/libarchive/archive_digest.c")
22143 main(int argc, char **argv)
22145 archive_sha1_ctx ctx;
22146 archive_sha1_init(&ctx);
22147 archive_sha1_update(&ctx, *argv, argc);
22148 archive_sha1_final(&ctx, NULL);
22153 if ac_fn_c_try_link "$LINENO"
22155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22156 printf "%s\n" "yes" >&6; }
22160 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_NETTLE 1" >>confdefs.h
22164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22165 printf "%s\n" "no" >&6; }
22167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22168 conftest$ac_exeext conftest.$ac_ext
22169 CPPFLAGS="$saved_CPPFLAGS"
22170 rm "check_crypto_md.h"
22174 if test "$found_SHA256" != yes; then
22175 saved_CPPFLAGS="$CPPFLAGS"
22176 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22177 touch "check_crypto_md.h"
22178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_NETTLE" >&5
22179 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_NETTLE... " >&6; }
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22183 #define ARCHIVE_SHA256_COMPILE_TEST
22184 #define ARCHIVE_CRYPTO_SHA256_NETTLE
22185 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22187 $(cat "$srcdir/libarchive/archive_digest.c")
22190 main(int argc, char **argv)
22192 archive_sha256_ctx ctx;
22193 archive_sha256_init(&ctx);
22194 archive_sha256_update(&ctx, *argv, argc);
22195 archive_sha256_final(&ctx, NULL);
22200 if ac_fn_c_try_link "$LINENO"
22202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22203 printf "%s\n" "yes" >&6; }
22207 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_NETTLE 1" >>confdefs.h
22211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212 printf "%s\n" "no" >&6; }
22214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22215 conftest$ac_exeext conftest.$ac_ext
22216 CPPFLAGS="$saved_CPPFLAGS"
22217 rm "check_crypto_md.h"
22221 if test "$found_SHA384" != yes; then
22222 saved_CPPFLAGS="$CPPFLAGS"
22223 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22224 touch "check_crypto_md.h"
22225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_NETTLE" >&5
22226 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_NETTLE... " >&6; }
22227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22228 /* end confdefs.h. */
22230 #define ARCHIVE_SHA384_COMPILE_TEST
22231 #define ARCHIVE_CRYPTO_SHA384_NETTLE
22232 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22234 $(cat "$srcdir/libarchive/archive_digest.c")
22237 main(int argc, char **argv)
22239 archive_sha384_ctx ctx;
22240 archive_sha384_init(&ctx);
22241 archive_sha384_update(&ctx, *argv, argc);
22242 archive_sha384_final(&ctx, NULL);
22247 if ac_fn_c_try_link "$LINENO"
22249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22250 printf "%s\n" "yes" >&6; }
22254 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_NETTLE 1" >>confdefs.h
22258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22259 printf "%s\n" "no" >&6; }
22261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22262 conftest$ac_exeext conftest.$ac_ext
22263 CPPFLAGS="$saved_CPPFLAGS"
22264 rm "check_crypto_md.h"
22268 if test "$found_SHA512" != yes; then
22269 saved_CPPFLAGS="$CPPFLAGS"
22270 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22271 touch "check_crypto_md.h"
22272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_NETTLE" >&5
22273 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_NETTLE... " >&6; }
22274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22275 /* end confdefs.h. */
22277 #define ARCHIVE_SHA512_COMPILE_TEST
22278 #define ARCHIVE_CRYPTO_SHA512_NETTLE
22279 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22281 $(cat "$srcdir/libarchive/archive_digest.c")
22284 main(int argc, char **argv)
22286 archive_sha512_ctx ctx;
22287 archive_sha512_init(&ctx);
22288 archive_sha512_update(&ctx, *argv, argc);
22289 archive_sha512_final(&ctx, NULL);
22294 if ac_fn_c_try_link "$LINENO"
22296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22297 printf "%s\n" "yes" >&6; }
22301 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_NETTLE 1" >>confdefs.h
22305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22306 printf "%s\n" "no" >&6; }
22308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22309 conftest$ac_exeext conftest.$ac_ext
22310 CPPFLAGS="$saved_CPPFLAGS"
22311 rm "check_crypto_md.h"
22314 if test "x$found_NETTLE" != "xyes"; then
22319 if test "x$with_openssl" != "xno"; then
22320 ac_fn_c_check_header_compile "$LINENO" "openssl/evp.h" "ac_cv_header_openssl_evp_h" "$ac_includes_default"
22321 if test "x$ac_cv_header_openssl_evp_h" = xyes
22323 printf "%s\n" "#define HAVE_OPENSSL_EVP_H 1" >>confdefs.h
22328 LIBSREQUIRED="$LIBSREQUIRED${LIBSREQUIRED:+ }libssl libcrypto"
22329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_config in -lcrypto" >&5
22330 printf %s "checking for OPENSSL_config in -lcrypto... " >&6; }
22331 if test ${ac_cv_lib_crypto_OPENSSL_config+y}
22333 printf %s "(cached) " >&6
22335 ac_check_lib_save_LIBS=$LIBS
22336 LIBS="-lcrypto $LIBS"
22337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22338 /* end confdefs.h. */
22340 /* Override any GCC internal prototype to avoid an error.
22341 Use char because int might match the return type of a GCC
22342 builtin and then its argument prototype would still apply. */
22343 char OPENSSL_config ();
22347 return OPENSSL_config ();
22352 if ac_fn_c_try_link "$LINENO"
22354 ac_cv_lib_crypto_OPENSSL_config=yes
22356 ac_cv_lib_crypto_OPENSSL_config=no
22358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22359 conftest$ac_exeext conftest.$ac_ext
22360 LIBS=$ac_check_lib_save_LIBS
22362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_OPENSSL_config" >&5
22363 printf "%s\n" "$ac_cv_lib_crypto_OPENSSL_config" >&6; }
22364 if test "x$ac_cv_lib_crypto_OPENSSL_config" = xyes
22366 printf "%s\n" "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22368 LIBS="-lcrypto $LIBS"
22373 if test "$found_MD5" != yes; then
22374 saved_CPPFLAGS="$CPPFLAGS"
22375 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22376 touch "check_crypto_md.h"
22377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_OPENSSL" >&5
22378 printf %s "checking support for ARCHIVE_CRYPTO_MD5_OPENSSL... " >&6; }
22379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22380 /* end confdefs.h. */
22382 #define ARCHIVE_MD5_COMPILE_TEST
22383 #define ARCHIVE_CRYPTO_MD5_OPENSSL
22384 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22386 $(cat "$srcdir/libarchive/archive_digest.c")
22389 main(int argc, char **argv)
22391 archive_md5_ctx ctx;
22392 archive_md5_init(&ctx);
22393 archive_md5_update(&ctx, *argv, argc);
22394 archive_md5_final(&ctx, NULL);
22399 if ac_fn_c_try_link "$LINENO"
22401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22402 printf "%s\n" "yes" >&6; }
22406 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_OPENSSL 1" >>confdefs.h
22410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411 printf "%s\n" "no" >&6; }
22413 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22414 conftest$ac_exeext conftest.$ac_ext
22415 CPPFLAGS="$saved_CPPFLAGS"
22416 rm "check_crypto_md.h"
22420 if test "$found_RMD160" != yes; then
22421 saved_CPPFLAGS="$CPPFLAGS"
22422 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22423 touch "check_crypto_md.h"
22424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL" >&5
22425 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL... " >&6; }
22426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22427 /* end confdefs.h. */
22429 #define ARCHIVE_RMD160_COMPILE_TEST
22430 #define ARCHIVE_CRYPTO_RMD160_OPENSSL
22431 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22433 $(cat "$srcdir/libarchive/archive_digest.c")
22436 main(int argc, char **argv)
22438 archive_rmd160_ctx ctx;
22439 archive_rmd160_init(&ctx);
22440 archive_rmd160_update(&ctx, *argv, argc);
22441 archive_rmd160_final(&ctx, NULL);
22446 if ac_fn_c_try_link "$LINENO"
22448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22449 printf "%s\n" "yes" >&6; }
22453 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_OPENSSL 1" >>confdefs.h
22457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 printf "%s\n" "no" >&6; }
22460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22461 conftest$ac_exeext conftest.$ac_ext
22462 CPPFLAGS="$saved_CPPFLAGS"
22463 rm "check_crypto_md.h"
22467 if test "$found_SHA1" != yes; then
22468 saved_CPPFLAGS="$CPPFLAGS"
22469 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22470 touch "check_crypto_md.h"
22471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL" >&5
22472 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL... " >&6; }
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22476 #define ARCHIVE_SHA1_COMPILE_TEST
22477 #define ARCHIVE_CRYPTO_SHA1_OPENSSL
22478 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22480 $(cat "$srcdir/libarchive/archive_digest.c")
22483 main(int argc, char **argv)
22485 archive_sha1_ctx ctx;
22486 archive_sha1_init(&ctx);
22487 archive_sha1_update(&ctx, *argv, argc);
22488 archive_sha1_final(&ctx, NULL);
22493 if ac_fn_c_try_link "$LINENO"
22495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22496 printf "%s\n" "yes" >&6; }
22500 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_OPENSSL 1" >>confdefs.h
22504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22505 printf "%s\n" "no" >&6; }
22507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22508 conftest$ac_exeext conftest.$ac_ext
22509 CPPFLAGS="$saved_CPPFLAGS"
22510 rm "check_crypto_md.h"
22514 if test "$found_SHA256" != yes; then
22515 saved_CPPFLAGS="$CPPFLAGS"
22516 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22517 touch "check_crypto_md.h"
22518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL" >&5
22519 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL... " >&6; }
22520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22521 /* end confdefs.h. */
22523 #define ARCHIVE_SHA256_COMPILE_TEST
22524 #define ARCHIVE_CRYPTO_SHA256_OPENSSL
22525 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22527 $(cat "$srcdir/libarchive/archive_digest.c")
22530 main(int argc, char **argv)
22532 archive_sha256_ctx ctx;
22533 archive_sha256_init(&ctx);
22534 archive_sha256_update(&ctx, *argv, argc);
22535 archive_sha256_final(&ctx, NULL);
22540 if ac_fn_c_try_link "$LINENO"
22542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22543 printf "%s\n" "yes" >&6; }
22547 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_OPENSSL 1" >>confdefs.h
22551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22552 printf "%s\n" "no" >&6; }
22554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22555 conftest$ac_exeext conftest.$ac_ext
22556 CPPFLAGS="$saved_CPPFLAGS"
22557 rm "check_crypto_md.h"
22561 if test "$found_SHA384" != yes; then
22562 saved_CPPFLAGS="$CPPFLAGS"
22563 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22564 touch "check_crypto_md.h"
22565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL" >&5
22566 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL... " >&6; }
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568 /* end confdefs.h. */
22570 #define ARCHIVE_SHA384_COMPILE_TEST
22571 #define ARCHIVE_CRYPTO_SHA384_OPENSSL
22572 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22574 $(cat "$srcdir/libarchive/archive_digest.c")
22577 main(int argc, char **argv)
22579 archive_sha384_ctx ctx;
22580 archive_sha384_init(&ctx);
22581 archive_sha384_update(&ctx, *argv, argc);
22582 archive_sha384_final(&ctx, NULL);
22587 if ac_fn_c_try_link "$LINENO"
22589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22590 printf "%s\n" "yes" >&6; }
22594 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_OPENSSL 1" >>confdefs.h
22598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22599 printf "%s\n" "no" >&6; }
22601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22602 conftest$ac_exeext conftest.$ac_ext
22603 CPPFLAGS="$saved_CPPFLAGS"
22604 rm "check_crypto_md.h"
22608 if test "$found_SHA512" != yes; then
22609 saved_CPPFLAGS="$CPPFLAGS"
22610 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22611 touch "check_crypto_md.h"
22612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL" >&5
22613 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL... " >&6; }
22614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22615 /* end confdefs.h. */
22617 #define ARCHIVE_SHA512_COMPILE_TEST
22618 #define ARCHIVE_CRYPTO_SHA512_OPENSSL
22619 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22621 $(cat "$srcdir/libarchive/archive_digest.c")
22624 main(int argc, char **argv)
22626 archive_sha512_ctx ctx;
22627 archive_sha512_init(&ctx);
22628 archive_sha512_update(&ctx, *argv, argc);
22629 archive_sha512_final(&ctx, NULL);
22634 if ac_fn_c_try_link "$LINENO"
22636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22637 printf "%s\n" "yes" >&6; }
22641 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_OPENSSL 1" >>confdefs.h
22645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22646 printf "%s\n" "no" >&6; }
22648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22649 conftest$ac_exeext conftest.$ac_ext
22650 CPPFLAGS="$saved_CPPFLAGS"
22651 rm "check_crypto_md.h"
22654 ac_fn_c_check_func "$LINENO" "PKCS5_PBKDF2_HMAC_SHA1" "ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1"
22655 if test "x$ac_cv_func_PKCS5_PBKDF2_HMAC_SHA1" = xyes
22657 printf "%s\n" "#define HAVE_PKCS5_PBKDF2_HMAC_SHA1 1" >>confdefs.h
22665 # Probe libmd AFTER OpenSSL/libcrypto.
22666 # The two are incompatible and OpenSSL is more complete.
22667 ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "$ac_includes_default"
22668 if test "x$ac_cv_header_md5_h" = xyes
22670 printf "%s\n" "#define HAVE_MD5_H 1" >>confdefs.h
22673 ac_fn_c_check_header_compile "$LINENO" "ripemd.h" "ac_cv_header_ripemd_h" "$ac_includes_default"
22674 if test "x$ac_cv_header_ripemd_h" = xyes
22676 printf "%s\n" "#define HAVE_RIPEMD_H 1" >>confdefs.h
22679 ac_fn_c_check_header_compile "$LINENO" "sha.h" "ac_cv_header_sha_h" "$ac_includes_default"
22680 if test "x$ac_cv_header_sha_h" = xyes
22682 printf "%s\n" "#define HAVE_SHA_H 1" >>confdefs.h
22685 ac_fn_c_check_header_compile "$LINENO" "sha256.h" "ac_cv_header_sha256_h" "$ac_includes_default"
22686 if test "x$ac_cv_header_sha256_h" = xyes
22688 printf "%s\n" "#define HAVE_SHA256_H 1" >>confdefs.h
22691 ac_fn_c_check_header_compile "$LINENO" "sha512.h" "ac_cv_header_sha512_h" "$ac_includes_default"
22692 if test "x$ac_cv_header_sha512_h" = xyes
22694 printf "%s\n" "#define HAVE_SHA512_H 1" >>confdefs.h
22699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MD5Init in -lmd" >&5
22700 printf %s "checking for MD5Init in -lmd... " >&6; }
22701 if test ${ac_cv_lib_md_MD5Init+y}
22703 printf %s "(cached) " >&6
22705 ac_check_lib_save_LIBS=$LIBS
22707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22708 /* end confdefs.h. */
22710 /* Override any GCC internal prototype to avoid an error.
22711 Use char because int might match the return type of a GCC
22712 builtin and then its argument prototype would still apply. */
22722 if ac_fn_c_try_link "$LINENO"
22724 ac_cv_lib_md_MD5Init=yes
22726 ac_cv_lib_md_MD5Init=no
22728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22729 conftest$ac_exeext conftest.$ac_ext
22730 LIBS=$ac_check_lib_save_LIBS
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_md_MD5Init" >&5
22733 printf "%s\n" "$ac_cv_lib_md_MD5Init" >&6; }
22734 if test "x$ac_cv_lib_md_MD5Init" = xyes
22736 printf "%s\n" "#define HAVE_LIBMD 1" >>confdefs.h
22743 if test "$found_MD5" != yes; then
22744 saved_CPPFLAGS="$CPPFLAGS"
22745 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22746 touch "check_crypto_md.h"
22747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_LIBMD" >&5
22748 printf %s "checking support for ARCHIVE_CRYPTO_MD5_LIBMD... " >&6; }
22749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h. */
22752 #define ARCHIVE_MD5_COMPILE_TEST
22753 #define ARCHIVE_CRYPTO_MD5_LIBMD
22754 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22756 $(cat "$srcdir/libarchive/archive_digest.c")
22759 main(int argc, char **argv)
22761 archive_md5_ctx ctx;
22762 archive_md5_init(&ctx);
22763 archive_md5_update(&ctx, *argv, argc);
22764 archive_md5_final(&ctx, NULL);
22769 if ac_fn_c_try_link "$LINENO"
22771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22772 printf "%s\n" "yes" >&6; }
22776 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_LIBMD 1" >>confdefs.h
22780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22781 printf "%s\n" "no" >&6; }
22783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22784 conftest$ac_exeext conftest.$ac_ext
22785 CPPFLAGS="$saved_CPPFLAGS"
22786 rm "check_crypto_md.h"
22790 if test "$found_RMD160" != yes; then
22791 saved_CPPFLAGS="$CPPFLAGS"
22792 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22793 touch "check_crypto_md.h"
22794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_RMD160_LIBMD" >&5
22795 printf %s "checking support for ARCHIVE_CRYPTO_RMD160_LIBMD... " >&6; }
22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h. */
22799 #define ARCHIVE_RMD160_COMPILE_TEST
22800 #define ARCHIVE_CRYPTO_RMD160_LIBMD
22801 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22803 $(cat "$srcdir/libarchive/archive_digest.c")
22806 main(int argc, char **argv)
22808 archive_rmd160_ctx ctx;
22809 archive_rmd160_init(&ctx);
22810 archive_rmd160_update(&ctx, *argv, argc);
22811 archive_rmd160_final(&ctx, NULL);
22816 if ac_fn_c_try_link "$LINENO"
22818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22819 printf "%s\n" "yes" >&6; }
22823 printf "%s\n" "#define ARCHIVE_CRYPTO_RMD160_LIBMD 1" >>confdefs.h
22827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22828 printf "%s\n" "no" >&6; }
22830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22831 conftest$ac_exeext conftest.$ac_ext
22832 CPPFLAGS="$saved_CPPFLAGS"
22833 rm "check_crypto_md.h"
22837 if test "$found_SHA1" != yes; then
22838 saved_CPPFLAGS="$CPPFLAGS"
22839 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22840 touch "check_crypto_md.h"
22841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_LIBMD" >&5
22842 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_LIBMD... " >&6; }
22843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22844 /* end confdefs.h. */
22846 #define ARCHIVE_SHA1_COMPILE_TEST
22847 #define ARCHIVE_CRYPTO_SHA1_LIBMD
22848 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22850 $(cat "$srcdir/libarchive/archive_digest.c")
22853 main(int argc, char **argv)
22855 archive_sha1_ctx ctx;
22856 archive_sha1_init(&ctx);
22857 archive_sha1_update(&ctx, *argv, argc);
22858 archive_sha1_final(&ctx, NULL);
22863 if ac_fn_c_try_link "$LINENO"
22865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22866 printf "%s\n" "yes" >&6; }
22870 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_LIBMD 1" >>confdefs.h
22874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22875 printf "%s\n" "no" >&6; }
22877 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22878 conftest$ac_exeext conftest.$ac_ext
22879 CPPFLAGS="$saved_CPPFLAGS"
22880 rm "check_crypto_md.h"
22884 if test "$found_SHA256" != yes; then
22885 saved_CPPFLAGS="$CPPFLAGS"
22886 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22887 touch "check_crypto_md.h"
22888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_LIBMD" >&5
22889 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_LIBMD... " >&6; }
22890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22891 /* end confdefs.h. */
22893 #define ARCHIVE_SHA256_COMPILE_TEST
22894 #define ARCHIVE_CRYPTO_SHA256_LIBMD
22895 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22897 $(cat "$srcdir/libarchive/archive_digest.c")
22900 main(int argc, char **argv)
22902 archive_sha256_ctx ctx;
22903 archive_sha256_init(&ctx);
22904 archive_sha256_update(&ctx, *argv, argc);
22905 archive_sha256_final(&ctx, NULL);
22910 if ac_fn_c_try_link "$LINENO"
22912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22913 printf "%s\n" "yes" >&6; }
22917 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_LIBMD 1" >>confdefs.h
22921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22922 printf "%s\n" "no" >&6; }
22924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22925 conftest$ac_exeext conftest.$ac_ext
22926 CPPFLAGS="$saved_CPPFLAGS"
22927 rm "check_crypto_md.h"
22931 if test "$found_SHA512" != yes; then
22932 saved_CPPFLAGS="$CPPFLAGS"
22933 CPPFLAGS="$CPPFLAGS -I. -I$srcdir -I$srcdir/libarchive"
22934 touch "check_crypto_md.h"
22935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_LIBMD" >&5
22936 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_LIBMD... " >&6; }
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h. */
22940 #define ARCHIVE_SHA512_COMPILE_TEST
22941 #define ARCHIVE_CRYPTO_SHA512_LIBMD
22942 #define PLATFORM_CONFIG_H "check_crypto_md.h"
22944 $(cat "$srcdir/libarchive/archive_digest.c")
22947 main(int argc, char **argv)
22949 archive_sha512_ctx ctx;
22950 archive_sha512_init(&ctx);
22951 archive_sha512_update(&ctx, *argv, argc);
22952 archive_sha512_final(&ctx, NULL);
22957 if ac_fn_c_try_link "$LINENO"
22959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22960 printf "%s\n" "yes" >&6; }
22964 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_LIBMD 1" >>confdefs.h
22968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22969 printf "%s\n" "no" >&6; }
22971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22972 conftest$ac_exeext conftest.$ac_ext
22973 CPPFLAGS="$saved_CPPFLAGS"
22974 rm "check_crypto_md.h"
22977 if test "x$found_LIBMD" != "xyes"; then
22982 *mingw* | *cygwin* | *msys*)
22984 if test "$found_MD5" != yes; then
22985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_MD5_WIN" >&5
22986 printf %s "checking support for ARCHIVE_CRYPTO_MD5_WIN... " >&6; }
22987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22988 /* end confdefs.h. */
22990 #define ARCHIVE_MD5_COMPILE_TEST
22991 #include <windows.h>
22992 #include <wincrypt.h>
22995 main(int argc, char **argv)
23004 if ac_fn_c_try_link "$LINENO"
23006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23007 printf "%s\n" "yes" >&6; }
23011 printf "%s\n" "#define ARCHIVE_CRYPTO_MD5_WIN 1" >>confdefs.h
23015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 printf "%s\n" "no" >&6; }
23018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23019 conftest$ac_exeext conftest.$ac_ext
23023 if test "$found_SHA1" != yes; then
23024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA1_WIN" >&5
23025 printf %s "checking support for ARCHIVE_CRYPTO_SHA1_WIN... " >&6; }
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h. */
23029 #define ARCHIVE_SHA1_COMPILE_TEST
23030 #include <windows.h>
23031 #include <wincrypt.h>
23034 main(int argc, char **argv)
23039 return (CALG_SHA1);
23043 if ac_fn_c_try_link "$LINENO"
23045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23046 printf "%s\n" "yes" >&6; }
23050 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA1_WIN 1" >>confdefs.h
23054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 printf "%s\n" "no" >&6; }
23057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23058 conftest$ac_exeext conftest.$ac_ext
23062 if test "$found_SHA256" != yes; then
23063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA256_WIN" >&5
23064 printf %s "checking support for ARCHIVE_CRYPTO_SHA256_WIN... " >&6; }
23065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066 /* end confdefs.h. */
23068 #define ARCHIVE_SHA256_COMPILE_TEST
23069 #include <windows.h>
23070 #include <wincrypt.h>
23073 main(int argc, char **argv)
23078 return (CALG_SHA_256);
23082 if ac_fn_c_try_link "$LINENO"
23084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23085 printf "%s\n" "yes" >&6; }
23089 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA256_WIN 1" >>confdefs.h
23093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23094 printf "%s\n" "no" >&6; }
23096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23097 conftest$ac_exeext conftest.$ac_ext
23101 if test "$found_SHA384" != yes; then
23102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA384_WIN" >&5
23103 printf %s "checking support for ARCHIVE_CRYPTO_SHA384_WIN... " >&6; }
23104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23105 /* end confdefs.h. */
23107 #define ARCHIVE_SHA384_COMPILE_TEST
23108 #include <windows.h>
23109 #include <wincrypt.h>
23112 main(int argc, char **argv)
23117 return (CALG_SHA_384);
23121 if ac_fn_c_try_link "$LINENO"
23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23124 printf "%s\n" "yes" >&6; }
23128 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA384_WIN 1" >>confdefs.h
23132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23133 printf "%s\n" "no" >&6; }
23135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23136 conftest$ac_exeext conftest.$ac_ext
23140 if test "$found_SHA512" != yes; then
23141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking support for ARCHIVE_CRYPTO_SHA512_WIN" >&5
23142 printf %s "checking support for ARCHIVE_CRYPTO_SHA512_WIN... " >&6; }
23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h. */
23146 #define ARCHIVE_SHA512_COMPILE_TEST
23147 #include <windows.h>
23148 #include <wincrypt.h>
23151 main(int argc, char **argv)
23156 return (CALG_SHA_512);
23160 if ac_fn_c_try_link "$LINENO"
23162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23163 printf "%s\n" "yes" >&6; }
23167 printf "%s\n" "#define ARCHIVE_CRYPTO_SHA512_WIN 1" >>confdefs.h
23171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 printf "%s\n" "no" >&6; }
23174 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23175 conftest$ac_exeext conftest.$ac_ext
23181 saved_CFLAGS="$CFLAGS"
23182 CFLAGS="$CFLAGS -fvisibility=hidden -Werror"
23183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports visibility annotations" >&5
23184 printf %s "checking whether compiler supports visibility annotations... " >&6; }
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23188 int foo( void ) __attribute__((visibility("default")));
23198 if ac_fn_c_try_link "$LINENO"
23200 CFLAGS="$saved_CFLAGS -fvisibility=hidden -D__LIBARCHIVE_ENABLE_VISIBILITY";
23201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202 printf "%s\n" "yes" >&6; }
23204 CFLAGS="$saved_CFLAGS"
23205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23206 printf "%s\n" "no" >&6; }
23208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23209 conftest$ac_exeext conftest.$ac_ext
23211 # Ensure test directories are present if building out-of-tree
23212 ac_config_commands="$ac_config_commands mkdirs"
23215 cat >confcache <<\_ACEOF
23216 # This file is a shell script that caches the results of configure
23217 # tests run on this system so they can be shared between configure
23218 # scripts and configure runs, see configure's option --config-cache.
23219 # It is not useful on other systems. If it contains results you don't
23220 # want to keep, you may remove or edit it.
23222 # config.status only pays attention to the cache file if you give it
23223 # the --recheck option to rerun configure.
23225 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23226 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23227 # following values.
23231 # The following way of writing the cache mishandles newlines in values,
23232 # but we know of no workaround that is simple, portable, and efficient.
23233 # So, we kill variables containing newlines.
23234 # Ultrix sh set writes to stderr and can't be redirected directly,
23235 # and sets the high bit in the cache file unless we assign to the vars.
23237 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23238 eval ac_val=\$$ac_var
23242 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23243 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23246 _ | IFS | as_nl) ;; #(
23247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23248 *) { eval $ac_var=; unset $ac_var;} ;;
23254 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23255 *${as_nl}ac_space=\ *)
23256 # `set' does not quote correctly, so add quotes: double-quote
23257 # substitution turns \\\\ into \\, and sed turns \\ into \.
23260 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23263 # `set' quotes correctly as required by POSIX, so do not add quotes.
23264 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23273 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23275 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23277 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23278 if test -w "$cache_file"; then
23279 if test "x$cache_file" != "x/dev/null"; then
23280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23281 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23282 if test ! -f "$cache_file" || test -h "$cache_file"; then
23283 cat confcache >"$cache_file"
23285 case $cache_file in #(
23287 mv -f confcache "$cache_file"$$ &&
23288 mv -f "$cache_file"$$ "$cache_file" ;; #(
23290 mv -f confcache "$cache_file" ;;
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23296 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23302 # Let make expand exec_prefix.
23303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23305 DEFS=-DHAVE_CONFIG_H
23310 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23311 # 1. Remove the extension, and $U if already installed.
23312 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23313 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23314 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23315 # will be set to the directory where LIBOBJS objects are built.
23316 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23317 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23319 LIBOBJS=$ac_libobjs
23321 LTLIBOBJS=$ac_ltlibobjs
23324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23325 printf %s "checking that generated files are newer than configure... " >&6; }
23326 if test -n "$am_sleep_pid"; then
23327 # Hide warnings about reused PIDs.
23328 wait $am_sleep_pid 2>/dev/null
23330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23331 printf "%s\n" "done" >&6; }
23332 if test -n "$EXEEXT"; then
23334 am__EXEEXT_FALSE='#'
23336 am__EXEEXT_TRUE='#'
23340 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23341 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23344 if test -z "${INC_WINDOWS_FILES_TRUE}" && test -z "${INC_WINDOWS_FILES_FALSE}"; then
23345 as_fn_error $? "conditional \"INC_WINDOWS_FILES\" was never defined.
23346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23348 if test -z "${INC_CYGWIN_FILES_TRUE}" && test -z "${INC_CYGWIN_FILES_FALSE}"; then
23349 as_fn_error $? "conditional \"INC_CYGWIN_FILES\" was never defined.
23350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23352 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23353 as_fn_error $? "conditional \"AMDEP\" was never defined.
23354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23356 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23357 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23360 if test -z "${BUILD_BSDTAR_TRUE}" && test -z "${BUILD_BSDTAR_FALSE}"; then
23361 as_fn_error $? "conditional \"BUILD_BSDTAR\" was never defined.
23362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23364 if test -z "${STATIC_BSDTAR_TRUE}" && test -z "${STATIC_BSDTAR_FALSE}"; then
23365 as_fn_error $? "conditional \"STATIC_BSDTAR\" was never defined.
23366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23368 if test -z "${BUILD_BSDCAT_TRUE}" && test -z "${BUILD_BSDCAT_FALSE}"; then
23369 as_fn_error $? "conditional \"BUILD_BSDCAT\" was never defined.
23370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23372 if test -z "${STATIC_BSDCAT_TRUE}" && test -z "${STATIC_BSDCAT_FALSE}"; then
23373 as_fn_error $? "conditional \"STATIC_BSDCAT\" was never defined.
23374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23376 if test -z "${BUILD_BSDCPIO_TRUE}" && test -z "${BUILD_BSDCPIO_FALSE}"; then
23377 as_fn_error $? "conditional \"BUILD_BSDCPIO\" was never defined.
23378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23380 if test -z "${STATIC_BSDCPIO_TRUE}" && test -z "${STATIC_BSDCPIO_FALSE}"; then
23381 as_fn_error $? "conditional \"STATIC_BSDCPIO\" was never defined.
23382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23384 if test -z "${INC_BLAKE2_TRUE}" && test -z "${INC_BLAKE2_FALSE}"; then
23385 as_fn_error $? "conditional \"INC_BLAKE2\" was never defined.
23386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23388 if test -z "${INC_LINUX_ACL_TRUE}" && test -z "${INC_LINUX_ACL_FALSE}"; then
23389 as_fn_error $? "conditional \"INC_LINUX_ACL\" was never defined.
23390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23392 if test -z "${INC_SUNOS_ACL_TRUE}" && test -z "${INC_SUNOS_ACL_FALSE}"; then
23393 as_fn_error $? "conditional \"INC_SUNOS_ACL\" was never defined.
23394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23396 if test -z "${INC_DARWIN_ACL_TRUE}" && test -z "${INC_DARWIN_ACL_FALSE}"; then
23397 as_fn_error $? "conditional \"INC_DARWIN_ACL\" was never defined.
23398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23400 if test -z "${INC_FREEBSD_ACL_TRUE}" && test -z "${INC_FREEBSD_ACL_FALSE}"; then
23401 as_fn_error $? "conditional \"INC_FREEBSD_ACL\" was never defined.
23402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23405 : "${CONFIG_STATUS=./config.status}"
23407 ac_clean_files_save=$ac_clean_files
23408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23410 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23412 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23414 # Generated by $as_me.
23415 # Run this file to recreate the current configuration.
23416 # Compiler output produced by configure, useful for debugging
23417 # configure, is in config.log if it exists.
23420 ac_cs_recheck=false
23423 SHELL=\${CONFIG_SHELL-$SHELL}
23426 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23427 ## -------------------- ##
23428 ## M4sh Initialization. ##
23429 ## -------------------- ##
23431 # Be more Bourne compatible
23432 DUALCASE=1; export DUALCASE # for MKS sh
23434 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23438 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23439 # is contrary to our usage. Disable this feature.
23440 alias -g '${1+"$@"}'='"$@"'
23441 setopt NO_GLOB_SUBST
23443 case `(set -o) 2>/dev/null` in #(
23453 # Reset variables that may have inherited troublesome values from
23456 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23457 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23458 # side effect of setting IFS to empty, thus disabling word splitting.)
23459 # Quoting is to prevent editors from complaining about space-tab.
23469 # Ensure predictable behavior from utilities with locale-dependent output.
23475 # We cannot yet rely on "unset" to work, but we need these variables
23476 # to be unset--not just set to an empty or harmless value--now, to
23477 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23478 # also avoids known problems related to "unset" and subshell syntax
23479 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23480 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23481 do eval test \${$as_var+y} \
23482 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23485 # Ensure that fds 0, 1, and 2 are open.
23486 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23487 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23488 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23490 # The user is always right.
23491 if ${PATH_SEPARATOR+false} :; then
23493 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23494 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23500 # Find who we are. Look in the path if we contain no directory separator.
23503 *[\\/]* ) as_myself=$0 ;;
23504 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23505 for as_dir in $PATH
23508 case $as_dir in #(((
23511 *) as_dir=$as_dir/ ;;
23513 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23519 # We did not find ourselves, most probably we were run as `sh COMMAND'
23520 # in which case we are not to be found in the path.
23521 if test "x$as_myself" = x; then
23524 if test ! -f "$as_myself"; then
23525 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23531 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23532 # ----------------------------------------
23533 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23534 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23535 # script with STATUS, using 1 if that was 0.
23538 as_status=$1; test $as_status -eq 0 && as_status=1
23540 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23543 printf "%s\n" "$as_me: error: $2" >&2
23544 as_fn_exit $as_status
23549 # as_fn_set_status STATUS
23550 # -----------------------
23551 # Set $? to STATUS, without forking.
23552 as_fn_set_status ()
23555 } # as_fn_set_status
23557 # as_fn_exit STATUS
23558 # -----------------
23559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23563 as_fn_set_status $1
23569 # Portably unset VAR.
23572 { eval $1=; unset $1;}
23574 as_unset=as_fn_unset
23576 # as_fn_append VAR VALUE
23577 # ----------------------
23578 # Append the text in VALUE to the end of the definition contained in VAR. Take
23579 # advantage of any shell optimizations that allow amortized linear growth over
23580 # repeated appends, instead of the typical quadratic growth present in naive
23582 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23584 eval 'as_fn_append ()
23595 # as_fn_arith ARG...
23596 # ------------------
23597 # Perform arithmetic evaluation on the ARGs, and store the result in the
23598 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23599 # must be portable across $(()) and expr.
23600 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23602 eval 'as_fn_arith ()
23609 as_val=`expr "$@" || test $? -eq 1`
23614 if expr a : '\(a\)' >/dev/null 2>&1 &&
23615 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23621 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23622 as_basename=basename
23627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23633 as_me=`$as_basename -- "$0" ||
23634 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23635 X"$0" : 'X\(//\)$' \| \
23636 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23637 printf "%s\n" X/"$0" |
23638 sed '/^.*\/\([^/][^/]*\)\/*$/{
23652 # Avoid depending upon Character Ranges.
23653 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23654 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23655 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23656 as_cr_digits='0123456789'
23657 as_cr_alnum=$as_cr_Letters$as_cr_digits
23660 # Determine whether it's possible to make 'echo' print without a newline.
23661 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23662 # for compatibility with existing Makefiles.
23663 ECHO_C= ECHO_N= ECHO_T=
23664 case `echo -n x` in #(((((
23666 case `echo 'xy\c'` in
23667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23669 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23676 # For backward compatibility with old third-party macros, we provide
23677 # the shell variables $as_echo and $as_echo_n. New code should use
23678 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23679 as_echo='printf %s\n'
23680 as_echo_n='printf %s'
23682 rm -f conf$$ conf$$.exe conf$$.file
23683 if test -d conf$$.dir; then
23684 rm -f conf$$.dir/conf$$.file
23687 mkdir conf$$.dir 2>/dev/null
23689 if (echo >conf$$.file) 2>/dev/null; then
23690 if ln -s conf$$.file conf$$ 2>/dev/null; then
23692 # ... but there are two gotchas:
23693 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23694 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23695 # In both cases, we have to default to `cp -pR'.
23696 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23698 elif ln conf$$.file conf$$ 2>/dev/null; then
23706 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23707 rmdir conf$$.dir 2>/dev/null
23712 # Create "$as_dir" as a directory, including parents if necessary.
23717 -*) as_dir=./$as_dir;;
23719 test -d "$as_dir" || eval $as_mkdir_p || {
23723 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23724 *) as_qdir=$as_dir;;
23726 as_dirs="'$as_qdir' $as_dirs"
23727 as_dir=`$as_dirname -- "$as_dir" ||
23728 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23729 X"$as_dir" : 'X\(//\)[^/]' \| \
23730 X"$as_dir" : 'X\(//\)$' \| \
23731 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23732 printf "%s\n" X"$as_dir" |
23733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23737 /^X\(\/\/\)[^/].*/{
23750 test -d "$as_dir" && break
23752 test -z "$as_dirs" || eval "mkdir $as_dirs"
23753 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23757 if mkdir -p . 2>/dev/null; then
23758 as_mkdir_p='mkdir -p "$as_dir"'
23760 test -d ./-p && rmdir ./-p
23765 # as_fn_executable_p FILE
23766 # -----------------------
23767 # Test if FILE is an executable regular file.
23768 as_fn_executable_p ()
23770 test -f "$1" && test -x "$1"
23771 } # as_fn_executable_p
23772 as_test_x='test -x'
23773 as_executable_p=as_fn_executable_p
23775 # Sed expression to map a string onto a valid CPP name.
23776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23778 # Sed expression to map a string onto a valid variable name.
23779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23783 ## ----------------------------------- ##
23784 ## Main body of $CONFIG_STATUS script. ##
23785 ## ----------------------------------- ##
23787 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23790 # Save the log message, to keep $0 and so on meaningful, and to
23791 # report actual input values of CONFIG_FILES etc. instead of their
23792 # values after options handling.
23794 This file was extended by libarchive $as_me 3.6.2, which was
23795 generated by GNU Autoconf 2.71. Invocation command line was
23797 CONFIG_FILES = $CONFIG_FILES
23798 CONFIG_HEADERS = $CONFIG_HEADERS
23799 CONFIG_LINKS = $CONFIG_LINKS
23800 CONFIG_COMMANDS = $CONFIG_COMMANDS
23803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23808 case $ac_config_files in *"
23809 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23812 case $ac_config_headers in *"
23813 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23818 # Files that config.status was made for.
23819 config_files="$ac_config_files"
23820 config_headers="$ac_config_headers"
23821 config_commands="$ac_config_commands"
23825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23827 \`$as_me' instantiates files and other configuration actions
23828 from templates according to the current configuration. Unless the files
23829 and actions are specified as TAGs, all are instantiated by default.
23831 Usage: $0 [OPTION]... [TAG]...
23833 -h, --help print this help, then exit
23834 -V, --version print version number and configuration settings, then exit
23835 --config print configuration, then exit
23836 -q, --quiet, --silent
23837 do not print progress messages
23838 -d, --debug don't remove temporary files
23839 --recheck update $as_me by reconfiguring in the same conditions
23840 --file=FILE[:TEMPLATE]
23841 instantiate the configuration file FILE
23842 --header=FILE[:TEMPLATE]
23843 instantiate the configuration header FILE
23845 Configuration files:
23848 Configuration headers:
23851 Configuration commands:
23854 Report bugs to <libarchive-discuss@googlegroups.com>."
23857 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23858 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23860 ac_cs_config='$ac_cs_config_escaped'
23862 libarchive config.status 3.6.2
23863 configured by $0, generated by GNU Autoconf 2.71,
23864 with options \\"\$ac_cs_config\\"
23866 Copyright (C) 2021 Free Software Foundation, Inc.
23867 This config.status script is free software; the Free Software Foundation
23868 gives unlimited permission to copy, distribute and modify it."
23875 test -n "\$AWK" || AWK=awk
23878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23879 # The default lists apply if the user does not specify any file.
23885 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23886 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23902 # Handling of the options.
23903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23906 printf "%s\n" "$ac_cs_version"; exit ;;
23907 --config | --confi | --conf | --con | --co | --c )
23908 printf "%s\n" "$ac_cs_config"; exit ;;
23909 --debug | --debu | --deb | --de | --d | -d )
23911 --file | --fil | --fi | --f )
23914 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23915 '') as_fn_error $? "missing file argument" ;;
23917 as_fn_append CONFIG_FILES " '$ac_optarg'"
23918 ac_need_defaults=false;;
23919 --header | --heade | --head | --hea )
23922 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23924 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23925 ac_need_defaults=false;;
23927 # Conflict between --help and --header
23928 as_fn_error $? "ambiguous option: \`$1'
23929 Try \`$0 --help' for more information.";;
23930 --help | --hel | -h )
23931 printf "%s\n" "$ac_cs_usage"; exit ;;
23932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23936 # This is an error.
23937 -*) as_fn_error $? "unrecognized option: \`$1'
23938 Try \`$0 --help' for more information." ;;
23940 *) as_fn_append ac_config_targets " $1"
23941 ac_need_defaults=false ;;
23947 ac_configure_extra_args=
23949 if $ac_cs_silent; then
23951 ac_configure_extra_args="$ac_configure_extra_args --silent"
23955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23956 if \$ac_cs_recheck; then
23957 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23959 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23960 CONFIG_SHELL='$SHELL'
23961 export CONFIG_SHELL
23966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23971 ## Running $as_me. ##
23973 printf "%s\n" "$ac_log"
23977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23981 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23984 # The HP-UX ksh and POSIX shell print the target directory to stdout
23985 # if CDPATH is set.
23986 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23988 sed_quote_subst='$sed_quote_subst'
23989 double_quote_subst='$double_quote_subst'
23990 delay_variable_subst='$delay_variable_subst'
23991 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23992 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23993 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23994 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23995 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23996 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23997 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23998 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23999 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
24000 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
24001 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24002 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
24003 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
24004 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24005 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24006 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24007 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24008 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24009 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24010 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24011 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24012 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24013 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24014 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24015 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24016 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24017 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24018 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24019 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24020 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24021 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24022 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24023 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24024 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24025 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24026 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24027 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24028 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24029 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24030 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24031 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24032 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24033 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24034 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24035 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24036 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24037 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24038 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24039 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24040 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24041 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24042 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24043 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24044 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24045 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24046 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24047 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
24048 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
24049 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24050 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"`'
24051 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
24052 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24053 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
24054 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
24055 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24056 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24057 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24058 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24059 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24060 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24061 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24062 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24063 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24064 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24065 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24066 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24067 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24068 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24069 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24070 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24071 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24072 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24073 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24074 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24075 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24076 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24077 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24078 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24079 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24080 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24081 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24082 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24083 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24084 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24085 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24086 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
24087 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24088 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24089 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24090 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24091 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24092 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24093 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24094 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24095 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24096 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24097 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24098 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24099 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24100 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24101 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24102 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24103 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24104 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24105 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24106 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24107 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24108 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24109 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24110 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24111 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24112 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24113 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24114 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24115 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24116 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24117 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24118 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24119 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24120 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24121 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24122 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24123 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24124 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24125 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24126 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24129 LTCFLAGS='$LTCFLAGS'
24130 compiler='$compiler_DEFAULT'
24132 # A function that is used when there is no print builtin or printf.
24133 func_fallback_echo ()
24135 eval 'cat <<_LTECHO_EOF
24140 # Quote evaled strings.
24157 deplibs_check_method \
24161 sharedlib_from_linklib_cmd \
24164 archiver_list_spec \
24170 lt_cv_sys_global_symbol_pipe \
24171 lt_cv_sys_global_symbol_to_cdecl \
24172 lt_cv_sys_global_symbol_to_import \
24173 lt_cv_sys_global_symbol_to_c_name_address \
24174 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24175 lt_cv_nm_interface \
24176 nm_file_list_spec \
24177 lt_cv_truncate_bin \
24178 lt_prog_compiler_no_builtin_flag \
24179 lt_prog_compiler_pic \
24180 lt_prog_compiler_wl \
24181 lt_prog_compiler_static \
24182 lt_cv_prog_compiler_c_o \
24191 export_dynamic_flag_spec \
24192 whole_archive_flag_spec \
24193 compiler_needs_object \
24195 allow_undefined_flag \
24196 no_undefined_flag \
24197 hardcode_libdir_flag_spec \
24198 hardcode_libdir_separator \
24202 variables_saved_for_relink \
24204 library_names_spec \
24206 install_override_mode \
24210 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24211 *[\\\\\\\`\\"\\\$]*)
24212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24220 # Double-quote double-evaled strings.
24221 for var in reload_cmds \
24222 old_postinstall_cmds \
24223 old_postuninstall_cmds \
24225 extract_expsyms_cmds \
24226 old_archive_from_new_cmds \
24227 old_archive_from_expsyms_cmds \
24229 archive_expsym_cmds \
24231 module_expsym_cmds \
24232 export_symbols_cmds \
24236 postuninstall_cmds \
24238 sys_lib_search_path_spec \
24239 configure_time_dlsearch_path \
24240 configure_time_lt_sys_library_path; do
24241 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24242 *[\\\\\\\`\\"\\\$]*)
24243 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24246 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24251 ac_aux_dir='$ac_aux_dir'
24253 # See if we are running on zsh, and set the options that allow our
24254 # commands through without removal of \ escapes INIT.
24255 if test -n "\${ZSH_VERSION+set}"; then
24256 setopt NO_GLOB_SUBST
24270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24272 # Handling of arguments.
24273 for ac_config_target in $ac_config_targets
24275 case $ac_config_target in
24276 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24277 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24278 "build/pkgconfig/libarchive.pc") CONFIG_FILES="$CONFIG_FILES build/pkgconfig/libarchive.pc" ;;
24279 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24280 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24281 "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;;
24283 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24288 # If the user did not use the arguments to specify the items to instantiate,
24289 # then the envvar interface is used. Set only those that are not.
24290 # We use the long form for the default assignment because of an extremely
24291 # bizarre bug on SunOS 4.1.3.
24292 if $ac_need_defaults; then
24293 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24294 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24295 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24298 # Have a temporary directory for convenience. Make it in the build tree
24299 # simply because there is no reason against having it here, and in addition,
24300 # creating and moving files from /tmp can sometimes cause problems.
24301 # Hook for its removal unless debugging.
24302 # Note that there is a small window in which the directory will not be cleaned:
24303 # after its creation but before its name has been assigned to `$tmp'.
24307 trap 'exit_status=$?
24308 : "${ac_tmp:=$tmp}"
24309 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24311 trap 'as_fn_exit 1' 1 2 13 15
24313 # Create a (secure) tmp directory for tmp files.
24316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24320 tmp=./conf$$-$RANDOM
24321 (umask 077 && mkdir "$tmp")
24322 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24325 # Set up the scripts for CONFIG_FILES section.
24326 # No need to generate them if there are no CONFIG_FILES.
24327 # This happens for instance with `./config.status config.h'.
24328 if test -n "$CONFIG_FILES"; then
24331 ac_cr=`echo X | tr X '\015'`
24332 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24333 # But we know of no other shell where ac_cr would be empty at this
24334 # point, so we can use a bashism as a fallback.
24335 if test "x$ac_cr" = x; then
24336 eval ac_cr=\$\'\\r\'
24338 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24339 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24342 ac_cs_awk_cr=$ac_cr
24345 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24350 echo "cat >conf$$subs.awk <<_ACEOF" &&
24351 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24353 } >conf$$subs.sh ||
24354 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24355 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24357 for ac_last_try in false false false false false :; do
24358 . ./conf$$subs.sh ||
24359 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24361 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24362 if test $ac_delim_n = $ac_delim_num; then
24364 elif $ac_last_try; then
24365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24367 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24370 rm -f conf$$subs.sh
24372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24373 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24377 s/^/S["/; s/!.*/"]=/
24387 s/\(.\{148\}\)..*/\1/
24389 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24394 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24401 s/\(.\{148\}\)..*/\1/
24403 s/["\\]/\\&/g; s/^/"/; s/$/"/
24407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24412 ' <conf$$subs.awk | sed '
24417 ' >>$CONFIG_STATUS || ac_write_fail=1
24418 rm -f conf$$subs.awk
24419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24421 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24422 for (key in S) S_is_set[key] = 1
24428 nfields = split(line, field, "@")
24430 len = length(field[1])
24431 for (i = 2; i < nfields; i++) {
24433 keylen = length(key)
24434 if (S_is_set[key]) {
24436 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24437 len += length(value) + length(field[++i])
24448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24449 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24450 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24453 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24454 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24457 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24458 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24459 # trailing colons and then remove the whole line if VPATH becomes empty
24460 # (actually we leave an empty line to preserve line numbers).
24461 if test "x$srcdir" = x.; then
24462 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24481 fi # test -n "$CONFIG_FILES"
24483 # Set up the scripts for CONFIG_HEADERS section.
24484 # No need to generate them if there are no CONFIG_HEADERS.
24485 # This happens for instance with `./config.status Makefile'.
24486 if test -n "$CONFIG_HEADERS"; then
24487 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24491 # Transform confdefs.h into an awk script `defines.awk', embedded as
24492 # here-document in config.status, that substitutes the proper values into
24493 # config.h.in to produce config.h.
24495 # Create a delimiter string that does not exist in confdefs.h, to ease
24496 # handling of long lines.
24498 for ac_last_try in false false :; do
24499 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24500 if test -z "$ac_tt"; then
24502 elif $ac_last_try; then
24503 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24505 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24509 # For the awk script, D is an array of macro values keyed by name,
24510 # likewise P contains macro parameters if any. Preserve backslash
24511 # newline sequences.
24513 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24515 s/.\{148\}/&'"$ac_delim"'/g
24518 s/^[ ]*#[ ]*define[ ][ ]*/ /
24525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24527 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24531 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24532 D["\1"]=" \3\\\\\\n"\\/p
24534 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24539 s/.\{148\}/&'"$ac_delim"'/g
24544 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24547 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24549 ' <confdefs.h | sed '
24550 s/'"$ac_delim"'/"\\\
24551 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24554 for (key in D) D_is_set[key] = 1
24557 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24559 split(line, arg, " ")
24560 if (arg[1] == "#") {
24564 defundef = substr(arg[1], 2)
24567 split(mac1, mac2, "(") #)
24569 prefix = substr(line, 1, index(line, defundef) - 1)
24570 if (D_is_set[macro]) {
24571 # Preserve the white space surrounding the "#".
24572 print prefix "define", macro P[macro] D[macro]
24575 # Replace #undef with comments. This is necessary, for example,
24576 # in the case of _POSIX_SOURCE, which is predefined and required
24577 # on some systems where configure will not decide to define it.
24578 if (defundef == "undef") {
24579 print "/*", prefix defundef, macro, "*/"
24587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24588 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24589 fi # test -n "$CONFIG_HEADERS"
24592 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24597 :[FHLC]) ac_mode=$ac_tag; continue;;
24599 case $ac_mode$ac_tag in
24601 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24602 :[FH]-) ac_tag=-:-;;
24603 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24620 -) ac_f="$ac_tmp/stdin";;
24621 *) # Look for the file first in the build tree, then in the source tree
24622 # (if the path is not absolute). The absolute path cannot be DOS-style,
24623 # because $ac_f cannot contain `:'.
24627 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24629 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24631 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24632 as_fn_append ac_file_inputs " '$ac_f'"
24635 # Let's still pretend it is `configure' which instantiates (i.e., don't
24636 # use $as_me), people would be surprised to read:
24637 # /* config.h. Generated by config.status. */
24638 configure_input='Generated from '`
24639 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24641 if test x"$ac_file" != x-; then
24642 configure_input="$ac_file. $configure_input"
24643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24644 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24646 # Neutralize special characters interpreted by sed in replacement strings.
24647 case $configure_input in #(
24648 *\&* | *\|* | *\\* )
24649 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24650 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24651 *) ac_sed_conf_input=$configure_input;;
24655 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24656 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24661 ac_dir=`$as_dirname -- "$ac_file" ||
24662 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24663 X"$ac_file" : 'X\(//\)[^/]' \| \
24664 X"$ac_file" : 'X\(//\)$' \| \
24665 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24666 printf "%s\n" X"$ac_file" |
24667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24671 /^X\(\/\/\)[^/].*/{
24684 as_dir="$ac_dir"; as_fn_mkdir_p
24688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24691 # A ".." for each directory in $ac_dir_suffix.
24692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24693 case $ac_top_builddir_sub in
24694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24698 ac_abs_top_builddir=$ac_pwd
24699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24700 # for backward compatibility:
24701 ac_top_builddir=$ac_top_build_prefix
24704 .) # We are building in place.
24706 ac_top_srcdir=$ac_top_builddir_sub
24707 ac_abs_top_srcdir=$ac_pwd ;;
24708 [\\/]* | ?:[\\/]* ) # Absolute name.
24709 ac_srcdir=$srcdir$ac_dir_suffix;
24710 ac_top_srcdir=$srcdir
24711 ac_abs_top_srcdir=$srcdir ;;
24712 *) # Relative name.
24713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24714 ac_top_srcdir=$ac_top_build_prefix$srcdir
24715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24727 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24728 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24730 ac_MKDIR_P=$MKDIR_P
24732 [\\/$]* | ?:[\\/]* ) ;;
24733 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24738 # If the template does not know about datarootdir, expand it.
24739 # FIXME: This hack should be removed a few years after 2.60.
24740 ac_datarootdir_hack=; ac_datarootdir_seen=
24751 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24752 *datarootdir*) ac_datarootdir_seen=yes;;
24753 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24755 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24758 ac_datarootdir_hack='
24759 s&@datadir@&$datadir&g
24760 s&@docdir@&$docdir&g
24761 s&@infodir@&$infodir&g
24762 s&@localedir@&$localedir&g
24763 s&@mandir@&$mandir&g
24764 s&\\\${datarootdir}&$datarootdir&g' ;;
24768 # Neutralize VPATH when `$srcdir' = `.'.
24769 # Shell code in configure.ac might set extrasub.
24770 # FIXME: do we really want to maintain this feature?
24771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24772 ac_sed_extra="$ac_vpsub
24775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24778 s|@configure_input@|$ac_sed_conf_input|;t t
24779 s&@top_builddir@&$ac_top_builddir_sub&;t t
24780 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24781 s&@srcdir@&$ac_srcdir&;t t
24782 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24783 s&@top_srcdir@&$ac_top_srcdir&;t t
24784 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24785 s&@builddir@&$ac_builddir&;t t
24786 s&@abs_builddir@&$ac_abs_builddir&;t t
24787 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24788 s&@INSTALL@&$ac_INSTALL&;t t
24789 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24790 $ac_datarootdir_hack
24792 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24793 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24795 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24796 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24797 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24798 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24800 which seems to be undefined. Please make sure it is defined" >&5
24801 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24802 which seems to be undefined. Please make sure it is defined" >&2;}
24804 rm -f "$ac_tmp/stdin"
24806 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24807 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24809 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24815 if test x"$ac_file" != x-; then
24817 printf "%s\n" "/* $configure_input */" >&1 \
24818 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24819 } >"$ac_tmp/config.h" \
24820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24821 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24823 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24826 mv "$ac_tmp/config.h" "$ac_file" \
24827 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24830 printf "%s\n" "/* $configure_input */" >&1 \
24831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24832 || as_fn_error $? "could not create -" "$LINENO" 5
24834 # Compute "$ac_file"'s index in $config_headers.
24837 for _am_header in $config_headers :; do
24838 case $_am_header in
24839 $_am_arg | $_am_arg:* )
24842 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24845 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24846 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24847 X"$_am_arg" : 'X\(//\)[^/]' \| \
24848 X"$_am_arg" : 'X\(//\)$' \| \
24849 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24850 printf "%s\n" X"$_am_arg" |
24851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24855 /^X\(\/\/\)[^/].*/{
24867 s/.*/./; q'`/stamp-h$_am_stamp_count
24870 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24871 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24876 case $ac_file$ac_mode in
24877 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24878 # Older Autoconf quotes --file arguments for eval, but not when files
24879 # are listed without --file. Let's play safe and only enable the eval
24880 # if we detect the quoting.
24881 # TODO: see whether this extra hack can be removed once we start
24882 # requiring Autoconf 2.70 or later.
24883 case $CONFIG_FILES in #(
24885 eval set x "$CONFIG_FILES" ;; #(
24887 set x $CONFIG_FILES ;; #(
24892 # Used to flag and report bootstrapping failures.
24896 # Strip MF so we end up with the name of the file.
24897 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24898 # Check whether this is an Automake generated Makefile which includes
24899 # dependency-tracking related rules and includes.
24900 # Grep'ing the whole file directly is not great: AIX grep has a line
24901 # limit of 2048, but all sed's we know have understand at least 4000.
24902 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24904 am_dirpart=`$as_dirname -- "$am_mf" ||
24905 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24906 X"$am_mf" : 'X\(//\)[^/]' \| \
24907 X"$am_mf" : 'X\(//\)$' \| \
24908 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24909 printf "%s\n" X"$am_mf" |
24910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24914 /^X\(\/\/\)[^/].*/{
24927 am_filepart=`$as_basename -- "$am_mf" ||
24928 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24929 X"$am_mf" : 'X\(//\)$' \| \
24930 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24931 printf "%s\n" X/"$am_mf" |
24932 sed '/^.*\/\([^/][^/]*\)\/*$/{
24945 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24946 && sed -e '/# am--include-marker/d' "$am_filepart" \
24947 | $MAKE -f - am--depfiles" >&5
24948 (cd "$am_dirpart" \
24949 && sed -e '/# am--include-marker/d' "$am_filepart" \
24950 | $MAKE -f - am--depfiles) >&5 2>&5
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); } || am_rc=$?
24955 if test $am_rc -ne 0; then
24956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24957 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24958 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24959 for automatic dependency tracking. If GNU make was not used, consider
24960 re-running the configure script with MAKE=\"gmake\" (or whatever is
24961 necessary). You can also try re-running configure with the
24962 '--disable-dependency-tracking' option to at least be able to build
24963 the package (albeit without support for automatic dependency tracking).
24964 See \`config.log' for more details" "$LINENO" 5; }
24966 { am_dirpart=; unset am_dirpart;}
24967 { am_filepart=; unset am_filepart;}
24968 { am_mf=; unset am_mf;}
24969 { am_rc=; unset am_rc;}
24970 rm -f conftest-deps.mk
24975 # See if we are running on zsh, and set the options that allow our
24976 # commands through without removal of \ escapes.
24977 if test -n "${ZSH_VERSION+set}"; then
24978 setopt NO_GLOB_SUBST
24982 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24985 cat <<_LT_EOF >> "$cfgfile"
24987 # Generated automatically by $as_me ($PACKAGE) $VERSION
24988 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24990 # Provide generalized library-building support services.
24991 # Written by Gordon Matzigkeit, 1996
24993 # Copyright (C) 2014 Free Software Foundation, Inc.
24994 # This is free software; see the source for copying conditions. There is NO
24995 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24997 # GNU Libtool is free software; you can redistribute it and/or modify
24998 # it under the terms of the GNU General Public License as published by
24999 # the Free Software Foundation; either version 2 of of the License, or
25000 # (at your option) any later version.
25002 # As a special exception to the GNU General Public License, if you
25003 # distribute this file as part of a program or library that is built
25004 # using GNU Libtool, you may include this file under the same
25005 # distribution terms that you use for the rest of that program.
25007 # GNU Libtool is distributed in the hope that it will be useful, but
25008 # WITHOUT ANY WARRANTY; without even the implied warranty of
25009 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25010 # GNU General Public License for more details.
25012 # You should have received a copy of the GNU General Public License
25013 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25016 # The names of the tagged configurations supported by this script.
25019 # Configured defaults for sys_lib_dlsearch_path munging.
25020 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25022 # ### BEGIN LIBTOOL CONFIG
25024 # Assembler program.
25027 # DLL creation program.
25028 DLLTOOL=$lt_DLLTOOL
25030 # Object dumper program.
25031 OBJDUMP=$lt_OBJDUMP
25033 # Which release of libtool.m4 was used?
25034 macro_version=$macro_version
25035 macro_revision=$macro_revision
25037 # Whether or not to build shared libraries.
25038 build_libtool_libs=$enable_shared
25040 # Whether or not to build static libraries.
25041 build_old_libs=$enable_static
25043 # What type of objects to build.
25046 # Whether or not to optimize for fast installation.
25047 fast_install=$enable_fast_install
25049 # Shared archive member basename,for filename based shared library versioning on AIX.
25050 shared_archive_member_spec=$shared_archive_member_spec
25052 # Shell to use when invoking shell scripts.
25055 # An echo program that protects backslashes.
25058 # The PATH separator for the build system.
25059 PATH_SEPARATOR=$lt_PATH_SEPARATOR
25062 host_alias=$host_alias
25066 # The build system.
25067 build_alias=$build_alias
25071 # A sed program that does not truncate output.
25074 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
25075 Xsed="\$SED -e 1s/^X//"
25077 # A grep program that handles long lines.
25083 # A literal string matcher.
25086 # A BSD- or MS-compatible name lister.
25089 # Whether we need soft or hard links.
25092 # What is the maximum length of a command?
25093 max_cmd_len=$max_cmd_len
25095 # Object file suffix (normally "o").
25098 # Executable file suffix (normally "").
25101 # whether the shell understands "unset".
25104 # turn spaces into newlines.
25107 # turn newlines into spaces.
25110 # convert \$build file names to \$host format.
25111 to_host_file_cmd=$lt_cv_to_host_file_cmd
25113 # convert \$build files to toolchain format.
25114 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25116 # Method to check whether dependent libraries are shared objects.
25117 deplibs_check_method=$lt_deplibs_check_method
25119 # Command to use when deplibs_check_method = "file_magic".
25120 file_magic_cmd=$lt_file_magic_cmd
25122 # How to find potential files when deplibs_check_method = "file_magic".
25123 file_magic_glob=$lt_file_magic_glob
25125 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25126 want_nocaseglob=$lt_want_nocaseglob
25128 # Command to associate shared and link libraries.
25129 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25134 # Flags to create an archive.
25135 AR_FLAGS=$lt_AR_FLAGS
25137 # How to feed a file listing to the archiver.
25138 archiver_list_spec=$lt_archiver_list_spec
25140 # A symbol stripping program.
25143 # Commands used to install an old-style archive.
25145 old_postinstall_cmds=$lt_old_postinstall_cmds
25146 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25148 # Whether to use a lock for old archive extraction.
25149 lock_old_archive_extraction=$lock_old_archive_extraction
25154 # LTCC compiler flags.
25155 LTCFLAGS=$lt_CFLAGS
25157 # Take the output of nm and produce a listing of raw symbols and C names.
25158 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25160 # Transform the output of nm in a proper C declaration.
25161 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25163 # Transform the output of nm into a list of symbols to manually relocate.
25164 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25166 # Transform the output of nm in a C name address pair.
25167 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25169 # Transform the output of nm in a C name address pair when lib prefix is needed.
25170 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25172 # The name lister interface.
25173 nm_interface=$lt_lt_cv_nm_interface
25175 # Specify filename containing input files for \$NM.
25176 nm_file_list_spec=$lt_nm_file_list_spec
25178 # The root where to search for dependent libraries,and where our libraries should be installed.
25179 lt_sysroot=$lt_sysroot
25181 # Command to truncate a binary pipe.
25182 lt_truncate_bin=$lt_lt_cv_truncate_bin
25184 # The name of the directory that contains temporary libtool files.
25187 # Used to examine libraries when file_magic_cmd begins with "file".
25188 MAGIC_CMD=$MAGIC_CMD
25190 # Must we lock files when doing compilation?
25191 need_locks=$lt_need_locks
25194 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25196 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25197 DSYMUTIL=$lt_DSYMUTIL
25199 # Tool to change global to local symbols on Mac OS X.
25202 # Tool to manipulate fat objects and archives on Mac OS X.
25205 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25208 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25209 OTOOL64=$lt_OTOOL64
25211 # Old archive suffix (normally "a").
25214 # Shared library suffix (normally ".so").
25215 shrext_cmds=$lt_shrext_cmds
25217 # The commands to extract the exported symbol list from a shared archive.
25218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25220 # Variables whose values should be saved in libtool wrapper scripts and
25221 # restored at link time.
25222 variables_saved_for_relink=$lt_variables_saved_for_relink
25224 # Do we need the "lib" prefix for modules?
25225 need_lib_prefix=$need_lib_prefix
25227 # Do we need a version for libraries?
25228 need_version=$need_version
25230 # Library versioning type.
25231 version_type=$version_type
25233 # Shared library runtime path variable.
25234 runpath_var=$runpath_var
25236 # Shared library path variable.
25237 shlibpath_var=$shlibpath_var
25239 # Is shlibpath searched before the hard-coded library search path?
25240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25242 # Format of library name prefix.
25243 libname_spec=$lt_libname_spec
25245 # List of archive names. First name is the real one, the rest are links.
25246 # The last name is the one that the linker finds with -lNAME
25247 library_names_spec=$lt_library_names_spec
25249 # The coded name of the library, if different from the real name.
25250 soname_spec=$lt_soname_spec
25252 # Permission mode override for installation of shared libraries.
25253 install_override_mode=$lt_install_override_mode
25255 # Command to use after installation of a shared archive.
25256 postinstall_cmds=$lt_postinstall_cmds
25258 # Command to use after uninstallation of a shared archive.
25259 postuninstall_cmds=$lt_postuninstall_cmds
25261 # Commands used to finish a libtool library installation in a directory.
25262 finish_cmds=$lt_finish_cmds
25264 # As "finish_cmds", except a single script fragment to be evaled but
25266 finish_eval=$lt_finish_eval
25268 # Whether we should hardcode library paths into libraries.
25269 hardcode_into_libs=$hardcode_into_libs
25271 # Compile-time system search path for libraries.
25272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25274 # Detected run-time system search path for libraries.
25275 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25277 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25278 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25280 # Whether dlopen is supported.
25281 dlopen_support=$enable_dlopen
25283 # Whether dlopen of programs is supported.
25284 dlopen_self=$enable_dlopen_self
25286 # Whether dlopen of statically linked programs is supported.
25287 dlopen_self_static=$enable_dlopen_self_static
25289 # Commands to strip libraries.
25290 old_striplib=$lt_old_striplib
25291 striplib=$lt_striplib
25294 # The linker used to build libraries.
25297 # How to create reloadable object files.
25298 reload_flag=$lt_reload_flag
25299 reload_cmds=$lt_reload_cmds
25301 # Commands used to build an old-style archive.
25302 old_archive_cmds=$lt_old_archive_cmds
25304 # A language specific compiler.
25307 # Is the compiler the GNU compiler?
25310 # Compiler flag to turn off builtin functions.
25311 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25313 # Additional compiler flags for building library objects.
25314 pic_flag=$lt_lt_prog_compiler_pic
25316 # How to pass a linker flag through the compiler.
25317 wl=$lt_lt_prog_compiler_wl
25319 # Compiler flag to prevent dynamic linking.
25320 link_static_flag=$lt_lt_prog_compiler_static
25322 # Does compiler simultaneously support -c and -o options?
25323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25325 # Whether or not to add -lc for building shared libraries.
25326 build_libtool_need_lc=$archive_cmds_need_lc
25328 # Whether or not to disallow shared libs when runtime libs are static.
25329 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25331 # Compiler flag to allow reflexive dlopens.
25332 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25334 # Compiler flag to generate shared objects directly from archives.
25335 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25337 # Whether the compiler copes with passing no objects directly.
25338 compiler_needs_object=$lt_compiler_needs_object
25340 # Create an old-style archive from a shared archive.
25341 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25343 # Create a temporary old-style archive to link instead of a shared archive.
25344 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25346 # Commands used to build a shared archive.
25347 archive_cmds=$lt_archive_cmds
25348 archive_expsym_cmds=$lt_archive_expsym_cmds
25350 # Commands used to build a loadable module if different from building
25351 # a shared archive.
25352 module_cmds=$lt_module_cmds
25353 module_expsym_cmds=$lt_module_expsym_cmds
25355 # Whether we are building with GNU ld or not.
25356 with_gnu_ld=$lt_with_gnu_ld
25358 # Flag that allows shared libraries with undefined symbols to be built.
25359 allow_undefined_flag=$lt_allow_undefined_flag
25361 # Flag that enforces no undefined symbols.
25362 no_undefined_flag=$lt_no_undefined_flag
25364 # Flag to hardcode \$libdir into a binary during linking.
25365 # This must work even if \$libdir does not exist
25366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25368 # Whether we need a single "-rpath" flag with a separated argument.
25369 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25371 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25372 # DIR into the resulting binary.
25373 hardcode_direct=$hardcode_direct
25375 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25376 # DIR into the resulting binary and the resulting library dependency is
25377 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25378 # library is relocated.
25379 hardcode_direct_absolute=$hardcode_direct_absolute
25381 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25382 # into the resulting binary.
25383 hardcode_minus_L=$hardcode_minus_L
25385 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25386 # into the resulting binary.
25387 hardcode_shlibpath_var=$hardcode_shlibpath_var
25389 # Set to "yes" if building a shared library automatically hardcodes DIR
25390 # into the library and all subsequent libraries and executables linked
25392 hardcode_automatic=$hardcode_automatic
25394 # Set to yes if linker adds runtime paths of dependent libraries
25395 # to runtime path list.
25396 inherit_rpath=$inherit_rpath
25398 # Whether libtool must link a program against all its dependency libraries.
25399 link_all_deplibs=$link_all_deplibs
25401 # Set to "yes" if exported symbols are required.
25402 always_export_symbols=$always_export_symbols
25404 # The commands to list exported symbols.
25405 export_symbols_cmds=$lt_export_symbols_cmds
25407 # Symbols that should not be listed in the preloaded symbols.
25408 exclude_expsyms=$lt_exclude_expsyms
25410 # Symbols that must always be exported.
25411 include_expsyms=$lt_include_expsyms
25413 # Commands necessary for linking programs (against libraries) with templates.
25414 prelink_cmds=$lt_prelink_cmds
25416 # Commands necessary for finishing linking programs.
25417 postlink_cmds=$lt_postlink_cmds
25419 # Specify filename containing input files.
25420 file_list_spec=$lt_file_list_spec
25422 # How to hardcode a shared library path into an executable.
25423 hardcode_action=$hardcode_action
25425 # ### END LIBTOOL CONFIG
25429 cat <<'_LT_EOF' >> "$cfgfile"
25431 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25433 # func_munge_path_list VARIABLE PATH
25434 # -----------------------------------
25435 # VARIABLE is name of variable containing _space_ separated list of
25436 # directories to be munged by the contents of PATH, which is string
25439 # string "DIR[ DIR]" will be prepended to VARIABLE
25441 # string "DIR[ DIR]" will be appended to VARIABLE
25442 # "DIRP[:DIRP]::[DIRA:]DIRA"
25443 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25444 # "DIRA[ DIRA]" will be appended to VARIABLE
25446 # VARIABLE will be replaced by "DIR[ DIR]"
25447 func_munge_path_list ()
25453 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25456 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25459 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25460 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25463 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25469 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25470 func_cc_basename ()
25472 for cc_temp in $*""; do
25474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25484 # ### END FUNCTIONS SHARED WITH CONFIGURE
25490 cat <<\_LT_EOF >> "$cfgfile"
25491 # AIX sometimes has problems with the GCC collect2 program. For some
25492 # reason, if we set the COLLECT_NAMES environment variable, the problems
25493 # vanish in a puff of smoke.
25494 if test set != "${COLLECT_NAMES+set}"; then
25496 export COLLECT_NAMES
25504 ltmain=$ac_aux_dir/ltmain.sh
25507 # We use sed instead of cat because bash on DJGPP gets confused if
25508 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25509 # text mode, it properly converts lines to CR/LF. This bash problem
25510 # is reportedly fixed, but why not run on old versions too?
25511 sed '$q' "$ltmain" >> "$cfgfile" \
25512 || (rm -f "$cfgfile"; exit 1)
25514 mv -f "$cfgfile" "$ofile" ||
25515 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25519 "mkdirs":C) mkdir -p libarchive/test tar/test cat/test cpio/test ;;
25527 ac_clean_files=$ac_clean_files_save
25529 test $ac_write_fail = 0 ||
25530 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25533 # configure is writing to config.log, and then calls config.status.
25534 # config.status does its own redirection, appending to config.log.
25535 # Unfortunately, on DOS this fails, as config.log is still kept open
25536 # by configure, so config.status won't be able to write to it; its
25537 # output is simply discarded. So we exec the FD to /dev/null,
25538 # effectively closing config.log, so it can be properly (re)opened and
25539 # appended to by config.status. When coming back to configure, we
25540 # need to make the FD available again.
25541 if test "$no_create" != yes; then
25543 ac_config_status_args=
25544 test "$silent" = yes &&
25545 ac_config_status_args="$ac_config_status_args --quiet"
25547 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25549 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25550 # would make configure fail if this is the last instruction.
25551 $ac_cs_success || as_fn_exit 1
25553 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25555 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}